feat(iam): read Bedrock from the generated tables, its routes vendored (#9169)

Bedrock leaves ResourceArnBuilder's own branch and the registry's three resource-policy rules: its
requests are matched on their botocore routes and checked on the resources the request-resources table
reads. regen_rest_routes.py vendors the bedrock, bedrock-agent and bedrock-runtime models, all signed
for the bedrock scope; bedrock-agent's are needed because its PutResourcePolicy carries resourceArn in
its path where bedrock's carries it in its body, a member the two clients locate apart.
regen_iam_request_resources.py reads bedrock instead of leaving it to the builder, so a guardrail
request is checked on the guardrail its path names and a resource-policy request on the ARN it carries.
The generator's reader of an ARN pattern's type words also reads one whose account is optional, so the
tag actions are checked on the guardrail or application inference profile ARN they carry, and
regen_iam_tag_on_create.py reads bedrock, so a create carrying tags also needs bedrock:TagResource.

BedrockStoredResourceArns gives IAM the tags Bedrock holds on a guardrail or an application inference
profile, for aws:ResourceTag, read in place and matched on the whole ARN; a guardrail's untag now
replaces its tag map rather than editing it, so a reader never sees half of one, and both models keep
their tags volatile.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-22 00:01:33 -04:00
1 parent cff222a6f1
commit 5b4bc0e44e
17 files changed
+847 -92

No files matched your search

+11 -4
View File
@@ -99,10 +99,17 @@ returns the empty policy `{}`. A profile ARN of another account or partition ret
`ResourceNotFoundException`; whether the profile's Region is a destination of the
calling Region is not checked.
With IAM enforcement on, `PutResourcePolicy`, `GetResourcePolicy` and
`DeleteResourcePolicy` are authorized as `bedrock:PutResourcePolicy`,
`bedrock:GetResourcePolicy` and `bedrock:DeleteResourcePolicy` on the ARN the request
names.
With IAM enforcement on, every Bedrock and Bedrock Runtime request is authorized as the action
AWS's Service Reference gives its operation, on the resources its request names, read from the
generated tables like other services' requests: `GetGuardrail` on the guardrail its path names,
`PutResourcePolicy`, `GetResourcePolicy` and `DeleteResourcePolicy` on the ARN the request
names, and `TagResource`, `UntagResource` and `ListTagsForResource` on the guardrail or
application inference profile ARN they carry. A `CreateGuardrail` or `CreateInferenceProfile`
carrying tags also needs `bedrock:TagResource`, with `aws:RequestTag` and `aws:TagKeys` taken
from those tags. The tables do not read the model an `InvokeModel` or
`InvokeModelWithResponseStream` request names, so those two are checked on the account's
`marketplace/model-endpoint/all-access` resource, the one type of their actions that names no
model.
Guardrails are listed by the Resource Groups Tagging API (resource type `bedrock:guardrail`)
and Resource Explorer with their own tags, and `TagResources` / `UntagResources` there change
@@ -15,6 +15,7 @@ import io.floci.aws.core.common.SmithyValidationErrors;
import io.floci.aws.core.resource.ExplorerResource;
import io.floci.aws.core.resource.ResourceProvider;
import io.floci.aws.core.resource.SupportedResourceType;
import io.floci.aws.core.storage.AccountAwareStorageBackend;
import io.floci.aws.core.storage.StorageBackend;
import io.floci.aws.core.storage.StorageFactory;
import io.floci.aws.services.bedrock.model.ApplicationInferenceProfile;
@@ -698,12 +699,37 @@ public class BedrockService implements ResourceProvider {
return;
}
Guardrail guardrail = findByArn(resourceArn, region);
if (guardrail.getTags() != null && tagKeys != null) {
tagKeys.forEach(guardrail.getTags()::remove);
Map<String, String> remaining = new HashMap<>(guardrail.getTags() != null ? guardrail.getTags() : Map.of());
if (tagKeys != null) {
tagKeys.forEach(remaining::remove);
}
guardrail.setTags(remaining);
guardrails.put(storageKey(region, guardrail.getGuardrailId(), DRAFT_VERSION), guardrail);
}
/**
* The tags of the guardrail or application inference profile whose ARN is {@code arn} in {@code account}, read in
* place under the key the tag handlers read, in the ARN's Region, and matched on the whole ARN it records; none
* when there is no such resource. Tag calls give the resource a new map, so the read is of one whole set.
*/
Map<String, String> tagsInAccount(String account, String arn) {
AwsArnUtils.Arn parsed = AwsArnUtils.parse(arn);
String resource = parsed.resource();
Optional<Map<String, String>> tags = Optional.empty();
if (resource.startsWith(GUARDRAIL_RESOURCE_PREFIX)) {
tags = AccountAwareStorageBackend.readInAccount(guardrails, account,
storageKey(parsed.region(), resource.substring(GUARDRAIL_RESOURCE_PREFIX.length()), DRAFT_VERSION))
.filter(guardrail -> arn.equals(guardrail.getGuardrailArn())).map(Guardrail::getTags);
} else if (resource.startsWith(APPLICATION_INFERENCE_PROFILE_PREFIX)) {
tags = AccountAwareStorageBackend.readInAccount(applicationInferenceProfiles, account,
applicationProfileKey(parsed.region(),
resource.substring(APPLICATION_INFERENCE_PROFILE_PREFIX.length())))
.filter(profile -> arn.equals(profile.getInferenceProfileArn()))
.map(ApplicationInferenceProfile::getTags);
}
return tags.orElse(Map.of());
}
// Resource discovery (Resource Groups Tagging API, Resource Explorer)
@Override
@@ -0,0 +1,59 @@
package io.floci.aws.services.bedrock;
import io.floci.aws.core.common.AwsArnUtils;
import io.floci.aws.core.common.RegionResolver;
import io.floci.aws.core.common.StoredResourceArns;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import java.util.List;
import java.util.Map;
import java.util.Optional;
/**
* IAM's lookup of the tags Amazon Bedrock holds on a guardrail or an application inference profile, for the
* {@code bedrock} namespace.
*/
@ApplicationScoped
public class BedrockStoredResourceArns implements StoredResourceArns {
private static final String NAMESPACE = "bedrock";
private final BedrockService bedrock;
private final RegionResolver regionResolver;
@Inject
public BedrockStoredResourceArns(BedrockService bedrock, RegionResolver regionResolver) {
this.bedrock = bedrock;
this.regionResolver = regionResolver;
}
@Override
public String namespace() {
return NAMESPACE;
}
/** A request names what it acts on by its id or its ARN: nothing to find. */
@Override
public Optional<String> find(String type, List<String> names, String region) {
return Optional.empty();
}
/**
* The tags of the guardrail or application inference profile whose ARN is {@code arn}, in the request's account,
* where the tag handlers read: an ARN of another account names none, and neither does one of a type Floci holds
* no tags on. The resource is read in place and matched on the whole ARN it records.
*/
@Override
public Map<String, String> storedTags(String arn) {
if (!AwsArnUtils.isArnFor(arn, NAMESPACE)) {
return Map.of();
}
AwsArnUtils.Arn parsed = AwsArnUtils.parse(arn);
String account = regionResolver.getAccountId();
if (!parsed.accountId().equals(account) || parsed.region().isBlank()) {
return Map.of();
}
return StoredResourceArns.withEmptyValues(bedrock.tagsInAccount(account, arn));
}
}
@@ -16,7 +16,7 @@ public class ApplicationInferenceProfile {
private List<String> models;
private Instant createdAt;
private Instant updatedAt;
private Map<String, String> tags;
private volatile Map<String, String> tags;
private String accountId;
private String region;
private String clientRequestToken;
@@ -19,7 +19,7 @@ public class Guardrail {
private String kmsKeyArn;
private Instant createdAt;
private Instant updatedAt;
private Map<String, String> tags;
private volatile Map<String, String> tags;
private String accountId;
private String resourcePolicy;
@@ -373,11 +373,6 @@ public class IamActionRegistry {
rule("eks", "POST", "^/tags(/.+)?$", "eks:TagResource"),
rule("eks", "DELETE", "^/tags(/.+)?$", "eks:UntagResource"),
// ── Bedrock ────────────────────────────────────────────────────────────
rule("bedrock", "POST", "^/resource-policy$", "bedrock:PutResourcePolicy"),
rule("bedrock", "GET", "^/resource-policy/.+", "bedrock:GetResourcePolicy"),
rule("bedrock", "DELETE", "^/resource-policy/.+", "bedrock:DeleteResourcePolicy"),
// ── SES v2 ─────────────────────────────────────────────────────────────
// SES v1 is a Query API and resolves from its Action like any other; v2 is REST-JSON under
// /v2/email, so every operation needs its own rule. One rule per operation in the SES v2
@@ -60,8 +60,6 @@ public class ResourceArnBuilder {
/** The segment a tagging route names before the ARN it tags, which it captures whole, slashes included. */
private static final String API_GATEWAY_TAGS_SEGMENT = "tags";
/** The route of Bedrock's resource-policy actions, which the ARN of the resource they act on may follow. */
private static final String BEDROCK_RESOURCE_POLICY_ROUTE = "/resource-policy";
private final ObjectMapper objectMapper;
/**
@@ -151,12 +149,10 @@ public class ResourceArnBuilder {
if (operation != null && operation.startsWith(credentialScope + ":") && RequestResources.reads(operation)) {
return namedResources(credentialScope, operation, ctx, region, accountId, partition);
}
String path = IamActionRegistry.decodedPath(ctx);
return switch (credentialScope) {
case "dynamodb" -> buildDynamoDbArns(ctx, region, accountId);
case "iam" -> buildIamArns(ctx, region, accountId);
case "apigateway" -> List.of(buildApiGatewayArn(ctx, region, partition));
case "bedrock" -> List.of(buildBedrockArn(path, ctx));
default -> namedResources(credentialScope, operation, ctx, region, accountId, partition);
};
}
@@ -838,24 +834,6 @@ public class ResourceArnBuilder {
}
}
// ── Bedrock ──────────────────────────────────────────────────────────────────
/**
* The resource of a Bedrock route. The resource-policy actions act on the resource whose ARN they carry,
* in the path, or in the body's {@code resourceArn} for {@code PutResourcePolicy}, as the Service
* Authorization Reference gives them; every other route, and a value that is not an ARN, is {@code *}.
*/
private String buildBedrockArn(String path, ContainerRequestContext ctx) {
String resourceArn = null;
if (path.startsWith(BEDROCK_RESOURCE_POLICY_ROUTE + "/")) {
resourceArn = path.substring(BEDROCK_RESOURCE_POLICY_ROUTE.length() + 1);
} else if (BEDROCK_RESOURCE_POLICY_ROUTE.equals(path) && "POST".equalsIgnoreCase(ctx.getMethod())) {
JsonNode body = readJsonBody(ctx);
resourceArn = body == null ? null : body.path("resourceArn").asText(null);
}
return AwsArnUtils.isArn(resourceArn) ? resourceArn : "*";
}
// ── DynamoDB ─────────────────────────────────────────────────────────────────
private String buildDynamoDbArn(ContainerRequestContext ctx, String region, String accountId) {
List<String> arns = buildDynamoDbArns(ctx, region, accountId);
@@ -368,6 +368,74 @@
],
"account": [],
"apigateway": [],
"bedrock": [
"AgenticRetrieveStream",
"AssociateThirdPartyKnowledgeBase",
"CallWithBearerToken",
"CheckIngestedDocumentAcl",
"CreateAgent",
"CreateAutomatedReasoningPolicy",
"CreateBlueprint",
"CreateCustomModel",
"CreateDataAutomationLibrary",
"CreateDataSourceToken",
"CreateFlow",
"CreateFoundationModelAgreement",
"CreateKnowledgeBase",
"CreateMarketplaceModelEndpoint",
"CreateModelImportJob",
"CreatePrompt",
"CreateRetrievalInstruction",
"CreateSession",
"DeleteEnforcedGuardrailConfiguration",
"DeleteFoundationModelAgreement",
"DeleteMarketplaceModelAgreement",
"DeleteModelInvocationLoggingConfiguration",
"GenerateQuery",
"GetAccountDataRetention",
"GetBlueprintRecommendation",
"GetDataSourceAuthorizationUrl",
"GetDocumentContent",
"GetFoundationModelAvailability",
"GetIngestedDocumentAcl",
"GetModelInvocationLoggingConfiguration",
"GetUseCaseForModelAccess",
"InvokeBuilder",
"InvokeGuardrailChecks",
"InvokeInlineAgent",
"ListAdvancedPromptOptimizationJobs",
"ListAgents",
"ListAsyncInvokes",
"ListCustomModelDeployments",
"ListCustomModels",
"ListEnforcedGuardrailsConfiguration",
"ListEvaluationJobs",
"ListFlows",
"ListFoundationModelAgreementOffers",
"ListFoundationModels",
"ListImportedModels",
"ListInferenceProfiles",
"ListKnowledgeBases",
"ListMarketplaceModelEndpoints",
"ListModelCopyJobs",
"ListModelCustomizationJobs",
"ListModelEvaluationJobs",
"ListModelImportJobs",
"ListModelInvocationJobs",
"ListPromptRouters",
"ListProvisionedModelThroughputs",
"ListRetrievalInstructions",
"ListSessions",
"OptimizePrompt",
"PutAccountDataRetention",
"PutEnforcedGuardrailConfiguration",
"PutFoundationModelEntitlement",
"PutModelInvocationLoggingConfiguration",
"PutUseCaseForModelAccess",
"Rerank",
"RetrieveAndGenerate",
"ValidateFlowDefinition"
],
"cloudfront": [
"CreateAnycastIpList",
"CreateCachePolicy",
@@ -1,11 +1,11 @@
{
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-21", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."},
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ec2-instance-connect": ["ec2-instance-connect"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
"handBuilt": ["apigateway", "bedrock", "dynamodb", "iam", "kms"],
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-22", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."},
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ec2-instance-connect": ["ec2-instance-connect"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
"handBuilt": ["apigateway", "dynamodb", "iam", "kms"],
"notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rules do not fill a name from, so nearly every operation's resource would be left open", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment/<application>/<name>`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "execute-api": "REST: its requests name their resourcLine truncated
"otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifyuibuilder", "aoss", "apiportal", "appfabric", "appflow", "application-signals", "application-signals-mcp", "appmesh", "appmesh-preview", "apprunner", "appstream", "apptest", "arc-region-switch", "arc-zonal-shift", "artifact", "assurance", "auditmanager", "aws-external-anthropic", "b2bi", "backup-gateway", "backup-search", "bcm-data-hub", "bedrock-mantle", "bedrock-websearch", "billing", "billingconductor", "braket", "bugbust", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "clouddirectory", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "end-user-messaging", "entityresolution", "evs", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "osm", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "ssmmessages", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web"],
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudformation": {"changeset": "arn:${Partition}:cloudformation:${Region}:${Account}:changeSet/${ChangeSetName}/${Id}", "generatedtemplate": "arn:${Partition}:cloudformation:${Region}:${Account}:generatedTemplate/${Id}", "resourcescan": "arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}", "stack": "arn:${Partition}:cloudformation:${Region}:${Account}:stack/${StackName}/${Id}", "stackset": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset/${StackSetName}:${Id}", "stackset-target": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset-target/${StackSetTarget}", "type": "arn:${Partition}:cloudformation:${Region}:${Account}:type/resource/${Type}", "typeHook": "arn:${Partition}:cloudformation:${Region}:${Account}:type/hook/${Type}"}, "cloudfront": {"anycast-ip-list": "arn:${Partition}:cloudfront::${Account}:anycast-ip-list/${Id}", "cache-policy": "arn:${Partition}:cloudfront::${Account}:cache-policy/${Id}", "connection-function": "arn:${Partition}:cloudfront::${Account}:connection-function/${Id}", "connection-group": "arn:${Partition}:cloudfront::${Account}:connection-group/${Id}", "continuous-deployment-policy": "arn:${Partition}:cloudfront::${Account}:continuous-deployment-policy/${Id}", "distribution": "arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}", "distribution-tenant": "arn:${Partition}:cloudfront::${Account}:distribution-tenant/${Id}", "field-level-encryption-config": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-config/${Id}", "field-level-encryption-profile": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-profile/${Id}", "function": "arn:${Partition}:cloudfront::${Account}:function/${Name}", "key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}", "origin-access-control": "arn:${Partition}:cloudfront::${Account}:origin-access-control/${Id}", "origin-access-identity": "arn:${Partition}:cloudfront::${Account}:origin-access-identity/${Id}", "origin-request-policy": "arn:${Partition}:cloudfront::${Account}:origin-request-policy/${Id}", "realtime-log-config": "arn:${Partition}:cloudfront::${Account}:realtime-log-config/${Name}", "response-headers-policy": "arn:$Line truncated
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-estimate": ["aws:ResourceTag/"], "bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/"], "budgetAction": ["aws:ResourceTag/"]}, "ce": {"anomalymonitor": ["aws:ResourceTag/"], "anomalysubscription": ["aws:ResourceTag/"], "billingview": ["aws:ResourceTag/"], "costcategory": ["aws:ResourceTag/"]}, "cloudformation": {"changeset": ["aws:ResourceTag/"], "stack": ["aws:ResourceTag/"], "stackset": ["aws:ResourceTag/"]}, "cloudfront": {"anycast-ip-list": ["aws:ResourceTag/"], "connection-function": ["aws:ResourceTag/"], "connection-group": ["aws:ResourceTag/"], "distribution": ["aws:ResourceTag/"], "distribution-tenant": ["aws:ResourceTag/"], "function": ["aws:ResourceTag/"], "key-value-store": ["aws:ResourceTag/"], "streaming-distribution": ["aws:ResourceTag/"], "trust-store": ["aws:ResourceTag/"], "vpcorigin": ["aws:ResourceTag/"]}, "cloudtrail": {"channel": ["aws:ResourceTag/"], "dashboard": ["aws:ResourceTag/"], "eventdatastore": ["aws:ResourceTag/"], "trail": ["aws:ResourceTag/"]}, "codebuild": {"project": ["aws:ResourceTag/"], "report-group": ["aws:ResourceTag/"]}, "codepipeline": {"action": ["aws:ResourceTag/"], "actiontype": ["aws:ResourceTag/"], "pipeline": ["aws:ResourceTag/"], "stage": ["aws:ResourceTag/"], "webhook": ["aws:ResourceTag/"]}, "cognito-identity": {"identitypool": ["aws:ResourceTag/"]}, "cognito-idp": {"userpool": ["aws:ResourceTag/"]}, "controltower": {"EnabledBaseline": ["aws:ResourceTag/"], "EnabledControl": ["aws:ResourceTag/"], "LandingZone": ["aws:ResourceTag/"]}, "datasync": {"agent": ["aws:ResourceTag/"], "discoveryjob": ["aws:ResourceTag/"], "location": ["aws:ResourceTag/"], "storagesystem": ["aws:ResourceTag/"], "task": ["aws:ResourceTag/"], "taskexecution": ["aws:ResourceTag/"]}, "dsql": {"Cluster": ["aws:ResourceTag/"], "Stream": ["aws:ResourceTag/"]}, "dynamodb": {"index": ["aws:ResourceTag/"], "stream": ["aws:ResourceTag/"], "table": ["aws:ResourceTag/"]}, "ec2": {"application-status-check": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-block": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-manager-data-export": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-cancellation-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-modification-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "carrier-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "client-vpn-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "coip-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "customer-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "declarative-policies-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dedicated-host": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dhcp-options": ["aws:ResourceTag/", "ec2:ResourceTag/"], "egress-only-internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-gpu": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-ip": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-instance-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fpga-image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "host-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image-usage-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-snapshot-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-connect-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-event-window": ["aws:ResourceTag/", "ec2:ResourceTag/"], "internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-external-resource-verification-token": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-internet-registry-association": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-policy": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool-allocation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-rLine truncated
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "bedrock": {"advanced-prompt-optimization-job": "arn:${Partition}:bedrock:${Region}:${Account}:advanced-prompt-optimization-job/${ResourceId}", "agent": "arn:${Partition}:bedrock:${Region}:${Account}:agent/${AgentId}", "agent-alias": "arn:${Partition}:bedrock:${Region}:${Account}:agent-alias/${AgentId}/${AgentAliasId}", "application-inference-profile": "arn:${Partition}:bedrock:${Region}:${Account}:application-inference-profile/${ResourceId}", "async-invoke": "arn:${Partition}:bedrock:${Region}:${Account}:async-invoke/${ResourceId}", "automated-reasoning-policy": "arn:${Partition}:bedrock:${Region}:${Account}:automated-reasoning-policy/${AutomatedReasoningPolicyId}", "automated-reasoning-policy-version": "arn:${Partition}:bedrock:${Region}:${Account}:automated-reasoning-policy/${AutomatedReasoningPolicyId}:${AutomatedReasoningPolicyVersion}", "bedrock-marketplace-model-endpoint": "arn:${Partition}:bedrock:${Region}:${Account}:marketplace/model-endpoint/all-access", "blueprint": "arn:${Partition}:bedrock:${Region}:${Account}:blueprint/${BlueprintId}", "blueprint-optimization-invocation": "arn:${Partition}:bedrock:${Region}:${Account}:blueprint-optimization-invocation/${ResourceId}", "custom-model": "arn:${Partition}:bedrock:${Region}:${Account}:custom-model/${ResourceId}", "custom-model-deployment": "arn:${Partition}:bedrock:${Region}:${Account}:custom-model-deployment/${ResourceId}", "data-automation-invocation-job": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-invocation/${JobId}", "data-automation-library": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-library/${DataAutomationLibraryId}", "data-automation-library-ingestion-job": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-library-ingestion-job/${IngestionJobId}", "data-automation-profile": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-profile/${ProfileId}", "data-automation-project": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-project/${ProjectId}", "default-prompt-router": "arn:${Partition}:bedrock:${Region}:${Account}:default-prompt-router/${ResourceId}", "evaluation-job": "arn:${Partition}:bedrock:${Region}:${Account}:evaluation-job/${ResourceId}", "flow": "arn:${Partition}:bedrock:${Region}:${Account}:flow/${FlowId}", "flow-alias": "arn:${Partition}:bedrock:${Region}:${Account}:flow/${FlowId}/alias/${FlowAliasId}", "flow-execution": "arn:${Partition}:bedrock:${Region}:${Account}:flow/${FlowId}/alias/${FlowAliasId}/execution/${FlowExecutionId}", "foundation-model": "arn:${Partition}:bedrock:${Region}::foundation-model/${ResourceId}", "guardrail": "arn:${Partition}:bedrock:${Region}:${Account}:guardrail/${GuardrailId}", "guardrail-profile": "arn:${Partition}:bedLine truncated
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-estimate": ["aws:ResourceTag/"], "bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "bedrock": {"advanced-prompt-optimization-job": ["aws:ResourceTag/"], "agent": ["aws:ResourceTag/"], "agent-alias": ["aws:ResourceTag/"], "application-inference-profile": ["aws:ResourceTag/"], "async-invoke": ["aws:ResourceTag/"], "automated-reasoning-policy": ["aws:ResourceTag/"], "automated-reasoning-policy-version": ["aws:ResourceTag/"], "blueprint": ["aws:ResourceTag/"], "blueprint-optimization-invocation": ["aws:ResourceTag/"], "custom-model": ["aws:ResourceTag/"], "custom-model-deployment": ["aws:ResourceTag/"], "data-automation-invocation-job": ["aws:ResourceTag/"], "data-automation-library": ["aws:ResourceTag/"], "data-automation-library-ingestion-job": ["aws:ResourceTag/"], "data-automation-project": ["aws:ResourceTag/"], "evaluation-job": ["aws:ResourceTag/"], "flow": ["aws:ResourceTag/"], "flow-alias": ["aws:ResourceTag/"], "guardrail": ["aws:ResourceTag/"], "imported-model": ["aws:ResourceTag/"], "knowledge-base": ["aws:ResourceTag/"], "model-copy-job": ["aws:ResourceTag/"], "model-customization-job": ["aws:ResourceTag/"], "model-evaluation-job": ["aws:ResourceTag/"], "model-import-job": ["aws:ResourceTag/"], "model-invocation-job": ["aws:ResourceTag/"], "project": ["aws:ResourceTag/"], "prompt": ["aws:ResourceTag/"], "prompt-router": ["aws:ResourceTag/"], "prompt-version": ["aws:ResourceTag/"], "provisioned-model": ["aws:ResourceTag/"], "retrieval-instruction": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/"], "budgetAction": ["aws:ResourceTag/"]}, "ce": {"anomalymonitor": ["aws:ResourceTag/"], "anomalysubscription": ["aws:ResourceTag/"], "billingview": ["aws:ResourceTag/"], "costcategory": ["aws:ResourceTag/"]}, "cloudformation": {"changeset": ["aws:ResourceTag/"], "stack": ["aws:ResourceTag/"], "stackset": ["aws:ResourceTag/"]}, "cloudfront": {"anycast-ip-list": ["aws:ResourceTag/"], "connection-function": ["aws:ResourceTag/"], "connection-group": ["aws:ResourceTag/"], "distribution": ["aws:ResourceTag/"], "distribution-tenant": ["aws:ResourceTag/"], "function": ["aws:ResourceTag/"], "key-value-store": ["aws:ResourceTag/"], "streaming-distribution": ["aws:ResourceTag/"], "trust-store": ["aws:ResourceTag/"], "vpcorigin": ["aws:ResourceTag/"]}, "cloudtrail": {"channel": ["aws:ResourceTag/"], "dashboard": ["aws:ResourceTag/"], "eventdatastore": ["aws:ResourceTag/"], "trail": ["aws:ResourceTag/"]}, "codebuild": {"project": ["aws:ResourceTag/"], "report-group": ["aws:ResourceTag/"]}, "codepipeline": {"action": ["aws:ResourceTag/"], "actiontype": ["aws:ResourceTag/"], "pipeline": ["aws:ResourceTag/"], "stage": ["aws:ResourceTag/"], "webhook": ["aws:ResourceTag/"]}, "cognito-identity": {"identitypool": ["aws:ResourceTag/"]}, "cognito-idp": {"userpool": ["aws:ResourceTag/"]}, "controltower": {"EnabledBaseline": ["aws:ResourceTag/"], "EnabledControl": ["aws:ResourceTag/"], "LandingZone": ["aws:ResourceTag/"]}, "datasync": {"agent": ["aws:ResourceTag/"], "discoveryjob": ["aws:ResourceTag/"], "location": ["aws:ResourceTag/"], "storagesystem": ["aws:ResourceTag/"], "task": ["aws:ResourceTag/"], "taskexecution": ["aws:ResourceTag/"]}, "dsql": {"Cluster": ["aws:ResourceTag/"], "Stream": ["aws:ResourceTag/"]}, "dynamodb": {"index": ["aws:ResourceTag/"], "stream": ["aws:ResourceTag/"], "table": ["aws:ResourceTag/"]}, "ec2": {"application-status-check": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-block": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-manager-data-export": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-cancellation-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-modification-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "carrier-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "client-vpn-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "coip-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "customer-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "declarative-policies-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dedicated-host": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dLine truncated
"resourceKeys": {"ec2": {"capacity-reservation": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:CapacityReservationFleet": {"member": "CapacityReservationFleetId", "arn": "capacity-reservation-fleet"}, "ec2:EbsOptimized": {"member": "EbsOptimized"}, "ec2:EndDateType": {"member": "EndDateType"}, "ec2:EphemeralStorage": {"member": "EphemeralStorage"}, "ec2:InstanceMatchCriteria": {"member": "InstanceMatchCriteria"}, "ec2:InstanceType": {"member": "InstanceType"}, "ec2:Tenancy": {"member": "Tenancy"}}, "carrier-gateway": {"ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "dhcp-options": {"ec2:DhcpOptionsID": {"member": "DhcpOptionsId"}}, "fpga-image": {"ec2:Owner": {"member": "OwnerId"}, "ec2:Public": {"member": "Public"}}, "image": {"ec2:ImageID": {"member": "ImageId"}, "ec2:ImageType": {"member": "ImageType"}, "ec2:Owner": {"member": "OwnerId"}, "ec2:Public": {"member": "Public"}, "ec2:RootDeviceType": {"member": "RootDeviceType"}}, "instance": {"ec2:EbsOptimized": {"member": "EbsOptimized"}, "ec2:InstanceID": {"member": "InstanceId"}, "ec2:InstanceType": {"member": "InstanceType"}, "ec2:RootDeviceType": {"member": "RootDeviceType"}}, "internet-gateway": {"ec2:InternetGatewayID": {"member": "InternetGatewayId"}}, "launch-template": {"ec2:LaunchTemplate": {"member": "LaunchTemplateId", "arn": "launch-template"}}, "network-acl": {"ec2:NetworkAclID": {"member": "NetworkAclId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "network-interface": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:NetworkInterfaceID": {"member": "NetworkInterfaceId"}, "ec2:Subnet": {"member": "SubnetId", "arn": "subnet"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "reserved-instances": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:InstanceType": {"member": "InstanceType"}}, "route-table": {"ec2:RouteTableID": {"member": "RouteTableId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "secondary-interface": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}}, "security-group": {"ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "snapshot": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:Encrypted": {"member": "Encrypted"}, "ec2:Owner": {"member": "OwnerId"}, "ec2:SnapshotID": {"member": "SnapshotId"}, "ec2:VolumeSize": {"member": "VolumeSize"}}, "subnet": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:SubnetID": {"member": "SubnetId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "transit-gateway": {"ec2:transitGatewayId": {"member": "TransitGatewayId"}}, "transit-gateway-attachment": {"ec2:transitGatewayAttachmentId": {"member": "TransitGatewayAttachmentId"}}, "transit-gateway-connect-peer": {"ec2:transitGatewayConnectPeerId": {"member": "TransitGatewayConnectPeerId"}}, "transit-gateway-metering-policy": {"ec2:transitGatewayMeteringPolicyId": {"member": "TransitGatewayMeteringPolicyId"}}, "transit-gateway-multicast-domain": {"ec2:transitGatewayMulticastDomainId": {"member": "TransitGatewayMulticastDomainId"}}, "transit-gateway-policy-table": {"ec2:transitGatewayPolicyTableId": {"member": "TransitGatewayPolicyTableId"}}, "transit-gateway-route-table": {"ec2:transitGatewayRouteTableId": {"member": "TransitGatewayRouteTableId"}}, "transit-gateway-route-table-announcement": {"ec2:transitGatewayRouteTableAnnouncementId": {"member": "TransitGatewayRouteTableAnnouncementId"}}, "volume": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:Encrypted": {"member": "Encrypted"}, "ec2:KmsKeyId": {"member": "KmsKeyId"}, "ec2:VolumeID": {"member": "VolumeId"}, "ec2:VolumeInitializationRate": {"member": "VolumeInitializationRate"}, "ec2:VolumeType": {"member": "VolumeType"}}, "vpc": {"ec2:VpcID": {"member": "VpcId"}}, "vpc-peering-connection": {"ec2:VpcPeeringConnectionID": {"member": "VpcPeeringConnectionId"}}}},
"unqualified": {"ssm": ["parameter"], "states": ["statemachine"]},
"mintedIds": {"events": ["api-destination", "connection"]},
@@ -250,6 +250,289 @@
"bcm-pricing-calculator:UpdateBillScenario": {"action": "bcm-pricing-calculator:UpdateBillScenario", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "identifier"}}]},
"bcm-pricing-calculator:UpdatePreferences": {"action": "bcm-pricing-calculator:UpdatePreferences", "types": [], "resources": []},
"bcm-pricing-calculator:UpdateWorkloadEstimate": {"action": "bcm-pricing-calculator:UpdateWorkloadEstimate", "types": ["workload-estimate"], "resources": [{"type": "workload-estimate", "fill": {"WorkloadEstimateId": "identifier"}}]},
"bedrock:AgenticRetrieveStream": {"action": "bedrock:AgenticRetrieveStream", "types": [], "resources": []},
"bedrock:ApplyGuardrail": {"action": "bedrock:ApplyGuardrail", "types": ["guardrail", "guardrail-profile"], "resources": [{"type": "guardrail", "fill": {"GuardrailId": "guardrailIdentifier"}}], "located": {"guardrailIdentifier": "{guardrailIdentifier}"}},
"bedrock:ArchiveProject": {"action": "bedrock:ArchiveProject", "types": [], "resources": []},
"bedrock:AssociateAgentCollaborator": {"action": "bedrock:AssociateAgentCollaborator", "types": ["agent"], "resources": [{"types": ["agent"], "arn": "agentDescriptor.aliasArn"}, {"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:AssociateAgentKnowledgeBase": {"action": "bedrock:AssociateAgentKnowledgeBase", "types": ["agent", "knowledge-base"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}, {"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:BatchDeleteAdvancedPromptOptimizationJob": {"action": "bedrock:BatchDeleteAdvancedPromptOptimizationJob", "types": ["advanced-prompt-optimization-job"], "resources": [{"type": "advanced-prompt-optimization-job", "fill": {"ResourceId": "jobIdentifiers[]"}}]},
"bedrock:BatchDeleteEvaluationJob": {"action": "bedrock:BatchDeleteEvaluationJob", "types": ["evaluation-job"], "resources": []},
"bedrock:CancelAutomatedReasoningPolicyBuildWorkflow": {"action": "bedrock:CancelAutomatedReasoningPolicyBuildWorkflow", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:CheckIngestedDocumentAcl": {"action": "bedrock:CheckIngestedDocumentAcl", "types": [], "resources": []},
"bedrock:Converse": {"action": "bedrock:Converse", "types": [], "resources": []},
"bedrock:ConverseStream": {"action": "bedrock:ConverseStream", "types": [], "resources": []},
"bedrock:CopyBlueprintStage": {"action": "bedrock:CopyBlueprintStage", "types": ["blueprint"], "resources": [{"types": ["blueprint"], "arn": "blueprintArn"}], "located": {"blueprintArn": "{blueprintArn}"}},
"bedrock:CountTokens": {"action": "bedrock:CountTokens", "types": ["foundation-model"], "resources": [{"type": "foundation-model", "fill": {"ResourceId": "modelId"}}], "located": {"modelId": "{modelId}"}},
"bedrock:CreateAdvancedPromptOptimizationJob": {"action": "bedrock:CreateAdvancedPromptOptimizationJob", "types": ["application-inference-profile", "foundation-model", "inference-profile"], "resources": [{"types": ["application-inference-profile", "foundation-model", "inference-profile"], "arn": "encryptionKeyArn"}]},
"bedrock:CreateAgent": {"action": "bedrock:CreateAgent", "types": [], "resources": [], "makes": [{"type": "agent", "fill": {}}]},
"bedrock:CreateAgentActionGroup": {"action": "bedrock:CreateAgentActionGroup", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:CreateAgentAlias": {"action": "bedrock:CreateAgentAlias", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:CreateAutomatedReasoningPolicy": {"action": "bedrock:CreateAutomatedReasoningPolicy", "types": [], "resources": [], "makes": [{"type": "automated-reasoning-policy", "fill": {}}]},
"bedrock:CreateAutomatedReasoningPolicyTestCase": {"action": "bedrock:CreateAutomatedReasoningPolicyTestCase", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:CreateAutomatedReasoningPolicyVersion": {"action": "bedrock:CreateAutomatedReasoningPolicyVersion", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:CreateBlueprint": {"action": "bedrock:CreateBlueprint", "types": [], "resources": [], "makes": [{"type": "blueprint", "fill": {}}]},
"bedrock:CreateBlueprintVersion": {"action": "bedrock:CreateBlueprintVersion", "types": ["blueprint"], "resources": [{"types": ["blueprint"], "arn": "blueprintArn"}], "located": {"blueprintArn": "{blueprintArn}"}},
"bedrock:CreateCustomModel": {"action": "bedrock:CreateCustomModel", "types": [], "resources": [], "makes": [{"type": "custom-model", "fill": {}}]},
"bedrock:CreateCustomModelDeployment": {"action": "bedrock:CreateCustomModelDeployment", "types": ["custom-model"], "resources": [{"types": ["custom-model"], "arn": "modelArn"}]},
"bedrock:CreateDataAutomationLibrary": {"action": "bedrock:CreateDataAutomationLibrary", "types": [], "resources": [], "makes": [{"type": "data-automation-library", "fill": {}}]},
"bedrock:CreateDataAutomationProject": {"action": "bedrock:CreateDataAutomationProject", "types": ["blueprint", "data-automation-library"], "resources": []},
"bedrock:CreateDataSource": {"action": "bedrock:CreateDataSource", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:CreateEvaluationJob": {"action": "bedrock:CreateEvaluationJob", "types": ["custom-model", "default-prompt-router", "foundation-model", "prompt-router"], "resources": [{"types": ["custom-model", "default-prompt-router", "foundation-model", "prompt-router"], "arn": "roleArn"}]},
"bedrock:CreateFlow": {"action": "bedrock:CreateFlow", "types": [], "resources": [], "makes": [{"type": "flow", "fill": {}}]},
"bedrock:CreateFlowAlias": {"action": "bedrock:CreateFlowAlias", "types": ["flow"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:CreateFlowVersion": {"action": "bedrock:CreateFlowVersion", "types": ["flow"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:CreateFoundationModelAgreement": {"action": "bedrock:CreateFoundationModelAgreement", "types": [], "resources": []},
"bedrock:CreateGuardrail": {"action": "bedrock:CreateGuardrail", "types": ["automated-reasoning-policy", "automated-reasoning-policy-version", "guardrail-profile"], "resources": [{"type": "guardrail-profile", "fill": {"ResourceId": "crossRegionConfig.guardrailProfileIdentifier"}}]},
"bedrock:CreateGuardrailVersion": {"action": "bedrock:CreateGuardrailVersion", "types": ["guardrail"], "resources": [{"type": "guardrail", "fill": {"GuardrailId": "guardrailIdentifier"}}], "located": {"guardrailIdentifier": "{guardrailIdentifier}"}},
"bedrock:CreateInferenceProfile": {"action": "bedrock:CreateInferenceProfile", "types": ["application-inference-profile", "foundation-model", "inference-profile"], "resources": [{"type": "inference-profile", "fill": {}}]},
"bedrock:CreateInvocation": {"action": "bedrock:CreateInvocation", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "sessionIdentifier"}}], "located": {"sessionIdentifier": "{sessionIdentifier}"}},
"bedrock:CreateKnowledgeBase": {"action": "bedrock:CreateKnowledgeBase", "types": [], "resources": [], "makes": [{"type": "knowledge-base", "fill": {}}]},
"bedrock:CreateMarketplaceModelEndpoint": {"action": "bedrock:CreateMarketplaceModelEndpoint", "types": [], "resources": [], "makes": [{"type": "bedrock-marketplace-model-endpoint", "fill": {}}]},
"bedrock:CreateModelCopyJob": {"action": "bedrock:CreateModelCopyJob", "types": ["custom-model"], "resources": [{"types": ["custom-model"], "arn": "sourceModelArn"}]},
"bedrock:CreateModelCustomizationJob": {"action": "bedrock:CreateModelCustomizationJob", "types": ["custom-model", "foundation-model"], "resources": [{"types": ["custom-model", "foundation-model"], "arn": "roleArn"}]},
"bedrock:CreateModelImportJob": {"action": "bedrock:CreateModelImportJob", "types": [], "resources": [], "makes": [{"type": "model-import-job", "fill": {}}]},
"bedrock:CreateModelInvocationJob": {"action": "bedrock:CreateModelInvocationJob", "types": ["custom-model", "foundation-model", "model-invocation-job"], "resources": [{"types": ["custom-model", "foundation-model", "model-invocation-job"], "arn": "roleArn"}, {"type": "model-invocation-job", "fill": {}, "made": true}, {"type": "foundation-model", "fill": {"ResourceId": "modelId"}}]},
"bedrock:CreateProject": {"action": "bedrock:CreateProject", "types": [], "resources": [], "makes": [{"type": "project", "fill": {}}]},
"bedrock:CreatePrompt": {"action": "bedrock:CreatePrompt", "types": [], "resources": [], "makes": [{"type": "prompt", "fill": {}}]},
"bedrock:CreatePromptRouter": {"action": "bedrock:CreatePromptRouter", "types": ["application-inference-profile", "foundation-model", "inference-profile"], "resources": [{"types": ["application-inference-profile", "foundation-model", "inference-profile"], "arn": "fallbackModel.modelArn"}, {"types": ["application-inference-profile", "foundation-model", "inference-profile"], "arn": "models[].modelArn"}]},
"bedrock:CreatePromptVersion": {"action": "bedrock:CreatePromptVersion", "types": ["prompt"], "resources": [{"type": "prompt", "fill": {"PromptId": "promptIdentifier"}}], "located": {"promptIdentifier": "{promptIdentifier}"}},
"bedrock:CreateProvisionedModelThroughput": {"action": "bedrock:CreateProvisionedModelThroughput", "types": ["custom-model", "foundation-model"], "resources": []},
"bedrock:CreateRetrievalInstruction": {"action": "bedrock:CreateRetrievalInstruction", "types": [], "resources": [], "makes": [{"type": "retrieval-instruction", "fill": {}}]},
"bedrock:CreateRetrievalInstructionVersion": {"action": "bedrock:CreateRetrievalInstructionVersion", "types": ["retrieval-instruction"], "resources": [{"type": "retrieval-instruction", "fill": {"RetrievalInstructionId": "retrievalInstructionId"}}], "located": {"retrievalInstructionId": "{retrievalInstructionId}"}},
"bedrock:CreateSession": {"action": "bedrock:CreateSession", "types": [], "resources": [], "makes": [{"type": "session", "fill": {}}]},
"bedrock:CreateVpcConfiguration": {"action": "bedrock:CreateVpcConfiguration", "types": [], "resources": []},
"bedrock:DeleteAccountDataRetentionStorage": {"action": "bedrock:DeleteAccountDataRetentionStorage", "types": [], "resources": []},
"bedrock:DeleteAgent": {"action": "bedrock:DeleteAgent", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:DeleteAgentActionGroup": {"action": "bedrock:DeleteAgentActionGroup", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:DeleteAgentAlias": {"action": "bedrock:DeleteAgentAlias", "types": ["agent-alias"], "resources": [{"type": "agent-alias", "fill": {"AgentAliasId": "agentAliasId", "AgentId": "agentId"}}], "located": {"agentAliasId": "{agentAliasId}", "agentId": "{agentId}"}},
"bedrock:DeleteAgentMemory": {"action": "bedrock:DeleteAgentMemory", "types": ["agent-alias"], "resources": [{"type": "agent-alias", "fill": {"AgentAliasId": "agentAliasId", "AgentId": "agentId"}}], "located": {"agentAliasId": "{agentAliasId}", "agentId": "{agentId}"}},
"bedrock:DeleteAgentVersion": {"action": "bedrock:DeleteAgentVersion", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:DeleteAutomatedReasoningPolicy": {"action": "bedrock:DeleteAutomatedReasoningPolicy", "types": ["automated-reasoning-policy", "automated-reasoning-policy-version"], "resources": [{"types": ["automated-reasoning-policy", "automated-reasoning-policy-version"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:DeleteAutomatedReasoningPolicyBuildWorkflow": {"action": "bedrock:DeleteAutomatedReasoningPolicyBuildWorkflow", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:DeleteAutomatedReasoningPolicyTestCase": {"action": "bedrock:DeleteAutomatedReasoningPolicyTestCase", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:DeleteBlueprint": {"action": "bedrock:DeleteBlueprint", "types": ["blueprint"], "resources": [{"types": ["blueprint"], "arn": "blueprintArn"}], "located": {"blueprintArn": "{blueprintArn}"}},
"bedrock:DeleteCustomModel": {"action": "bedrock:DeleteCustomModel", "types": ["custom-model"], "resources": [{"type": "custom-model", "fill": {"ResourceId": "modelIdentifier"}}], "located": {"modelIdentifier": "{modelIdentifier}"}},
"bedrock:DeleteCustomModelDeployment": {"action": "bedrock:DeleteCustomModelDeployment", "types": ["custom-model-deployment"], "resources": [{"type": "custom-model-deployment", "fill": {"ResourceId": "customModelDeploymentIdentifier"}}], "located": {"customModelDeploymentIdentifier": "{customModelDeploymentIdentifier}"}},
"bedrock:DeleteDataAutomationLibrary": {"action": "bedrock:DeleteDataAutomationLibrary", "types": ["data-automation-library"], "resources": [{"types": ["data-automation-library"], "arn": "libraryArn"}], "located": {"libraryArn": "{libraryArn}"}},
"bedrock:DeleteDataAutomationProject": {"action": "bedrock:DeleteDataAutomationProject", "types": ["data-automation-project"], "resources": [{"types": ["data-automation-project"], "arn": "projectArn"}], "located": {"projectArn": "{projectArn}"}},
"bedrock:DeleteDataSource": {"action": "bedrock:DeleteDataSource", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:DeleteEnforcedGuardrailConfiguration": {"action": "bedrock:DeleteEnforcedGuardrailConfiguration", "types": [], "resources": []},
"bedrock:DeleteFlow": {"action": "bedrock:DeleteFlow", "types": ["flow"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:DeleteFlowAlias": {"action": "bedrock:DeleteFlowAlias", "types": ["flow-alias"], "resources": [{"type": "flow-alias", "fill": {"FlowAliasId": "aliasIdentifier", "FlowId": "flowIdentifier"}}], "located": {"aliasIdentifier": "{aliasIdentifier}", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:DeleteFlowVersion": {"action": "bedrock:DeleteFlowVersion", "types": ["flow"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:DeleteFoundationModelAgreement": {"action": "bedrock:DeleteFoundationModelAgreement", "types": [], "resources": []},
"bedrock:DeleteGuardrail": {"action": "bedrock:DeleteGuardrail", "types": ["guardrail"], "resources": [{"type": "guardrail", "fill": {"GuardrailId": "guardrailIdentifier"}}], "located": {"guardrailIdentifier": "{guardrailIdentifier}"}},
"bedrock:DeleteImportedModel": {"action": "bedrock:DeleteImportedModel", "types": ["imported-model"], "resources": [{"type": "imported-model", "fill": {"ResourceId": "modelIdentifier"}}], "located": {"modelIdentifier": "{modelIdentifier}"}},
"bedrock:DeleteInferenceProfile": {"action": "bedrock:DeleteInferenceProfile", "types": ["application-inference-profile"], "resources": [{"type": "application-inference-profile", "fill": {"ResourceId": "inferenceProfileIdentifier"}}], "located": {"inferenceProfileIdentifier": "{inferenceProfileIdentifier}"}},
"bedrock:DeleteKnowledgeBase": {"action": "bedrock:DeleteKnowledgeBase", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:DeleteKnowledgeBaseDocuments": {"action": "bedrock:DeleteKnowledgeBaseDocuments", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:DeleteMarketplaceModelEndpoint": {"action": "bedrock:DeleteMarketplaceModelEndpoint", "types": ["bedrock-marketplace-model-endpoint"], "resources": [{"types": ["bedrock-marketplace-model-endpoint"], "arn": "endpointArn"}], "located": {"endpointArn": "{endpointArn}"}},
"bedrock:DeleteModelInvocationLoggingConfiguration": {"action": "bedrock:DeleteModelInvocationLoggingConfiguration", "types": [], "resources": []},
"bedrock:DeleteOrganizationDataRetentionStorage": {"action": "bedrock:DeleteOrganizationDataRetentionStorage", "types": [], "resources": []},
"bedrock:DeleteProjectDataRetentionStorage": {"action": "bedrock:DeleteProjectDataRetentionStorage", "types": [], "resources": []},
"bedrock:DeletePrompt": {"action": "bedrock:DeletePrompt", "types": ["prompt", "prompt-version"], "resources": [{"type": "prompt", "fill": {"PromptId": "promptIdentifier"}}, {"type": "prompt-version", "fill": {"PromptId": "promptIdentifier", "PromptVersion": "promptVersion"}, "unless": {"promptVersion": [null]}}], "located": {"promptIdentifier": "{promptIdentifier}", "promptVersion": "?promptVersion"}},
"bedrock:DeletePromptRouter": {"action": "bedrock:DeletePromptRouter", "types": ["prompt-router"], "resources": [{"types": ["prompt-router"], "arn": "promptRouterArn"}], "located": {"promptRouterArn": "{promptRouterArn}"}},
"bedrock:DeleteProvisionedModelThroughput": {"action": "bedrock:DeleteProvisionedModelThroughput", "types": ["provisioned-model"], "resources": [{"type": "provisioned-model", "fill": {"ResourceId": "provisionedModelId"}}], "located": {"provisionedModelId": "{provisionedModelId}"}},
"bedrock:DeleteResourcePolicy": {"action": "bedrock:DeleteResourcePolicy", "types": ["custom-model", "guardrail", "guardrail-profile", "knowledge-base"], "resources": [{"types": ["custom-model", "guardrail", "guardrail-profile", "knowledge-base"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}},
"bedrock:DeleteRetrievalInstruction": {"action": "bedrock:DeleteRetrievalInstruction", "types": ["retrieval-instruction"], "resources": [{"type": "retrieval-instruction", "fill": {"RetrievalInstructionId": "retrievalInstructionId"}}], "located": {"retrievalInstructionId": "{retrievalInstructionId}"}},
"bedrock:DeleteSession": {"action": "bedrock:DeleteSession", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "sessionIdentifier"}}], "located": {"sessionIdentifier": "{sessionIdentifier}"}},
"bedrock:DeleteVpcConfiguration": {"action": "bedrock:DeleteVpcConfiguration", "types": [], "resources": []},
"bedrock:DeregisterMarketplaceModelEndpoint": {"action": "bedrock:DeregisterMarketplaceModelEndpoint", "types": ["bedrock-marketplace-model-endpoint"], "resources": [{"types": ["bedrock-marketplace-model-endpoint"], "arn": "endpointArn"}], "located": {"endpointArn": "{endpointArn}"}},
"bedrock:DisassociateAgentCollaborator": {"action": "bedrock:DisassociateAgentCollaborator", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:DisassociateAgentKnowledgeBase": {"action": "bedrock:DisassociateAgentKnowledgeBase", "types": ["agent", "knowledge-base"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}, {"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"agentId": "{agentId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:EndSession": {"action": "bedrock:EndSession", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "sessionIdentifier"}}], "located": {"sessionIdentifier": "{sessionIdentifier}"}},
"bedrock:ExportAutomatedReasoningPolicyVersion": {"action": "bedrock:ExportAutomatedReasoningPolicyVersion", "types": ["automated-reasoning-policy", "automated-reasoning-policy-version"], "resources": [{"types": ["automated-reasoning-policy", "automated-reasoning-policy-version"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:GenerateQuery": {"action": "bedrock:GenerateQuery", "types": [], "resources": []},
"bedrock:GetAccountDataRetention": {"action": "bedrock:GetAccountDataRetention", "types": [], "resources": []},
"bedrock:GetAccountDataRetentionStorage": {"action": "bedrock:GetAccountDataRetentionStorage", "types": [], "resources": []},
"bedrock:GetAdvancedPromptOptimizationJob": {"action": "bedrock:GetAdvancedPromptOptimizationJob", "types": ["advanced-prompt-optimization-job"], "resources": [{"type": "advanced-prompt-optimization-job", "fill": {"ResourceId": "jobIdentifier"}}], "located": {"jobIdentifier": "{jobIdentifier}"}},
"bedrock:GetAgent": {"action": "bedrock:GetAgent", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:GetAgentActionGroup": {"action": "bedrock:GetAgentActionGroup", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:GetAgentAlias": {"action": "bedrock:GetAgentAlias", "types": ["agent-alias"], "resources": [{"type": "agent-alias", "fill": {"AgentAliasId": "agentAliasId", "AgentId": "agentId"}}], "located": {"agentAliasId": "{agentAliasId}", "agentId": "{agentId}"}},
"bedrock:GetAgentCollaborator": {"action": "bedrock:GetAgentCollaborator", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:GetAgentKnowledgeBase": {"action": "bedrock:GetAgentKnowledgeBase", "types": ["agent", "knowledge-base"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}, {"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"agentId": "{agentId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:GetAgentMemory": {"action": "bedrock:GetAgentMemory", "types": ["agent-alias"], "resources": [{"type": "agent-alias", "fill": {"AgentAliasId": "agentAliasId", "AgentId": "agentId"}}], "located": {"agentAliasId": "{agentAliasId}", "agentId": "{agentId}"}},
"bedrock:GetAgentVersion": {"action": "bedrock:GetAgentVersion", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:GetAsyncInvoke": {"action": "bedrock:GetAsyncInvoke", "types": ["async-invoke"], "resources": [{"types": ["async-invoke"], "arn": "invocationArn"}], "located": {"invocationArn": "{invocationArn}"}},
"bedrock:GetAutomatedReasoningPolicy": {"action": "bedrock:GetAutomatedReasoningPolicy", "types": ["automated-reasoning-policy", "automated-reasoning-policy-version"], "resources": [{"types": ["automated-reasoning-policy", "automated-reasoning-policy-version"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:GetAutomatedReasoningPolicyAnnotations": {"action": "bedrock:GetAutomatedReasoningPolicyAnnotations", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:GetAutomatedReasoningPolicyBuildWorkflow": {"action": "bedrock:GetAutomatedReasoningPolicyBuildWorkflow", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:GetAutomatedReasoningPolicyBuildWorkflowResultAssets": {"action": "bedrock:GetAutomatedReasoningPolicyBuildWorkflowResultAssets", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:GetAutomatedReasoningPolicyNextScenario": {"action": "bedrock:GetAutomatedReasoningPolicyNextScenario", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:GetAutomatedReasoningPolicyTestCase": {"action": "bedrock:GetAutomatedReasoningPolicyTestCase", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:GetAutomatedReasoningPolicyTestResult": {"action": "bedrock:GetAutomatedReasoningPolicyTestResult", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:GetBlueprint": {"action": "bedrock:GetBlueprint", "types": ["blueprint"], "resources": [{"types": ["blueprint"], "arn": "blueprintArn"}], "located": {"blueprintArn": "{blueprintArn}"}},
"bedrock:GetBlueprintOptimizationStatus": {"action": "bedrock:GetBlueprintOptimizationStatus", "types": ["blueprint-optimization-invocation"], "resources": [{"types": ["blueprint-optimization-invocation"], "arn": "invocationArn"}], "located": {"invocationArn": "{invocationArn}"}},
"bedrock:GetCustomModel": {"action": "bedrock:GetCustomModel", "types": ["custom-model"], "resources": [{"type": "custom-model", "fill": {"ResourceId": "modelIdentifier"}}], "located": {"modelIdentifier": "{modelIdentifier}"}},
"bedrock:GetCustomModelDeployment": {"action": "bedrock:GetCustomModelDeployment", "types": ["custom-model-deployment"], "resources": [{"type": "custom-model-deployment", "fill": {"ResourceId": "customModelDeploymentIdentifier"}}], "located": {"customModelDeploymentIdentifier": "{customModelDeploymentIdentifier}"}},
"bedrock:GetDataAutomationLibrary": {"action": "bedrock:GetDataAutomationLibrary", "types": ["data-automation-library"], "resources": [{"types": ["data-automation-library"], "arn": "libraryArn"}], "located": {"libraryArn": "{libraryArn}"}},
"bedrock:GetDataAutomationLibraryEntity": {"action": "bedrock:GetDataAutomationLibraryEntity", "types": ["data-automation-library"], "resources": [{"types": ["data-automation-library"], "arn": "libraryArn"}], "located": {"libraryArn": "{libraryArn}"}},
"bedrock:GetDataAutomationLibraryIngestionJob": {"action": "bedrock:GetDataAutomationLibraryIngestionJob", "types": ["data-automation-library", "data-automation-library-ingestion-job"], "resources": [{"types": ["data-automation-library", "data-automation-library-ingestion-job"], "arn": "jobArn"}, {"types": ["data-automation-library", "data-automation-library-ingestion-job"], "arn": "libraryArn"}], "located": {"jobArn": "{jobArn}", "libraryArn": "{libraryArn}"}},
"bedrock:GetDataAutomationProject": {"action": "bedrock:GetDataAutomationProject", "types": ["data-automation-project"], "resources": [{"types": ["data-automation-project"], "arn": "projectArn"}], "located": {"projectArn": "{projectArn}"}},
"bedrock:GetDataAutomationStatus": {"action": "bedrock:GetDataAutomationStatus", "types": ["data-automation-invocation-job"], "resources": [{"types": ["data-automation-invocation-job"], "arn": "invocationArn"}]},
"bedrock:GetDataSource": {"action": "bedrock:GetDataSource", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:GetDocumentContent": {"action": "bedrock:GetDocumentContent", "types": [], "resources": []},
"bedrock:GetEvaluationJob": {"action": "bedrock:GetEvaluationJob", "types": ["evaluation-job"], "resources": [{"types": ["evaluation-job"], "arn": "jobIdentifier"}, {"type": "evaluation-job", "fill": {"ResourceId": "jobIdentifier"}}], "located": {"jobIdentifier": "{jobIdentifier}"}},
"bedrock:GetExecutionFlowSnapshot": {"action": "bedrock:GetExecutionFlowSnapshot", "types": ["flow", "flow-alias", "flow-execution"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}, {"type": "flow-alias", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowId": "flowIdentifier"}}, {"type": "flow-execution", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowExecutionId": "executionIdentifier", "FlowId": "flowIdentifier"}}], "located": {"executionIdentifier": "{executionIdentifier}", "flowAliasIdentifier": "{flowAliasIdentifier}", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:GetFlow": {"action": "bedrock:GetFlow", "types": ["flow"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:GetFlowAlias": {"action": "bedrock:GetFlowAlias", "types": ["flow-alias"], "resources": [{"type": "flow-alias", "fill": {"FlowAliasId": "aliasIdentifier", "FlowId": "flowIdentifier"}}], "located": {"aliasIdentifier": "{aliasIdentifier}", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:GetFlowExecution": {"action": "bedrock:GetFlowExecution", "types": ["flow", "flow-alias", "flow-execution"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}, {"type": "flow-alias", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowId": "flowIdentifier"}}, {"type": "flow-execution", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowExecutionId": "executionIdentifier", "FlowId": "flowIdentifier"}}], "located": {"executionIdentifier": "{executionIdentifier}", "flowAliasIdentifier": "{flowAliasIdentifier}", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:GetFlowVersion": {"action": "bedrock:GetFlowVersion", "types": ["flow"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:GetFoundationModel": {"action": "bedrock:GetFoundationModel", "types": ["foundation-model"], "resources": [{"type": "foundation-model", "fill": {"ResourceId": "modelIdentifier"}}], "located": {"modelIdentifier": "{modelIdentifier}"}},
"bedrock:GetFoundationModelAvailability": {"action": "bedrock:GetFoundationModelAvailability", "types": [], "resources": []},
"bedrock:GetGuardrail": {"action": "bedrock:GetGuardrail", "types": ["guardrail"], "resources": [{"type": "guardrail", "fill": {"GuardrailId": "guardrailIdentifier"}}], "located": {"guardrailIdentifier": "{guardrailIdentifier}"}},
"bedrock:GetImportedModel": {"action": "bedrock:GetImportedModel", "types": ["imported-model"], "resources": [{"type": "imported-model", "fill": {"ResourceId": "modelIdentifier"}}], "located": {"modelIdentifier": "{modelIdentifier}"}},
"bedrock:GetInferenceProfile": {"action": "bedrock:GetInferenceProfile", "types": ["application-inference-profile", "inference-profile"], "resources": []},
"bedrock:GetIngestedDocumentAcl": {"action": "bedrock:GetIngestedDocumentAcl", "types": [], "resources": []},
"bedrock:GetIngestionJob": {"action": "bedrock:GetIngestionJob", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:GetInvocationStep": {"action": "bedrock:GetInvocationStep", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "sessionIdentifier"}}, {"types": ["session"], "through": "invocationStepId"}], "located": {"invocationStepId": "{invocationStepId}", "sessionIdentifier": "{sessionIdentifier}"}},
"bedrock:GetKnowledgeBase": {"action": "bedrock:GetKnowledgeBase", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:GetKnowledgeBaseDocuments": {"action": "bedrock:GetKnowledgeBaseDocuments", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:GetMarketplaceModelEndpoint": {"action": "bedrock:GetMarketplaceModelEndpoint", "types": ["bedrock-marketplace-model-endpoint"], "resources": [{"types": ["bedrock-marketplace-model-endpoint"], "arn": "endpointArn"}], "located": {"endpointArn": "{endpointArn}"}},
"bedrock:GetModelCopyJob": {"action": "bedrock:GetModelCopyJob", "types": ["model-copy-job"], "resources": [{"types": ["model-copy-job"], "arn": "jobArn"}], "located": {"jobArn": "{jobArn}"}},
"bedrock:GetModelCustomizationJob": {"action": "bedrock:GetModelCustomizationJob", "types": ["model-customization-job"], "resources": [{"type": "model-customization-job", "fill": {"ResourceId": "jobIdentifier"}}], "located": {"jobIdentifier": "{jobIdentifier}"}},
"bedrock:GetModelImportJob": {"action": "bedrock:GetModelImportJob", "types": ["model-import-job"], "resources": [{"type": "model-import-job", "fill": {"ResourceId": "jobIdentifier"}}], "located": {"jobIdentifier": "{jobIdentifier}"}},
"bedrock:GetModelInvocationJob": {"action": "bedrock:GetModelInvocationJob", "types": ["model-invocation-job"], "resources": [{"type": "model-invocation-job", "fill": {"JobIdentifier": "jobIdentifier"}}], "located": {"jobIdentifier": "{jobIdentifier}"}},
"bedrock:GetModelInvocationLoggingConfiguration": {"action": "bedrock:GetModelInvocationLoggingConfiguration", "types": [], "resources": []},
"bedrock:GetOrganizationDataRetentionStorage": {"action": "bedrock:GetOrganizationDataRetentionStorage", "types": [], "resources": []},
"bedrock:GetProject": {"action": "bedrock:GetProject", "types": [], "resources": []},
"bedrock:GetProjectDataRetentionStorage": {"action": "bedrock:GetProjectDataRetentionStorage", "types": [], "resources": []},
"bedrock:GetPrompt": {"action": "bedrock:GetPrompt", "types": ["prompt", "prompt-version"], "resources": [{"type": "prompt", "fill": {"PromptId": "promptIdentifier"}}, {"type": "prompt-version", "fill": {"PromptId": "promptIdentifier", "PromptVersion": "promptVersion"}, "unless": {"promptVersion": [null]}}], "located": {"promptIdentifier": "{promptIdentifier}", "promptVersion": "?promptVersion"}},
"bedrock:GetPromptRouter": {"action": "bedrock:GetPromptRouter", "types": ["default-prompt-router", "prompt-router"], "resources": [{"types": ["default-prompt-router", "prompt-router"], "arn": "promptRouterArn"}], "located": {"promptRouterArn": "{promptRouterArn}"}},
"bedrock:GetProvisionedModelThroughput": {"action": "bedrock:GetProvisionedModelThroughput", "types": ["provisioned-model"], "resources": [{"type": "provisioned-model", "fill": {"ResourceId": "provisionedModelId"}}], "located": {"provisionedModelId": "{provisionedModelId}"}},
"bedrock:GetResourcePolicy": {"action": "bedrock:GetResourcePolicy", "types": ["custom-model", "guardrail", "guardrail-profile", "knowledge-base"], "resources": [{"types": ["custom-model", "guardrail", "guardrail-profile", "knowledge-base"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}},
"bedrock:GetRetrievalInstruction": {"action": "bedrock:GetRetrievalInstruction", "types": ["retrieval-instruction"], "resources": [{"type": "retrieval-instruction", "fill": {"RetrievalInstructionId": "retrievalInstructionId"}}], "located": {"retrievalInstructionId": "{retrievalInstructionId}"}},
"bedrock:GetSession": {"action": "bedrock:GetSession", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "sessionIdentifier"}}], "located": {"sessionIdentifier": "{sessionIdentifier}"}},
"bedrock:GetTrustedAccessProgram": {"action": "bedrock:GetTrustedAccessProgram", "types": [], "resources": []},
"bedrock:GetTrustedAccessProgramAccountEnrollment": {"action": "bedrock:GetTrustedAccessProgramAccountEnrollment", "types": [], "resources": []},
"bedrock:GetTrustedAccessProgramOrganizationEnrollment": {"action": "bedrock:GetTrustedAccessProgramOrganizationEnrollment", "types": [], "resources": []},
"bedrock:GetTrustedAccessProgramProjectEnrollment": {"action": "bedrock:GetTrustedAccessProgramProjectEnrollment", "types": [], "resources": []},
"bedrock:GetUseCaseForModelAccess": {"action": "bedrock:GetUseCaseForModelAccess", "types": [], "resources": []},
"bedrock:GetVpcConfiguration": {"action": "bedrock:GetVpcConfiguration", "types": [], "resources": []},
"bedrock:IngestKnowledgeBaseDocuments": {"action": "bedrock:IngestKnowledgeBaseDocuments", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:InvokeAgent": {"action": "bedrock:InvokeAgent", "types": ["agent-alias"], "resources": [{"type": "agent-alias", "fill": {"AgentAliasId": "agentAliasId", "AgentId": "agentId"}}], "located": {"agentAliasId": "{agentAliasId}", "agentId": "{agentId}"}},
"bedrock:InvokeBlueprintOptimizationAsync": {"action": "bedrock:InvokeBlueprintOptimizationAsync", "types": ["blueprint", "data-automation-profile"], "resources": [{"types": ["blueprint", "data-automation-profile"], "arn": "blueprint.blueprintArn"}, {"types": ["blueprint", "data-automation-profile"], "arn": "dataAutomationProfileArn"}]},
"bedrock:InvokeDataAutomation": {"action": "bedrock:InvokeDataAutomation", "types": ["blueprint", "data-automation-profile", "data-automation-project"], "resources": [{"types": ["blueprint", "data-automation-profile", "data-automation-project"], "arn": "blueprints[].blueprintArn"}, {"types": ["blueprint", "data-automation-profile", "data-automation-project"], "arn": "dataAutomationConfiguration.dataAutomationProjectArn"}, {"types": ["blueprint", "data-automation-profile", "data-automation-project"], "arn": "dataAutomationProfileArn"}]},
"bedrock:InvokeDataAutomationAsync": {"action": "bedrock:InvokeDataAutomationAsync", "types": ["blueprint", "data-automation-profile", "data-automation-project"], "resources": [{"types": ["blueprint", "data-automation-profile", "data-automation-project"], "arn": "blueprints[].blueprintArn"}, {"types": ["blueprint", "data-automation-profile", "data-automation-project"], "arn": "dataAutomationConfiguration.dataAutomationProjectArn"}, {"types": ["blueprint", "data-automation-profile", "data-automation-project"], "arn": "dataAutomationProfileArn"}]},
"bedrock:InvokeDataAutomationLibraryIngestionJob": {"action": "bedrock:InvokeDataAutomationLibraryIngestionJob", "types": ["data-automation-library"], "resources": [{"types": ["data-automation-library"], "arn": "libraryArn"}], "located": {"libraryArn": "{libraryArn}"}},
"bedrock:InvokeFlow": {"action": "bedrock:InvokeFlow", "types": ["flow-alias"], "resources": [{"type": "flow-alias", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowId": "flowIdentifier"}}], "located": {"flowAliasIdentifier": "{flowAliasIdentifier}", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:InvokeGuardrailChecks": {"action": "bedrock:InvokeGuardrailChecks", "types": [], "resources": []},
"bedrock:InvokeInlineAgent": {"action": "bedrock:InvokeInlineAgent", "types": [], "resources": []},
"bedrock:InvokeModel": {"action": "bedrock:InvokeModel", "types": ["application-inference-profile", "async-invoke", "bedrock-marketplace-model-endpoint", "custom-model-deployment", "default-prompt-router", "foundation-model", "imported-model", "inference-profile", "project", "prompt-router", "provisioned-model", "system-tool"], "resources": [{"type": "bedrock-marketplace-model-endpoint", "fill": {}}]},
"bedrock:InvokeModelWithBidirectionalStream": {"action": "bedrock:InvokeModel", "types": ["application-inference-profile", "async-invoke", "bedrock-marketplace-model-endpoint", "custom-model-deployment", "default-prompt-router", "foundation-model", "imported-model", "inference-profile", "project", "prompt-router", "provisioned-model", "system-tool"], "resources": [{"type": "bedrock-marketplace-model-endpoint", "fill": {}}]},
"bedrock:InvokeModelWithResponseStream": {"action": "bedrock:InvokeModelWithResponseStream", "types": ["application-inference-profile", "bedrock-marketplace-model-endpoint", "custom-model-deployment", "default-prompt-router", "foundation-model", "imported-model", "inference-profile", "prompt-router", "provisioned-model", "system-tool"], "resources": [{"type": "bedrock-marketplace-model-endpoint", "fill": {}}]},
"bedrock:ListAdvancedPromptOptimizationJobs": {"action": "bedrock:ListAdvancedPromptOptimizationJobs", "types": [], "resources": []},
"bedrock:ListAgentActionGroups": {"action": "bedrock:ListAgentActionGroups", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:ListAgentAliases": {"action": "bedrock:ListAgentAliases", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:ListAgentCollaborators": {"action": "bedrock:ListAgentCollaborators", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:ListAgentKnowledgeBases": {"action": "bedrock:ListAgentKnowledgeBases", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:ListAgentVersions": {"action": "bedrock:ListAgentVersions", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:ListAgents": {"action": "bedrock:ListAgents", "types": [], "resources": []},
"bedrock:ListAsyncInvokes": {"action": "bedrock:ListAsyncInvokes", "types": [], "resources": []},
"bedrock:ListAutomatedReasoningPolicies": {"action": "bedrock:ListAutomatedReasoningPolicies", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}, {"type": "automated-reasoning-policy", "fill": {}, "when": {"policyArn": [null]}, "default": true}], "located": {"policyArn": "?policyArn"}},
"bedrock:ListAutomatedReasoningPolicyBuildWorkflows": {"action": "bedrock:ListAutomatedReasoningPolicyBuildWorkflows", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:ListAutomatedReasoningPolicyTestCases": {"action": "bedrock:ListAutomatedReasoningPolicyTestCases", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:ListAutomatedReasoningPolicyTestResults": {"action": "bedrock:ListAutomatedReasoningPolicyTestResults", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:ListBlueprints": {"action": "bedrock:ListBlueprints", "types": ["data-automation-project"], "resources": [{"types": ["data-automation-project"], "arn": "projectFilter.projectArn"}]},
"bedrock:ListCustomModelDeployments": {"action": "bedrock:ListCustomModelDeployments", "types": [], "resources": []},
"bedrock:ListCustomModels": {"action": "bedrock:ListCustomModels", "types": [], "resources": []},
"bedrock:ListDataAutomationLibraries": {"action": "bedrock:ListDataAutomationLibraries", "types": ["data-automation-project"], "resources": [{"types": ["data-automation-project"], "arn": "projectFilter.projectArn"}]},
"bedrock:ListDataAutomationLibraryEntities": {"action": "bedrock:ListDataAutomationLibraryEntities", "types": ["data-automation-library"], "resources": [{"types": ["data-automation-library"], "arn": "libraryArn"}], "located": {"libraryArn": "{libraryArn}"}},
"bedrock:ListDataAutomationLibraryIngestionJobs": {"action": "bedrock:ListDataAutomationLibraryIngestionJobs", "types": ["data-automation-library"], "resources": [{"types": ["data-automation-library"], "arn": "libraryArn"}], "located": {"libraryArn": "{libraryArn}"}},
"bedrock:ListDataAutomationProjects": {"action": "bedrock:ListDataAutomationProjects", "types": ["blueprint", "data-automation-project"], "resources": [{"types": ["blueprint", "data-automation-project"], "arn": "blueprintFilter.blueprintArn"}, {"types": ["blueprint", "data-automation-project"], "arn": "libraryFilter.libraryArn"}]},
"bedrock:ListDataSources": {"action": "bedrock:ListDataSources", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:ListEnforcedGuardrailsConfiguration": {"action": "bedrock:ListEnforcedGuardrailsConfiguration", "types": [], "resources": []},
"bedrock:ListEvaluationJobs": {"action": "bedrock:ListEvaluationJobs", "types": [], "resources": []},
"bedrock:ListFlowAliases": {"action": "bedrock:ListFlowAliases", "types": ["flow"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:ListFlowExecutionEvents": {"action": "bedrock:ListFlowExecutionEvents", "types": ["flow", "flow-alias", "flow-execution"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}, {"type": "flow-alias", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowId": "flowIdentifier"}}, {"type": "flow-execution", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowExecutionId": "executionIdentifier", "FlowId": "flowIdentifier"}}], "located": {"executionIdentifier": "{executionIdentifier}", "flowAliasIdentifier": "{flowAliasIdentifier}", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:ListFlowExecutions": {"action": "bedrock:ListFlowExecutions", "types": ["flow", "flow-alias"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}, {"type": "flow-alias", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowId": "flowIdentifier"}, "unless": {"flowAliasIdentifier": [null]}}], "located": {"flowAliasIdentifier": "?flowAliasIdentifier", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:ListFlowVersions": {"action": "bedrock:ListFlowVersions", "types": ["flow"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:ListFlows": {"action": "bedrock:ListFlows", "types": [], "resources": []},
"bedrock:ListFoundationModelAgreementOffers": {"action": "bedrock:ListFoundationModelAgreementOffers", "types": [], "resources": []},
"bedrock:ListFoundationModels": {"action": "bedrock:ListFoundationModels", "types": [], "resources": []},
"bedrock:ListGuardrails": {"action": "bedrock:ListGuardrails", "types": ["guardrail"], "resources": [{"type": "guardrail", "fill": {"GuardrailId": "guardrailIdentifier"}}], "located": {"guardrailIdentifier": "?guardrailIdentifier"}},
"bedrock:ListImportedModels": {"action": "bedrock:ListImportedModels", "types": [], "resources": []},
"bedrock:ListInferenceProfiles": {"action": "bedrock:ListInferenceProfiles", "types": [], "resources": []},
"bedrock:ListIngestionJobs": {"action": "bedrock:ListIngestionJobs", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:ListInvocationSteps": {"action": "bedrock:ListInvocationSteps", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "sessionIdentifier"}}], "located": {"sessionIdentifier": "{sessionIdentifier}"}},
"bedrock:ListInvocations": {"action": "bedrock:ListInvocations", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "sessionIdentifier"}}], "located": {"sessionIdentifier": "{sessionIdentifier}"}},
"bedrock:ListKnowledgeBaseDocuments": {"action": "bedrock:ListKnowledgeBaseDocuments", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:ListKnowledgeBases": {"action": "bedrock:ListKnowledgeBases", "types": [], "resources": []},
"bedrock:ListMarketplaceModelEndpoints": {"action": "bedrock:ListMarketplaceModelEndpoints", "types": [], "resources": []},
"bedrock:ListModelCopyJobs": {"action": "bedrock:ListModelCopyJobs", "types": [], "resources": []},
"bedrock:ListModelCustomizationJobs": {"action": "bedrock:ListModelCustomizationJobs", "types": [], "resources": []},
"bedrock:ListModelImportJobs": {"action": "bedrock:ListModelImportJobs", "types": [], "resources": []},
"bedrock:ListModelInvocationJobs": {"action": "bedrock:ListModelInvocationJobs", "types": [], "resources": []},
"bedrock:ListProjects": {"action": "bedrock:ListProjects", "types": [], "resources": []},
"bedrock:ListPromptRouters": {"action": "bedrock:ListPromptRouters", "types": [], "resources": []},
"bedrock:ListPrompts": {"action": "bedrock:ListPrompts", "types": ["prompt"], "resources": [{"type": "prompt", "fill": {"PromptId": "promptIdentifier"}}], "located": {"promptIdentifier": "?promptIdentifier"}},
"bedrock:ListProvisionedModelThroughputs": {"action": "bedrock:ListProvisionedModelThroughputs", "types": [], "resources": []},
"bedrock:ListRetrievalInstructionVersions": {"action": "bedrock:ListRetrievalInstructionVersions", "types": ["retrieval-instruction"], "resources": [{"type": "retrieval-instruction", "fill": {"RetrievalInstructionId": "retrievalInstructionId"}}], "located": {"retrievalInstructionId": "{retrievalInstructionId}"}},
"bedrock:ListRetrievalInstructions": {"action": "bedrock:ListRetrievalInstructions", "types": [], "resources": []},
"bedrock:ListSessions": {"action": "bedrock:ListSessions", "types": [], "resources": []},
"bedrock:ListTagsForResource": {"action": "bedrock:ListTagsForResource", "types": ["advanced-prompt-optimization-job", "agent", "agent-alias", "application-inference-profile", "async-invoke", "automated-reasoning-policy", "automated-reasoning-policy-version", "blueprint", "blueprint-optimization-invocation", "custom-model", "custom-model-deployment", "data-automation-invocation-job", "data-automation-library", "data-automation-library-ingestion-job", "data-automation-project", "evaluation-job", "flow", "flow-alias", "guardrail", "imported-model", "knowledge-base", "model-copy-job", "model-customization-job", "model-evaluation-job", "model-import-job", "model-invocation-job", "prompt", "prompt-router", "prompt-version", "provisioned-model", "retrieval-instruction", "session"], "resources": [{"types": ["application-inference-profile", "async-invoke", "automated-reasoning-policy", "automated-reasoning-policy-version", "custom-model", "custom-model-deployment", "evaluation-job", "guardrail", "imported-model", "model-customization-job", "model-evaluation-job", "model-import-job", "model-invocation-job", "prompt-router", "provisioned-model"], "arn": "resourceARN", "endpoint": "bedrock"}, {"types": ["agent", "agent-alias", "flow", "flow-alias", "knowledge-base", "prompt", "prompt-version", "retrieval-instruction"], "arn": "resourceArn", "endpoint": "bedrock-agent"}, {"types": ["session"], "arn": "resourceArn", "endpoint": "bedrock-agent-runtime"}, {"types": ["blueprint", "blueprint-optimization-invocation", "data-automation-library", "data-automation-library-ingestion-job", "data-automation-project"], "arn": "resourceARN", "endpoint": "bedrock-data-automation"}, {"types": ["data-automation-invocation-job"], "arn": "resourceARN", "endpoint": "bedrock-data-automation-runtime"}], "located": {"resourceArn": "{resourceArn}"}},
"bedrock:ListTrustedAccessPrograms": {"action": "bedrock:ListTrustedAccessPrograms", "types": [], "resources": []},
"bedrock:ListVpcConfigurations": {"action": "bedrock:ListVpcConfigurations", "types": [], "resources": []},
"bedrock:OptimizePrompt": {"action": "bedrock:OptimizePrompt", "types": [], "resources": []},
"bedrock:PrepareAgent": {"action": "bedrock:PrepareAgent", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:PrepareFlow": {"action": "bedrock:PrepareFlow", "types": ["flow"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:PutAccountDataRetention": {"action": "bedrock:PutAccountDataRetention", "types": [], "resources": []},
"bedrock:PutAccountDataRetentionStorage": {"action": "bedrock:PutAccountDataRetentionStorage", "types": [], "resources": []},
"bedrock:PutEnforcedGuardrailConfiguration": {"action": "bedrock:PutEnforcedGuardrailConfiguration", "types": [], "resources": []},
"bedrock:PutInvocationStep": {"action": "bedrock:PutInvocationStep", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "sessionIdentifier"}}, {"types": ["session"], "through": "invocationStepId"}], "located": {"sessionIdentifier": "{sessionIdentifier}"}},
"bedrock:PutModelInvocationLoggingConfiguration": {"action": "bedrock:PutModelInvocationLoggingConfiguration", "types": [], "resources": []},
"bedrock:PutOrganizationDataRetentionStorage": {"action": "bedrock:PutOrganizationDataRetentionStorage", "types": [], "resources": []},
"bedrock:PutProjectDataRetentionStorage": {"action": "bedrock:PutProjectDataRetentionStorage", "types": [], "resources": []},
"bedrock:PutResourcePolicy": {"action": "bedrock:PutResourcePolicy", "types": ["custom-model", "guardrail", "guardrail-profile", "knowledge-base"], "resources": [{"types": ["custom-model", "guardrail", "guardrail-profile", "knowledge-base"], "arn": "resourceArn"}], "locatedApart": {"bedrock-agent": {"resourceArn": "{resourceArn}"}}},
"bedrock:PutTrustedAccessProgramAccountEnrollment": {"action": "bedrock:PutTrustedAccessProgramAccountEnrollment", "types": [], "resources": []},
"bedrock:PutTrustedAccessProgramOrganizationEnrollment": {"action": "bedrock:PutTrustedAccessProgramOrganizationEnrollment", "types": [], "resources": []},
"bedrock:PutTrustedAccessProgramProjectEnrollment": {"action": "bedrock:PutTrustedAccessProgramProjectEnrollment", "types": [], "resources": []},
"bedrock:PutUseCaseForModelAccess": {"action": "bedrock:PutUseCaseForModelAccess", "types": [], "resources": []},
"bedrock:RegisterMarketplaceModelEndpoint": {"action": "bedrock:RegisterMarketplaceModelEndpoint", "types": ["bedrock-marketplace-model-endpoint"], "resources": [{"type": "bedrock-marketplace-model-endpoint", "fill": {}}]},
"bedrock:Rerank": {"action": "bedrock:Rerank", "types": [], "resources": []},
"bedrock:Retrieve": {"action": "bedrock:Retrieve", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:RetrieveAndGenerate": {"action": "bedrock:RetrieveAndGenerate", "types": [], "resources": []},
"bedrock:RetrieveAndGenerateStream": {"action": "bedrock:RetrieveAndGenerate", "types": [], "resources": []},
"bedrock:StartAsyncInvoke": {"action": "bedrock:StartAsyncInvoke", "types": [], "resources": [], "makes": [{"type": "async-invoke", "fill": {}}]},
"bedrock:StartAutomatedReasoningPolicyBuildWorkflow": {"action": "bedrock:StartAutomatedReasoningPolicyBuildWorkflow", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:StartAutomatedReasoningPolicyTestWorkflow": {"action": "bedrock:StartAutomatedReasoningPolicyTestWorkflow", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:StartFlowExecution": {"action": "bedrock:StartFlowExecution", "types": ["flow", "flow-alias"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}, {"type": "flow-alias", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowId": "flowIdentifier"}}], "located": {"flowAliasIdentifier": "{flowAliasIdentifier}", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:StartIngestionJob": {"action": "bedrock:StartIngestionJob", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:StartTrustedAccessProgramAccountApplication": {"action": "bedrock:StartTrustedAccessProgramAccountApplication", "types": [], "resources": []},
"bedrock:StartTrustedAccessProgramOrganizationApplication": {"action": "bedrock:StartTrustedAccessProgramOrganizationApplication", "types": [], "resources": []},
"bedrock:StartTrustedAccessProgramProjectApplication": {"action": "bedrock:StartTrustedAccessProgramProjectApplication", "types": [], "resources": []},
"bedrock:StopAdvancedPromptOptimizationJob": {"action": "bedrock:StopAdvancedPromptOptimizationJob", "types": ["advanced-prompt-optimization-job"], "resources": [{"type": "advanced-prompt-optimization-job", "fill": {"ResourceId": "jobIdentifier"}}], "located": {"jobIdentifier": "{jobIdentifier}"}},
"bedrock:StopEvaluationJob": {"action": "bedrock:StopEvaluationJob", "types": ["evaluation-job"], "resources": [{"types": ["evaluation-job"], "arn": "jobIdentifier"}, {"type": "evaluation-job", "fill": {"ResourceId": "jobIdentifier"}}], "located": {"jobIdentifier": "{jobIdentifier}"}},
"bedrock:StopFlowExecution": {"action": "bedrock:StopFlowExecution", "types": ["flow", "flow-alias", "flow-execution"], "resources": [{"type": "flow", "fill": {"FlowId": "flowIdentifier"}}, {"type": "flow-alias", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowId": "flowIdentifier"}}, {"type": "flow-execution", "fill": {"FlowAliasId": "flowAliasIdentifier", "FlowExecutionId": "executionIdentifier", "FlowId": "flowIdentifier"}}], "located": {"executionIdentifier": "{executionIdentifier}", "flowAliasIdentifier": "{flowAliasIdentifier}", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:StopIngestionJob": {"action": "bedrock:StopIngestionJob", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:StopModelCustomizationJob": {"action": "bedrock:StopModelCustomizationJob", "types": ["model-customization-job"], "resources": [{"type": "model-customization-job", "fill": {"ResourceId": "jobIdentifier"}}], "located": {"jobIdentifier": "{jobIdentifier}"}},
"bedrock:StopModelInvocationJob": {"action": "bedrock:StopModelInvocationJob", "types": ["model-invocation-job"], "resources": [{"type": "model-invocation-job", "fill": {"JobIdentifier": "jobIdentifier"}}], "located": {"jobIdentifier": "{jobIdentifier}"}},
"bedrock:TagResource": {"action": "bedrock:TagResource", "types": ["advanced-prompt-optimization-job", "agent", "agent-alias", "application-inference-profile", "async-invoke", "automated-reasoning-policy", "automated-reasoning-policy-version", "blueprint", "blueprint-optimization-invocation", "custom-model", "custom-model-deployment", "data-automation-invocation-job", "data-automation-library", "data-automation-library-ingestion-job", "data-automation-project", "evaluation-job", "flow", "flow-alias", "guardrail", "imported-model", "knowledge-base", "model-copy-job", "model-customization-job", "model-evaluation-job", "model-import-job", "model-invocation-job", "prompt", "prompt-router", "prompt-version", "provisioned-model", "retrieval-instruction", "session"], "resources": [{"types": ["application-inference-profile", "async-invoke", "automated-reasoning-policy", "automated-reasoning-policy-version", "custom-model", "custom-model-deployment", "evaluation-job", "guardrail", "imported-model", "model-customization-job", "model-evaluation-job", "model-import-job", "model-invocation-job", "prompt-router", "provisioned-model"], "arn": "resourceARN", "endpoint": "bedrock"}, {"types": ["agent", "agent-alias", "flow", "flow-alias", "knowledge-base", "prompt", "prompt-version", "retrieval-instruction"], "arn": "resourceArn", "endpoint": "bedrock-agent"}, {"types": ["session"], "arn": "resourceArn", "endpoint": "bedrock-agent-runtime"}, {"types": ["blueprint", "blueprint-optimization-invocation", "data-automation-library", "data-automation-library-ingestion-job", "data-automation-project"], "arn": "resourceARN", "endpoint": "bedrock-data-automation"}, {"types": ["data-automation-invocation-job"], "arn": "resourceARN", "endpoint": "bedrock-data-automation-runtime"}], "located": {"resourceArn": "{resourceArn}"}},
"bedrock:UntagResource": {"action": "bedrock:UntagResource", "types": ["advanced-prompt-optimization-job", "agent", "agent-alias", "application-inference-profile", "async-invoke", "automated-reasoning-policy", "automated-reasoning-policy-version", "blueprint", "blueprint-optimization-invocation", "custom-model", "custom-model-deployment", "data-automation-invocation-job", "data-automation-library", "data-automation-library-ingestion-job", "data-automation-project", "evaluation-job", "flow", "flow-alias", "guardrail", "imported-model", "knowledge-base", "model-copy-job", "model-customization-job", "model-evaluation-job", "model-import-job", "model-invocation-job", "prompt", "prompt-router", "prompt-version", "provisioned-model", "retrieval-instruction", "session"], "resources": [{"types": ["application-inference-profile", "async-invoke", "automated-reasoning-policy", "automated-reasoning-policy-version", "custom-model", "custom-model-deployment", "evaluation-job", "guardrail", "imported-model", "model-customization-job", "model-evaluation-job", "model-import-job", "model-invocation-job", "prompt-router", "provisioned-model"], "arn": "resourceARN", "endpoint": "bedrock"}, {"types": ["agent", "agent-alias", "flow", "flow-alias", "knowledge-base", "prompt", "prompt-version", "retrieval-instruction"], "arn": "resourceArn", "endpoint": "bedrock-agent"}, {"types": ["session"], "arn": "resourceArn", "endpoint": "bedrock-agent-runtime"}, {"types": ["blueprint", "blueprint-optimization-invocation", "data-automation-library", "data-automation-library-ingestion-job", "data-automation-project"], "arn": "resourceARN", "endpoint": "bedrock-data-automation"}, {"types": ["data-automation-invocation-job"], "arn": "resourceARN", "endpoint": "bedrock-data-automation-runtime"}], "located": {"resourceArn": "{resourceArn}"}},
"bedrock:UpdateAgent": {"action": "bedrock:UpdateAgent", "types": ["agent"], "resources": [{"types": ["agent"], "arn": "agentResourceRoleArn"}, {"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:UpdateAgentActionGroup": {"action": "bedrock:UpdateAgentActionGroup", "types": ["agent"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:UpdateAgentAlias": {"action": "bedrock:UpdateAgentAlias", "types": ["agent-alias"], "resources": [{"type": "agent-alias", "fill": {"AgentAliasId": "agentAliasId", "AgentId": "agentId"}}], "located": {"agentAliasId": "{agentAliasId}", "agentId": "{agentId}"}},
"bedrock:UpdateAgentCollaborator": {"action": "bedrock:UpdateAgentCollaborator", "types": ["agent"], "resources": [{"types": ["agent"], "arn": "agentDescriptor.aliasArn"}, {"type": "agent", "fill": {"AgentId": "agentId"}}], "located": {"agentId": "{agentId}"}},
"bedrock:UpdateAgentKnowledgeBase": {"action": "bedrock:UpdateAgentKnowledgeBase", "types": ["agent", "knowledge-base"], "resources": [{"type": "agent", "fill": {"AgentId": "agentId"}}, {"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"agentId": "{agentId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:UpdateAutomatedReasoningPolicy": {"action": "bedrock:UpdateAutomatedReasoningPolicy", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:UpdateAutomatedReasoningPolicyAnnotations": {"action": "bedrock:UpdateAutomatedReasoningPolicyAnnotations", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:UpdateAutomatedReasoningPolicyTestCase": {"action": "bedrock:UpdateAutomatedReasoningPolicyTestCase", "types": ["automated-reasoning-policy"], "resources": [{"types": ["automated-reasoning-policy"], "arn": "policyArn"}], "located": {"policyArn": "{policyArn}"}},
"bedrock:UpdateBlueprint": {"action": "bedrock:UpdateBlueprint", "types": ["blueprint"], "resources": [{"types": ["blueprint"], "arn": "blueprintArn"}], "located": {"blueprintArn": "{blueprintArn}"}},
"bedrock:UpdateCustomModelDeployment": {"action": "bedrock:UpdateCustomModelDeployment", "types": ["custom-model", "custom-model-deployment"], "resources": [{"types": ["custom-model", "custom-model-deployment"], "arn": "modelArn"}, {"type": "custom-model-deployment", "fill": {"ResourceId": "customModelDeploymentIdentifier"}}], "located": {"customModelDeploymentIdentifier": "{customModelDeploymentIdentifier}"}},
"bedrock:UpdateDataAutomationLibrary": {"action": "bedrock:UpdateDataAutomationLibrary", "types": ["data-automation-library"], "resources": [{"types": ["data-automation-library"], "arn": "libraryArn"}], "located": {"libraryArn": "{libraryArn}"}},
"bedrock:UpdateDataAutomationProject": {"action": "bedrock:UpdateDataAutomationProject", "types": ["blueprint", "data-automation-project", "data-automation-project"], "resources": [{"types": ["blueprint", "data-automation-project", "data-automation-project"], "arn": "projectArn"}], "located": {"projectArn": "{projectArn}"}},
"bedrock:UpdateDataSource": {"action": "bedrock:UpdateDataSource", "types": ["knowledge-base"], "resources": [{"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}, {"types": ["knowledge-base"], "through": "dataSourceId"}], "located": {"dataSourceId": "{dataSourceId}", "knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:UpdateFlow": {"action": "bedrock:UpdateFlow", "types": ["flow"], "resources": [{"types": ["flow"], "arn": "executionRoleArn"}, {"type": "flow", "fill": {"FlowId": "flowIdentifier"}}], "located": {"flowIdentifier": "{flowIdentifier}"}},
"bedrock:UpdateFlowAlias": {"action": "bedrock:UpdateFlowAlias", "types": ["flow-alias"], "resources": [{"type": "flow-alias", "fill": {"FlowAliasId": "aliasIdentifier", "FlowId": "flowIdentifier"}}], "located": {"aliasIdentifier": "{aliasIdentifier}", "flowIdentifier": "{flowIdentifier}"}},
"bedrock:UpdateGuardrail": {"action": "bedrock:UpdateGuardrail", "types": ["automated-reasoning-policy", "automated-reasoning-policy-version", "guardrail", "guardrail-profile"], "resources": [{"type": "guardrail", "fill": {"GuardrailId": "guardrailIdentifier"}}, {"type": "guardrail-profile", "fill": {"ResourceId": "crossRegionConfig.guardrailProfileIdentifier"}}], "located": {"guardrailIdentifier": "{guardrailIdentifier}"}},
"bedrock:UpdateKnowledgeBase": {"action": "bedrock:UpdateKnowledgeBase", "types": ["knowledge-base"], "resources": [{"types": ["knowledge-base"], "arn": "roleArn"}, {"type": "knowledge-base", "fill": {"KnowledgeBaseId": "knowledgeBaseId"}}], "located": {"knowledgeBaseId": "{knowledgeBaseId}"}},
"bedrock:UpdateMarketplaceModelEndpoint": {"action": "bedrock:UpdateMarketplaceModelEndpoint", "types": ["bedrock-marketplace-model-endpoint"], "resources": [{"types": ["bedrock-marketplace-model-endpoint"], "arn": "endpointArn"}], "located": {"endpointArn": "{endpointArn}"}},
"bedrock:UpdateProject": {"action": "bedrock:UpdateProject", "types": [], "resources": []},
"bedrock:UpdatePrompt": {"action": "bedrock:UpdatePrompt", "types": ["prompt"], "resources": [{"type": "prompt", "fill": {"PromptId": "promptIdentifier"}}], "located": {"promptIdentifier": "{promptIdentifier}"}},
"bedrock:UpdateProvisionedModelThroughput": {"action": "bedrock:UpdateProvisionedModelThroughput", "types": ["custom-model", "foundation-model", "provisioned-model"], "resources": [{"type": "provisioned-model", "fill": {"ResourceId": "provisionedModelId"}}], "located": {"provisionedModelId": "{provisionedModelId}"}},
"bedrock:UpdateRetrievalInstruction": {"action": "bedrock:UpdateRetrievalInstruction", "types": ["retrieval-instruction"], "resources": [{"type": "retrieval-instruction", "fill": {"RetrievalInstructionId": "retrievalInstructionId"}}], "located": {"retrievalInstructionId": "{retrievalInstructionId}"}},
"bedrock:UpdateSession": {"action": "bedrock:UpdateSession", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "sessionIdentifier"}}], "located": {"sessionIdentifier": "{sessionIdentifier}"}},
"bedrock:ValidateFlowDefinition": {"action": "bedrock:ValidateFlowDefinition", "types": [], "resources": []},
"budgets:CreateBudget": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "Budget.BudgetName"}, "account": "AccountId"}]},
"budgets:CreateBudgetAction": {"action": "budgets:CreateBudgetAction", "types": ["budgetAction"], "resources": [{"type": "budgetAction", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
"budgets:CreateNotification": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
+33 -3
View File
@@ -1,7 +1,7 @@
{
"_source": {"generator": "tools/aws/regen_iam_tag_on_create.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-21", "note": "make iam-tag-on-create-check re-derives every member from botocore; make iam-tag-on-create-verify checks every operation against AWS."},
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "s3tables": ["s3tables"], "s3vectors": [], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
"_source": {"generator": "tools/aws/regen_iam_tag_on_create.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-22", "note": "make iam-tag-on-create-check re-derives every member from botocore; make iam-tag-on-create-verify checks every operation against AWS."},
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "s3tables": ["s3tables"], "s3vectors": [], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
"otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "apiportal", "appfabric", "appflow", "application-signals", "applicationinsights", "appmesh", "apprunner", "appstream", "arc-region-switch", "artifact", "auditmanager", "b2bi", "backup-gateway", "backup-search", "bcm-dashboards", "billing", "billingconductor", "braket", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "connect-campaigns", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "directconnect", "docdb-elastic", "drs", "ds", "ebs", "ecr-public", "elemental-inference", "entityresolution", "evs", "fms", "forecast", "frauddetector", "fsx", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "ivs", "ivschat", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "m2", "managedblockchain", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgn", "migrationhub-orchestrator", "mobiletargeting", "mpa", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "notifications", "notifications-contacts", "observabilityadmin", "odb", "omics", "opensearch", "osis", "outposts", "partnercentral", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "profile", "proton", "qbusiness", "rbin", "refactor-spaces", "repostspace", "resiliencehub", "rolesanywhere", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3files", "sagemaker-geospatial", "savingsplans", "schemas", "scn", "security-ir", "securityagent", "securitylake", "shield", "sms-voice", "snow-device-management", "social-messaging", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "voiceid", "vpc-lattice", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workspaces", "workspaces-instances", "workspaces-web"],
"resourceArns": {"ec2": {"application-status-check": "arn:${Partition}:ec2:${Region}:${Account}:application-status-check/*", "capacity-block": "arn:${Partition}:ec2:${Region}:${Account}:capacity-block/*", "capacity-manager-data-export": "arn:${Partition}:ec2:${Region}:${Account}:capacity-manager-data-export/*", "capacity-reservation": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/*", "capacity-reservation-cancellation-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-cancellation-quote/*", "capacity-reservation-fleet": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-fleet/*", "capacity-reservation-modification-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-modification-quote/*", "carrier-gateway": "arn:${Partition}:ec2:${Region}:${Account}:carrier-gateway/*", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/*", "client-vpn-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:client-vpn-endpoint/*", "coip-pool": "arn:${Partition}:ec2:${Region}:${Account}:coip-pool/*", "customer-gateway": "arn:${Partition}:ec2:${Region}:${Account}:customer-gateway/*", "declarative-policies-report": "arn:${Partition}:ec2:${Region}:${Account}:declarative-policies-report/*", "dedicated-host": "arn:${Partition}:ec2:${Region}:${Account}:dedicated-host/*", "dhcp-options": "arn:${Partition}:ec2:${Region}:${Account}:dhcp-options/*", "egress-only-internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:egress-only-internet-gateway/*", "elastic-gpu": "arn:${Partition}:ec2:${Region}:${Account}:elastic-gpu/*", "elastic-inference": "arn:${Partition}:elastic-inference:${Region}:${Account}:elastic-inference-accelerator/*", "elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/*", "export-image-task": "arn:${Partition}:ec2:${Region}:${Account}:export-image-task/*", "export-instance-task": "arn:${Partition}:ec2:${Region}:${Account}:export-instance-task/*", "fleet": "arn:${Partition}:ec2:${Region}:${Account}:fleet/*", "fpga-image": "arn:${Partition}:ec2:${Region}:${Account}:fpga-image/*", "group": "arn:${Partition}:resource-groups:${Region}:${Account}:group/*", "host-reservation": "arn:${Partition}:ec2:${Region}:${Account}:host-reservation/*", "image": "arn:${Partition}:ec2:${Region}::image/*", "image-usage-report": "arn:${Partition}:ec2:${Region}:${Account}:image-usage-report/*", "import-image-task": "arn:${Partition}:ec2:${Region}:${Account}:import-image-task/*", "import-snapshot-task": "arn:${Partition}:ec2:${Region}:${Account}:import-snapshot-task/*", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/*", "instance-connect-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:instance-connect-endpoint/*", "instance-event-window": "arn:${Partition}:ec2:${Region}:${Account}:instance-event-window/*", "internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:internet-gateway/*", "ipam": "arn:${Partition}:ec2::${Account}:ipam/*", "ipam-external-resource-verification-token": "arn:${Partition}:ec2::${Account}:ipam-external-resource-verification-token/*", "ipam-internet-registry-association": "arn:${Partition}:ec2::${Account}:ipam-internet-registry-association/*", "ipam-policy": "arn:${Partition}:ec2::${Account}:ipam-policy/*", "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/*", "ipam-pool-allocation": "arn:${Partition}:ec2:${Region}:${Account}:ipam-pool-allocation/*", "ipam-prefix-list-resolver": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver/*", "ipam-prefix-list-resolver-target": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver-target/*", "ipam-resource-discovery": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery/*", "ipam-resource-discovery-association": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery-association/*", "ipam-scope": "arn:${Partition}:ec2::${Account}:ipam-scope/*", "ipv4pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv4pool-ec2/*", "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/*", "key-pair": "arn:${Partition}:ec2:${Region}:${Account}:key-pair/*", "launch-template": "arn:${Partition}:ec2:${Region}:${Account}:launch-template/*", "license-configuration": "arn:${Partition}:license-manager:${Region}:${Account}:license-configuration:*", "local-gateway": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway/*", "local-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table/*", "local-gateway-route-table-virtual-interface-group-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-virtual-interface-group-association/*", "local-gateway-route-table-vpc-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-vpc-association/*", "local-gateway-virtual-interface": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface/*", "local-gateway-virtual-interface-group": "arn:${Partition}:ec2:${Region}:${Account}:Line truncated
"operations": {
@@ -19,6 +19,36 @@
"bcm-pricing-calculator:CreateBillEstimate": {"tagging": ["bcm-pricing-calculator:TagResource"], "tags": [{"member": "tags{}"}]},
"bcm-pricing-calculator:CreateBillScenario": {"tagging": ["bcm-pricing-calculator:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bcm-pricing-calculator:CreateWorkloadEstimate": {"tagging": ["bcm-pricing-calculator:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:CreateAdvancedPromptOptimizationJob": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateAgent": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:CreateAgentAlias": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:CreateAutomatedReasoningPolicy": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateAutomatedReasoningPolicyVersion": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateBlueprint": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateCustomModel": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "modelTags[]", "key": "key", "value": "value"}]},
"bedrock:CreateCustomModelDeployment": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateDataAutomationLibrary": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateDataAutomationProject": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateEvaluationJob": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "jobTags[]", "key": "key", "value": "value"}]},
"bedrock:CreateFlow": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:CreateFlowAlias": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:CreateGuardrail": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateInferenceProfile": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateKnowledgeBase": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:CreateModelCopyJob": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "targetModelTags[]", "key": "key", "value": "value"}]},
"bedrock:CreateModelCustomizationJob": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "customModelTags[]", "key": "key", "value": "value"}, {"member": "jobTags[]", "key": "key", "value": "value"}]},
"bedrock:CreateModelImportJob": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "importedModelTags[]", "key": "key", "value": "value"}, {"member": "jobTags[]", "key": "key", "value": "value"}]},
"bedrock:CreateModelInvocationJob": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreatePrompt": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:CreatePromptRouter": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreatePromptVersion": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:CreateProvisionedModelThroughput": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:CreateRetrievalInstruction": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:CreateSession": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"bedrock:InvokeBlueprintOptimizationAsync": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:InvokeDataAutomationAsync": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:InvokeDataAutomationLibraryIngestionJob": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"bedrock:StartAsyncInvoke": {"tagging": ["bedrock:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]},
"budgets:CreateBudget": {"tagging": ["budgets:TagResource"], "requestTags": true, "tags": [{"member": "ResourceTags[]", "key": "Key", "value": "Value"}]},
"budgets:CreateBudgetAction": {"tagging": ["budgets:TagResource"], "requestTags": true, "tags": [{"member": "ResourceTags[]", "key": "Key", "value": "Value"}]},
"ce:CreateAnomalyMonitor": {"tagging": ["ce:TagResource"], "requestTags": true, "tags": [{"member": "ResourceTags[]", "key": "Key", "value": "Value"}]},
+226
View File
@@ -312,6 +312,232 @@
"UpdateVpcLink": {"method": "PATCH", "requestUri": "/v2/vpclinks/{vpcLinkId}"}
}
},
"bedrock": {
"credentialScope": "bedrock",
"apiVersion": "2023-04-20",
"accessDeniedStatus": 403,
"operations": {
"BatchDeleteAdvancedPromptOptimizationJob": {"method": "POST", "requestUri": "/advanced-prompt-optimization-job/batch-delete"},
"BatchDeleteEvaluationJob": {"method": "POST", "requestUri": "/evaluation-jobs/batch-delete"},
"CancelAutomatedReasoningPolicyBuildWorkflow": {"method": "POST", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/cancel"},
"CreateAdvancedPromptOptimizationJob": {"method": "POST", "requestUri": "/advanced-prompt-optimization-jobs"},
"CreateAutomatedReasoningPolicy": {"method": "POST", "requestUri": "/automated-reasoning-policies"},
"CreateAutomatedReasoningPolicyTestCase": {"method": "POST", "requestUri": "/automated-reasoning-policies/{policyArn}/test-cases"},
"CreateAutomatedReasoningPolicyVersion": {"method": "POST", "requestUri": "/automated-reasoning-policies/{policyArn}/versions"},
"CreateCustomModel": {"method": "POST", "requestUri": "/custom-models/create-custom-model"},
"CreateCustomModelDeployment": {"method": "POST", "requestUri": "/model-customization/custom-model-deployments"},
"CreateEvaluationJob": {"method": "POST", "requestUri": "/evaluation-jobs"},
"CreateFoundationModelAgreement": {"method": "POST", "requestUri": "/create-foundation-model-agreement"},
"CreateGuardrail": {"method": "POST", "requestUri": "/guardrails"},
"CreateGuardrailVersion": {"method": "POST", "requestUri": "/guardrails/{guardrailIdentifier}"},
"CreateInferenceProfile": {"method": "POST", "requestUri": "/inference-profiles"},
"CreateMarketplaceModelEndpoint": {"method": "POST", "requestUri": "/marketplace-model/endpoints"},
"CreateModelCopyJob": {"method": "POST", "requestUri": "/model-copy-jobs"},
"CreateModelCustomizationJob": {"method": "POST", "requestUri": "/model-customization-jobs"},
"CreateModelImportJob": {"method": "POST", "requestUri": "/model-import-jobs"},
"CreateModelInvocationJob": {"method": "POST", "requestUri": "/model-invocation-job"},
"CreatePromptRouter": {"method": "POST", "requestUri": "/prompt-routers"},
"CreateProvisionedModelThroughput": {"method": "POST", "requestUri": "/provisioned-model-throughput"},
"DeleteAutomatedReasoningPolicy": {"method": "DELETE", "requestUri": "/automated-reasoning-policies/{policyArn}"},
"DeleteAutomatedReasoningPolicyBuildWorkflow": {"method": "DELETE", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}"},
"DeleteAutomatedReasoningPolicyTestCase": {"method": "DELETE", "requestUri": "/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}"},
"DeleteCustomModel": {"method": "DELETE", "requestUri": "/custom-models/{modelIdentifier}"},
"DeleteCustomModelDeployment": {"method": "DELETE", "requestUri": "/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}"},
"DeleteEnforcedGuardrailConfiguration": {"method": "DELETE", "requestUri": "/enforcedGuardrailsConfiguration/{configId}"},
"DeleteFoundationModelAgreement": {"method": "POST", "requestUri": "/delete-foundation-model-agreement"},
"DeleteGuardrail": {"method": "DELETE", "requestUri": "/guardrails/{guardrailIdentifier}"},
"DeleteImportedModel": {"method": "DELETE", "requestUri": "/imported-models/{modelIdentifier}"},
"DeleteInferenceProfile": {"method": "DELETE", "requestUri": "/inference-profiles/{inferenceProfileIdentifier}"},
"DeleteMarketplaceModelEndpoint": {"method": "DELETE", "requestUri": "/marketplace-model/endpoints/{endpointArn}"},
"DeleteModelInvocationLoggingConfiguration": {"method": "DELETE", "requestUri": "/logging/modelinvocations"},
"DeletePromptRouter": {"method": "DELETE", "requestUri": "/prompt-routers/{promptRouterArn}"},
"DeleteProvisionedModelThroughput": {"method": "DELETE", "requestUri": "/provisioned-model-throughput/{provisionedModelId}"},
"DeleteResourcePolicy": {"method": "DELETE", "requestUri": "/resource-policy/{resourceArn}"},
"DeregisterMarketplaceModelEndpoint": {"method": "DELETE", "requestUri": "/marketplace-model/endpoints/{endpointArn}/registration"},
"ExportAutomatedReasoningPolicyVersion": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/export"},
"GetAccountDataRetention": {"method": "GET", "requestUri": "/data-retention"},
"GetAdvancedPromptOptimizationJob": {"method": "GET", "requestUri": "/advanced-prompt-optimization-jobs/{jobIdentifier}"},
"GetAutomatedReasoningPolicy": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}"},
"GetAutomatedReasoningPolicyAnnotations": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/annotations"},
"GetAutomatedReasoningPolicyBuildWorkflow": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}"},
"GetAutomatedReasoningPolicyBuildWorkflowResultAssets": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/result-assets"},
"GetAutomatedReasoningPolicyNextScenario": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/scenarios"},
"GetAutomatedReasoningPolicyTestCase": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}"},
"GetAutomatedReasoningPolicyTestResult": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/test-cases/{testCaseId}/test-results"},
"GetCustomModel": {"method": "GET", "requestUri": "/custom-models/{modelIdentifier}"},
"GetCustomModelDeployment": {"method": "GET", "requestUri": "/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}"},
"GetEvaluationJob": {"method": "GET", "requestUri": "/evaluation-jobs/{jobIdentifier}"},
"GetFoundationModel": {"method": "GET", "requestUri": "/foundation-models/{modelIdentifier}"},
"GetFoundationModelAvailability": {"method": "GET", "requestUri": "/foundation-model-availability/{modelId}"},
"GetGuardrail": {"method": "GET", "requestUri": "/guardrails/{guardrailIdentifier}"},
"GetImportedModel": {"method": "GET", "requestUri": "/imported-models/{modelIdentifier}"},
"GetInferenceProfile": {"method": "GET", "requestUri": "/inference-profiles/{inferenceProfileIdentifier}"},
"GetMarketplaceModelEndpoint": {"method": "GET", "requestUri": "/marketplace-model/endpoints/{endpointArn}"},
"GetModelCopyJob": {"method": "GET", "requestUri": "/model-copy-jobs/{jobArn}"},
"GetModelCustomizationJob": {"method": "GET", "requestUri": "/model-customization-jobs/{jobIdentifier}"},
"GetModelImportJob": {"method": "GET", "requestUri": "/model-import-jobs/{jobIdentifier}"},
"GetModelInvocationJob": {"method": "GET", "requestUri": "/model-invocation-job/{jobIdentifier}"},
"GetModelInvocationLoggingConfiguration": {"method": "GET", "requestUri": "/logging/modelinvocations"},
"GetPromptRouter": {"method": "GET", "requestUri": "/prompt-routers/{promptRouterArn}"},
"GetProvisionedModelThroughput": {"method": "GET", "requestUri": "/provisioned-model-throughput/{provisionedModelId}"},
"GetResourcePolicy": {"method": "GET", "requestUri": "/resource-policy/{resourceArn}"},
"GetUseCaseForModelAccess": {"method": "GET", "requestUri": "/use-case-for-model-access"},
"ListAdvancedPromptOptimizationJobs": {"method": "GET", "requestUri": "/advanced-prompt-optimization-jobs"},
"ListAutomatedReasoningPolicies": {"method": "GET", "requestUri": "/automated-reasoning-policies"},
"ListAutomatedReasoningPolicyBuildWorkflows": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows"},
"ListAutomatedReasoningPolicyTestCases": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/test-cases"},
"ListAutomatedReasoningPolicyTestResults": {"method": "GET", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/test-results"},
"ListCustomModelDeployments": {"method": "GET", "requestUri": "/model-customization/custom-model-deployments"},
"ListCustomModels": {"method": "GET", "requestUri": "/custom-models"},
"ListEnforcedGuardrailsConfiguration": {"method": "GET", "requestUri": "/enforcedGuardrailsConfiguration"},
"ListEvaluationJobs": {"method": "GET", "requestUri": "/evaluation-jobs"},
"ListFoundationModelAgreementOffers": {"method": "GET", "requestUri": "/list-foundation-model-agreement-offers/{modelId}"},
"ListFoundationModels": {"method": "GET", "requestUri": "/foundation-models"},
"ListGuardrails": {"method": "GET", "requestUri": "/guardrails"},
"ListImportedModels": {"method": "GET", "requestUri": "/imported-models"},
"ListInferenceProfiles": {"method": "GET", "requestUri": "/inference-profiles"},
"ListMarketplaceModelEndpoints": {"method": "GET", "requestUri": "/marketplace-model/endpoints"},
"ListModelCopyJobs": {"method": "GET", "requestUri": "/model-copy-jobs"},
"ListModelCustomizationJobs": {"method": "GET", "requestUri": "/model-customization-jobs"},
"ListModelImportJobs": {"method": "GET", "requestUri": "/model-import-jobs"},
"ListModelInvocationJobs": {"method": "GET", "requestUri": "/model-invocation-jobs"},
"ListPromptRouters": {"method": "GET", "requestUri": "/prompt-routers"},
"ListProvisionedModelThroughputs": {"method": "GET", "requestUri": "/provisioned-model-throughputs"},
"ListTagsForResource": {"method": "POST", "requestUri": "/listTagsForResource"},
"PutAccountDataRetention": {"method": "PUT", "requestUri": "/data-retention"},
"PutEnforcedGuardrailConfiguration": {"method": "PUT", "requestUri": "/enforcedGuardrailsConfiguration"},
"PutModelInvocationLoggingConfiguration": {"method": "PUT", "requestUri": "/logging/modelinvocations"},
"PutResourcePolicy": {"method": "POST", "requestUri": "/resource-policy"},
"PutUseCaseForModelAccess": {"method": "POST", "requestUri": "/use-case-for-model-access"},
"RegisterMarketplaceModelEndpoint": {"method": "POST", "requestUri": "/marketplace-model/endpoints/{endpointIdentifier}/registration"},
"StartAutomatedReasoningPolicyBuildWorkflow": {"method": "POST", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowType}/start"},
"StartAutomatedReasoningPolicyTestWorkflow": {"method": "POST", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/test-workflows"},
"StopAdvancedPromptOptimizationJob": {"method": "POST", "requestUri": "/advanced-prompt-optimization-jobs/{jobIdentifier}/stop"},
"StopEvaluationJob": {"method": "POST", "requestUri": "/evaluation-job/{jobIdentifier}/stop"},
"StopModelCustomizationJob": {"method": "POST", "requestUri": "/model-customization-jobs/{jobIdentifier}/stop"},
"StopModelInvocationJob": {"method": "POST", "requestUri": "/model-invocation-job/{jobIdentifier}/stop"},
"TagResource": {"method": "POST", "requestUri": "/tagResource"},
"UntagResource": {"method": "POST", "requestUri": "/untagResource"},
"UpdateAutomatedReasoningPolicy": {"method": "PATCH", "requestUri": "/automated-reasoning-policies/{policyArn}"},
"UpdateAutomatedReasoningPolicyAnnotations": {"method": "PATCH", "requestUri": "/automated-reasoning-policies/{policyArn}/build-workflows/{buildWorkflowId}/annotations"},
"UpdateAutomatedReasoningPolicyTestCase": {"method": "PATCH", "requestUri": "/automated-reasoning-policies/{policyArn}/test-cases/{testCaseId}"},
"UpdateCustomModelDeployment": {"method": "PATCH", "requestUri": "/model-customization/custom-model-deployments/{customModelDeploymentIdentifier}"},
"UpdateGuardrail": {"method": "PUT", "requestUri": "/guardrails/{guardrailIdentifier}"},
"UpdateMarketplaceModelEndpoint": {"method": "PATCH", "requestUri": "/marketplace-model/endpoints/{endpointArn}"},
"UpdateProvisionedModelThroughput": {"method": "PATCH", "requestUri": "/provisioned-model-throughput/{provisionedModelId}"}
}
},
"bedrock-agent": {
"credentialScope": "bedrock",
"apiVersion": "2023-06-05",
"accessDeniedStatus": 403,
"operations": {
"AssociateAgentCollaborator": {"method": "PUT", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators/"},
"AssociateAgentKnowledgeBase": {"method": "PUT", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/"},
"CreateAgent": {"method": "PUT", "requestUri": "/agents/"},
"CreateAgentActionGroup": {"method": "PUT", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/actiongroups/"},
"CreateAgentAlias": {"method": "PUT", "requestUri": "/agents/{agentId}/agentaliases/"},
"CreateDataSource": {"method": "PUT", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/"},
"CreateFlow": {"method": "POST", "requestUri": "/flows/"},
"CreateFlowAlias": {"method": "POST", "requestUri": "/flows/{flowIdentifier}/aliases"},
"CreateFlowVersion": {"method": "POST", "requestUri": "/flows/{flowIdentifier}/versions"},
"CreateKnowledgeBase": {"method": "PUT", "requestUri": "/knowledgebases/"},
"CreatePrompt": {"method": "POST", "requestUri": "/prompts/"},
"CreatePromptVersion": {"method": "POST", "requestUri": "/prompts/{promptIdentifier}/versions"},
"CreateRetrievalInstruction": {"method": "POST", "requestUri": "/retrievalinstructions/"},
"CreateRetrievalInstructionVersion": {"method": "POST", "requestUri": "/retrievalinstructions/{retrievalInstructionId}/versions"},
"CreateVpcConfiguration": {"method": "POST", "requestUri": "/knowledgebases/{knowledgeBaseId}/vpcconfigurations/"},
"DeleteAgent": {"method": "DELETE", "requestUri": "/agents/{agentId}/"},
"DeleteAgentActionGroup": {"method": "DELETE", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}/"},
"DeleteAgentAlias": {"method": "DELETE", "requestUri": "/agents/{agentId}/agentaliases/{agentAliasId}/"},
"DeleteAgentVersion": {"method": "DELETE", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/"},
"DeleteDataSource": {"method": "DELETE", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"},
"DeleteFlow": {"method": "DELETE", "requestUri": "/flows/{flowIdentifier}/"},
"DeleteFlowAlias": {"method": "DELETE", "requestUri": "/flows/{flowIdentifier}/aliases/{aliasIdentifier}"},
"DeleteFlowVersion": {"method": "DELETE", "requestUri": "/flows/{flowIdentifier}/versions/{flowVersion}/"},
"DeleteKnowledgeBase": {"method": "DELETE", "requestUri": "/knowledgebases/{knowledgeBaseId}"},
"DeleteKnowledgeBaseDocuments": {"method": "POST", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents/deleteDocuments"},
"DeletePrompt": {"method": "DELETE", "requestUri": "/prompts/{promptIdentifier}/"},
"DeleteResourcePolicy": {"method": "DELETE", "requestUri": "/resourcepolicy/{resourceArn}"},
"DeleteRetrievalInstruction": {"method": "DELETE", "requestUri": "/retrievalinstructions/{retrievalInstructionId}"},
"DeleteVpcConfiguration": {"method": "DELETE", "requestUri": "/knowledgebases/{knowledgeBaseId}/vpcconfigurations/{vpcConfigurationId}"},
"DisassociateAgentCollaborator": {"method": "DELETE", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators/{collaboratorId}/"},
"DisassociateAgentKnowledgeBase": {"method": "DELETE", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/"},
"GetAgent": {"method": "GET", "requestUri": "/agents/{agentId}/"},
"GetAgentActionGroup": {"method": "GET", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}/"},
"GetAgentAlias": {"method": "GET", "requestUri": "/agents/{agentId}/agentaliases/{agentAliasId}/"},
"GetAgentCollaborator": {"method": "GET", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators/{collaboratorId}/"},
"GetAgentKnowledgeBase": {"method": "GET", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/"},
"GetAgentVersion": {"method": "GET", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/"},
"GetDataSource": {"method": "GET", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"},
"GetFlow": {"method": "GET", "requestUri": "/flows/{flowIdentifier}/"},
"GetFlowAlias": {"method": "GET", "requestUri": "/flows/{flowIdentifier}/aliases/{aliasIdentifier}"},
"GetFlowVersion": {"method": "GET", "requestUri": "/flows/{flowIdentifier}/versions/{flowVersion}/"},
"GetIngestionJob": {"method": "GET", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/{ingestionJobId}"},
"GetKnowledgeBase": {"method": "GET", "requestUri": "/knowledgebases/{knowledgeBaseId}"},
"GetKnowledgeBaseDocuments": {"method": "POST", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents/getDocuments"},
"GetPrompt": {"method": "GET", "requestUri": "/prompts/{promptIdentifier}/"},
"GetResourcePolicy": {"method": "GET", "requestUri": "/resourcepolicy/{resourceArn}"},
"GetRetrievalInstruction": {"method": "GET", "requestUri": "/retrievalinstructions/{retrievalInstructionId}"},
"GetVpcConfiguration": {"method": "GET", "requestUri": "/knowledgebases/{knowledgeBaseId}/vpcconfigurations/{vpcConfigurationId}"},
"IngestKnowledgeBaseDocuments": {"method": "PUT", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents"},
"ListAgentActionGroups": {"method": "POST", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/actiongroups/"},
"ListAgentAliases": {"method": "POST", "requestUri": "/agents/{agentId}/agentaliases/"},
"ListAgentCollaborators": {"method": "POST", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators/"},
"ListAgentKnowledgeBases": {"method": "POST", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/"},
"ListAgentVersions": {"method": "POST", "requestUri": "/agents/{agentId}/agentversions/"},
"ListAgents": {"method": "POST", "requestUri": "/agents/"},
"ListDataSources": {"method": "POST", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/"},
"ListFlowAliases": {"method": "GET", "requestUri": "/flows/{flowIdentifier}/aliases"},
"ListFlowVersions": {"method": "GET", "requestUri": "/flows/{flowIdentifier}/versions"},
"ListFlows": {"method": "GET", "requestUri": "/flows/"},
"ListIngestionJobs": {"method": "POST", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/"},
"ListKnowledgeBaseDocuments": {"method": "POST", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/documents"},
"ListKnowledgeBases": {"method": "POST", "requestUri": "/knowledgebases/"},
"ListPrompts": {"method": "GET", "requestUri": "/prompts/"},
"ListRetrievalInstructionVersions": {"method": "GET", "requestUri": "/retrievalinstructions/{retrievalInstructionId}/versions"},
"ListRetrievalInstructions": {"method": "GET", "requestUri": "/retrievalinstructions/"},
"ListTagsForResource": {"method": "GET", "requestUri": "/tags/{resourceArn}"},
"ListVpcConfigurations": {"method": "GET", "requestUri": "/knowledgebases/{knowledgeBaseId}/vpcconfigurations/"},
"PrepareAgent": {"method": "POST", "requestUri": "/agents/{agentId}/"},
"PrepareFlow": {"method": "POST", "requestUri": "/flows/{flowIdentifier}/"},
"PutResourcePolicy": {"method": "PUT", "requestUri": "/resourcepolicy/{resourceArn}"},
"StartIngestionJob": {"method": "PUT", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/"},
"StopIngestionJob": {"method": "POST", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}/ingestionjobs/{ingestionJobId}/stop"},
"TagResource": {"method": "POST", "requestUri": "/tags/{resourceArn}"},
"UntagResource": {"method": "DELETE", "requestUri": "/tags/{resourceArn}"},
"UpdateAgent": {"method": "PUT", "requestUri": "/agents/{agentId}/"},
"UpdateAgentActionGroup": {"method": "PUT", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/actiongroups/{actionGroupId}/"},
"UpdateAgentAlias": {"method": "PUT", "requestUri": "/agents/{agentId}/agentaliases/{agentAliasId}/"},
"UpdateAgentCollaborator": {"method": "PUT", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/agentcollaborators/{collaboratorId}/"},
"UpdateAgentKnowledgeBase": {"method": "PUT", "requestUri": "/agents/{agentId}/agentversions/{agentVersion}/knowledgebases/{knowledgeBaseId}/"},
"UpdateDataSource": {"method": "PUT", "requestUri": "/knowledgebases/{knowledgeBaseId}/datasources/{dataSourceId}"},
"UpdateFlow": {"method": "PUT", "requestUri": "/flows/{flowIdentifier}/"},
"UpdateFlowAlias": {"method": "PUT", "requestUri": "/flows/{flowIdentifier}/aliases/{aliasIdentifier}"},
"UpdateKnowledgeBase": {"method": "PUT", "requestUri": "/knowledgebases/{knowledgeBaseId}"},
"UpdatePrompt": {"method": "PUT", "requestUri": "/prompts/{promptIdentifier}/"},
"UpdateRetrievalInstruction": {"method": "PUT", "requestUri": "/retrievalinstructions/{retrievalInstructionId}"},
"ValidateFlowDefinition": {"method": "POST", "requestUri": "/flows/validate-definition"}
}
},
"bedrock-runtime": {
"credentialScope": "bedrock",
"apiVersion": "2023-09-30",
"accessDeniedStatus": 403,
"operations": {
"ApplyGuardrail": {"method": "POST", "requestUri": "/guardrail/{guardrailIdentifier}/version/{guardrailVersion}/apply"},
"Converse": {"method": "POST", "requestUri": "/model/{modelId}/converse"},
"ConverseStream": {"method": "POST", "requestUri": "/model/{modelId}/converse-stream"},
"CountTokens": {"method": "POST", "requestUri": "/model/{modelId}/count-tokens"},
"GetAsyncInvoke": {"method": "GET", "requestUri": "/async-invoke/{invocationArn}"},
"InvokeGuardrailChecks": {"method": "POST", "requestUri": "/guardrail-checks/invoke"},
"InvokeModel": {"method": "POST", "requestUri": "/model/{modelId}/invoke"},
"InvokeModelWithBidirectionalStream": {"method": "POST", "requestUri": "/model/{modelId}/invoke-with-bidirectional-stream"},
"InvokeModelWithResponseStream": {"method": "POST", "requestUri": "/model/{modelId}/invoke-with-response-stream"},
"ListAsyncInvokes": {"method": "GET", "requestUri": "/async-invoke"},
"StartAsyncInvoke": {"method": "POST", "requestUri": "/async-invoke"}
}
},
"cloudfront": {
"credentialScope": "cloudfront",
"apiVersion": "2020-05-31",
@@ -14,6 +14,7 @@ import software.amazon.awssdk.regions.Region;
import software.amazon.awssdk.services.bedrock.BedrockClient;
import software.amazon.awssdk.services.bedrock.model.BedrockException;
import software.amazon.awssdk.services.bedrock.model.CreateGuardrailResponse;
import software.amazon.awssdk.services.bedrock.model.Tag;
import java.util.List;
import java.util.UUID;
@@ -23,7 +24,10 @@ import static org.junit.jupiter.api.Assertions.assertDoesNotThrow;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertThrows;
/** The resource policy actions are checked against the guardrail their {@code resourceArn} names. */
/**
* The resource policy and tagging actions are checked against the guardrail their ARN names, and a guardrail
* created with tags needs the tagging action as well.
*/
@QuarkusTest
@TestProfile(IamEnforcementProfile.class)
class BedrockResourcePolicyIamEnforcementIntegrationTest {
@@ -38,38 +42,23 @@ class BedrockResourcePolicyIamEnforcementIntegrationTest {
try (BedrockClient root = AwsTestClients.create(BedrockClient.builder(), ACCOUNT, Region.US_EAST_1)) {
CreateGuardrailResponse denied = create(root);
CreateGuardrailResponse allowed = create(root);
try {
String userName = "bedrock-policy-" + UUID.randomUUID();
EnforcementFixtures.UserCredentials credentials = EnforcementFixtures.createUser(
cleanup, RestAssured.port, auth(ACCOUNT, "iam"), userName);
EnforcementFixtures.putUserPolicy(RestAssured.port, auth(ACCOUNT, "iam"), userName, "p", """
{"Version":"2012-10-17","Statement":[
{"Effect":"Allow","Action":"bedrock:*","Resource":"*"},
{"Effect":"Deny","Action":["bedrock:PutResourcePolicy","bedrock:GetResourcePolicy",
"bedrock:DeleteResourcePolicy"],"Resource":"%s"}]}"""
.formatted(denied.guardrailArn()));
try (BedrockClient user = AwsTestClients.create(BedrockClient.builder(), credentials.accessKeyId(),
Region.US_EAST_1)) {
String allowedArn = allowed.guardrailArn();
String allowedPolicy = policy(allowedArn);
assertDoesNotThrow(() -> user.putResourcePolicy(r -> r.resourceArn(allowedArn)
.resourcePolicy(allowedPolicy)));
assertEquals(allowedPolicy, user.getResourcePolicy(r -> r.resourceArn(allowedArn)).resourcePolicy());
assertDoesNotThrow(() -> user.deleteResourcePolicy(r -> r.resourceArn(allowedArn)));
try (BedrockClient user = userWith(denyOn(denied.guardrailArn(), "bedrock:PutResourcePolicy",
"bedrock:GetResourcePolicy", "bedrock:DeleteResourcePolicy"))) {
String allowedArn = allowed.guardrailArn();
String allowedPolicy = policy(allowedArn);
assertDoesNotThrow(() -> user.putResourcePolicy(r -> r.resourceArn(allowedArn)
.resourcePolicy(allowedPolicy)));
assertEquals(allowedPolicy, user.getResourcePolicy(r -> r.resourceArn(allowedArn)).resourcePolicy());
assertDoesNotThrow(() -> user.deleteResourcePolicy(r -> r.resourceArn(allowedArn)));
String deniedArn = denied.guardrailArn();
String deniedPolicy = policy(deniedArn);
root.putResourcePolicy(r -> r.resourceArn(deniedArn).resourcePolicy(deniedPolicy));
List<Executable> refused = List.of(
() -> user.putResourcePolicy(r -> r.resourceArn(deniedArn).resourcePolicy(deniedPolicy)),
() -> user.getResourcePolicy(r -> r.resourceArn(deniedArn)),
() -> user.deleteResourcePolicy(r -> r.resourceArn(deniedArn)));
for (Executable call : refused) {
BedrockException error = assertThrows(BedrockException.class, call);
assertEquals("AccessDeniedException", error.awsErrorDetails().errorCode());
}
assertEquals(deniedPolicy, root.getResourcePolicy(r -> r.resourceArn(deniedArn)).resourcePolicy());
}
String deniedArn = denied.guardrailArn();
String deniedPolicy = policy(deniedArn);
root.putResourcePolicy(r -> r.resourceArn(deniedArn).resourcePolicy(deniedPolicy));
assertRefused(List.of(
() -> user.putResourcePolicy(r -> r.resourceArn(deniedArn).resourcePolicy(deniedPolicy)),
() -> user.getResourcePolicy(r -> r.resourceArn(deniedArn)),
() -> user.deleteResourcePolicy(r -> r.resourceArn(deniedArn))));
assertEquals(deniedPolicy, root.getResourcePolicy(r -> r.resourceArn(deniedArn)).resourcePolicy());
} finally {
root.deleteGuardrail(r -> r.guardrailIdentifier(denied.guardrailId()));
root.deleteGuardrail(r -> r.guardrailIdentifier(allowed.guardrailId()));
@@ -77,6 +66,76 @@ class BedrockResourcePolicyIamEnforcementIntegrationTest {
}
}
@Test
void aDenyOnOneGuardrailRefusesTheTagActionsOnItAndNotOnAnother() {
Tag tag = Tag.builder().key("team").value("search").build();
try (BedrockClient root = AwsTestClients.create(BedrockClient.builder(), ACCOUNT, Region.US_EAST_1)) {
CreateGuardrailResponse denied = create(root);
CreateGuardrailResponse allowed = create(root);
try (BedrockClient user = userWith(denyOn(denied.guardrailArn(), "bedrock:TagResource",
"bedrock:UntagResource", "bedrock:ListTagsForResource"))) {
String allowedArn = allowed.guardrailArn();
assertDoesNotThrow(() -> user.tagResource(r -> r.resourceARN(allowedArn).tags(tag)));
assertEquals(List.of(tag), user.listTagsForResource(r -> r.resourceARN(allowedArn)).tags());
assertDoesNotThrow(() -> user.untagResource(r -> r.resourceARN(allowedArn).tagKeys("team")));
String deniedArn = denied.guardrailArn();
root.tagResource(r -> r.resourceARN(deniedArn).tags(tag));
assertRefused(List.of(
() -> user.tagResource(r -> r.resourceARN(deniedArn).tags(tag)),
() -> user.listTagsForResource(r -> r.resourceARN(deniedArn)),
() -> user.untagResource(r -> r.resourceARN(deniedArn).tagKeys("team"))));
assertEquals(List.of(tag), root.listTagsForResource(r -> r.resourceARN(deniedArn)).tags());
} finally {
root.deleteGuardrail(r -> r.guardrailIdentifier(denied.guardrailId()));
root.deleteGuardrail(r -> r.guardrailIdentifier(allowed.guardrailId()));
}
}
}
@Test
void aGuardrailCreatedWithTagsNeedsTheTaggingAction() {
try (BedrockClient root = AwsTestClients.create(BedrockClient.builder(), ACCOUNT, Region.US_EAST_1);
BedrockClient user = userWith(denyOn("*", "bedrock:TagResource"))) {
CreateGuardrailResponse untagged = create(user);
try {
String name = "iam-tagged-" + UUID.randomUUID();
assertRefused(List.of(() -> user.createGuardrail(r -> r.name(name)
.blockedInputMessaging("blocked").blockedOutputsMessaging("blocked")
.tags(Tag.builder().key("team").value("search").build()))));
assertEquals(List.of(), root.listGuardrails(r -> { }).guardrails().stream()
.filter(guardrail -> name.equals(guardrail.name())).toList());
} finally {
root.deleteGuardrail(r -> r.guardrailIdentifier(untagged.guardrailId()));
}
}
}
/** A client for a new user allowed every Bedrock action, under the policy given. */
private BedrockClient userWith(String policy) {
String userName = "bedrock-iam-" + UUID.randomUUID();
EnforcementFixtures.UserCredentials credentials = EnforcementFixtures.createUser(
cleanup, RestAssured.port, auth(ACCOUNT, "iam"), userName);
EnforcementFixtures.putUserPolicy(RestAssured.port, auth(ACCOUNT, "iam"), userName, "p", policy);
return AwsTestClients.create(BedrockClient.builder(), credentials.accessKeyId(), Region.US_EAST_1);
}
/** A policy allowing every Bedrock action on every resource and denying the actions given on the one given. */
private static String denyOn(String resource, String... actions) {
String denied = String.join("\",\"", actions);
return """
{"Version":"2012-10-17","Statement":[
{"Effect":"Allow","Action":"bedrock:*","Resource":"*"},
{"Effect":"Deny","Action":["%s"],"Resource":"%s"}]}""".formatted(denied, resource);
}
private static void assertRefused(List<Executable> calls) {
for (Executable call : calls) {
BedrockException error = assertThrows(BedrockException.class, call);
assertEquals("AccessDeniedException", error.awsErrorDetails().errorCode());
}
}
private static CreateGuardrailResponse create(BedrockClient client) {
return client.createGuardrail(r -> r.name("iam-rp-" + UUID.randomUUID())
.blockedInputMessaging("blocked").blockedOutputsMessaging("blocked"));
@@ -2332,26 +2332,38 @@ class ResourceArnBuilderTest {
return builder.buildResources("dsql", operation, ctx, region, "000000000000", partition);
}
/**
* Bedrock's requests are read from the generated table on the route they match: a resource-policy route acts on
* the resource whose ARN it carries, in its path or in its body's {@code resourceArn} for PutResourcePolicy, and a
* guardrail route on the guardrail its path names.
*/
@Test
void bedrockResourcePolicyRoutesResolveTheArnTheyCarry() {
void aBedrockRequestIsCheckedOnTheResourceItsRouteNames() {
String guardrail = "arn:aws:bedrock:us-east-1:000000000000:guardrail/abc123def456";
for (String method : List.of("GET", "DELETE")) {
when(ctx.getMethod()).thenReturn(method);
when(uriInfo.getPath()).thenReturn("/resource-policy/" + guardrail);
assertEquals(List.of(guardrail), builder.buildResources("bedrock", ctx, "us-east-1", ACCOUNT), method);
// An SDK escapes a label's slashes, so the ARN is one segment of the path.
String encoded = "arn%3Aaws%3Abedrock%3Aus-east-1%3A000000000000%3Aguardrail%2Fabc123def456";
for (String[] call : List.of(new String[] {"GET", "GetResourcePolicy"},
new String[] {"DELETE", "DeleteResourcePolicy"})) {
when(ctx.getMethod()).thenReturn(call[0]);
request("/resource-policy/" + encoded);
assertEquals(List.of(guardrail), bedrock(call[1]), call[1]);
}
when(ctx.getMethod()).thenReturn("POST");
when(uriInfo.getPath()).thenReturn("/resource-policy");
request("/resource-policy");
setJsonBody("{\"resourceArn\":\"" + guardrail + "\",\"resourcePolicy\":\"{}\"}");
assertEquals(List.of(guardrail), builder.buildResources("bedrock", ctx, "us-east-1", ACCOUNT));
// A value that is not an ARN, and every other Bedrock route, name no resource.
assertEquals(List.of(guardrail), bedrock("PutResourcePolicy"));
// A value that is not an ARN names no resource.
setJsonBody("{\"resourceArn\":\"abc123def456\",\"resourcePolicy\":\"{}\"}");
assertEquals(List.of("*"), builder.buildResources("bedrock", ctx, "us-east-1", ACCOUNT));
assertEquals(List.of("*"), bedrock("PutResourcePolicy"));
when(ctx.getMethod()).thenReturn("GET");
when(uriInfo.getPath()).thenReturn("/resource-policy/abc123def456");
assertEquals(List.of("*"), builder.buildResources("bedrock", ctx, "us-east-1", ACCOUNT));
when(uriInfo.getPath()).thenReturn("/guardrails/abc123def456");
assertEquals(List.of("*"), builder.buildResources("bedrock", ctx, "us-east-1", ACCOUNT));
request("/resource-policy/abc123def456");
assertEquals(List.of("*"), bedrock("GetResourcePolicy"));
request("/guardrails/abc123def456");
assertEquals(List.of(guardrail), bedrock("GetGuardrail"));
}
private List<String> bedrock(String operation) {
return builder.buildResources("bedrock", "bedrock:" + operation, ctx, "us-east-1", ACCOUNT, "aws");
}
@Test
+7 -2
View File
@@ -304,10 +304,10 @@ NAMESPACES = ("access-analyzer", "account", "acm", "application-autoscaling", "a
"servicequotas", "ssm", "sso", "states", "textract", "timestream-influxdb", "translate", "signer", "xray",
"securityhub", "guardduty", "secretsmanager", "scheduler", "lambda", "cloudformation", "glue",
"sqs", "sns", "kinesis", "pipes", "dsql", "sts", "eks", "resource-groups", "logs",
"ec2-instance-connect", "s3")
"ec2-instance-connect", "s3", "bedrock")
# The namespaces whose resources ResourceArnBuilder builds itself.
HAND_BUILT = ("apigateway", "bedrock", "dynamodb", "iam", "kms")
HAND_BUILT = ("apigateway", "dynamodb", "iam", "kms")
# ---------------------------------------------------------------------------------------------------------------------
# MEASURED: what AWS was measured to check where neither botocore nor the Service Reference says it.
@@ -2844,6 +2844,11 @@ def pattern_words(pattern: str) -> set[str]:
part += char
parts.append(part)
words |= {found.group(0) for found in (re.match(r"[a-z][a-z0-9-]*", item) for item in parts) if found}
# A pattern whose account is optional, `([0-9]{12}|)`, gives each type word in an alternative of its own, as
# `:word/` or `:(one|two)/`: Bedrock's taggable ARNs, `...:([0-9]{12}|)((:(custom-model|...)/...)|(:guardrail/...))`.
for account in re.finditer(r"\{12\}\|\)", pattern):
for found in re.finditer(r":\(?([a-z][a-z0-9-]*(?:\|[a-z][a-z0-9-]*)*)\)?\\?/", pattern[account.end():]):
words |= set(found.group(1).split("|"))
return words
+2 -2
View File
@@ -106,7 +106,7 @@ OUTPUT = REPO_ROOT / "src/main/resources/aws/iam-tag-on-create.json"
# protocols and Smithy RPC v2 CBOR, and the REST ones whose routes Floci authorizes by operation.
NAMESPACES = (
"access-analyzer", "acm", "application-autoscaling", "athena", "autoscaling", "bcm-data-exports",
"bcm-pricing-calculator", "budgets", "ce", "cloudformation", "cloudhsm", "cloudtrail", "cloudwatch",
"bcm-pricing-calculator", "bedrock", "budgets", "ce", "cloudformation", "cloudhsm", "cloudtrail", "cloudwatch",
"codedeploy", "codepipeline", "cognito-identity", "cognito-idp", "comprehend", "config", "controltower", "cur",
"datasync", "dms", "dsql", "dynamodb", "ec2", "ecr", "ecs", "eks", "elasticache", "elasticloadbalancing",
"elasticmapreduce", "emr-containers", "emr-serverless", "es", "events", "firehose", "fis", "globalaccelerator",
@@ -126,7 +126,7 @@ _NO_ROUTES = "REST routes no rule maps yet"
NOT_COVERED = {
"airflow": _NO_ROUTES, "app-integrations": _NO_ROUTES, "appconfig": _NO_ROUTES, "appsync": _NO_ROUTES,
"aps": _NO_ROUTES, "aws-marketplace": _NO_ROUTES, "backup": _NO_ROUTES,
"batch": _NO_ROUTES, "bedrock": _NO_ROUTES, "bedrock-agentcore": _NO_ROUTES,
"batch": _NO_ROUTES, "bedrock-agentcore": _NO_ROUTES,
"cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet",
"codeguru-reviewer": _NO_ROUTES, "connect": _NO_ROUTES,
"detective": _NO_ROUTES, "dlm": _NO_ROUTES,
+3
View File
@@ -64,6 +64,9 @@ MODELS: dict[str, str] = {
"account": "account",
"apigateway": "apigateway",
"apigatewayv2": "apigateway",
"bedrock": "bedrock",
"bedrock-agent": "bedrock",
"bedrock-runtime": "bedrock",
"cloudfront": "cloudfront",
"cloudfront-keyvaluestore": "cloudfront-keyvaluestore",
"controlcatalog": "controlcatalog",
@@ -2160,6 +2160,10 @@ def test_an_arn_patterns_type_words_and_a_clients_versioned_twin():
assert r.pattern_words("arn:aws:svc:[a-z0-9-]+:([0-9]{12}):(bus-v2|subscriber|source-v2\\/(a|b))\\/[A-Za-z]+") == {
"bus-v2", "subscriber", "source-v2"}
assert r.pattern_words("(arn:aws[\\w-]*:svc:[a-z]+:[0-9]{12}:bus\\/)?[A-Za-z]+") == {"bus"}
# An optional account gives each type word in an alternative of its own (Bedrock's taggable ARNs).
assert r.pattern_words("(^arn:aws:svc:[a-z0-9-]{1,20}:[0-9]{12}:model/(imported)/[a-z0-9]{12}$)|"
"(^arn:aws:svc:[a-z0-9-]{1,20}:([0-9]{12}|)((:(job|model)/[a-z0-9]+$)|(:guardrail/[a-z0-9]+$)|"
"(:(profile|app-profile)/[a-z0-9]+$)))") == {"model", "job", "guardrail", "profile", "app-profile"}
formats = {"bus": "arn:${Partition}:svc:${Region}:${Account}:bus/${BusName}",
"busv2": "arn:${Partition}:svc:${Region}:${Account}:busv2/${BusName}/${OpaqueId}"}
model_ = documented("CreateBus", {"Name": ("String", "The name of the bus.")})