bedrock-agentcore:CreateCodeInterpreter

Write

bedrock-agentcore:CreateCodeInterpreter is a Write access-level action in the bedrock-agentcore service. Grants permission to create a new custom code interpreter

Resource types

This action does not support resource-level permissions; use "Resource": "*" in your policy.

Condition keys

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

aws:RequestTag/${TagKey} String

Filters access by creating requests based on the allowed set of values for each of the mandatory tags

aws:TagKeys ArrayOfString

Filters access by creating requests based on the presence of mandatory tags in the request

bedrock-agentcore:securityGroups ArrayOfString

Filters access by the ID of security groups configured for an AgentCore resource

bedrock-agentcore:subnets ArrayOfString

Filters access by the ID of subnets configured for an AgentCore resource

Example IAM policy

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

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

Related actions in bedrock-agentcore

View all bedrock-agentcore actions →