bedrock:CreateAdvancedPromptOptimizationJob

Write

bedrock:CreateAdvancedPromptOptimizationJob is a Write access-level action in the bedrock service. Grants permission to create an advanced prompt optimization job

Resource types

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

arn:${Partition}:bedrock:${Region}:${Account}:application-inference-profile/${ResourceId} required
application-inference-profile
arn:${Partition}:bedrock:${Region}::foundation-model/${ResourceId} required
foundation-model
arn:${Partition}:bedrock:${Region}:${Account}:inference-profile/${ResourceId} required
inference-profile

Condition keys

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

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

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

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

Related actions in bedrock

View all bedrock actions →