health-agent:GetSessionContext

Read

health-agent:GetSessionContext is a Read access-level action in the health-agent service. Grants permission to retrieve structured session context including attributes and collected data

Resource types

ARNs that health-agent:GetSessionContext can be scoped to in an IAM policy.

arn:${Partition}:health-agent:${Region}:${Account}:domain/${DomainId}
Domain
arn:${Partition}:health-agent:${Region}:${Account}:domain/${DomainId}/session/${SessionId}
Session

Condition keys

Keys you can use in the Condition block of a policy that grants health-agent:GetSessionContext.

aws:ResourceTag/${TagKey} String

Filters access by the tags associated with the resource

Example IAM policy

A minimal policy that allows health-agent:GetSessionContext. Replace "Resource": "*" with a specific ARN to follow least privilege.

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowHealthagentGetSessionContext",
      "Effect": "Allow",
      "Action": "health-agent:GetSessionContext",
      "Resource": "*"
    }
  ]
}

Related actions in health-agent

View all health-agent actions →