bedrock:EndSession

Write

bedrock:EndSession is a Write access-level action in the bedrock service. Grants permission to end a Session that you created earlier

Resource types

ARNs that bedrock:EndSession can be scoped to in an IAM policy.

arn:${Partition}:bedrock:${Region}:${Account}:session/${SessionId}
session

Condition keys

Keys you can use in the Condition block of a policy that grants bedrock:EndSession.

aws:ResourceTag/${TagKey} String

Filters access by having actions based on the tag value associated with the resource

Example IAM policy

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

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Sid": "AllowBedrockEndSession",
      "Effect": "Allow",
      "Action": "bedrock:EndSession",
      "Resource": "*"
    }
  ]
}

Related actions in bedrock

View all bedrock actions →