AwsGlueSessionUserRestrictedNotebookPolicy
Summary
Provides permissions that allows users to create and use only the notebook sessions that are associated with the user. This policy also includes permissions to explicitly allow users to pass a restricted Glue session role.
Permissions imported from the AWS Managed Policy Reference Guide; other sections pending editorial review.
Identity
- ARN
arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedNotebookPolicy- Default version
- v3
- Created
- Last edited
- Services
- glue, iam
Control-plane actions (13)
By access level: 2 List, 3 Read, 1 Tagging, 7 Write.
| Service | Granted | Access levels and limits | Granted by |
|---|---|---|---|
| Glue | 12 of 306 | 2 List, 3 Read, 1 Tagging, 6 Write; 11 restricted, 9 conditional | glue:CancelStatement, glue:CreateSession, glue:DeleteSession, glue:GetCompletion, glue:GetSession, glue:GetStatement, glue:ListSessions, glue:ListStatements, glue:RunStatement, glue:StartCompletion, glue:StopSession, glue:TagResource |
| IAM | 1 of 190 | 1 Write; 1 restricted, 1 conditional | iam:PassRole |
Glue: 12 actions
- glue:CancelStatement (Write)
- glue:CreateSession (Write)
- glue:DeleteSession (Write)
- glue:GetCompletion (Read)
- glue:GetSession (Read)
- glue:GetStatement (Read)
- glue:ListSessions (List)
- glue:ListStatements (List)
- glue:RunStatement (Write)
- glue:StartCompletion (Write)
- glue:StopSession (Write)
- glue:TagResource (Tagging)
IAM: 1 actions
- iam:PassRole (Write)
Data-plane actions (0)
By access level: none.
This policy grants no actions in this plane.
Excluded and conditional actions
glue:UntagResource(deny-conditional, statement 5): 1 matching actionstag:TagResources(deny-conditional, statement 5): 1 matching actionstag:UntagResources(deny-conditional, statement 5): 1 matching actions
Resource scope and attachment
Resource scope across granted actions: mixed.
Can be attached: Yes, to users, groups and roles.
Why this tier
- Grants 8 write, tagging or permissions-management actions, short of full control of any service.
- Grants iam:PassRole, but only for scoped roles or under conditions (for example iam:PassedToService).
Guidance
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Related policies
Same service
- AmazonAthenaFullAccess
- AmazonDataZoneEnvironmentRolePermissionsBoundary
- AmazonDataZoneGlueManageAccessRolePolicy
- AmazonDataZonePreviewConsoleFullAccess
- AmazonDataZoneProjectRolePermissionsBoundary
- AmazonDataZoneSageMakerEnvironmentRolePermissionsBoundary
- AmazonDataZoneSageMakerProvisioningRolePolicy
- AmazonGrafanaAthenaAccess
Same domain
- AmazonChimeSDKMediaPipelinesServiceLinkedRolePolicy
- AmazonChimeSDKMessagingServiceRolePolicy
- AmazonDataZoneDomainExecutionRolePolicy
- AmazonDataZoneFullAccess
- AmazonDataZoneFullUserAccess
- AmazonDataZoneRedshiftGlueProvisioningPolicy
- AmazonDataZoneRedshiftManageAccessRolePolicy
- AmazonElasticMapReduceforAutoScalingRole
Frequently asked questions
Pending editorial review. The permission data on this page comes straight from AWS; this section will be filled in once a reviewed guide exists.
Policy JSON
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "NotebokAllowActions0",
"Effect": "Allow",
"Action": [
"glue:CreateSession"
],
"Resource": [
"arn:aws:glue:*:*:session/*"
],
"Condition": {
"StringEquals": {
"aws:RequestTag/owner": "${aws:PrincipalTag/owner}"
},
"ForAnyValue:StringEquals": {
"aws:TagKeys": [
"owner"
]
}
}
},
{
"Sid": "AllowGlueTaggingAction",
"Effect": "Allow",
"Action": [
"glue:TagResource"
],
"Resource": "arn:aws:glue:*:*:session/*",
"Condition": {
"StringEquals": {
"aws:ResourceTag/owner": "${aws:PrincipalTag/owner}",
"aws:RequestTag/owner": "${aws:PrincipalTag/owner}"
}
}
},
{
"Sid": "NotebookAllowActions1",
"Effect": "Allow",
"Action": [
"glue:StartCompletion",
"glue:GetCompletion"
],
"Resource": [
"arn:aws:glue:*:*:completion/*"
]
},
{
"Sid": "NotebookAllowActions2",
"Effect": "Allow",
"Action": [
"glue:RunStatement",
"glue:GetStatement",
"glue:ListStatements",
"glue:CancelStatement",
"glue:StopSession",
"glue:DeleteSession",
"glue:GetSession"
],
"Resource": [
"arn:aws:glue:*:*:session/*"
],
"Condition": {
"StringEquals": {
"aws:ResourceTag/owner": "${aws:PrincipalTag/owner}"
}
}
},
{
"Sid": "NotebookAllowActions3",
"Effect": "Allow",
"Action": [
"glue:ListSessions"
],
"Resource": [
"*"
]
},
{
"Sid": "NotebookDenyActions",
"Effect": "Deny",
"Action": [
"glue:UntagResource",
"tag:TagResources",
"tag:UntagResources"
],
"Resource": [
"arn:aws:glue:*:*:session/*"
],
"Condition": {
"ForAnyValue:StringEquals": {
"aws:TagKeys": [
"owner"
]
}
}
},
{
"Sid": "NotebookPassRole",
"Effect": "Allow",
"Action": [
"iam:PassRole"
],
"Resource": [
"arn:aws:iam::*:role/service-role/AwsGlueSessionServiceRoleUserRestrictedForNotebook*",
"arn:aws:iam::*:role/AwsGlueSessionUserRestrictedNotebookServiceRole*"
],
"Condition": {
"StringLike": {
"iam:PassedToService": [
"glue.amazonaws.com"
]
}
}
}
]
}
Version history
Current version v3, edited by AWS on 2024-08-15. Version history is recorded from 2026-11-11. Earlier versions are in the IAM console under Policy versions.
Attach snippets
AWS CLI
aws iam attach-role-policy --role-name ROLE_NAME --policy-arn arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedNotebookPolicy
aws iam attach-user-policy --user-name USER_NAME --policy-arn arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedNotebookPolicy
aws iam attach-group-policy --group-name GROUP_NAME --policy-arn arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedNotebookPolicyCloudFormation
Resources:
ExampleRole:
Type: AWS::IAM::Role
Properties:
AssumeRolePolicyDocument: {} # replace with your trust policy
ManagedPolicyArns:
- arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedNotebookPolicyTerraform
resource "aws_iam_role_policy_attachment" "awsgluesessionuserrestrictednotebookpolicy" {
role = aws_iam_role.example.name
policy_arn = "arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedNotebookPolicy"
}CDK (TypeScript)
role.addManagedPolicy(
iam.ManagedPolicy.fromAwsManagedPolicyName("AwsGlueSessionUserRestrictedNotebookPolicy"),
);Sources
Pending editorial review. No editorial sources are listed yet.