AwsGlueSessionUserRestrictedPolicy
Description: Provides permissions that allows users to create and use only the interactive sessions that are associated with the user. This policy also includes permissions to explicitly allow users to pass a restricted Glue session role.
AwsGlueSessionUserRestrictedPolicy
is an AWS managed policy.
Using this policy
You can attach AwsGlueSessionUserRestrictedPolicy
to your users, groups, and roles.
Policy
details
-
Type: AWS managed policy
-
Creation time: April 14, 2022, 21:31 UTC
-
Edited time: August 05, 2024, 23:06 UTC
-
ARN:
arn:aws:iam::aws:policy/AwsGlueSessionUserRestrictedPolicy
Policy version
Policy version: v3 (default)
The policy's default version is the version that defines the permissions for the policy. When a user or role with the policy makes a request to access an AWS resource, AWS checks the default version of the policy to determine whether to allow the request.
JSON policy document
{
"Version" : "2012-10-17",
"Statement" : [
{
"Sid" : "AllowSessionActions",
"Effect" : "Allow",
"Action" : [
"glue:CreateSession"
],
"Resource" : [
"arn:aws:glue:*:*:session/*"
],
"Condition" : {
"StringEquals" : {
"aws:RequestTag/owner" : "${aws:userid}"
},
"ForAnyValue:StringEquals" : {
"aws:TagKeys" : [
"owner"
]
}
}
},
{
"Sid" : "AllowGlueTaggingAction",
"Effect" : "Allow",
"Action" : [
"glue:TagResource"
],
"Resource" : "arn:aws:glue:*:*:session/*",
"Condition" : {
"StringEquals" : {
"aws:ResourceTag/owner" : "${aws:userid}",
"aws:RequestTag/owner" : "${aws:userid}"
}
}
},
{
"Sid" : "AllowCompletionActions",
"Effect" : "Allow",
"Action" : [
"glue:StartCompletion",
"glue:GetCompletion"
],
"Resource" : [
"arn:aws:glue:*:*:completion/*"
]
},
{
"Sid" : "AllowGlueActions",
"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:userid}"
}
}
},
{
"Sid" : "AllowListSessions",
"Effect" : "Allow",
"Action" : [
"glue:ListSessions"
],
"Resource" : [
"*"
]
},
{
"Sid" : "DenyTagActions",
"Effect" : "Deny",
"Action" : [
"glue:UntagResource",
"tag:TagResources",
"tag:UntagResources"
],
"Resource" : [
"arn:aws:glue:*:*:session/*"
],
"Condition" : {
"ForAnyValue:StringEquals" : {
"aws:TagKeys" : [
"owner"
]
}
}
},
{
"Sid" : "AllowPassRoleActions",
"Effect" : "Allow",
"Action" : [
"iam:PassRole"
],
"Resource" : [
"arn:aws:iam::*:role/service-role/AwsGlueSessionServiceRoleUserRestricted*"
],
"Condition" : {
"StringLike" : {
"iam:PassedToService" : [
"glue.amazonaws.com"
]
}
}
}
]
}