elasticmapreduce:GetSession

Read

elasticmapreduce:GetSession is a Read access-level action in the elasticmapreduce service. Grants permission to get details of a Spark Connect session

Resource types

ARNs that elasticmapreduce:GetSession can be scoped to in an IAM policy.

arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId}/session/${SessionId} required
session

Condition keys

Keys you can use in the Condition block of a policy that grants elasticmapreduce:GetSession.

aws:ResourceTag/${TagKey} String

Filters access by the tag and value pair associated with an Amazon EMR resource

elasticmapreduce:ResourceTag/${TagKey} String

Filters access by the tag and value pair associated with an Amazon EMR resource

Example IAM policy

A minimal policy that allows elasticmapreduce:GetSession. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowElasticmapreduceGetSession",
      "Effect": "Allow",
      "Action": "elasticmapreduce:GetSession",
      "Resource": "*"
    }
  ]
}

Related actions in elasticmapreduce

View all elasticmapreduce actions →