mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
feat(iam): read AWS DMS from the generated tables (#9302)
Move `dms` from NOT_COVERED to NAMESPACES in regen_iam_request_resources.py. The Service Reference gives every DMS type an ARN format ending in a literal `*`, which the reader matches as written: a request naming a subnet group by its identifier, or creating a replication instance, is checked on that pattern (subgrp:*, rep:*), where it was checked on `*`, and a request naming an endpoint, an instance or a task by its ARN matches no format and stays on `*`. The generator's rule for an optional ARN member a request leaves out took a format with no variable for a single resource, so a CreateEndpoint or ModifyEndpoint with no CertificateArn was also checked on cert:*. It now skips a format ending in a wildcard, every resource of its type: of the whole table, four DMS operations change and no other.
This commit is contained in:
1 parent
9c21d7c64c
commit
d1ccad9344
7 files changed
+190
-8
No files matched your search
@@ -137,6 +137,18 @@ returned.
|
||||
is not a cross-account or cross-Region operation on AWS and is not one here either.
|
||||
- Deleting a resource deletes its tags with it.
|
||||
|
||||
### 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. The reference gives each DMS type an ARN format
|
||||
ending in a literal `*` (`arn:aws:dms:<region>:<account>:subgrp:*`), which Floci matches as
|
||||
written. So a request naming a subnet group by its identifier, or creating a replication instance,
|
||||
is checked on that pattern (`subgrp:*`, `rep:*`), while a request naming an endpoint, a replication
|
||||
instance or a task by its ARN matches no format and is checked on `*`, as are the tagging calls and
|
||||
the Describe actions. A request leaving out an optional ARN, such as a `CreateEndpoint` with no
|
||||
`CertificateArn`, names nothing of that type: a format ending in `*` stands for every resource of
|
||||
its type, not one.
|
||||
|
||||
## Limitations
|
||||
|
||||
- **No migration runs.** A started task stays `running` until stopped; a full-load task
|
||||
|
||||
@@ -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 and AWS Config 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 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
|
||||
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"], "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", "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 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 (reLine 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"], "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
|
||||
"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"]},
|
||||
@@ -1852,6 +1852,125 @@
|
||||
"datasync:UpdateLocationSmb": {"action": "datasync:UpdateLocationSmb", "types": ["agent", "location"], "resources": [{"types": ["agent", "location"], "arn": "AgentArns[]"}, {"types": ["agent", "location"], "arn": "LocationArn"}]},
|
||||
"datasync:UpdateTask": {"action": "datasync:UpdateTask", "types": ["task"], "resources": [{"types": ["task"], "arn": "TaskArn"}]},
|
||||
"datasync:UpdateTaskExecution": {"action": "datasync:UpdateTaskExecution", "types": ["taskexecution"], "resources": [{"types": ["taskexecution"], "arn": "TaskExecutionArn"}]},
|
||||
"dms:AddTagsToResource": {"action": "dms:AddTagsToResource", "types": ["Certificate", "DataMigration", "DataProvider", "Endpoint", "EventSubscription", "InstanceProfile", "MigrationProject", "ReplicationConfig", "ReplicationInstance", "ReplicationSubnetGroup", "ReplicationTask", "ReplicationTaskAssessmentRun", "ReplicationTaskIndividualAssessment"], "resources": [{"types": ["Certificate", "DataMigration", "DataProvider", "Endpoint", "EventSubscription", "InstanceProfile", "MigrationProject", "ReplicationConfig", "ReplicationInstance", "ReplicationSubnetGroup", "ReplicationTask", "ReplicationTaskAssessmentRun", "ReplicationTaskIndividualAssessment"], "arn": "ResourceArn"}, {"types": ["Certificate", "DataMigration", "DataProvider", "Endpoint", "EventSubscription", "InstanceProfile", "MigrationProject", "ReplicationConfig", "ReplicationInstance", "ReplicationSubnetGroup", "ReplicationTask", "ReplicationTaskAssessmentRun", "ReplicationTaskIndividualAssessment"], "arn": "Tags[].ResourceArn"}]},
|
||||
"dms:ApplyPendingMaintenanceAction": {"action": "dms:ApplyPendingMaintenanceAction", "types": ["ReplicationInstance"], "resources": [{"types": ["ReplicationInstance"], "arn": "ReplicationInstanceArn"}]},
|
||||
"dms:BatchStartRecommendations": {"action": "dms:BatchStartRecommendations", "types": [], "resources": []},
|
||||
"dms:CancelMetadataModelConversion": {"action": "dms:CancelMetadataModelConversion", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:CancelMetadataModelCreation": {"action": "dms:CancelMetadataModelCreation", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:CancelReplicationTaskAssessmentRun": {"action": "dms:CancelReplicationTaskAssessmentRun", "types": ["ReplicationTaskAssessmentRun"], "resources": [{"types": ["ReplicationTaskAssessmentRun"], "arn": "ReplicationTaskAssessmentRunArn"}]},
|
||||
"dms:CreateDataMigration": {"action": "dms:CreateDataMigration", "types": ["MigrationProject"], "resources": [{"types": ["MigrationProject"], "arn": "ServiceAccessRoleArn"}, {"types": ["MigrationProject"], "arn": "Tags[].ResourceArn"}, {"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:CreateDataProvider": {"action": "dms:CreateDataProvider", "types": [], "resources": [], "makes": [{"type": "DataProvider", "fill": {}}]},
|
||||
"dms:CreateEndpoint": {"action": "dms:CreateEndpoint", "types": ["Certificate", "Endpoint"], "resources": [{"types": ["Certificate", "Endpoint"], "arn": "CertificateArn"}, {"types": ["Certificate", "Endpoint"], "arn": "DmsTransferSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "DocDbSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "DynamoDbSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "ElasticsearchSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "GcpMySQLSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "IBMDb2Settings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KafkaSettings.SslCaCertificateArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KafkaSettings.SslClientCertificateArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KafkaSettings.SslClientKeyArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KinesisSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KinesisSettings.StreamArn"}, {"types": ["Certificate", "Endpoint"], "arn": "MicrosoftSQLServerSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "MongoDbSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "MySQLSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "MySQLSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "NeptuneSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "OracleSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "OracleSettings.SecretsManagerOracleAsmAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "PostgreSQLSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "PostgreSQLSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "RedisSettings.SslCaCertificateArn"}, {"types": ["Certificate", "Endpoint"], "arn": "RedshiftSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "RedshiftSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "S3Settings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "SybaseSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "Tags[].ResourceArn"}, {"type": "Endpoint", "fill": {}, "made": true}]},
|
||||
"dms:CreateEventSubscription": {"action": "dms:CreateEventSubscription", "types": ["EventSubscription"], "resources": [{"types": ["EventSubscription"], "arn": "SnsTopicArn"}, {"types": ["EventSubscription"], "arn": "Tags[].ResourceArn"}, {"type": "EventSubscription", "fill": {}}]},
|
||||
"dms:CreateFleetAdvisorCollector": {"action": "dms:CreateFleetAdvisorCollector", "types": [], "resources": []},
|
||||
"dms:CreateInstanceProfile": {"action": "dms:CreateInstanceProfile", "types": [], "resources": [], "makes": [{"type": "InstanceProfile", "fill": {}}]},
|
||||
"dms:CreateMigrationProject": {"action": "dms:CreateMigrationProject", "types": ["DataProvider", "InstanceProfile"], "resources": [{"types": ["DataProvider", "InstanceProfile"], "arn": "SchemaConversionApplicationAttributes.S3BucketRoleArn"}, {"types": ["DataProvider", "InstanceProfile"], "arn": "SourceDataProviderDescriptors[].SecretsManagerAccessRoleArn"}, {"types": ["DataProvider", "InstanceProfile"], "arn": "Tags[].ResourceArn"}, {"types": ["DataProvider", "InstanceProfile"], "arn": "TargetDataProviderDescriptors[].SecretsManagerAccessRoleArn"}, {"type": "DataProvider", "fill": {}}, {"type": "InstanceProfile", "fill": {}}]},
|
||||
"dms:CreateReplicationConfig": {"action": "dms:CreateReplicationConfig", "types": ["Endpoint"], "resources": [{"types": ["Endpoint"], "arn": "SourceEndpointArn"}, {"types": ["Endpoint"], "arn": "Tags[].ResourceArn"}, {"types": ["Endpoint"], "arn": "TargetEndpointArn"}]},
|
||||
"dms:CreateReplicationInstance": {"action": "dms:CreateReplicationInstance", "types": ["ReplicationInstance", "ReplicationSubnetGroup"], "resources": [{"types": ["ReplicationInstance", "ReplicationSubnetGroup"], "arn": "KerberosAuthenticationSettings.KeyCacheSecretIamArn"}, {"types": ["ReplicationInstance", "ReplicationSubnetGroup"], "arn": "Tags[].ResourceArn"}, {"type": "ReplicationInstance", "fill": {}, "made": true}, {"type": "ReplicationSubnetGroup", "fill": {}}]},
|
||||
"dms:CreateReplicationSubnetGroup": {"action": "dms:CreateReplicationSubnetGroup", "types": ["ReplicationSubnetGroup"], "resources": [{"types": ["ReplicationSubnetGroup"], "arn": "Tags[].ResourceArn"}, {"type": "ReplicationSubnetGroup", "fill": {}}]},
|
||||
"dms:CreateReplicationTask": {"action": "dms:CreateReplicationTask", "types": ["Endpoint", "ReplicationInstance"], "resources": [{"types": ["Endpoint", "ReplicationInstance"], "arn": "ReplicationInstanceArn"}, {"types": ["Endpoint", "ReplicationInstance"], "arn": "SourceEndpointArn"}, {"types": ["Endpoint", "ReplicationInstance"], "arn": "Tags[].ResourceArn"}, {"types": ["Endpoint", "ReplicationInstance"], "arn": "TargetEndpointArn"}]},
|
||||
"dms:DeleteCertificate": {"action": "dms:DeleteCertificate", "types": ["Certificate"], "resources": [{"types": ["Certificate"], "arn": "CertificateArn"}]},
|
||||
"dms:DeleteConnection": {"action": "dms:DeleteConnection", "types": ["Endpoint", "ReplicationInstance"], "resources": [{"types": ["Endpoint", "ReplicationInstance"], "arn": "EndpointArn"}, {"types": ["Endpoint", "ReplicationInstance"], "arn": "ReplicationInstanceArn"}]},
|
||||
"dms:DeleteDataMigration": {"action": "dms:DeleteDataMigration", "types": ["DataMigration"], "resources": [{"type": "DataMigration", "fill": {}}]},
|
||||
"dms:DeleteDataProvider": {"action": "dms:DeleteDataProvider", "types": ["DataProvider"], "resources": [{"type": "DataProvider", "fill": {}}]},
|
||||
"dms:DeleteEndpoint": {"action": "dms:DeleteEndpoint", "types": ["Endpoint"], "resources": [{"types": ["Endpoint"], "arn": "EndpointArn"}]},
|
||||
"dms:DeleteEventSubscription": {"action": "dms:DeleteEventSubscription", "types": ["EventSubscription"], "resources": [{"type": "EventSubscription", "fill": {}}]},
|
||||
"dms:DeleteFleetAdvisorCollector": {"action": "dms:DeleteFleetAdvisorCollector", "types": [], "resources": []},
|
||||
"dms:DeleteFleetAdvisorDatabases": {"action": "dms:DeleteFleetAdvisorDatabases", "types": [], "resources": []},
|
||||
"dms:DeleteInstanceProfile": {"action": "dms:DeleteInstanceProfile", "types": ["InstanceProfile"], "resources": [{"type": "InstanceProfile", "fill": {}}]},
|
||||
"dms:DeleteMigrationProject": {"action": "dms:DeleteMigrationProject", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DeleteReplicationConfig": {"action": "dms:DeleteReplicationConfig", "types": ["ReplicationConfig"], "resources": [{"types": ["ReplicationConfig"], "arn": "ReplicationConfigArn"}]},
|
||||
"dms:DeleteReplicationInstance": {"action": "dms:DeleteReplicationInstance", "types": ["ReplicationInstance"], "resources": [{"types": ["ReplicationInstance"], "arn": "ReplicationInstanceArn"}]},
|
||||
"dms:DeleteReplicationSubnetGroup": {"action": "dms:DeleteReplicationSubnetGroup", "types": ["ReplicationSubnetGroup"], "resources": [{"type": "ReplicationSubnetGroup", "fill": {}}]},
|
||||
"dms:DeleteReplicationTask": {"action": "dms:DeleteReplicationTask", "types": ["ReplicationTask"], "resources": [{"types": ["ReplicationTask"], "arn": "ReplicationTaskArn"}]},
|
||||
"dms:DeleteReplicationTaskAssessmentRun": {"action": "dms:DeleteReplicationTaskAssessmentRun", "types": ["ReplicationTaskAssessmentRun"], "resources": [{"types": ["ReplicationTaskAssessmentRun"], "arn": "ReplicationTaskAssessmentRunArn"}]},
|
||||
"dms:DescribeAccountAttributes": {"action": "dms:DescribeAccountAttributes", "types": [], "resources": []},
|
||||
"dms:DescribeApplicableIndividualAssessments": {"action": "dms:DescribeApplicableIndividualAssessments", "types": ["ReplicationInstance", "ReplicationTask"], "resources": [{"types": ["ReplicationInstance", "ReplicationTask"], "arn": "ReplicationConfigArn"}, {"types": ["ReplicationInstance", "ReplicationTask"], "arn": "ReplicationInstanceArn"}, {"types": ["ReplicationInstance", "ReplicationTask"], "arn": "ReplicationTaskArn"}]},
|
||||
"dms:DescribeCertificates": {"action": "dms:DescribeCertificates", "types": [], "resources": []},
|
||||
"dms:DescribeConnections": {"action": "dms:DescribeConnections", "types": [], "resources": []},
|
||||
"dms:DescribeConversionConfiguration": {"action": "dms:DescribeConversionConfiguration", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeDataMigrations": {"action": "dms:DescribeDataMigrations", "types": [], "resources": []},
|
||||
"dms:DescribeDataProviders": {"action": "dms:ListDataProviders", "types": [], "resources": []},
|
||||
"dms:DescribeEndpointSettings": {"action": "dms:DescribeEndpointSettings", "types": [], "resources": []},
|
||||
"dms:DescribeEndpointTypes": {"action": "dms:DescribeEndpointTypes", "types": [], "resources": []},
|
||||
"dms:DescribeEndpoints": {"action": "dms:DescribeEndpoints", "types": [], "resources": []},
|
||||
"dms:DescribeEngineVersions": {"action": "dms:DescribeEngineVersions", "types": [], "resources": []},
|
||||
"dms:DescribeEventCategories": {"action": "dms:DescribeEventCategories", "types": [], "resources": []},
|
||||
"dms:DescribeEventSubscriptions": {"action": "dms:DescribeEventSubscriptions", "types": [], "resources": []},
|
||||
"dms:DescribeEvents": {"action": "dms:DescribeEvents", "types": [], "resources": []},
|
||||
"dms:DescribeExtensionPackAssociations": {"action": "dms:ListExtensionPacks", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeFleetAdvisorCollectors": {"action": "dms:DescribeFleetAdvisorCollectors", "types": [], "resources": []},
|
||||
"dms:DescribeFleetAdvisorDatabases": {"action": "dms:DescribeFleetAdvisorDatabases", "types": [], "resources": []},
|
||||
"dms:DescribeFleetAdvisorLsaAnalysis": {"action": "dms:DescribeFleetAdvisorLsaAnalysis", "types": [], "resources": []},
|
||||
"dms:DescribeFleetAdvisorSchemaObjectSummary": {"action": "dms:DescribeFleetAdvisorSchemaObjectSummary", "types": [], "resources": []},
|
||||
"dms:DescribeFleetAdvisorSchemas": {"action": "dms:DescribeFleetAdvisorSchemas", "types": [], "resources": []},
|
||||
"dms:DescribeInstanceProfiles": {"action": "dms:ListInstanceProfiles", "types": ["InstanceProfile"], "resources": [{"type": "InstanceProfile", "fill": {}}]},
|
||||
"dms:DescribeMetadataModel": {"action": "dms:DescribeMetadataModel", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeMetadataModelAssessments": {"action": "dms:ListMetadataModelAssessments", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeMetadataModelChildren": {"action": "dms:DescribeMetadataModelChildren", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeMetadataModelConversions": {"action": "dms:ListMetadataModelConversions", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeMetadataModelCreations": {"action": "dms:DescribeMetadataModelCreations", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeMetadataModelExportsAsScript": {"action": "dms:ListMetadataModelExports", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeMetadataModelExportsToTarget": {"action": "dms:ListMetadataModelExports", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeMetadataModelImports": {"action": "dms:DescribeMetadataModelImports", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeMigrationProjects": {"action": "dms:ListMigrationProjects", "types": ["DataProvider", "InstanceProfile", "MigrationProject"], "resources": [{"type": "DataProvider", "fill": {}}, {"type": "InstanceProfile", "fill": {}}, {"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:DescribeOrderableReplicationInstances": {"action": "dms:DescribeOrderableReplicationInstances", "types": [], "resources": []},
|
||||
"dms:DescribePendingMaintenanceActions": {"action": "dms:DescribePendingMaintenanceActions", "types": [], "resources": []},
|
||||
"dms:DescribeRecommendationLimitations": {"action": "dms:DescribeRecommendationLimitations", "types": [], "resources": []},
|
||||
"dms:DescribeRecommendations": {"action": "dms:DescribeRecommendations", "types": [], "resources": []},
|
||||
"dms:DescribeRefreshSchemasStatus": {"action": "dms:DescribeRefreshSchemasStatus", "types": ["Endpoint"], "resources": [{"types": ["Endpoint"], "arn": "EndpointArn"}]},
|
||||
"dms:DescribeReplicationConfigs": {"action": "dms:DescribeReplicationConfigs", "types": [], "resources": []},
|
||||
"dms:DescribeReplicationInstanceTaskLogs": {"action": "dms:DescribeReplicationInstanceTaskLogs", "types": ["ReplicationInstance"], "resources": [{"types": ["ReplicationInstance"], "arn": "ReplicationInstanceArn"}]},
|
||||
"dms:DescribeReplicationInstances": {"action": "dms:DescribeReplicationInstances", "types": [], "resources": []},
|
||||
"dms:DescribeReplicationSubnetGroups": {"action": "dms:DescribeReplicationSubnetGroups", "types": [], "resources": []},
|
||||
"dms:DescribeReplicationTableStatistics": {"action": "dms:DescribeReplicationTableStatistics", "types": ["ReplicationConfig"], "resources": [{"types": ["ReplicationConfig"], "arn": "ReplicationConfigArn"}]},
|
||||
"dms:DescribeReplicationTaskAssessmentResults": {"action": "dms:DescribeReplicationTaskAssessmentResults", "types": ["ReplicationTask"], "resources": [{"types": ["ReplicationTask"], "arn": "ReplicationTaskArn"}]},
|
||||
"dms:DescribeReplicationTaskAssessmentRuns": {"action": "dms:DescribeReplicationTaskAssessmentRuns", "types": ["ReplicationInstance", "ReplicationTask", "ReplicationTaskAssessmentRun"], "resources": [{"type": "ReplicationInstance", "fill": {}}, {"type": "ReplicationTask", "fill": {}}, {"type": "ReplicationTaskAssessmentRun", "fill": {}}]},
|
||||
"dms:DescribeReplicationTaskIndividualAssessments": {"action": "dms:DescribeReplicationTaskIndividualAssessments", "types": ["ReplicationTask", "ReplicationTaskAssessmentRun"], "resources": [{"type": "ReplicationTask", "fill": {}}, {"type": "ReplicationTaskAssessmentRun", "fill": {}}]},
|
||||
"dms:DescribeReplicationTasks": {"action": "dms:DescribeReplicationTasks", "types": [], "resources": []},
|
||||
"dms:DescribeReplications": {"action": "dms:DescribeReplications", "types": [], "resources": []},
|
||||
"dms:DescribeSchemas": {"action": "dms:DescribeSchemas", "types": ["Endpoint"], "resources": [{"types": ["Endpoint"], "arn": "EndpointArn"}]},
|
||||
"dms:DescribeTableStatistics": {"action": "dms:DescribeTableStatistics", "types": ["ReplicationTask"], "resources": [{"types": ["ReplicationTask"], "arn": "ReplicationTaskArn"}]},
|
||||
"dms:ExportMetadataModelAssessment": {"action": "dms:ExportMetadataModelAssessment", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:GetTargetSelectionRules": {"action": "dms:GetTargetSelectionRules", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:ImportCertificate": {"action": "dms:ImportCertificate", "types": ["Certificate"], "resources": [{"types": ["Certificate"], "arn": "Tags[].ResourceArn"}, {"type": "Certificate", "fill": {}}]},
|
||||
"dms:ListTagsForResource": {"action": "dms:ListTagsForResource", "types": ["Certificate", "DataMigration", "DataProvider", "Endpoint", "EventSubscription", "InstanceProfile", "MigrationProject", "ReplicationConfig", "ReplicationInstance", "ReplicationSubnetGroup", "ReplicationTask", "ReplicationTaskAssessmentRun", "ReplicationTaskIndividualAssessment"], "resources": [{"types": ["Certificate", "DataMigration", "DataProvider", "Endpoint", "EventSubscription", "InstanceProfile", "MigrationProject", "ReplicationConfig", "ReplicationInstance", "ReplicationSubnetGroup", "ReplicationTask", "ReplicationTaskAssessmentRun", "ReplicationTaskIndividualAssessment"], "arn": "ResourceArn"}, {"types": ["Certificate", "DataMigration", "DataProvider", "Endpoint", "EventSubscription", "InstanceProfile", "MigrationProject", "ReplicationConfig", "ReplicationInstance", "ReplicationSubnetGroup", "ReplicationTask", "ReplicationTaskAssessmentRun", "ReplicationTaskIndividualAssessment"], "arn": "ResourceArnList[]"}]},
|
||||
"dms:ModifyConversionConfiguration": {"action": "dms:UpdateConversionConfiguration", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:ModifyDataMigration": {"action": "dms:ModifyDataMigration", "types": ["DataMigration"], "resources": [{"types": ["DataMigration"], "arn": "ServiceAccessRoleArn"}, {"type": "DataMigration", "fill": {}}]},
|
||||
"dms:ModifyDataProvider": {"action": "dms:ModifyDataProvider", "types": [], "resources": []},
|
||||
"dms:ModifyEndpoint": {"action": "dms:ModifyEndpoint", "types": ["Certificate", "Endpoint"], "resources": [{"types": ["Certificate", "Endpoint"], "arn": "CertificateArn"}, {"types": ["Certificate", "Endpoint"], "arn": "DmsTransferSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "DocDbSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "DynamoDbSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "ElasticsearchSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "EndpointArn"}, {"types": ["Certificate", "Endpoint"], "arn": "GcpMySQLSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "IBMDb2Settings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KafkaSettings.SslCaCertificateArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KafkaSettings.SslClientCertificateArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KafkaSettings.SslClientKeyArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KinesisSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "KinesisSettings.StreamArn"}, {"types": ["Certificate", "Endpoint"], "arn": "MicrosoftSQLServerSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "MongoDbSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "MySQLSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "MySQLSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "NeptuneSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "OracleSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "OracleSettings.SecretsManagerOracleAsmAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "PostgreSQLSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "PostgreSQLSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "RedisSettings.SslCaCertificateArn"}, {"types": ["Certificate", "Endpoint"], "arn": "RedshiftSettings.SecretsManagerAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "RedshiftSettings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "S3Settings.ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "ServiceAccessRoleArn"}, {"types": ["Certificate", "Endpoint"], "arn": "SybaseSettings.SecretsManagerAccessRoleArn"}]},
|
||||
"dms:ModifyEventSubscription": {"action": "dms:ModifyEventSubscription", "types": ["EventSubscription"], "resources": [{"types": ["EventSubscription"], "arn": "SnsTopicArn"}, {"type": "EventSubscription", "fill": {}}]},
|
||||
"dms:ModifyInstanceProfile": {"action": "dms:ModifyInstanceProfile", "types": [], "resources": []},
|
||||
"dms:ModifyMigrationProject": {"action": "dms:ModifyMigrationProject", "types": [], "resources": []},
|
||||
"dms:ModifyReplicationConfig": {"action": "dms:ModifyReplicationConfig", "types": ["ReplicationConfig"], "resources": [{"types": ["ReplicationConfig"], "arn": "ReplicationConfigArn"}, {"types": ["ReplicationConfig"], "arn": "SourceEndpointArn"}, {"types": ["ReplicationConfig"], "arn": "TargetEndpointArn"}]},
|
||||
"dms:ModifyReplicationInstance": {"action": "dms:ModifyReplicationInstance", "types": ["ReplicationInstance"], "resources": [{"types": ["ReplicationInstance"], "arn": "KerberosAuthenticationSettings.KeyCacheSecretIamArn"}, {"types": ["ReplicationInstance"], "arn": "ReplicationInstanceArn"}]},
|
||||
"dms:ModifyReplicationSubnetGroup": {"action": "dms:ModifyReplicationSubnetGroup", "types": ["ReplicationSubnetGroup"], "resources": [{"type": "ReplicationSubnetGroup", "fill": {}}]},
|
||||
"dms:ModifyReplicationTask": {"action": "dms:ModifyReplicationTask", "types": ["ReplicationTask"], "resources": [{"types": ["ReplicationTask"], "arn": "ReplicationTaskArn"}]},
|
||||
"dms:MoveReplicationTask": {"action": "dms:MoveReplicationTask", "types": ["ReplicationInstance", "ReplicationTask"], "resources": [{"types": ["ReplicationInstance", "ReplicationTask"], "arn": "ReplicationTaskArn"}, {"types": ["ReplicationInstance", "ReplicationTask"], "arn": "TargetReplicationInstanceArn"}]},
|
||||
"dms:RebootReplicationInstance": {"action": "dms:RebootReplicationInstance", "types": ["ReplicationInstance"], "resources": [{"types": ["ReplicationInstance"], "arn": "ReplicationInstanceArn"}]},
|
||||
"dms:RefreshSchemas": {"action": "dms:RefreshSchemas", "types": ["Endpoint", "ReplicationInstance"], "resources": [{"types": ["Endpoint", "ReplicationInstance"], "arn": "EndpointArn"}, {"types": ["Endpoint", "ReplicationInstance"], "arn": "ReplicationInstanceArn"}]},
|
||||
"dms:ReloadReplicationTables": {"action": "dms:ReloadReplicationTables", "types": ["ReplicationConfig"], "resources": [{"types": ["ReplicationConfig"], "arn": "ReplicationConfigArn"}]},
|
||||
"dms:ReloadTables": {"action": "dms:ReloadTables", "types": ["ReplicationTask"], "resources": [{"types": ["ReplicationTask"], "arn": "ReplicationTaskArn"}]},
|
||||
"dms:RemoveTagsFromResource": {"action": "dms:RemoveTagsFromResource", "types": ["Certificate", "DataMigration", "DataProvider", "Endpoint", "EventSubscription", "InstanceProfile", "MigrationProject", "ReplicationConfig", "ReplicationInstance", "ReplicationSubnetGroup", "ReplicationTask", "ReplicationTaskAssessmentRun", "ReplicationTaskIndividualAssessment"], "resources": [{"types": ["Certificate", "DataMigration", "DataProvider", "Endpoint", "EventSubscription", "InstanceProfile", "MigrationProject", "ReplicationConfig", "ReplicationInstance", "ReplicationSubnetGroup", "ReplicationTask", "ReplicationTaskAssessmentRun", "ReplicationTaskIndividualAssessment"], "arn": "ResourceArn"}]},
|
||||
"dms:RunFleetAdvisorLsaAnalysis": {"action": "dms:RunFleetAdvisorLsaAnalysis", "types": [], "resources": []},
|
||||
"dms:StartDataMigration": {"action": "dms:StartDataMigration", "types": ["DataMigration"], "resources": [{"type": "DataMigration", "fill": {}}]},
|
||||
"dms:StartExtensionPackAssociation": {"action": "dms:AssociateExtensionPack", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:StartMetadataModelAssessment": {"action": "dms:StartMetadataModelAssessment", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:StartMetadataModelConversion": {"action": "dms:StartMetadataModelConversion", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:StartMetadataModelCreation": {"action": "dms:StartMetadataModelCreation", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:StartMetadataModelExportAsScript": {"action": "dms:StartMetadataModelExportAsScripts", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:StartMetadataModelExportToTarget": {"action": "dms:StartMetadataModelExportToTarget", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:StartMetadataModelImport": {"action": "dms:StartMetadataModelImport", "types": ["MigrationProject"], "resources": [{"type": "MigrationProject", "fill": {}}]},
|
||||
"dms:StartRecommendations": {"action": "dms:StartRecommendations", "types": [], "resources": []},
|
||||
"dms:StartReplication": {"action": "dms:StartReplication", "types": ["ReplicationConfig"], "resources": [{"types": ["ReplicationConfig"], "arn": "ReplicationConfigArn"}]},
|
||||
"dms:StartReplicationTask": {"action": "dms:StartReplicationTask", "types": ["ReplicationTask"], "resources": [{"types": ["ReplicationTask"], "arn": "ReplicationTaskArn"}]},
|
||||
"dms:StartReplicationTaskAssessment": {"action": "dms:StartReplicationTaskAssessment", "types": ["ReplicationTask"], "resources": [{"types": ["ReplicationTask"], "arn": "ReplicationTaskArn"}]},
|
||||
"dms:StartReplicationTaskAssessmentRun": {"action": "dms:StartReplicationTaskAssessmentRun", "types": ["ReplicationTask"], "resources": [{"types": ["ReplicationTask"], "arn": "ReplicationTaskArn"}, {"types": ["ReplicationTask"], "arn": "ResultKmsKeyArn"}, {"types": ["ReplicationTask"], "arn": "ServiceAccessRoleArn"}, {"types": ["ReplicationTask"], "arn": "Tags[].ResourceArn"}]},
|
||||
"dms:StopDataMigration": {"action": "dms:StopDataMigration", "types": ["DataMigration"], "resources": [{"type": "DataMigration", "fill": {}}]},
|
||||
"dms:StopReplication": {"action": "dms:StopReplication", "types": ["ReplicationConfig"], "resources": [{"types": ["ReplicationConfig"], "arn": "ReplicationConfigArn"}]},
|
||||
"dms:StopReplicationTask": {"action": "dms:StopReplicationTask", "types": ["ReplicationTask"], "resources": [{"types": ["ReplicationTask"], "arn": "ReplicationTaskArn"}]},
|
||||
"dms:TestConnection": {"action": "dms:TestConnection", "types": ["Endpoint", "ReplicationInstance"], "resources": [{"types": ["Endpoint", "ReplicationInstance"], "arn": "EndpointArn"}, {"types": ["Endpoint", "ReplicationInstance"], "arn": "ReplicationInstanceArn"}]},
|
||||
"dms:UpdateSubscriptionsToEventBridge": {"action": "dms:UpdateSubscriptionsToEventBridge", "types": [], "resources": []},
|
||||
"dsql:CreateCluster": {"action": "dsql:CreateCluster", "types": ["Cluster"], "resources": [{"type": "Cluster", "fill": {}}]},
|
||||
"dsql:CreateStream": {"action": "dsql:CreateStream", "types": ["Cluster"], "resources": [{"type": "Cluster", "fill": {"Identifier": "clusterIdentifier"}}], "located": {"clusterIdentifier": "{clusterIdentifier}"}},
|
||||
"dsql:DeleteCluster": {"action": "dsql:DeleteCluster", "types": ["Cluster"], "resources": [{"type": "Cluster", "fill": {"Identifier": "identifier"}}], "located": {"identifier": "{identifier}"}},
|
||||
|
||||
+17
@@ -3438,6 +3438,23 @@ class IamRequestResourceEnforcementIntegrationTest {
|
||||
return adminJson("config", "StarlingDoveService." + operation).body(body).post("/").then();
|
||||
}
|
||||
|
||||
/**
|
||||
* A DMS subnet group is checked on the ARN format the Service Reference gives it,
|
||||
* {@code arn:aws:dms:<region>:<account>:subgrp:*}, so a grant on that pattern lets the request reach DMS, which
|
||||
* answers that the group does not exist, and a grant on another type's refuses it.
|
||||
*/
|
||||
@Test
|
||||
void aDmsSubnetGroupIsCheckedOnTheFormatTheReferenceGivesIt() {
|
||||
String body = "{\"ReplicationSubnetGroupIdentifier\":\"res-dms-missing-" + suffix() + "\"}";
|
||||
User user = user("res-dms");
|
||||
user.policy(allowOn("dms:DeleteReplicationSubnetGroup", "arn:aws:dms:" + REGION + ":" + ACCOUNT + ":subgrp:*"));
|
||||
send(user, "dms", "AmazonDMSv20160101.DeleteReplicationSubnetGroup", "1.1", body).statusCode(400)
|
||||
.body(containsString("ResourceNotFoundFault"));
|
||||
user.policy(allowOn("dms:DeleteReplicationSubnetGroup", "arn:aws:dms:" + REGION + ":" + ACCOUNT + ":rep:*"));
|
||||
refusedJson(send(user, "dms", "AmazonDMSv20160101.DeleteReplicationSubnetGroup", "1.1", body),
|
||||
"dms:DeleteReplicationSubnetGroup");
|
||||
}
|
||||
|
||||
private static ValidatableResponse glue(String operation, String body) {
|
||||
return adminJson("glue", "AWSGlue." + operation).body(body).post("/").then();
|
||||
}
|
||||
|
||||
@@ -1920,6 +1920,26 @@ class ResourceArnBuilderTest {
|
||||
return builder.buildResources("config", "config:" + operation, ctx, "us-east-1", ACCOUNT, "aws");
|
||||
}
|
||||
|
||||
// ── AWS DMS ─────────────────────────────────────────────────────────────────
|
||||
|
||||
/**
|
||||
* The Service Reference gives each DMS type an ARN format ending in a literal {@code *}, which the reader matches
|
||||
* as written, so a request naming an endpoint by its ARN matches no format and is checked on {@code *}, and one
|
||||
* naming a subnet group by its identifier is checked on the format itself.
|
||||
*/
|
||||
@Test
|
||||
void dmsChecksASubnetGroupOnTheFormatTheReferenceGivesIt() {
|
||||
setJsonBody("{\"EndpointArn\":\"arn:aws:dms:us-east-1:000000000000:endpoint:ABCDEFGHIJKLMNOP\"}");
|
||||
assertEquals(List.of("*"),
|
||||
builder.buildResources("dms", "dms:DeleteEndpoint", ctx, "us-east-1", ACCOUNT, "aws"));
|
||||
setJsonBody("{\"ReplicationSubnetGroupIdentifier\":\"default\"}");
|
||||
assertEquals(List.of("arn:aws:dms:us-east-1:000000000000:subgrp:*"),
|
||||
builder.buildResources("dms", "dms:DeleteReplicationSubnetGroup", ctx, "us-east-1", ACCOUNT, "aws"));
|
||||
setJsonBody("{}");
|
||||
assertEquals(List.of("*"),
|
||||
builder.buildResources("dms", "dms:DescribeEndpoints", ctx, "us-east-1", 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. */
|
||||
|
||||
@@ -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",
|
||||
"comprehend", "config", "dms",
|
||||
"ec2-instance-connect", "s3", "bedrock", "apigateway", "kms", "dynamodb", "iam")
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
@@ -599,7 +599,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"connect": _REST,
|
||||
"detective": _REST,
|
||||
"dlm": _REST,
|
||||
"dms": _LATER,
|
||||
"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 "
|
||||
@@ -883,7 +882,9 @@ def with_absent_arn(resources: list[dict], formats: dict[str, str], optional: se
|
||||
out. A type whose format has no variable of its own (Security Hub's `hub/default`) has one resource in the caller's
|
||||
account and Region, the one its service acts on then (`DescribeHub` with no `HubArn`). Any other is the one its
|
||||
service uses for a request naming none (`default`), which the reader asks the service for, and none when it has
|
||||
none: Resource Explorer's `Search` with no `ViewArn` searches with the Region's default view."""
|
||||
none: Resource Explorer's `Search` with no `ViewArn` searches with the Region's default view. A format ending in a
|
||||
wildcard (DMS's `cert:*`) names every resource of its type, not one, so a request leaving the member out names
|
||||
none of them."""
|
||||
named = {resource["type"] for resource in resources if "type" in resource}
|
||||
added = []
|
||||
for resource in resources:
|
||||
@@ -892,6 +893,8 @@ def with_absent_arn(resources: list[dict], formats: dict[str, str], optional: se
|
||||
continue
|
||||
for kind in resource["types"]:
|
||||
variables = [v for v in VARIABLE_RE.findall(formats.get(kind, "")) if v not in KNOWN_VARIABLES]
|
||||
if kind in formats and "*" in VARIABLE_RE.sub("", formats[kind]):
|
||||
continue
|
||||
if kind in formats and kind not in named and related(stem(member), stem(kind)):
|
||||
added.append({"type": kind, "fill": {}, "when": {member: [None]}} if not variables
|
||||
else {"type": kind, "fill": {}, "when": {member: [None]}, "default": True})
|
||||
|
||||
@@ -104,6 +104,11 @@ def test_an_optional_arn_member_of_a_type_without_variables_names_it_when_absent
|
||||
{"type": "catalog", "fill": {}, "when": {"CatalogArn": [None]}}]
|
||||
# A required member is always there.
|
||||
assert r.with_absent_arn(named, FORMATS, set()) == named
|
||||
# A format ending in a wildcard (DMS's `cert:*`) names every resource of its type, so a request leaving the member
|
||||
# out names none of them.
|
||||
wildcard = {"cert": "arn:${Partition}:svc:${Region}:${Account}:cert:*"}
|
||||
assert r.with_absent_arn([{"types": ["cert"], "arn": "CertificateArn"}], wildcard, {"CertificateArn"}) == [
|
||||
{"types": ["cert"], "arn": "CertificateArn"}]
|
||||
|
||||
|
||||
def test_an_optional_arn_member_of_a_type_with_variables_names_its_services_default_when_absent():
|
||||
@@ -1292,6 +1297,12 @@ def test_the_vendored_file_is_well_formed():
|
||||
"fill": {"AggregatorAccount": "AuthorizedAccountId", "AggregatorRegion": "AuthorizedAwsRegion"}}]
|
||||
assert {"type": "ConfigurationRecorder", "fill": {"RecorderName": "ConfigurationRecorder.name"}} in operations[
|
||||
"config:PutConfigurationRecorder"]["resources"]
|
||||
# DMS is read whole: an existing resource by the ARN its request names it by, each format ending in a literal `*`.
|
||||
assert document["arnFormats"]["dms"]["Endpoint"] == "arn:${Partition}:dms:${Region}:${Account}:endpoint:*"
|
||||
assert "dms" in document["namespaces"] and "dms" not in document["notCovered"]
|
||||
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"])
|
||||
# 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"]}]
|
||||
|
||||
Reference in new issue
Block a user