bedrock:GetAgent

Read

bedrock:GetAgent is a Read access-level action in the bedrock service. Grants permission to retrieve an existing agent

Resource types

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

arn:${Partition}:bedrock:${Region}:${Account}:agent/${AgentId}
agent

Condition keys

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

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:GetAgent. Replace "Resource": "*" with a specific ARN to follow least privilege.

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

Related actions in bedrock

View all bedrock actions →