feat(iam): read ElastiCache from the generated tables (#9303)

Move `elasticache` from NOT_COVERED to NAMESPACES in
regen_iam_request_resources.py, so ElastiCache requests are checked on the
resources they name instead of `*`: a cache cluster, a replication group, a
parameter or subnet group, a snapshot, a user, a user group or a serverless
cache by the identifier its request names, as <type>:<name>, the ARN
ElastiCache mints. The tag calls name their resource in ResourceName, which
the table does not read, and stay on `*`.

ModifyUserGroup is also checked on each user its UserIdsToAdd and
UserIdsToRemove name, as the Service Reference lists the user type for it:
a type the action acts on that no resource names yet takes its one variable
from a list named after it with ToAdd or ToRemove. Over the whole table this
changes ModifyUserGroup and no other operation.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-23 20:07:23 -04:00
1 parent ad651873d6
commit 39290aa8be
7 files changed
+214 -7

No files matched your search

+12
View File
@@ -350,6 +350,18 @@ replication group is gone. The reference counts from the moment `CreateReplicati
the name, not from when the group is stored, so a delete that lands while that create is still
provisioning its container is refused too.
### IAM enforcement
With IAM enforcement on, each action is checked on the resources the AWS Service Authorization
Reference lists for it, read from the request: a cache cluster by its `CacheClusterId`, a
replication group by its `ReplicationGroupId`, a parameter group by its `CacheParameterGroupName`, a
subnet group by its `CacheSubnetGroupName`, a snapshot by its `SnapshotName`, a user by its `UserId`,
a user group by its `UserGroupId` (and, for `ModifyUserGroup`, each user its `UserIdsToAdd` and
`UserIdsToRemove` name) and a serverless cache by its `ServerlessCacheName`, each as
`arn:aws:elasticache:<region>:<account>:<type>:<name>`, the ARN ElastiCache mints. The tagging
calls name their resource in `ResourceName`, which is not read, so they are checked on `*`, as is a
Describe action naming no resource.
## Replicas and failover
The members of a cluster-mode-disabled replication group share one backend, so a replica is a
+1 -1
View File
@@ -2542,7 +2542,7 @@ AWS Data Exports, AWS Pricing Calculator, Cost Explorer, CloudTrail, Global Acce
Timestream for InfluxDB, Amazon Redshift, the Amazon Redshift Data API, AWS Payment Cryptography, AWS DataSync, Amazon EMR,
Amazon Rekognition, IAM Identity Center, Amazon Inspector, Amazon Macie, AWS Fault Injection Service, AWS Resource
Access Manager, CloudWatch Observability Access Manager, AWS Resource Explorer, AWS Account Management, AWS Control
Catalog, Amazon OpenSearch Service, IAM Access Analyzer, AWS Security Hub, Amazon GuardDuty, Lambda, AWS Glue, Amazon SQS, Amazon SNS, Amazon Kinesis Data Streams, Amazon EventBridge Pipes, Aurora DSQL, STS, Amazon EKS, AWS Resource Groups, Amazon CloudWatch Logs, Amazon CloudWatch, Amazon Comprehend, AWS Config and AWS DMS they come from a table generated from AWS's Service Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each
Catalog, Amazon OpenSearch Service, IAM Access Analyzer, AWS Security Hub, Amazon GuardDuty, Lambda, AWS Glue, Amazon SQS, Amazon SNS, Amazon Kinesis Data Streams, Amazon EventBridge Pipes, Aurora DSQL, STS, Amazon EKS, AWS Resource Groups, Amazon CloudWatch Logs, Amazon CloudWatch, Amazon Comprehend, AWS Config, AWS DMS and Amazon ElastiCache they come from a table generated from AWS's Service Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each
operation's action, the resource types that action acts on with their ARN formats, and the request
members that name them: a member holding a resource's ARN, which counts when it matches the format
of a type the action acts on, or members filling the variables of a type's format. Nothing in it is
@@ -1,11 +1,11 @@
{
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.44.9 (local/aws/botocore)", "retrieved": "2026-11-23", "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"], "apigateway": ["apigateway", "apigatewayv2"], "application-autoscaling": ["application-autoscaling"], "aps": ["amp"], "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"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb", "dynamodbstreams"], "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"], "iam": ["iam", "iam-toolbox"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "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"]},
"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", "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", "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", "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", "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 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", "identitystore": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "iot": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "kafka": "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", "lightsail": "not read yet: a later batch, wiLine truncated
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "apigateway": ["apigateway", "apigatewayv2"], "application-autoscaling": ["application-autoscaling"], "aps": ["amp"], "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"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb", "dynamodbstreams"], "ec2": ["ec2"], "ec2-instance-connect": ["ec2-instance-connect"], "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", "iam-toolbox"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "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"]},
"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", "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", "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", "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", "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 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", "identitystore": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "iot": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "kafka": "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", "lightsail": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "memorydb": "not read yet: a later batch, with Line 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}"}, "apigateway": {"AccessLogSettings": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/accesslogsettings", "Account": "arn:${Partition}:apigateway:${Region}::/account", "Api": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}", "ApiKey": "arn:${Partition}:apigateway:${Region}::/apikeys/${ApiKeyId}", "ApiKeys": "arn:${Partition}:apigateway:${Region}::/apikeys", "ApiMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings/${ApiMappingId}", "ApiMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings", "Apis": "arn:${Partition}:apigateway:${Region}::/apis", "Authorizer": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers/${AuthorizerId}", "Authorizers": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers", "AuthorizersCache": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/cache/authorizers", "BasePathMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings/${BasePath}", "BasePathMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings", "ClientCertificate": "arn:${Partition}:apigateway:${Region}::/clientcertificates/${ClientCertificateId}", "ClientCertificates": "arn:${Partition}:apigateway:${Region}::/clientcertificates", "Cors": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/cors", "Deployment": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments/${DeploymentId}", "Deployments": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments", "DocumentationPart": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts/${DocumentationPartId}", "DocumentationParts": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts", "DocumentationVersion": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions/${DocumentationVersionId}", "DocumentationVersions": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions", "DomainName": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}", "DomainNameAccessAssociation": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations/domainname/${DomainName}/${SourceType}/${SourceId}", "DomainNameAccessAssociations": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations", "DomainNames": "arn:${Partition}:apigateway:${Region}::/domainnames", "ExportedAPI": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/exports/${Specification}", "GatewayResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses/${ResponseType}", "GatewayResponses": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses", "Integration": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}", "IntegrationResponse": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses/${IntegrationResponseId}", "IntegrationResponses": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses", "Integrations": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations", "Method": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}", "MethodResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}/responses/${StatusCode}", "Model": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}", "ModelTemplate": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}/template", "Models": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models", "Portal": "arn:${Partition}:apigateway:${Region}:${Account}:/portals/${PortalId}", "PortalProduct": "arn:${Partition}:apigateway:${Region}:${Account}:/portalproducts/$Line 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}"}, "apigateway": {"AccessLogSettings": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/accesslogsettings", "Account": "arn:${Partition}:apigateway:${Region}::/account", "Api": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}", "ApiKey": "arn:${Partition}:apigateway:${Region}::/apikeys/${ApiKeyId}", "ApiKeys": "arn:${Partition}:apigateway:${Region}::/apikeys", "ApiMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings/${ApiMappingId}", "ApiMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings", "Apis": "arn:${Partition}:apigateway:${Region}::/apis", "Authorizer": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers/${AuthorizerId}", "Authorizers": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers", "AuthorizersCache": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/cache/authorizers", "BasePathMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings/${BasePath}", "BasePathMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings", "ClientCertificate": "arn:${Partition}:apigateway:${Region}::/clientcertificates/${ClientCertificateId}", "ClientCertificates": "arn:${Partition}:apigateway:${Region}::/clientcertificates", "Cors": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/cors", "Deployment": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments/${DeploymentId}", "Deployments": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments", "DocumentationPart": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts/${DocumentationPartId}", "DocumentationParts": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts", "DocumentationVersion": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions/${DocumentationVersionId}", "DocumentationVersions": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions", "DomainName": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}", "DomainNameAccessAssociation": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations/domainname/${DomainName}/${SourceType}/${SourceId}", "DomainNameAccessAssociations": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations", "DomainNames": "arn:${Partition}:apigateway:${Region}::/domainnames", "ExportedAPI": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/exports/${Specification}", "GatewayResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses/${ResponseType}", "GatewayResponses": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses", "Integration": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}", "IntegrationResponse": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses/${IntegrationResponseId}", "IntegrationResponses": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses", "Integrations": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations", "Method": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}", "MethodResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}/responses/${StatusCode}", "Model": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}", "ModelTemplate": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}/template", "Models": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models", "Portal": "arn:${Partition}:apigateway:${Region}:${Account}:/portals/${PortalId}", "PortalProduct": "arn:${Partition}:apigateway:${Region}:${Account}:/portalproducts/$Line truncated
"pathFormats": {"apigateway": {"/restapis/{restapi_id}/models/{model_name}/default_template (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/models/${ModelName}/default_template", "/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/cache/authorizers", "/restapis/{restapi_id}/stages/{stage_name}/cache/data (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/cache/data", "/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type} (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/exports/${ExportType}", "/sdktypes (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/sdktypes", "/sdktypes/{sdktype_id} (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/sdktypes/${SdktypeId}", "/usageplans/{usageplanId}/keys/{keyId}/usage (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/usageplans/${UsageplanId}/keys/${KeyId}/usage", "/usageplans/{usageplanId}/usage (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/usageplans/${UsageplanId}/usage", "Authorizer (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/authorizers/${Id}", "Authorizers (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/authorizers", "Deployment (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/deployments/${Id}", "Deployments (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/deployments", "Integration (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/resources/${ResourceId}/methods/${HttpMethod}/integration", "IntegrationResponse (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/resources/${ResourceId}/methods/${HttpMethod}/integration/responses/${StatusCode}", "Model (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/models/${ModelName}", "Models (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/models", "Stage (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/stages/${StageName}", "Stages (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/stages"}},
"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/"]}, "apigateway": {"AccessLogSettings": ["aws:ResourceTag/"], "Api": ["aws:ResourceTag/"], "ApiKey": ["aws:ResourceTag/"], "ApiKeys": ["aws:ResourceTag/"], "ApiMapping": ["aws:ResourceTag/"], "ApiMappings": ["aws:ResourceTag/"], "Apis": ["aws:ResourceTag/"], "Authorizer": ["aws:ResourceTag/"], "Authorizers": ["aws:ResourceTag/"], "AuthorizersCache": ["aws:ResourceTag/"], "BasePathMapping": ["aws:ResourceTag/"], "BasePathMappings": ["aws:ResourceTag/"], "ClientCertificate": ["aws:ResourceTag/"], "ClientCertificates": ["aws:ResourceTag/"], "Cors": ["aws:ResourceTag/"], "Deployment": ["aws:ResourceTag/"], "Deployments": ["aws:ResourceTag/"], "DocumentationPart": ["aws:ResourceTag/"], "DocumentationParts": ["aws:ResourceTag/"], "DocumentationVersion": ["aws:ResourceTag/"], "DocumentationVersions": ["aws:ResourceTag/"], "DomainName": ["aws:ResourceTag/"], "DomainNameAccessAssociations": ["aws:ResourceTag/"], "DomainNames": ["aws:ResourceTag/"], "ExportedAPI": ["aws:ResourceTag/"], "GatewayResponse": ["aws:ResourceTag/"], "GatewayResponses": ["aws:ResourceTag/"], "Integration": ["aws:ResourceTag/"], "IntegrationResponse": ["aws:ResourceTag/"], "IntegrationResponses": ["aws:ResourceTag/"], "Integrations": ["aws:ResourceTag/"], "Method": ["aws:ResourceTag/"], "MethodResponse": ["aws:ResourceTag/"], "Model": ["aws:ResourceTag/"], "ModelTemplate": ["aws:ResourceTag/"], "Models": ["aws:ResourceTag/"], "Portal": ["aws:ResourceTag/"], "PortalProduct": ["aws:ResourceTag/"], "PrivateBasePathMapping": ["aws:ResourceTag/"], "PrivateBasePathMappings": ["aws:ResourceTag/"], "PrivateDomainName": ["aws:ResourceTag/"], "ProductPage": ["aws:ResourceTag/"], "ProductRestEndpointPage": ["aws:ResourceTag/"], "RequestValidator": ["aws:ResourceTag/"], "RequestValidators": ["aws:ResourceTag/"], "Resource": ["aws:ResourceTag/"], "Resources": ["aws:ResourceTag/"], "RestApi": ["aws:ResourceTag/"], "RestApis": ["aws:ResourceTag/"], "Route": ["aws:ResourceTag/"], "RouteRequestParameter": ["aws:ResourceTag/"], "RouteResponse": ["aws:ResourceTag/"], "RouteResponses": ["aws:ResourceTag/"], "RouteSettings": ["aws:ResourceTag/"], "Routes": ["aws:ResourceTag/"], "RoutingRule": ["aws:ResourceTag/"], "Sdk": ["aws:ResourceTag/"], "Stage": ["aws:ResourceTag/"], "Stages": ["aws:ResourceTag/"], "Template": ["aws:ResourceTag/"], "UsagePlan": ["aws:ResourceTag/"], "UsagePlanKey": ["aws:ResourceTag/"], "UsagePlanKeys": ["aws:ResourceTag/"], "UsagePlans": ["aws:ResourceTag/"], "VpcLink": ["aws:ResourceTag/"], "VpcLinks": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "aps": {"anomalydetector": ["aws:ResourceTag/"], "cluster": ["aws:ResourceTag/"], "rulegroupsnamespace": ["aws:ResourceTag/"], "scraper": ["aws:ResourceTag/"], "workspace": ["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/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/"]}, "apigateway": {"AccessLogSettings": ["aws:ResourceTag/"], "Api": ["aws:ResourceTag/"], "ApiKey": ["aws:ResourceTag/"], "ApiKeys": ["aws:ResourceTag/"], "ApiMapping": ["aws:ResourceTag/"], "ApiMappings": ["aws:ResourceTag/"], "Apis": ["aws:ResourceTag/"], "Authorizer": ["aws:ResourceTag/"], "Authorizers": ["aws:ResourceTag/"], "AuthorizersCache": ["aws:ResourceTag/"], "BasePathMapping": ["aws:ResourceTag/"], "BasePathMappings": ["aws:ResourceTag/"], "ClientCertificate": ["aws:ResourceTag/"], "ClientCertificates": ["aws:ResourceTag/"], "Cors": ["aws:ResourceTag/"], "Deployment": ["aws:ResourceTag/"], "Deployments": ["aws:ResourceTag/"], "DocumentationPart": ["aws:ResourceTag/"], "DocumentationParts": ["aws:ResourceTag/"], "DocumentationVersion": ["aws:ResourceTag/"], "DocumentationVersions": ["aws:ResourceTag/"], "DomainName": ["aws:ResourceTag/"], "DomainNameAccessAssociations": ["aws:ResourceTag/"], "DomainNames": ["aws:ResourceTag/"], "ExportedAPI": ["aws:ResourceTag/"], "GatewayResponse": ["aws:ResourceTag/"], "GatewayResponses": ["aws:ResourceTag/"], "Integration": ["aws:ResourceTag/"], "IntegrationResponse": ["aws:ResourceTag/"], "IntegrationResponses": ["aws:ResourceTag/"], "Integrations": ["aws:ResourceTag/"], "Method": ["aws:ResourceTag/"], "MethodResponse": ["aws:ResourceTag/"], "Model": ["aws:ResourceTag/"], "ModelTemplate": ["aws:ResourceTag/"], "Models": ["aws:ResourceTag/"], "Portal": ["aws:ResourceTag/"], "PortalProduct": ["aws:ResourceTag/"], "PrivateBasePathMapping": ["aws:ResourceTag/"], "PrivateBasePathMappings": ["aws:ResourceTag/"], "PrivateDomainName": ["aws:ResourceTag/"], "ProductPage": ["aws:ResourceTag/"], "ProductRestEndpointPage": ["aws:ResourceTag/"], "RequestValidator": ["aws:ResourceTag/"], "RequestValidators": ["aws:ResourceTag/"], "Resource": ["aws:ResourceTag/"], "Resources": ["aws:ResourceTag/"], "RestApi": ["aws:ResourceTag/"], "RestApis": ["aws:ResourceTag/"], "Route": ["aws:ResourceTag/"], "RouteRequestParameter": ["aws:ResourceTag/"], "RouteResponse": ["aws:ResourceTag/"], "RouteResponses": ["aws:ResourceTag/"], "RouteSettings": ["aws:ResourceTag/"], "Routes": ["aws:ResourceTag/"], "RoutingRule": ["aws:ResourceTag/"], "Sdk": ["aws:ResourceTag/"], "Stage": ["aws:ResourceTag/"], "Stages": ["aws:ResourceTag/"], "Template": ["aws:ResourceTag/"], "UsagePlan": ["aws:ResourceTag/"], "UsagePlanKey": ["aws:ResourceTag/"], "UsagePlanKeys": ["aws:ResourceTag/"], "UsagePlans": ["aws:ResourceTag/"], "VpcLink": ["aws:ResourceTag/"], "VpcLinks": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "aps": {"anomalydetector": ["aws:ResourceTag/"], "cluster": ["aws:ResourceTag/"], "rulegroupsnamespace": ["aws:ResourceTag/"], "scraper": ["aws:ResourceTag/"], "workspace": ["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/Line 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"]},
@@ -3105,6 +3105,83 @@
"eks:UpdateNodegroupConfig": {"action": "eks:UpdateNodegroupConfig", "types": ["nodegroup"], "resources": [{"type": "nodegroup", "fill": {"ClusterName": "clusterName", "NodegroupName": "nodegroupName"}}], "located": {"clusterName": "{name}", "nodegroupName": "{nodegroupName}"}},
"eks:UpdateNodegroupVersion": {"action": "eks:UpdateNodegroupVersion", "types": ["nodegroup"], "resources": [{"type": "nodegroup", "fill": {"ClusterName": "clusterName", "NodegroupName": "nodegroupName"}}], "located": {"clusterName": "{name}", "nodegroupName": "{nodegroupName}"}},
"eks:UpdatePodIdentityAssociation": {"action": "eks:UpdatePodIdentityAssociation", "types": ["podidentityassociation"], "resources": [{"types": ["podidentityassociation"], "arn": "roleArn"}, {"types": ["podidentityassociation"], "arn": "targetRoleArn"}, {"type": "podidentityassociation", "fill": {"ClusterName": "clusterName"}}], "located": {"clusterName": "{name}"}},
"elasticache:AddTagsToResource": {"action": "elasticache:AddTagsToResource", "types": ["cluster", "globalreplicationgroup", "parametergroup", "replicationgroup", "reserved-instance", "securitygroup", "serverlesscache", "serverlesscachesnapshot", "snapshot", "subnetgroup", "user", "usergroup"], "resources": []},
"elasticache:AuthorizeCacheSecurityGroupIngress": {"action": "elasticache:AuthorizeCacheSecurityGroupIngress", "types": ["securitygroup"], "resources": [{"type": "securitygroup", "fill": {"CacheSecurityGroupName": "CacheSecurityGroupName"}}]},
"elasticache:BatchApplyUpdateAction": {"action": "elasticache:BatchApplyUpdateAction", "types": ["cluster", "replicationgroup"], "resources": [{"type": "cluster", "fill": {"CacheClusterId": "CacheClusterIds[]"}}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupIds[]"}}]},
"elasticache:BatchStopUpdateAction": {"action": "elasticache:BatchStopUpdateAction", "types": ["cluster", "replicationgroup"], "resources": [{"type": "cluster", "fill": {"CacheClusterId": "CacheClusterIds[]"}}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupIds[]"}}]},
"elasticache:CompleteMigration": {"action": "elasticache:CompleteMigration", "types": ["cluster", "replicationgroup"], "resources": [{"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}]},
"elasticache:CopyServerlessCacheSnapshot": {"action": "elasticache:CopyServerlessCacheSnapshot", "types": ["serverlesscachesnapshot"], "resources": [{"type": "serverlesscachesnapshot", "fill": {"ServerlessCacheSnapshotName": "SourceServerlessCacheSnapshotName"}}]},
"elasticache:CopySnapshot": {"action": "elasticache:CopySnapshot", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotName": "SourceSnapshotName"}}]},
"elasticache:CreateCacheCluster": {"action": "elasticache:CreateCacheCluster", "types": ["cluster", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup"], "resources": [{"types": ["cluster", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup"], "arn": "NotificationTopicArn"}, {"types": ["cluster", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup"], "arn": "PreferredOutpostArn"}, {"types": ["cluster", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup"], "arn": "PreferredOutpostArns[]"}, {"types": ["cluster", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup"], "arn": "SnapshotArns[]"}, {"type": "cluster", "fill": {"CacheClusterId": "CacheClusterId"}, "made": true}, {"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}, {"type": "securitygroup", "fill": {"CacheSecurityGroupName": "CacheSecurityGroupNames[]"}}, {"type": "snapshot", "fill": {"SnapshotName": "SnapshotName"}}, {"type": "subnetgroup", "fill": {"CacheSubnetGroupName": "CacheSubnetGroupName"}}]},
"elasticache:CreateCacheParameterGroup": {"action": "elasticache:CreateCacheParameterGroup", "types": ["parametergroup"], "resources": [{"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}]},
"elasticache:CreateCacheSecurityGroup": {"action": "elasticache:CreateCacheSecurityGroup", "types": ["securitygroup"], "resources": [{"type": "securitygroup", "fill": {"CacheSecurityGroupName": "CacheSecurityGroupName"}}]},
"elasticache:CreateCacheSubnetGroup": {"action": "elasticache:CreateCacheSubnetGroup", "types": ["subnetgroup"], "resources": [{"type": "subnetgroup", "fill": {"CacheSubnetGroupName": "CacheSubnetGroupName"}}]},
"elasticache:CreateGlobalReplicationGroup": {"action": "elasticache:CreateGlobalReplicationGroup", "types": ["globalreplicationgroup", "replicationgroup"], "resources": [{"type": "globalreplicationgroup", "fill": {}}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "PrimaryReplicationGroupId"}}]},
"elasticache:CreateReplicationGroup": {"action": "elasticache:CreateReplicationGroup", "types": ["cluster", "globalreplicationgroup", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup", "usergroup"], "resources": [{"types": ["cluster", "globalreplicationgroup", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup", "usergroup"], "arn": "NodeGroupConfiguration[].PrimaryOutpostArn"}, {"types": ["cluster", "globalreplicationgroup", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup", "usergroup"], "arn": "NodeGroupConfiguration[].ReplicaOutpostArns[]"}, {"types": ["cluster", "globalreplicationgroup", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup", "usergroup"], "arn": "NotificationTopicArn"}, {"types": ["cluster", "globalreplicationgroup", "parametergroup", "replicationgroup", "securitygroup", "snapshot", "subnetgroup", "usergroup"], "arn": "SnapshotArns[]"}, {"type": "cluster", "fill": {"CacheClusterId": "PrimaryClusterId"}}, {"type": "globalreplicationgroup", "fill": {"GlobalReplicationGroupId": "GlobalReplicationGroupId"}, "made": true}, {"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}, "made": true}, {"type": "securitygroup", "fill": {"CacheSecurityGroupName": "CacheSecurityGroupNames[]"}}, {"type": "snapshot", "fill": {"SnapshotName": "SnapshotName"}}, {"type": "subnetgroup", "fill": {"CacheSubnetGroupName": "CacheSubnetGroupName"}}, {"type": "usergroup", "fill": {"UserGroupId": "UserGroupIds[]"}}]},
"elasticache:CreateServerlessCache": {"action": "elasticache:CreateServerlessCache", "types": ["serverlesscache", "serverlesscachesnapshot", "snapshot", "usergroup"], "resources": [{"type": "serverlesscache", "fill": {"ServerlessCacheName": "ServerlessCacheName"}, "made": true}, {"type": "usergroup", "fill": {"UserGroupId": "UserGroupId"}}]},
"elasticache:CreateServerlessCacheSnapshot": {"action": "elasticache:CreateServerlessCacheSnapshot", "types": ["serverlesscache", "serverlesscachesnapshot"], "resources": [{"type": "serverlesscache", "fill": {"ServerlessCacheName": "ServerlessCacheName"}}, {"type": "serverlesscachesnapshot", "fill": {"ServerlessCacheSnapshotName": "ServerlessCacheSnapshotName"}, "made": true}]},
"elasticache:CreateSnapshot": {"action": "elasticache:CreateSnapshot", "types": ["cluster", "replicationgroup", "snapshot"], "resources": [{"type": "cluster", "fill": {"CacheClusterId": "CacheClusterId"}}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}, {"type": "snapshot", "fill": {"SnapshotName": "SnapshotName"}, "made": true}]},
"elasticache:CreateUser": {"action": "elasticache:CreateUser", "types": ["user"], "resources": [{"type": "user", "fill": {"UserId": "UserId"}}]},
"elasticache:CreateUserGroup": {"action": "elasticache:CreateUserGroup", "types": ["user", "usergroup"], "resources": [{"type": "user", "fill": {"UserId": "UserIds[]"}}, {"type": "usergroup", "fill": {"UserGroupId": "UserGroupId"}, "made": true}]},
"elasticache:DecreaseNodeGroupsInGlobalReplicationGroup": {"action": "elasticache:DecreaseNodeGroupsInGlobalReplicationGroup", "types": ["globalreplicationgroup"], "resources": [{"type": "globalreplicationgroup", "fill": {"GlobalReplicationGroupId": "GlobalReplicationGroupId"}}]},
"elasticache:DecreaseReplicaCount": {"action": "elasticache:DecreaseReplicaCount", "types": ["replicationgroup"], "resources": [{"types": ["replicationgroup"], "arn": "ReplicaConfiguration[].PreferredOutpostArns[]"}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}]},
"elasticache:DeleteCacheCluster": {"action": "elasticache:DeleteCacheCluster", "types": ["cluster", "snapshot"], "resources": [{"type": "cluster", "fill": {"CacheClusterId": "CacheClusterId"}}, {"type": "snapshot", "fill": {"SnapshotName": "FinalSnapshotIdentifier"}}]},
"elasticache:DeleteCacheParameterGroup": {"action": "elasticache:DeleteCacheParameterGroup", "types": ["parametergroup"], "resources": [{"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}]},
"elasticache:DeleteCacheSecurityGroup": {"action": "elasticache:DeleteCacheSecurityGroup", "types": ["securitygroup"], "resources": [{"type": "securitygroup", "fill": {"CacheSecurityGroupName": "CacheSecurityGroupName"}}]},
"elasticache:DeleteCacheSubnetGroup": {"action": "elasticache:DeleteCacheSubnetGroup", "types": ["subnetgroup"], "resources": [{"type": "subnetgroup", "fill": {"CacheSubnetGroupName": "CacheSubnetGroupName"}}]},
"elasticache:DeleteGlobalReplicationGroup": {"action": "elasticache:DeleteGlobalReplicationGroup", "types": ["globalreplicationgroup"], "resources": [{"type": "globalreplicationgroup", "fill": {"GlobalReplicationGroupId": "GlobalReplicationGroupId"}}]},
"elasticache:DeleteReplicationGroup": {"action": "elasticache:DeleteReplicationGroup", "types": ["replicationgroup", "snapshot"], "resources": [{"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}, {"type": "snapshot", "fill": {"SnapshotName": "FinalSnapshotIdentifier"}}]},
"elasticache:DeleteServerlessCache": {"action": "elasticache:DeleteServerlessCache", "types": ["serverlesscache", "serverlesscachesnapshot"], "resources": [{"type": "serverlesscache", "fill": {"ServerlessCacheName": "ServerlessCacheName"}}]},
"elasticache:DeleteServerlessCacheSnapshot": {"action": "elasticache:DeleteServerlessCacheSnapshot", "types": ["serverlesscachesnapshot"], "resources": [{"type": "serverlesscachesnapshot", "fill": {"ServerlessCacheSnapshotName": "ServerlessCacheSnapshotName"}}]},
"elasticache:DeleteSnapshot": {"action": "elasticache:DeleteSnapshot", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotName": "SnapshotName"}}]},
"elasticache:DeleteUser": {"action": "elasticache:DeleteUser", "types": ["user"], "resources": [{"type": "user", "fill": {"UserId": "UserId"}}]},
"elasticache:DeleteUserGroup": {"action": "elasticache:DeleteUserGroup", "types": ["usergroup"], "resources": [{"type": "usergroup", "fill": {"UserGroupId": "UserGroupId"}}]},
"elasticache:DescribeCacheClusters": {"action": "elasticache:DescribeCacheClusters", "types": ["cluster"], "resources": [{"type": "cluster", "fill": {"CacheClusterId": "CacheClusterId"}}]},
"elasticache:DescribeCacheEngineVersions": {"action": "elasticache:DescribeCacheEngineVersions", "types": [], "resources": []},
"elasticache:DescribeCacheParameterGroups": {"action": "elasticache:DescribeCacheParameterGroups", "types": ["parametergroup"], "resources": [{"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}]},
"elasticache:DescribeCacheParameters": {"action": "elasticache:DescribeCacheParameters", "types": ["parametergroup"], "resources": [{"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}]},
"elasticache:DescribeCacheSecurityGroups": {"action": "elasticache:DescribeCacheSecurityGroups", "types": ["securitygroup"], "resources": [{"type": "securitygroup", "fill": {"CacheSecurityGroupName": "CacheSecurityGroupName"}}]},
"elasticache:DescribeCacheSubnetGroups": {"action": "elasticache:DescribeCacheSubnetGroups", "types": ["subnetgroup"], "resources": [{"type": "subnetgroup", "fill": {"CacheSubnetGroupName": "CacheSubnetGroupName"}}]},
"elasticache:DescribeEngineDefaultParameters": {"action": "elasticache:DescribeEngineDefaultParameters", "types": [], "resources": []},
"elasticache:DescribeEvents": {"action": "elasticache:DescribeEvents", "types": [], "resources": []},
"elasticache:DescribeGlobalReplicationGroups": {"action": "elasticache:DescribeGlobalReplicationGroups", "types": ["globalreplicationgroup"], "resources": [{"type": "globalreplicationgroup", "fill": {"GlobalReplicationGroupId": "GlobalReplicationGroupId"}}]},
"elasticache:DescribeReplicationGroups": {"action": "elasticache:DescribeReplicationGroups", "types": ["replicationgroup"], "resources": [{"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}]},
"elasticache:DescribeReservedCacheNodes": {"action": "elasticache:DescribeReservedCacheNodes", "types": ["reserved-instance"], "resources": [{"type": "reserved-instance", "fill": {"ReservedCacheNodeId": "ReservedCacheNodeId"}}]},
"elasticache:DescribeReservedCacheNodesOfferings": {"action": "elasticache:DescribeReservedCacheNodesOfferings", "types": [], "resources": []},
"elasticache:DescribeServerlessCacheSnapshots": {"action": "elasticache:DescribeServerlessCacheSnapshots", "types": ["serverlesscache", "serverlesscachesnapshot"], "resources": [{"type": "serverlesscache", "fill": {"ServerlessCacheName": "ServerlessCacheName"}}, {"type": "serverlesscachesnapshot", "fill": {"ServerlessCacheSnapshotName": "ServerlessCacheSnapshotName"}}]},
"elasticache:DescribeServerlessCaches": {"action": "elasticache:DescribeServerlessCaches", "types": ["serverlesscache"], "resources": [{"type": "serverlesscache", "fill": {"ServerlessCacheName": "ServerlessCacheName"}}]},
"elasticache:DescribeServiceUpdates": {"action": "elasticache:DescribeServiceUpdates", "types": [], "resources": []},
"elasticache:DescribeSnapshots": {"action": "elasticache:DescribeSnapshots", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotName": "SnapshotName"}}]},
"elasticache:DescribeUpdateActions": {"action": "elasticache:DescribeUpdateActions", "types": ["cluster", "replicationgroup"], "resources": [{"type": "cluster", "fill": {"CacheClusterId": "CacheClusterIds[]"}}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupIds[]"}}]},
"elasticache:DescribeUserGroups": {"action": "elasticache:DescribeUserGroups", "types": ["usergroup"], "resources": [{"type": "usergroup", "fill": {"UserGroupId": "UserGroupId"}}]},
"elasticache:DescribeUsers": {"action": "elasticache:DescribeUsers", "types": ["user"], "resources": [{"type": "user", "fill": {"UserId": "UserId"}}]},
"elasticache:DisassociateGlobalReplicationGroup": {"action": "elasticache:DisassociateGlobalReplicationGroup", "types": ["globalreplicationgroup"], "resources": [{"type": "globalreplicationgroup", "fill": {"GlobalReplicationGroupId": "GlobalReplicationGroupId"}}]},
"elasticache:ExportServerlessCacheSnapshot": {"action": "elasticache:ExportServerlessCacheSnapshot", "types": ["serverlesscachesnapshot"], "resources": [{"type": "serverlesscachesnapshot", "fill": {"ServerlessCacheSnapshotName": "ServerlessCacheSnapshotName"}}]},
"elasticache:FailoverGlobalReplicationGroup": {"action": "elasticache:FailoverGlobalReplicationGroup", "types": ["globalreplicationgroup"], "resources": [{"type": "globalreplicationgroup", "fill": {"GlobalReplicationGroupId": "GlobalReplicationGroupId"}}]},
"elasticache:IncreaseNodeGroupsInGlobalReplicationGroup": {"action": "elasticache:IncreaseNodeGroupsInGlobalReplicationGroup", "types": ["globalreplicationgroup"], "resources": [{"type": "globalreplicationgroup", "fill": {"GlobalReplicationGroupId": "GlobalReplicationGroupId"}}]},
"elasticache:IncreaseReplicaCount": {"action": "elasticache:IncreaseReplicaCount", "types": ["replicationgroup"], "resources": [{"types": ["replicationgroup"], "arn": "ReplicaConfiguration[].PreferredOutpostArns[]"}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}]},
"elasticache:ListAllowedNodeTypeModifications": {"action": "elasticache:ListAllowedNodeTypeModifications", "types": ["cluster", "replicationgroup"], "resources": [{"type": "cluster", "fill": {"CacheClusterId": "CacheClusterId"}}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}]},
"elasticache:ListTagsForResource": {"action": "elasticache:ListTagsForResource", "types": ["cluster", "parametergroup", "replicationgroup", "reserved-instance", "securitygroup", "serverlesscache", "serverlesscachesnapshot", "snapshot", "subnetgroup", "user", "usergroup"], "resources": []},
"elasticache:ModifyCacheCluster": {"action": "elasticache:ModifyCacheCluster", "types": ["cluster", "parametergroup", "securitygroup"], "resources": [{"types": ["cluster", "parametergroup", "securitygroup"], "arn": "NotificationTopicArn"}, {"type": "cluster", "fill": {"CacheClusterId": "CacheClusterId"}}, {"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}, {"type": "securitygroup", "fill": {"CacheSecurityGroupName": "CacheSecurityGroupNames[]"}}]},
"elasticache:ModifyCacheParameterGroup": {"action": "elasticache:ModifyCacheParameterGroup", "types": ["parametergroup"], "resources": [{"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}]},
"elasticache:ModifyCacheSubnetGroup": {"action": "elasticache:ModifyCacheSubnetGroup", "types": ["subnetgroup"], "resources": [{"type": "subnetgroup", "fill": {"CacheSubnetGroupName": "CacheSubnetGroupName"}}]},
"elasticache:ModifyGlobalReplicationGroup": {"action": "elasticache:ModifyGlobalReplicationGroup", "types": ["globalreplicationgroup"], "resources": [{"type": "globalreplicationgroup", "fill": {"GlobalReplicationGroupId": "GlobalReplicationGroupId"}}]},
"elasticache:ModifyReplicationGroup": {"action": "elasticache:ModifyReplicationGroup", "types": ["parametergroup", "replicationgroup", "securitygroup", "usergroup"], "resources": [{"types": ["parametergroup", "replicationgroup", "securitygroup", "usergroup"], "arn": "NotificationTopicArn"}, {"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}, {"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}, {"type": "securitygroup", "fill": {"CacheSecurityGroupName": "CacheSecurityGroupNames[]"}}, {"type": "usergroup", "fill": {"UserGroupId": "UserGroupIdsToAdd[]"}}]},
"elasticache:ModifyReplicationGroupShardConfiguration": {"action": "elasticache:ModifyReplicationGroupShardConfiguration", "types": ["replicationgroup"], "resources": [{"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}]},
"elasticache:ModifyServerlessCache": {"action": "elasticache:ModifyServerlessCache", "types": ["serverlesscache", "usergroup"], "resources": [{"type": "serverlesscache", "fill": {"ServerlessCacheName": "ServerlessCacheName"}}, {"type": "usergroup", "fill": {"UserGroupId": "UserGroupId"}}]},
"elasticache:ModifyUser": {"action": "elasticache:ModifyUser", "types": ["user"], "resources": [{"type": "user", "fill": {"UserId": "UserId"}}]},
"elasticache:ModifyUserGroup": {"action": "elasticache:ModifyUserGroup", "types": ["user", "usergroup"], "resources": [{"type": "usergroup", "fill": {"UserGroupId": "UserGroupId"}}, {"type": "user", "fill": {"UserId": "UserIdsToAdd[]"}}, {"type": "user", "fill": {"UserId": "UserIdsToRemove[]"}}]},
"elasticache:PrepareMigration": {"action": "elasticache:PrepareMigration", "types": [], "resources": []},
"elasticache:PurchaseReservedCacheNodesOffering": {"action": "elasticache:PurchaseReservedCacheNodesOffering", "types": ["reserved-instance"], "resources": [{"type": "reserved-instance", "fill": {"ReservedCacheNodeId": "ReservedCacheNodeId"}}]},
"elasticache:RebalanceSlotsInGlobalReplicationGroup": {"action": "elasticache:RebalanceSlotsInGlobalReplicationGroup", "types": ["globalreplicationgroup"], "resources": [{"type": "globalreplicationgroup", "fill": {"GlobalReplicationGroupId": "GlobalReplicationGroupId"}}]},
"elasticache:RebootCacheCluster": {"action": "elasticache:RebootCacheCluster", "types": ["cluster"], "resources": [{"type": "cluster", "fill": {"CacheClusterId": "CacheClusterId"}}]},
"elasticache:RemoveTagsFromResource": {"action": "elasticache:RemoveTagsFromResource", "types": ["cluster", "globalreplicationgroup", "parametergroup", "replicationgroup", "reserved-instance", "securitygroup", "serverlesscache", "serverlesscachesnapshot", "snapshot", "subnetgroup", "user", "usergroup"], "resources": []},
"elasticache:ResetCacheParameterGroup": {"action": "elasticache:ResetCacheParameterGroup", "types": ["parametergroup"], "resources": [{"type": "parametergroup", "fill": {"CacheParameterGroupName": "CacheParameterGroupName"}}]},
"elasticache:RevokeCacheSecurityGroupIngress": {"action": "elasticache:RevokeCacheSecurityGroupIngress", "types": ["securitygroup"], "resources": [{"type": "securitygroup", "fill": {"CacheSecurityGroupName": "CacheSecurityGroupName"}}]},
"elasticache:StartMigration": {"action": "elasticache:StartMigration", "types": ["replicationgroup"], "resources": [{"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}]},
"elasticache:StopMigration": {"action": "elasticache:StopMigration", "types": [], "resources": []},
"elasticache:TestFailover": {"action": "elasticache:TestFailover", "types": ["replicationgroup"], "resources": [{"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}]},
"elasticache:TestMigration": {"action": "elasticache:TestMigration", "types": ["replicationgroup"], "resources": [{"type": "replicationgroup", "fill": {"ReplicationGroupId": "ReplicationGroupId"}}]},
"elasticloadbalancing:AddListenerCertificates": {"action": "elasticloadbalancing:AddListenerCertificates", "types": ["listener/app", "listener/net"], "resources": [{"types": ["listener/app", "listener/net"], "arn": "Certificates[].CertificateArn"}, {"types": ["listener/app", "listener/net"], "arn": "ListenerArn"}]},
"elasticloadbalancing:AddTags": {"action": "elasticloadbalancing:AddTags", "types": ["listener-rule/app", "listener-rule/net", "listener/app", "listener/gwy", "listener/net", "loadbalancer", "loadbalancer/app/", "loadbalancer/gwy/", "loadbalancer/net/", "targetgroup", "truststore"], "resources": [{"type": "loadbalancer", "fill": {"LoadBalancerName": "LoadBalancerNames[]"}}, {"types": ["listener-rule/app", "listener-rule/net", "listener/app", "listener/gwy", "listener/net", "loadbalancer", "loadbalancer/app/", "loadbalancer/gwy/", "loadbalancer/net/", "targetgroup", "truststore"], "arn": "ResourceArns[]"}]},
"elasticloadbalancing:AddTrustStoreRevocations": {"action": "elasticloadbalancing:AddTrustStoreRevocations", "types": ["truststore"], "resources": [{"types": ["truststore"], "arn": "TrustStoreArn"}]},
@@ -3455,6 +3455,46 @@ class IamRequestResourceEnforcementIntegrationTest {
"dms:DeleteReplicationSubnetGroup");
}
/**
* An ElastiCache parameter group is checked on the ARN ElastiCache mints for it, {@code parametergroup:<name>}, so a
* grant on one lets the caller create it and not another.
*/
@Test
void anElastiCacheParameterGroupIsCheckedOnTheArnItsNameGives() {
String group = "res-pg-" + suffix();
cleanup.register(() -> admin("elasticache").formParam("Action", "DeleteCacheParameterGroup")
.formParam("Version", "2015-02-02").formParam("CacheParameterGroupName", group).post("/"));
User user = user("res-elasticache");
user.policy(allowOn("elasticache:CreateCacheParameterGroup",
"arn:aws:elasticache:" + REGION + ":" + ACCOUNT + ":parametergroup:" + group));
createCacheParameterGroup(user, group).statusCode(200);
refused(createCacheParameterGroup(user, group + "-other"), "elasticache:CreateCacheParameterGroup");
}
/**
* An ElastiCache user group's change is checked on each user it adds or removes too, so a deny scoped to one user
* refuses a change that adds that user, and not one that adds another.
*/
@Test
void anElastiCacheUserGroupChangeIsCheckedOnTheUsersItAdds() {
User user = user("res-elasticache-users");
user.policy(allowOn("elasticache:ModifyUserGroup", "*") + ",{\"Effect\":\"Deny\",\"Action\":"
+ "\"elasticache:ModifyUserGroup\",\"Resource\":\"arn:aws:elasticache:" + REGION + ":" + ACCOUNT
+ ":user:res-denied\"}");
refused(user.query("elasticache", "ModifyUserGroup").formParam("Version", "2015-02-02")
.formParam("UserGroupId", "res-group").formParam("UserIdsToAdd.member.1", "res-denied").post("/")
.then(), "elasticache:ModifyUserGroup");
user.query("elasticache", "ModifyUserGroup").formParam("Version", "2015-02-02")
.formParam("UserGroupId", "res-group").formParam("UserIdsToAdd.member.1", "res-other").post("/")
.then().body(not(containsString("not authorized to perform")));
}
private static ValidatableResponse createCacheParameterGroup(User user, String name) {
return user.query("elasticache", "CreateCacheParameterGroup").formParam("Version", "2015-02-02")
.formParam("CacheParameterGroupName", name).formParam("CacheParameterGroupFamily", "redis7")
.formParam("Description", "res").post("/").then();
}
private static ValidatableResponse glue(String operation, String body) {
return adminJson("glue", "AWSGlue." + operation).body(body).post("/").then();
}
@@ -1940,6 +1940,40 @@ class ResourceArnBuilderTest {
builder.buildResources("dms", "dms:DescribeEndpoints", ctx, "us-east-1", ACCOUNT, "aws"));
}
// ── ElastiCache ─────────────────────────────────────────────────────────────
/**
* An ElastiCache request is checked on the cluster, replication group or parameter group its identifier names, as
* {@code <type>:<name>} in the request's Region, the ARN ElastiCache mints; a tag call names its resource in
* {@code ResourceName}, which the table does not read, so it is checked on {@code *}.
*/
@Test
void elastiCacheChecksTheResourceItsIdentifierNames() {
setFormBody("Action=DescribeCacheClusters&Version=2015-02-02&CacheClusterId=cache-1");
assertEquals(List.of("arn:aws:elasticache:us-west-2:000000000000:cluster:cache-1"),
builder.buildResources("elasticache", "elasticache:DescribeCacheClusters", ctx, "us-west-2", ACCOUNT,
"aws"));
setFormBody("Action=CreateCacheParameterGroup&Version=2015-02-02&CacheParameterGroupName=tuned"
+ "&CacheParameterGroupFamily=redis7&Description=d");
assertEquals(List.of("arn:aws:elasticache:us-west-2:000000000000:parametergroup:tuned"),
builder.buildResources("elasticache", "elasticache:CreateCacheParameterGroup", ctx, "us-west-2",
ACCOUNT, "aws"));
setFormBody("Action=ListTagsForResource&Version=2015-02-02"
+ "&ResourceName=arn%3Aaws%3Aelasticache%3Aus-west-2%3A000000000000%3Acluster%3Acache-1");
assertEquals(List.of("*"), builder.buildResources("elasticache", "elasticache:ListTagsForResource", ctx,
"us-west-2", ACCOUNT, "aws"));
setFormBody("Action=DescribeCacheClusters&Version=2015-02-02");
assertEquals(List.of("*"), builder.buildResources("elasticache", "elasticache:DescribeCacheClusters", ctx,
"us-west-2", ACCOUNT, "aws"));
// A user group's change is checked on the group and on each user it adds or removes.
setFormBody("Action=ModifyUserGroup&Version=2015-02-02&UserGroupId=admins&UserIdsToAdd.member.1=alice"
+ "&UserIdsToRemove.member.1=bob");
assertEquals(List.of("arn:aws:elasticache:us-west-2:000000000000:usergroup:admins",
"arn:aws:elasticache:us-west-2:000000000000:user:alice",
"arn:aws:elasticache:us-west-2:000000000000:user:bob"),
builder.buildResources("elasticache", "elasticache:ModifyUserGroup", ctx, "us-west-2", ACCOUNT, "aws"));
}
// ── S3 and S3 Control ───────────────────────────────────────────────────────
/** The resources an S3 or S3 Control request names, read from the generated table on the route it matches. */
+25 -2
View File
@@ -353,7 +353,7 @@ 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", "cloudwatch",
"comprehend", "config", "dms",
"comprehend", "config", "dms", "elasticache",
"ec2-instance-connect", "s3", "bedrock", "apigateway", "kms", "dynamodb", "iam")
# ---------------------------------------------------------------------------------------------------------------------
@@ -599,7 +599,6 @@ NOT_COVERED: dict[str, str] = {
"connect": _REST,
"detective": _REST,
"dlm": _REST,
"elasticache": _LATER,
"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",
@@ -1950,6 +1949,29 @@ def with_account(resources: list[dict], formats: dict[str, str], accounts: list[
and resource.get("when", {}).get(accounts[0]) != [None] else resource for resource in resources]
CHANGE_LIST_RE = re.compile(r"^(?P<base>.+?)(?:ToAdd|ToRemove)$")
def with_change_lists(resources: list[dict], types: list[str], formats: dict[str, str],
members: dict[str, str]) -> list[dict]:
"""The resources and, for each type the action acts on that no resource names yet and whose format has one
variable of its own, one read from each list of the request named after the type with `ToAdd` or `ToRemove`
(ElastiCache's ModifyUserGroup `UserIdsToAdd` and `UserIdsToRemove`), the resources the request adds or removes."""
named = {kind for resource in resources for kind in _kinds(resource)}
added = []
for kind in types:
if kind in named or kind not in formats:
continue
variables = [variable for variable in VARIABLE_RE.findall(formats[kind]) if variable not in KNOWN_VARIABLES]
if len(variables) != 1:
continue
for member, path in sorted(members.items()):
change = CHANGE_LIST_RE.match(member)
if change and path.endswith("[]") and related(stem(change.group("base")), stem(kind)):
added.append({"type": kind, "fill": {variables[0]: path}})
return resources + added
def structure_name_fields(models: dict[str, dict], operation: str, types: list[str]) -> dict[str, str]:
"""By type, the `name` field of the operation's request's top-level structure member named after the type
(PutConfigurationRecorder's `ConfigurationRecorder.name`), the name the structure gives the resource; a type with
@@ -3559,6 +3581,7 @@ def read_resources(operation: str, types: list[str], formats: dict[str, str], mo
resources = with_account(resources, formats, account_members(models, name))
resources = with_structure_account(resources, formats, structure_account_members(models, name, types))
resources = with_structure_names(resources, formats, structure_name_fields(models, name, types))
resources = with_change_lists(resources, types, formats, members)
resources = with_arn_of(resources, formats, name_or_arn_members(models, name),
documented_name_or_arn_members(models, name))
resources = with_default_pairs(resources, formats, optional)
@@ -572,6 +572,20 @@ def test_an_account_and_a_region_a_format_names_beside_its_own_take_the_requests
{"type": "thing", "fill": {}}]
def test_lists_a_request_adds_or_removes_name_a_type_no_resource_names_yet():
# ElastiCache's ModifyUserGroup changes the users of its UserIdsToAdd and UserIdsToRemove.
formats = {"group": "arn:${Partition}:svc:${Region}:${Account}:group:${GroupId}",
"user": "arn:${Partition}:svc:${Region}:${Account}:user:${UserId}"}
members = {"GroupId": "GroupId", "UserIdsToAdd": "UserIdsToAdd[]", "UserIdsToRemove": "UserIdsToRemove[]"}
resources = [{"type": "group", "fill": {"GroupId": "GroupId"}}]
assert r.with_change_lists(resources, ["group", "user"], formats, members) == resources + [
{"type": "user", "fill": {"UserId": "UserIdsToAdd[]"}}, {"type": "user", "fill": {"UserId": "UserIdsToRemove[]"}}]
# A type another resource names already, or a list named after something else, adds nothing.
named = resources + [{"type": "user", "fill": {"UserId": "UserIds[]"}}]
assert r.with_change_lists(named, ["group", "user"], formats, members) == named
assert r.with_change_lists(resources, ["group", "user"], formats, {"TagsToAdd": "TagsToAdd[]"}) == resources
def test_a_structure_named_after_the_type_gives_its_name_to_a_type_named_by_nothing_else(tmp_path):
# Config's PutConfigurationRecorder names its recorder in ConfigurationRecorder.name.
service = model({"PutRecorder": {"Recorder": "Recorder"}})
@@ -1303,6 +1317,13 @@ def test_the_vendored_file_is_well_formed():
assert operations["dms:DeleteEndpoint"]["resources"] == [{"types": ["Endpoint"], "arn": "EndpointArn"}]
# An endpoint written with no CertificateArn names no certificate.
assert not any(resource.get("type") == "Certificate" for resource in operations["dms:CreateEndpoint"]["resources"])
# ElastiCache is read whole: a cluster, group or user by the identifier its request names.
assert "elasticache" in document["namespaces"] and "elasticache" not in document["notCovered"]
assert operations["elasticache:DeleteCacheCluster"]["resources"][0] == {
"type": "cluster", "fill": {"CacheClusterId": "CacheClusterId"}}
assert operations["elasticache:ModifyUserGroup"]["resources"] == [
{"type": "usergroup", "fill": {"UserGroupId": "UserGroupId"}},
{"type": "user", "fill": {"UserId": "UserIdsToAdd[]"}}, {"type": "user", "fill": {"UserId": "UserIdsToRemove[]"}}]
# A scalable target is found by the three members naming it, its ARN ending in the id the service mints.
assert operations["application-autoscaling:DeregisterScalableTarget"]["resources"] == [
{"type": "ScalableTarget", "fill": {}, "find": ["ServiceNamespace", "ResourceId", "ScalableDimension"]}]