mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(iam): check AWS AppSync by its generated routes, resources and passed roles (#9668)
Under enforcement a REST route no vendored model names runs unchecked, and AWS AppSync was among them: a caller could give a data source any service role and a GraphQL API any CloudWatch Logs or merged API execution role with no iam:PassRole, and a grant scoped to one GraphQL API covered every API, as #6255 reports. AppSync's model routes are vendored, so each request is checked as its operation's action, and AppSync joins the tables of request resources, passed roles and tags on create. The Service Reference passes every AppSync role to appsync, so the passed-roles generator reads each member alone: a data source's serviceRoleArn, a GraphQL API's logConfig.cloudWatchLogsRoleArn and mergedApiExecutionRoleArn, and an Event API's eventConfig.logConfig.cloudWatchLogsRoleArn, each passed to appsync.amazonaws.com. The request-resources generator now also fills a variable whose stem no member's matches with the one path label a REST route puts after the literal segment the type's format puts before that variable, or after that segment qualified by the variable's first word: AppSync's apiId in /v1/apis/{apiId} fills apis/${GraphQLAPIId}, and sourceApiIdentifier in /v1/sourceApis/{sourceApiIdentifier} a merged API association's apis/${SourceGraphQLAPIId}. No other namespace's reading changes. An operation on an API's data sources, resolvers, functions, types, API keys or schema, which the Service Reference gives no resource type, stays on *, as AWS checks it. AppSyncStoredResourceArns answers the tags AppSync holds on a GraphQL API or a custom domain name, which an aws:ResourceTag condition reads. AppSync now mints a channel namespace's ARN as apis/<apiId>/channelNamespace/<name> and an association's as apis/<mergedApiId>/sourceApiAssociations/<associationId>, from the association's own id, as AWS returns them, so a policy naming the ARN AppSync returns names the resource the request is checked on. Floci minted channelNamespaces/<name>, and an association ARN under sourceApis/ or mergedApis/ ending in a second id. AppSync's tag routes are served, as every namespace's the table reads, on the route its model gives, /v1/tags/{resourceArn} with the ARN encoded as an SDK sends it. Part of #6255.
This commit is contained in:
1 parent
739e1274bc
commit
0da5179612
17 files changed
+565
-32
No files matched your search
+14
-2
@@ -2591,7 +2591,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 Batch, AWS Resource Groups, Amazon CloudWatch Logs, Amazon CloudWatch, Amazon Comprehend, AWS Config, AWS DMS, Amazon ElastiCache, AWS Identity Store, Amazon MemoryDB, Amazon Route 53 Resolver, Amazon SageMaker, Amazon Transcribe, AWS Transfer Family, Amazon EFS, Amazon SES, AWS AppConfig, AWS CodeArtifact and Amazon CodeGuru Reviewer 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 Batch, AWS AppSync, AWS Resource Groups, Amazon CloudWatch Logs, Amazon CloudWatch, Amazon Comprehend, AWS Config, AWS DMS, Amazon ElastiCache, AWS Identity Store, Amazon MemoryDB, Amazon Route 53 Resolver, Amazon SageMaker, Amazon Transcribe, AWS Transfer Family, Amazon EFS, Amazon SES, AWS AppConfig, AWS CodeArtifact and Amazon CodeGuru Reviewer 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
|
||||
@@ -2920,7 +2920,14 @@ calls on the file system or access point EFS answers their `MountTargetId` or `R
|
||||
routes are checked the same way: a compute environment, a job queue or a job definition by its name or its ARN, the
|
||||
compute environments a job queue's `computeEnvironmentOrder` names, the job definition revision a `name:revision`
|
||||
names, and for a job submitted from a definition's name alone the latest active revision it runs ("the request ARN
|
||||
includes the revision"), each as Batch resolves it, and a job by its id. Amazon SES v2's
|
||||
includes the revision"), each as Batch resolves it, and a job by its id. AWS AppSync's routes are checked the
|
||||
same way: a GraphQL API by the id its path gives, a custom domain name by its name, a channel namespace by its API's
|
||||
id and its name, and a source or merged API association by its id and the id of the API its path names, the source
|
||||
API's side (`DisassociateMergedGraphqlApi`) on the `mergedApiAssociation` the Service Reference gives it,
|
||||
`apis/<sourceApiId>/mergedApiAssociations/<associationId>`, rather than the `associationArn` AppSync returns; an operation
|
||||
on an API's data sources, resolvers, functions, types, API keys or schema, which the Service Reference gives no
|
||||
resource type, is checked on `*`, as AWS checks it. An `aws:ResourceTag` condition reads the tags AppSync holds on a
|
||||
GraphQL API or a custom domain name. Amazon SES v2's
|
||||
and Amazon Pinpoint Email's routes are checked by their routes, on the resources the table reads, as SES v1's Query
|
||||
requests are by their `Action`. Two `GET` routes an SDK built before botocore moved `ListConfigurationSets` and
|
||||
`ListEmailIdentities` to `POST /v2/email/list-configuration-sets` and `POST /v2/email/list-identities` still sends,
|
||||
@@ -3136,6 +3143,11 @@ role each passes:
|
||||
(ARN)"; "the path for this property is /name"; "only OpenAPI definition JSON/YAML files are
|
||||
supported"; and each extension, what it extends and its property "in the form of an ARN of an IAM
|
||||
execution role".
|
||||
- **AppSync:** `CreateDataSource` and `UpdateDataSource` pass `serviceRoleArn`, `CreateGraphqlApi` and
|
||||
`UpdateGraphqlApi` a GraphQL API's `logConfig.cloudWatchLogsRoleArn` and `mergedApiExecutionRoleArn`, and `CreateApi`
|
||||
and `UpdateApi`, which Floci does not serve, an Event API's `eventConfig.logConfig.cloudWatchLogsRoleArn`, each to
|
||||
`appsync.amazonaws.com`, the one service the Service Reference passes their roles to. All are read from the table
|
||||
below.
|
||||
- **Batch:** `CreateComputeEnvironment` and `UpdateComputeEnvironment` pass `serviceRole`, by its name, a name
|
||||
its path prefixes (`/foo/bar`, the role `bar` of the path `/foo/`) or its ARN, to `batch.amazonaws.com`, the roles of the instance profile a compute resource's `instanceRole` names, by its
|
||||
name or its ARN, to `ec2.amazonaws.com`, and a managed instances provider's `infrastructureRoleArn` to
|
||||
|
||||
@@ -51,7 +51,8 @@ import java.util.Optional;
|
||||
* schedule, an event subscription or an integration; SSM, for the parameter a legacy ARN names, the document of
|
||||
* another account an association runs and the tags of a parameter, a document or an association; CloudFront, for the
|
||||
* key value store a name names and the tags of any resource it tags; Batch, for the job definition revision a reference
|
||||
* resolves to and the tags of a compute environment, a job queue, a job definition or a job; ECS, for the revision a
|
||||
* resolves to and the tags of a compute environment, a job queue, a job definition or a job; AppSync, for the tags of a
|
||||
* GraphQL API or a custom domain name; ECS, for the revision a
|
||||
* task definition reference resolves to, its default cluster and the tags of a cluster, a task definition, a service, a capacity
|
||||
* provider, a task or a container instance; ACM, for the tags of a certificate; Firehose, for the tags of a delivery
|
||||
* stream; Cognito, for the tags of a user pool or an identity pool; OpenSearch, for the tags of a domain; Signer, for
|
||||
|
||||
@@ -746,6 +746,31 @@ public class AppSyncService {
|
||||
apiStore.put(api.getApiId(), api);
|
||||
}
|
||||
|
||||
/**
|
||||
* The tags AppSync holds on the GraphQL API or the custom domain name {@code resourceArn} names, which an
|
||||
* {@code aws:ResourceTag} condition reads; none for a resource it does not hold or keeps no tags on. Reads only.
|
||||
*/
|
||||
synchronized Map<String, String> storedTags(String resourceArn) {
|
||||
try {
|
||||
Map<String, String> tags = resourceArn.contains(":domainnames/")
|
||||
? taggedDomainName(resourceArn).getTags() : taggedApi(resourceArn).getTags();
|
||||
return tags == null ? Map.of() : Map.copyOf(tags);
|
||||
} catch (AwsException expected) {
|
||||
// The lookups refuse an ARN naming no API or domain name AppSync holds, which has no stored tags.
|
||||
return Map.of();
|
||||
}
|
||||
}
|
||||
|
||||
/** The domain name {@code resourceArn} names: the request's Region's one whose ARN it is. */
|
||||
private DomainName taggedDomainName(String resourceArn) {
|
||||
DomainName domainName = getDomainName(resourceArn.substring(resourceArn.indexOf(":domainnames/")
|
||||
+ ":domainnames/".length()));
|
||||
if (!resourceArn.equals(domainName.getDomainNameArn())) {
|
||||
throw new AwsException("NotFoundException", "Domain name not found: " + resourceArn, 404);
|
||||
}
|
||||
return domainName;
|
||||
}
|
||||
|
||||
/** The API {@code resourceArn} names: the request's Region's API whose ARN it is, partition, Region and account. */
|
||||
private GraphqlApi taggedApi(String resourceArn) {
|
||||
String apiId = extractApiIdFromArn(resourceArn);
|
||||
@@ -895,7 +920,7 @@ public class AppSyncService {
|
||||
ns.setApiId(apiId);
|
||||
ns.setDescription((String) request.get("description"));
|
||||
ns.setChannelNamespaceArn(regionResolver.buildArn("appsync", regionResolver.regionOf(api.getArn()),
|
||||
"apis/" + apiId + "/channelNamespaces/" + name));
|
||||
"apis/" + apiId + "/channelNamespace/" + name));
|
||||
ns.setCodeHandlers((String) request.get("codeHandlers"));
|
||||
ns.setCreated(System.currentTimeMillis());
|
||||
ns.setLastModified(System.currentTimeMillis());
|
||||
@@ -942,9 +967,9 @@ public class AppSyncService {
|
||||
assertSchemaNotBusy(mergedApiIdentifier);
|
||||
checkDuplicateSourceApiAssociation(sourceApiIdentifier, mergedApiIdentifier);
|
||||
SourceApiAssociation assoc = new SourceApiAssociation();
|
||||
assoc.setAssociationId(generateShortId());
|
||||
assoc.setAssociationArn(regionResolver.buildArn("appsync", region,
|
||||
"sourceApis/" + sourceApiIdentifier + "/mergedApiAssociations/" + generateShortId()));
|
||||
String associationId = generateShortId();
|
||||
assoc.setAssociationId(associationId);
|
||||
assoc.setAssociationArn(associationArn(region, mergedApiIdentifier, associationId));
|
||||
assoc.setMergedApiId(mergedApiIdentifier);
|
||||
assoc.setMergedApiArn(regionResolver.buildArn("appsync", region, "apis/" + mergedApiIdentifier));
|
||||
assoc.setSourceApiId(sourceApiIdentifier);
|
||||
@@ -970,9 +995,9 @@ public class AppSyncService {
|
||||
assertSchemaNotBusy(sourceApiId);
|
||||
checkDuplicateSourceApiAssociation(sourceApiId, mergedApiIdentifier);
|
||||
SourceApiAssociation assoc = new SourceApiAssociation();
|
||||
assoc.setAssociationId(generateShortId());
|
||||
assoc.setAssociationArn(regionResolver.buildArn("appsync", region,
|
||||
"mergedApis/" + mergedApiIdentifier + "/sourceApiAssociations/" + generateShortId()));
|
||||
String associationId = generateShortId();
|
||||
assoc.setAssociationId(associationId);
|
||||
assoc.setAssociationArn(associationArn(region, mergedApiIdentifier, associationId));
|
||||
assoc.setMergedApiId(mergedApiIdentifier);
|
||||
assoc.setMergedApiArn(regionResolver.buildArn("appsync", region, "apis/" + mergedApiIdentifier));
|
||||
assoc.setSourceApiId(sourceApiId);
|
||||
@@ -987,6 +1012,15 @@ public class AppSyncService {
|
||||
return assoc;
|
||||
}
|
||||
|
||||
/**
|
||||
* The ARN AppSync gives an association, from either side: the merged API's {@code sourceApiAssociations} path
|
||||
* ending in the association's own id.
|
||||
*/
|
||||
private String associationArn(String region, String mergedApiId, String associationId) {
|
||||
return regionResolver.buildArn("appsync", region,
|
||||
"apis/" + mergedApiId + "/sourceApiAssociations/" + associationId);
|
||||
}
|
||||
|
||||
/**
|
||||
* The request's Region's association {@code associationId} of {@code mergedApiIdentifier}. It is the Region its own
|
||||
* ARN names, not the APIs': an association outlives a source API deleted without it, and can still be removed.
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package io.floci.aws.services.appsync;
|
||||
|
||||
import io.floci.aws.core.common.StoredResourceArns;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* What IAM asks AppSync of the resources a request names: the tags AppSync holds on a GraphQL API or a custom domain
|
||||
* name, which an {@code aws:ResourceTag} condition reads.
|
||||
*/
|
||||
@ApplicationScoped
|
||||
public class AppSyncStoredResourceArns implements StoredResourceArns {
|
||||
|
||||
private final AppSyncService appSync;
|
||||
|
||||
@Inject
|
||||
public AppSyncStoredResourceArns(AppSyncService appSync) {
|
||||
this.appSync = appSync;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String namespace() {
|
||||
return "appsync";
|
||||
}
|
||||
|
||||
/** AppSync stores no resource under a name a request fills an ARN with: an API's id is one it mints. */
|
||||
@Override
|
||||
public Optional<String> find(String type, List<String> names, String region) {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> storedTags(String arn) {
|
||||
return appSync.storedTags(arn);
|
||||
}
|
||||
}
|
||||
@@ -381,6 +381,59 @@
|
||||
"ListExtensions",
|
||||
"UpdateAccountSettings"
|
||||
],
|
||||
"appsync": [
|
||||
"CreateApi",
|
||||
"CreateApiCache",
|
||||
"CreateApiKey",
|
||||
"CreateDataSource",
|
||||
"CreateFunction",
|
||||
"CreateGraphqlApi",
|
||||
"CreateResolver",
|
||||
"CreateType",
|
||||
"DeleteApiCache",
|
||||
"DeleteApiKey",
|
||||
"DeleteDataSource",
|
||||
"DeleteFunction",
|
||||
"DeleteResolver",
|
||||
"DeleteResourcePolicy",
|
||||
"DeleteType",
|
||||
"EvaluateCode",
|
||||
"EvaluateMappingTemplate",
|
||||
"FlushApiCache",
|
||||
"GetApiCache",
|
||||
"GetDataSource",
|
||||
"GetDataSourceIntrospection",
|
||||
"GetFunction",
|
||||
"GetGraphqlApiEnvironmentVariables",
|
||||
"GetIntrospectionSchema",
|
||||
"GetResolver",
|
||||
"GetResourcePolicy",
|
||||
"GetSchemaCreationStatus",
|
||||
"GetType",
|
||||
"ListApiKeys",
|
||||
"ListApis",
|
||||
"ListDataSources",
|
||||
"ListDomainNames",
|
||||
"ListFunctions",
|
||||
"ListGraphqlApis",
|
||||
"ListResolvers",
|
||||
"ListResolversByFunction",
|
||||
"ListResourcesForWebACL",
|
||||
"ListSourceApiAssociations",
|
||||
"ListTypes",
|
||||
"ListTypesByAssociation",
|
||||
"PutGraphqlApiEnvironmentVariables",
|
||||
"PutResourcePolicy",
|
||||
"SetWebACL",
|
||||
"StartDataSourceIntrospection",
|
||||
"StartSchemaCreation",
|
||||
"UpdateApiCache",
|
||||
"UpdateApiKey",
|
||||
"UpdateDataSource",
|
||||
"UpdateFunction",
|
||||
"UpdateResolver",
|
||||
"UpdateType"
|
||||
],
|
||||
"aps": [
|
||||
"CreateWorkspace",
|
||||
"GetDefaultScraperConfiguration",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_passed_roles.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.44.9 (installed package)", "retrieved": "2026-11-28", "note": "make iam-passed-roles-check re-derives every member from botocore; make iam-passed-roles-verify checks every operation against AWS."},
|
||||
"namespaces": {"apigateway": ["apigateway", "apigatewayv2"], "application-autoscaling": ["application-autoscaling"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "batch": ["batch"], "budgets": ["budgets"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb-proxy"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicecatalog": ["servicecatalog"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "sns": ["sns"], "ssm": ["ssm"], "states": ["stepfunctions"], "swf": ["swf"], "textract": ["textract"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"]},
|
||||
"notCovered": {"access-analyzer": "REST routes no rule maps yet", "airflow": "REST routes no rule maps yet", "appconfig": "CreateExtension and UpdateExtension pass a role in Actions{}[].RoleArn, a map of lists, which this file does not read yet", "appsync": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; role passing and iam:PassRole checks are not implemented", "rum": "REST routes no rule maps yet"},
|
||||
"namespaces": {"apigateway": ["apigateway", "apigatewayv2"], "application-autoscaling": ["application-autoscaling"], "appsync": ["appsync"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "batch": ["batch"], "budgets": ["budgets"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb-proxy"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicecatalog": ["servicecatalog"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "sns": ["sns"], "ssm": ["ssm"], "states": ["stepfunctions"], "swf": ["swf"], "textract": ["textract"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"]},
|
||||
"notCovered": {"access-analyzer": "REST routes no rule maps yet", "airflow": "REST routes no rule maps yet", "appconfig": "CreateExtension and UpdateExtension pass a role in Actions{}[].RoleArn, a map of lists, which this file does not read yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; role passing and iam:PassRole checks are not implemented", "rum": "REST routes no rule maps yet"},
|
||||
"otherNamespaces": ["agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "aoss", "appflow", "appmesh", "apprunner", "appstream", "arc-region-switch", "backup-gateway", "backup-search", "bcm-dashboards", "braket", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "codeconnections", "codestar-connections", "cognito-sync", "comprehendmedical", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "elemental-inference", "entityresolution", "fms", "forecast", "frauddetector", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "kafkaconnect", "kendra", "lex", "lookoutequipment", "m2", "machinelearning", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "medical-imaging", "mobiletargeting", "neptune-graph", "observabilityadmin", "odb", "omics", "opensearch", "osis", "partnercentral", "pcs", "personalize", "profile", "proton", "qbusiness", "repostspace", "resiliencehub", "rolesanywhere", "s3files", "sagemaker-geospatial", "securityagent", "securitylake", "shield", "sms-voice", "snowball", "social-messaging", "ssm-incidents", "ssm-quicksetup", "storagegateway", "supportapp", "synthetics", "timestream", "voiceid", "wellarchitected", "wisdom", "workmail", "workspaces"],
|
||||
"operations": {
|
||||
"apigateway:CreateApi": {"passedTo": ["apigateway"], "roles": [
|
||||
@@ -54,6 +54,26 @@
|
||||
"application-autoscaling:RegisterScalableTarget": {"passedTo": ["application-autoscaling"], "roles": [
|
||||
{"member": "RoleARN", "passedTo": "application-autoscaling"}
|
||||
]},
|
||||
"appsync:CreateApi": {"passedTo": ["appsync"], "roles": [
|
||||
{"member": "eventConfig.logConfig.cloudWatchLogsRoleArn", "passedTo": "appsync"}
|
||||
]},
|
||||
"appsync:CreateDataSource": {"passedTo": ["appsync"], "roles": [
|
||||
{"member": "serviceRoleArn", "passedTo": "appsync"}
|
||||
]},
|
||||
"appsync:CreateGraphqlApi": {"passedTo": ["appsync"], "roles": [
|
||||
{"member": "logConfig.cloudWatchLogsRoleArn", "passedTo": "appsync"},
|
||||
{"member": "mergedApiExecutionRoleArn", "passedTo": "appsync"}
|
||||
]},
|
||||
"appsync:UpdateApi": {"passedTo": ["appsync"], "roles": [
|
||||
{"member": "eventConfig.logConfig.cloudWatchLogsRoleArn", "passedTo": "appsync"}
|
||||
]},
|
||||
"appsync:UpdateDataSource": {"passedTo": ["appsync"], "roles": [
|
||||
{"member": "serviceRoleArn", "passedTo": "appsync"}
|
||||
]},
|
||||
"appsync:UpdateGraphqlApi": {"passedTo": ["appsync"], "roles": [
|
||||
{"member": "logConfig.cloudWatchLogsRoleArn", "passedTo": "appsync"},
|
||||
{"member": "mergedApiExecutionRoleArn", "passedTo": "appsync"}
|
||||
]},
|
||||
"aps:CreateScraper": {"passedTo": ["aps"], "roles": [
|
||||
{"member": "roleConfiguration.sourceRoleArn", "passedTo": "aps"},
|
||||
{"member": "roleConfiguration.targetRoleArn", "passedTo": "aps"}
|
||||
|
||||
@@ -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 (installed package)", "retrieved": "2026-11-28", "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"], "appconfig": ["appconfig", "appconfigdata"], "application-autoscaling": ["application-autoscaling"], "aps": ["amp"], "athena": ["athena"], "batch": ["batch"], "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"], "codeartifact": ["codeartifact"], "codebuild": ["codebuild"], "codeguru-reviewer": ["codeguru-reviewer"], "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"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb", "elb-proxy", "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"], "identitystore": ["identitystore"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "rds-data": ["rds-data"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "route53resolver": ["route53resolver"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "sagemaker": ["sagemaker", "sagemaker-a2i-runtime", "sagemaker-edge", "sagemaker-featurestore-runtime", "sagemaker-gateway-runtime", "sagemaker-inference-router-runtime", "sagemaker-metrics", "sagemaker-runtime", "sagemakerjobruntime", "sagemakertrainingsessionruntime"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "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", "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", "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", "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", "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", "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", "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", "mq": "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", "network-firewall": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "organizations": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "rum": "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", "servicecatalog": "not read yet: CreatePortfolioShare, UpdatePortfolioShare and DeletePortfolioShare give in AccountId the account a portfolio is shared with, which the rule reads as the portfolio's; a portfolio or product imported from another account keeps its owner's account in its ARN while requests name it by its id alone; and AppRegistry's applications and attribute groups are named in the path", "signin": "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 modelLine truncated
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "apigateway": ["apigateway", "apigatewayv2"], "appconfig": ["appconfig", "appconfigdata"], "application-autoscaling": ["application-autoscaling"], "appsync": ["appsync"], "aps": ["amp"], "athena": ["athena"], "batch": ["batch"], "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"], "codeartifact": ["codeartifact"], "codebuild": ["codebuild"], "codeguru-reviewer": ["codeguru-reviewer"], "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"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb", "elb-proxy", "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"], "identitystore": ["identitystore"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "rds-data": ["rds-data"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "route53resolver": ["route53resolver"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "sagemaker": ["sagemaker", "sagemaker-a2i-runtime", "sagemaker-edge", "sagemaker-featurestore-runtime", "sagemaker-gateway-runtime", "sagemaker-inference-router-runtime", "sagemaker-metrics", "sagemaker-runtime", "sagemakerjobruntime", "sagemakertrainingsessionruntime"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "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", "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", "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", "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", "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", "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", "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", "mq": "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", "network-firewall": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "organizations": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "rum": "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", "servicecatalog": "not read yet: CreatePortfolioShare, UpdatePortfolioShare and DeletePortfolioShare give in AccountId the account a portfolio is shared with, which the rule reads as the portfolio's; a portfolio or product imported from another account keeps its owner's account in its ARN while requests name it by its id alone; and AppRegistry's applications and attribute groups are named in the path", "signin": "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", "ssmmessages": "channel routes authorise agent and client resources directly rather than through generated request mappings", "sso-oauth": "REST: its requests name their resources in the path, which RequestResoLine truncated
|
||||
"otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifygen3", "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", "finops-agent", "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", "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/"]}, "appconfig": {"application": ["aws:ResourceTag/"], "configuration": ["aws:ResourceTag/"], "configurationprofile": ["aws:ResourceTag/"], "deployment": ["aws:ResourceTag/"], "deploymentstrategy": ["aws:ResourceTag/"], "environment": ["aws:ResourceTag/"], "experimentdefinition": ["aws:ResourceTag/"], "experimentrun": ["aws:ResourceTag/"], "extension": ["aws:ResourceTag/"], "extensionassociation": ["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/"]}, "batch": {"compute-environment": ["aws:ResourceTag/"], "consumable-resource": ["aws:ResourceTag/"], "job": ["aws:ResourceTag/"], "job-definition-revision": ["aws:ResourceTag/"], "job-queue": ["aws:ResourceTag/"], "quota-share": ["aws:ResourceTag/"], "scheduling-policy": ["aws:ResourceTag/"], "service-environment": ["aws:ResourceTag/"], "service-job": ["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/"], "dataLine 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/"]}, "appconfig": {"application": ["aws:ResourceTag/"], "configuration": ["aws:ResourceTag/"], "configurationprofile": ["aws:ResourceTag/"], "deployment": ["aws:ResourceTag/"], "deploymentstrategy": ["aws:ResourceTag/"], "environment": ["aws:ResourceTag/"], "experimentdefinition": ["aws:ResourceTag/"], "experimentrun": ["aws:ResourceTag/"], "extension": ["aws:ResourceTag/"], "extensionassociation": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "appsync": {"api": ["aws:ResourceTag/"], "channelNamespace": ["aws:ResourceTag/"], "domain": ["aws:ResourceTag/"], "graphqlapi": ["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/"]}, "batch": {"compute-environment": ["aws:ResourceTag/"], "consumable-resource": ["aws:ResourceTag/"], "job": ["aws:ResourceTag/"], "job-definition-revision": ["aws:ResourceTag/"], "job-queue": ["aws:ResourceTag/"], "quota-share": ["aws:ResourceTag/"], "scheduling-policy": ["aws:ResourceTag/"], "service-environment": ["aws:ResourceTag/"], "service-job": ["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-invoLine 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"]},
|
||||
@@ -371,6 +371,80 @@
|
||||
"application-autoscaling:RegisterScalableTarget": {"action": "application-autoscaling:RegisterScalableTarget", "types": ["ScalableTarget"], "resources": [{"types": ["ScalableTarget"], "arn": "RoleARN", "apis": ["json/2016-02-06"]}, {"type": "ScalableTarget", "fill": {}, "find": ["ServiceNamespace", "ResourceId", "ScalableDimension"], "apis": ["json/2016-02-06"]}]},
|
||||
"application-autoscaling:TagResource": {"action": "application-autoscaling:TagResource", "types": ["ScalableTarget"], "resources": [{"types": ["ScalableTarget"], "arn": "ResourceARN", "apis": ["json/2016-02-06"]}]},
|
||||
"application-autoscaling:UntagResource": {"action": "application-autoscaling:UntagResource", "types": ["ScalableTarget"], "resources": [{"types": ["ScalableTarget"], "arn": "ResourceARN", "apis": ["json/2016-02-06"]}]},
|
||||
"appsync:AssociateApi": {"action": "appsync:AssociateApi", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "domainName"}, "apis": ["rest-json/2017-07-25"]}], "located": {"domainName": "{domainName}"}},
|
||||
"appsync:AssociateMergedGraphqlApi": {"action": "appsync:AssociateMergedGraphqlApi", "types": ["graphqlapi"], "resources": []},
|
||||
"appsync:AssociateSourceGraphqlApi": {"action": "appsync:AssociateSourceGraphqlApi", "types": ["graphqlapi"], "resources": []},
|
||||
"appsync:CreateApi": {"action": "appsync:CreateApi", "types": [], "resources": [], "makes": [{"type": "api", "fill": {}}]},
|
||||
"appsync:CreateApiCache": {"action": "appsync:CreateApiCache", "types": [], "resources": []},
|
||||
"appsync:CreateApiKey": {"action": "appsync:CreateApiKey", "types": [], "resources": []},
|
||||
"appsync:CreateChannelNamespace": {"action": "appsync:CreateChannelNamespace", "types": ["channelNamespace"], "resources": [{"type": "channelNamespace", "fill": {"ApiId": "apiId", "ChannelNamespaceName": "name"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}"}},
|
||||
"appsync:CreateDataSource": {"action": "appsync:CreateDataSource", "types": [], "resources": [], "makes": [{"type": "datasource", "fill": {"DatasourceName": "name"}}]},
|
||||
"appsync:CreateDomainName": {"action": "appsync:CreateDomainName", "types": ["domain"], "resources": [{"types": ["domain"], "arn": "certificateArn", "apis": ["rest-json/2017-07-25"]}, {"type": "domain", "fill": {"DomainName": "domainName"}, "apis": ["rest-json/2017-07-25"]}]},
|
||||
"appsync:CreateFunction": {"action": "appsync:CreateFunction", "types": [], "resources": [], "makes": [{"type": "function", "fill": {}}]},
|
||||
"appsync:CreateGraphqlApi": {"action": "appsync:CreateGraphqlApi", "types": [], "resources": [], "makes": [{"type": "graphqlapi", "fill": {}}]},
|
||||
"appsync:CreateResolver": {"action": "appsync:CreateResolver", "types": [], "resources": []},
|
||||
"appsync:CreateType": {"action": "appsync:CreateType", "types": [], "resources": [], "makes": [{"type": "type", "fill": {}}]},
|
||||
"appsync:DeleteApi": {"action": "appsync:DeleteApi", "types": ["api"], "resources": [{"type": "api", "fill": {"ApiId": "apiId"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}"}},
|
||||
"appsync:DeleteApiCache": {"action": "appsync:DeleteApiCache", "types": [], "resources": []},
|
||||
"appsync:DeleteApiKey": {"action": "appsync:DeleteApiKey", "types": [], "resources": []},
|
||||
"appsync:DeleteChannelNamespace": {"action": "appsync:DeleteChannelNamespace", "types": ["channelNamespace"], "resources": [{"type": "channelNamespace", "fill": {"ApiId": "apiId", "ChannelNamespaceName": "name"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}", "name": "{name}"}},
|
||||
"appsync:DeleteDataSource": {"action": "appsync:DeleteDataSource", "types": [], "resources": []},
|
||||
"appsync:DeleteDomainName": {"action": "appsync:DeleteDomainName", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "domainName"}, "apis": ["rest-json/2017-07-25"]}], "located": {"domainName": "{domainName}"}},
|
||||
"appsync:DeleteFunction": {"action": "appsync:DeleteFunction", "types": [], "resources": []},
|
||||
"appsync:DeleteGraphqlApi": {"action": "appsync:DeleteGraphqlApi", "types": ["graphqlapi"], "resources": [{"type": "graphqlapi", "fill": {"GraphQLAPIId": "apiId"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}"}},
|
||||
"appsync:DeleteResolver": {"action": "appsync:DeleteResolver", "types": [], "resources": []},
|
||||
"appsync:DeleteType": {"action": "appsync:DeleteType", "types": [], "resources": []},
|
||||
"appsync:DisassociateApi": {"action": "appsync:DisassociateApi", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "domainName"}, "apis": ["rest-json/2017-07-25"]}], "located": {"domainName": "{domainName}"}},
|
||||
"appsync:DisassociateMergedGraphqlApi": {"action": "appsync:DisassociateMergedGraphqlApi", "types": ["mergedApiAssociation"], "resources": [{"type": "mergedApiAssociation", "fill": {"Associationid": "associationId", "SourceGraphQLAPIId": "sourceApiIdentifier"}, "apis": ["rest-json/2017-07-25"]}, {"types": ["mergedApiAssociation"], "through": "sourceApiIdentifier", "apis": ["rest-json/2017-07-25"]}], "located": {"associationId": "{associationId}", "sourceApiIdentifier": "{sourceApiIdentifier}"}},
|
||||
"appsync:DisassociateSourceGraphqlApi": {"action": "appsync:DisassociateSourceGraphqlApi", "types": ["sourceApiAssociation"], "resources": [{"type": "sourceApiAssociation", "fill": {"Associationid": "associationId", "MergedGraphQLAPIId": "mergedApiIdentifier"}, "apis": ["rest-json/2017-07-25"]}], "located": {"associationId": "{associationId}", "mergedApiIdentifier": "{mergedApiIdentifier}"}},
|
||||
"appsync:EvaluateCode": {"action": "appsync:EvaluateCode", "types": [], "resources": []},
|
||||
"appsync:EvaluateMappingTemplate": {"action": "appsync:EvaluateMappingTemplate", "types": [], "resources": []},
|
||||
"appsync:FlushApiCache": {"action": "appsync:FlushApiCache", "types": [], "resources": []},
|
||||
"appsync:GetApi": {"action": "appsync:GetApi", "types": ["api"], "resources": [{"type": "api", "fill": {"ApiId": "apiId"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}"}},
|
||||
"appsync:GetApiAssociation": {"action": "appsync:GetApiAssociation", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "domainName"}, "apis": ["rest-json/2017-07-25"]}], "located": {"domainName": "{domainName}"}},
|
||||
"appsync:GetApiCache": {"action": "appsync:GetApiCache", "types": [], "resources": []},
|
||||
"appsync:GetChannelNamespace": {"action": "appsync:GetChannelNamespace", "types": ["channelNamespace"], "resources": [{"type": "channelNamespace", "fill": {"ApiId": "apiId", "ChannelNamespaceName": "name"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}", "name": "{name}"}},
|
||||
"appsync:GetDataSource": {"action": "appsync:GetDataSource", "types": [], "resources": []},
|
||||
"appsync:GetDataSourceIntrospection": {"action": "appsync:GetDataSourceIntrospection", "types": [], "resources": []},
|
||||
"appsync:GetDomainName": {"action": "appsync:GetDomainName", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "domainName"}, "apis": ["rest-json/2017-07-25"]}], "located": {"domainName": "{domainName}"}},
|
||||
"appsync:GetFunction": {"action": "appsync:GetFunction", "types": [], "resources": []},
|
||||
"appsync:GetGraphqlApi": {"action": "appsync:GetGraphqlApi", "types": ["graphqlapi"], "resources": [{"type": "graphqlapi", "fill": {"GraphQLAPIId": "apiId"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}"}},
|
||||
"appsync:GetGraphqlApiEnvironmentVariables": {"action": "appsync:GetGraphqlApiEnvironmentVariables", "types": [], "resources": []},
|
||||
"appsync:GetIntrospectionSchema": {"action": "appsync:GetIntrospectionSchema", "types": [], "resources": []},
|
||||
"appsync:GetResolver": {"action": "appsync:GetResolver", "types": [], "resources": []},
|
||||
"appsync:GetSchemaCreationStatus": {"action": "appsync:GetSchemaCreationStatus", "types": [], "resources": []},
|
||||
"appsync:GetSourceApiAssociation": {"action": "appsync:GetSourceApiAssociation", "types": ["sourceApiAssociation"], "resources": [{"type": "sourceApiAssociation", "fill": {"Associationid": "associationId", "MergedGraphQLAPIId": "mergedApiIdentifier"}, "apis": ["rest-json/2017-07-25"]}], "located": {"associationId": "{associationId}", "mergedApiIdentifier": "{mergedApiIdentifier}"}},
|
||||
"appsync:GetType": {"action": "appsync:GetType", "types": [], "resources": []},
|
||||
"appsync:ListApiKeys": {"action": "appsync:ListApiKeys", "types": [], "resources": []},
|
||||
"appsync:ListApis": {"action": "appsync:ListApis", "types": [], "resources": []},
|
||||
"appsync:ListChannelNamespaces": {"action": "appsync:ListChannelNamespaces", "types": ["api"], "resources": [{"type": "api", "fill": {"ApiId": "apiId"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}"}},
|
||||
"appsync:ListDataSources": {"action": "appsync:ListDataSources", "types": [], "resources": []},
|
||||
"appsync:ListDomainNames": {"action": "appsync:ListDomainNames", "types": [], "resources": []},
|
||||
"appsync:ListFunctions": {"action": "appsync:ListFunctions", "types": [], "resources": []},
|
||||
"appsync:ListGraphqlApis": {"action": "appsync:ListGraphqlApis", "types": [], "resources": []},
|
||||
"appsync:ListResolvers": {"action": "appsync:ListResolvers", "types": [], "resources": []},
|
||||
"appsync:ListResolversByFunction": {"action": "appsync:ListResolversByFunction", "types": [], "resources": []},
|
||||
"appsync:ListSourceApiAssociations": {"action": "appsync:ListSourceApiAssociations", "types": [], "resources": []},
|
||||
"appsync:ListTagsForResource": {"action": "appsync:ListTagsForResource", "types": ["api", "channelNamespace", "domain", "graphqlapi"], "resources": [{"types": ["api", "channelNamespace", "domain", "graphqlapi"], "arn": "resourceArn", "apis": ["rest-json/2017-07-25"]}], "located": {"resourceArn": "{resourceArn}"}},
|
||||
"appsync:ListTypes": {"action": "appsync:ListTypes", "types": [], "resources": []},
|
||||
"appsync:ListTypesByAssociation": {"action": "appsync:ListTypesByAssociation", "types": [], "resources": []},
|
||||
"appsync:PutGraphqlApiEnvironmentVariables": {"action": "appsync:PutGraphqlApiEnvironmentVariables", "types": [], "resources": []},
|
||||
"appsync:StartDataSourceIntrospection": {"action": "appsync:StartDataSourceIntrospection", "types": [], "resources": []},
|
||||
"appsync:StartSchemaCreation": {"action": "appsync:StartSchemaCreation", "types": [], "resources": []},
|
||||
"appsync:StartSchemaMerge": {"action": "appsync:StartSchemaMerge", "types": ["sourceApiAssociation"], "resources": [{"type": "sourceApiAssociation", "fill": {"Associationid": "associationId", "MergedGraphQLAPIId": "mergedApiIdentifier"}, "apis": ["rest-json/2017-07-25"]}], "located": {"associationId": "{associationId}", "mergedApiIdentifier": "{mergedApiIdentifier}"}},
|
||||
"appsync:TagResource": {"action": "appsync:TagResource", "types": ["api", "channelNamespace", "domain", "graphqlapi"], "resources": [{"types": ["api", "channelNamespace", "domain", "graphqlapi"], "arn": "resourceArn", "apis": ["rest-json/2017-07-25"]}], "located": {"resourceArn": "{resourceArn}"}},
|
||||
"appsync:UntagResource": {"action": "appsync:UntagResource", "types": ["api", "channelNamespace", "domain", "graphqlapi"], "resources": [{"types": ["api", "channelNamespace", "domain", "graphqlapi"], "arn": "resourceArn", "apis": ["rest-json/2017-07-25"]}], "located": {"resourceArn": "{resourceArn}"}},
|
||||
"appsync:UpdateApi": {"action": "appsync:UpdateApi", "types": ["api"], "resources": [{"type": "api", "fill": {"ApiId": "apiId"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}"}},
|
||||
"appsync:UpdateApiCache": {"action": "appsync:UpdateApiCache", "types": [], "resources": []},
|
||||
"appsync:UpdateApiKey": {"action": "appsync:UpdateApiKey", "types": [], "resources": []},
|
||||
"appsync:UpdateChannelNamespace": {"action": "appsync:UpdateChannelNamespace", "types": ["channelNamespace"], "resources": [{"type": "channelNamespace", "fill": {"ApiId": "apiId", "ChannelNamespaceName": "name"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}", "name": "{name}"}},
|
||||
"appsync:UpdateDataSource": {"action": "appsync:UpdateDataSource", "types": [], "resources": []},
|
||||
"appsync:UpdateDomainName": {"action": "appsync:UpdateDomainName", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "domainName"}, "apis": ["rest-json/2017-07-25"]}], "located": {"domainName": "{domainName}"}},
|
||||
"appsync:UpdateFunction": {"action": "appsync:UpdateFunction", "types": [], "resources": []},
|
||||
"appsync:UpdateGraphqlApi": {"action": "appsync:UpdateGraphqlApi", "types": ["graphqlapi"], "resources": [{"types": ["graphqlapi"], "arn": "logConfig.cloudWatchLogsRoleArn", "apis": ["rest-json/2017-07-25"]}, {"types": ["graphqlapi"], "arn": "mergedApiExecutionRoleArn", "apis": ["rest-json/2017-07-25"]}, {"type": "graphqlapi", "fill": {"GraphQLAPIId": "apiId"}, "apis": ["rest-json/2017-07-25"]}], "located": {"apiId": "{apiId}"}},
|
||||
"appsync:UpdateResolver": {"action": "appsync:UpdateResolver", "types": [], "resources": []},
|
||||
"appsync:UpdateSourceApiAssociation": {"action": "appsync:UpdateSourceApiAssociation", "types": ["sourceApiAssociation"], "resources": [{"type": "sourceApiAssociation", "fill": {"Associationid": "associationId", "MergedGraphQLAPIId": "mergedApiIdentifier"}, "apis": ["rest-json/2017-07-25"]}], "located": {"associationId": "{associationId}", "mergedApiIdentifier": "{mergedApiIdentifier}"}},
|
||||
"appsync:UpdateType": {"action": "appsync:UpdateType", "types": [], "resources": []},
|
||||
"aps:CreateAlertManagerDefinition": {"action": "aps:CreateAlertManagerDefinition", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}, "apis": ["rest-json/2020-08-01"]}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:CreateAnomalyDetector": {"action": "aps:CreateAnomalyDetector", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}, "apis": ["rest-json/2020-08-01"]}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:CreateLoggingConfiguration": {"action": "aps:CreateLoggingConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}, "apis": ["rest-json/2020-08-01"]}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_tag_on_create.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.44.9 (local/aws/botocore)", "retrieved": "2026-11-26", "note": "make iam-tag-on-create-check re-derives every member from botocore; make iam-tag-on-create-verify checks every operation against AWS."},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "appconfig": ["appconfig"], "application-autoscaling": ["application-autoscaling"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codeguru-reviewer": ["codeguru-reviewer"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb", "elb-proxy", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "s3tables": ["s3tables"], "s3vectors": [], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
|
||||
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "CreateComputeEnvironment is checked as batch:TagResource or batch:SetCapacityTags, and nothing says which of its tag members each is for", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "appconfig": ["appconfig"], "application-autoscaling": ["application-autoscaling"], "appsync": ["appsync"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codeguru-reviewer": ["codeguru-reviewer"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb", "elb-proxy", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "s3tables": ["s3tables"], "s3vectors": [], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
|
||||
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "CreateComputeEnvironment is checked as batch:TagResource or batch:SetCapacityTags, and nothing says which of its tag members each is for", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
|
||||
"otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "apiportal", "appfabric", "appflow", "application-signals", "applicationinsights", "appmesh", "apprunner", "appstream", "arc-region-switch", "artifact", "auditmanager", "b2bi", "backup-gateway", "backup-search", "bcm-dashboards", "billing", "billingconductor", "braket", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "connect-campaigns", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "directconnect", "docdb-elastic", "drs", "ds", "ebs", "ecr-public", "elemental-inference", "entityresolution", "evs", "fms", "forecast", "frauddetector", "fsx", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "ivs", "ivschat", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "m2", "managedblockchain", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgn", "migrationhub-orchestrator", "mobiletargeting", "mpa", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "notifications", "notifications-contacts", "observabilityadmin", "odb", "omics", "opensearch", "osis", "outposts", "partnercentral", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "profile", "proton", "qbusiness", "rbin", "refactor-spaces", "repostspace", "resiliencehub", "rolesanywhere", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3files", "sagemaker-geospatial", "savingsplans", "schemas", "scn", "security-ir", "securityagent", "securitylake", "shield", "sms-voice", "snow-device-management", "social-messaging", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "voiceid", "vpc-lattice", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workspaces", "workspaces-instances", "workspaces-web"],
|
||||
"resourceArns": {"ec2": {"application-status-check": "arn:${Partition}:ec2:${Region}:${Account}:application-status-check/*", "capacity-block": "arn:${Partition}:ec2:${Region}:${Account}:capacity-block/*", "capacity-manager-data-export": "arn:${Partition}:ec2:${Region}:${Account}:capacity-manager-data-export/*", "capacity-reservation": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/*", "capacity-reservation-cancellation-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-cancellation-quote/*", "capacity-reservation-fleet": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-fleet/*", "capacity-reservation-modification-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-modification-quote/*", "carrier-gateway": "arn:${Partition}:ec2:${Region}:${Account}:carrier-gateway/*", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/*", "client-vpn-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:client-vpn-endpoint/*", "coip-pool": "arn:${Partition}:ec2:${Region}:${Account}:coip-pool/*", "customer-gateway": "arn:${Partition}:ec2:${Region}:${Account}:customer-gateway/*", "declarative-policies-report": "arn:${Partition}:ec2:${Region}:${Account}:declarative-policies-report/*", "dedicated-host": "arn:${Partition}:ec2:${Region}:${Account}:dedicated-host/*", "dhcp-options": "arn:${Partition}:ec2:${Region}:${Account}:dhcp-options/*", "egress-only-internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:egress-only-internet-gateway/*", "elastic-gpu": "arn:${Partition}:ec2:${Region}:${Account}:elastic-gpu/*", "elastic-inference": "arn:${Partition}:elastic-inference:${Region}:${Account}:elastic-inference-accelerator/*", "elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/*", "export-image-task": "arn:${Partition}:ec2:${Region}:${Account}:export-image-task/*", "export-instance-task": "arn:${Partition}:ec2:${Region}:${Account}:export-instance-task/*", "fleet": "arn:${Partition}:ec2:${Region}:${Account}:fleet/*", "fpga-image": "arn:${Partition}:ec2:${Region}:${Account}:fpga-image/*", "group": "arn:${Partition}:resource-groups:${Region}:${Account}:group/*", "host-reservation": "arn:${Partition}:ec2:${Region}:${Account}:host-reservation/*", "image": "arn:${Partition}:ec2:${Region}::image/*", "image-usage-report": "arn:${Partition}:ec2:${Region}:${Account}:image-usage-report/*", "import-image-task": "arn:${Partition}:ec2:${Region}:${Account}:import-image-task/*", "import-snapshot-task": "arn:${Partition}:ec2:${Region}:${Account}:import-snapshot-task/*", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/*", "instance-connect-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:instance-connect-endpoint/*", "instance-event-window": "arn:${Partition}:ec2:${Region}:${Account}:instance-event-window/*", "internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:internet-gateway/*", "ipam": "arn:${Partition}:ec2::${Account}:ipam/*", "ipam-external-resource-verification-token": "arn:${Partition}:ec2::${Account}:ipam-external-resource-verification-token/*", "ipam-internet-registry-association": "arn:${Partition}:ec2::${Account}:ipam-internet-registry-association/*", "ipam-policy": "arn:${Partition}:ec2::${Account}:ipam-policy/*", "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/*", "ipam-pool-allocation": "arn:${Partition}:ec2:${Region}:${Account}:ipam-pool-allocation/*", "ipam-prefix-list-resolver": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver/*", "ipam-prefix-list-resolver-target": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver-target/*", "ipam-resource-discovery": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery/*", "ipam-resource-discovery-association": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery-association/*", "ipam-scope": "arn:${Partition}:ec2::${Account}:ipam-scope/*", "ipv4pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv4pool-ec2/*", "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/*", "key-pair": "arn:${Partition}:ec2:${Region}:${Account}:key-pair/*", "launch-template": "arn:${Partition}:ec2:${Region}:${Account}:launch-template/*", "license-configuration": "arn:${Partition}:license-manager:${Region}:${Account}:license-configuration:*", "local-gateway": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway/*", "local-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table/*", "local-gateway-route-table-virtual-interface-group-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-virtual-interface-group-association/*", "local-gateway-route-table-vpc-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-vpc-association/*", "local-gateway-virtual-interface": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface/*", "local-gateway-virtual-interface-group": "arn:${Partition}:ec2:${Region}:${Account}:Line truncated
|
||||
"operations": {
|
||||
@@ -18,6 +18,10 @@
|
||||
"appconfig:StartDeployment": {"tagging": ["appconfig:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"appconfig:StartExperimentRun": {"tagging": ["appconfig:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"application-autoscaling:RegisterScalableTarget": {"tagging": ["application-autoscaling:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"appsync:CreateApi": {"tagging": ["appsync:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"appsync:CreateChannelNamespace": {"tagging": ["appsync:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"appsync:CreateDomainName": {"tagging": ["appsync:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"appsync:CreateGraphqlApi": {"tagging": ["appsync:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"aps:CreateAnomalyDetector": {"tagging": ["aps:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"aps:CreateRuleGroupsNamespace": {"tagging": ["aps:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"aps:CreateScraper": {"tagging": ["aps:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
|
||||
@@ -433,6 +433,87 @@
|
||||
"StartConfigurationSession": {"method": "POST", "requestUri": "/configurationsessions"}
|
||||
}
|
||||
},
|
||||
"appsync": {
|
||||
"credentialScope": "appsync",
|
||||
"apiVersion": "2017-07-25",
|
||||
"accessDeniedStatus": 403,
|
||||
"operations": {
|
||||
"AssociateApi": {"method": "POST", "requestUri": "/v1/domainnames/{domainName}/apiassociation"},
|
||||
"AssociateMergedGraphqlApi": {"method": "POST", "requestUri": "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations"},
|
||||
"AssociateSourceGraphqlApi": {"method": "POST", "requestUri": "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations"},
|
||||
"CreateApi": {"method": "POST", "requestUri": "/v2/apis"},
|
||||
"CreateApiCache": {"method": "POST", "requestUri": "/v1/apis/{apiId}/ApiCaches"},
|
||||
"CreateApiKey": {"method": "POST", "requestUri": "/v1/apis/{apiId}/apikeys"},
|
||||
"CreateChannelNamespace": {"method": "POST", "requestUri": "/v2/apis/{apiId}/channelNamespaces"},
|
||||
"CreateDataSource": {"method": "POST", "requestUri": "/v1/apis/{apiId}/datasources"},
|
||||
"CreateDomainName": {"method": "POST", "requestUri": "/v1/domainnames"},
|
||||
"CreateFunction": {"method": "POST", "requestUri": "/v1/apis/{apiId}/functions"},
|
||||
"CreateGraphqlApi": {"method": "POST", "requestUri": "/v1/apis"},
|
||||
"CreateResolver": {"method": "POST", "requestUri": "/v1/apis/{apiId}/types/{typeName}/resolvers"},
|
||||
"CreateType": {"method": "POST", "requestUri": "/v1/apis/{apiId}/types"},
|
||||
"DeleteApi": {"method": "DELETE", "requestUri": "/v2/apis/{apiId}"},
|
||||
"DeleteApiCache": {"method": "DELETE", "requestUri": "/v1/apis/{apiId}/ApiCaches"},
|
||||
"DeleteApiKey": {"method": "DELETE", "requestUri": "/v1/apis/{apiId}/apikeys/{id}"},
|
||||
"DeleteChannelNamespace": {"method": "DELETE", "requestUri": "/v2/apis/{apiId}/channelNamespaces/{name}"},
|
||||
"DeleteDataSource": {"method": "DELETE", "requestUri": "/v1/apis/{apiId}/datasources/{name}"},
|
||||
"DeleteDomainName": {"method": "DELETE", "requestUri": "/v1/domainnames/{domainName}"},
|
||||
"DeleteFunction": {"method": "DELETE", "requestUri": "/v1/apis/{apiId}/functions/{functionId}"},
|
||||
"DeleteGraphqlApi": {"method": "DELETE", "requestUri": "/v1/apis/{apiId}"},
|
||||
"DeleteResolver": {"method": "DELETE", "requestUri": "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"},
|
||||
"DeleteType": {"method": "DELETE", "requestUri": "/v1/apis/{apiId}/types/{typeName}"},
|
||||
"DisassociateApi": {"method": "DELETE", "requestUri": "/v1/domainnames/{domainName}/apiassociation"},
|
||||
"DisassociateMergedGraphqlApi": {"method": "DELETE", "requestUri": "/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}"},
|
||||
"DisassociateSourceGraphqlApi": {"method": "DELETE", "requestUri": "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"},
|
||||
"EvaluateCode": {"method": "POST", "requestUri": "/v1/dataplane-evaluatecode"},
|
||||
"EvaluateMappingTemplate": {"method": "POST", "requestUri": "/v1/dataplane-evaluatetemplate"},
|
||||
"FlushApiCache": {"method": "DELETE", "requestUri": "/v1/apis/{apiId}/FlushCache"},
|
||||
"GetApi": {"method": "GET", "requestUri": "/v2/apis/{apiId}"},
|
||||
"GetApiAssociation": {"method": "GET", "requestUri": "/v1/domainnames/{domainName}/apiassociation"},
|
||||
"GetApiCache": {"method": "GET", "requestUri": "/v1/apis/{apiId}/ApiCaches"},
|
||||
"GetChannelNamespace": {"method": "GET", "requestUri": "/v2/apis/{apiId}/channelNamespaces/{name}"},
|
||||
"GetDataSource": {"method": "GET", "requestUri": "/v1/apis/{apiId}/datasources/{name}"},
|
||||
"GetDataSourceIntrospection": {"method": "GET", "requestUri": "/v1/datasources/introspections/{introspectionId}"},
|
||||
"GetDomainName": {"method": "GET", "requestUri": "/v1/domainnames/{domainName}"},
|
||||
"GetFunction": {"method": "GET", "requestUri": "/v1/apis/{apiId}/functions/{functionId}"},
|
||||
"GetGraphqlApi": {"method": "GET", "requestUri": "/v1/apis/{apiId}"},
|
||||
"GetGraphqlApiEnvironmentVariables": {"method": "GET", "requestUri": "/v1/apis/{apiId}/environmentVariables"},
|
||||
"GetIntrospectionSchema": {"method": "GET", "requestUri": "/v1/apis/{apiId}/schema"},
|
||||
"GetResolver": {"method": "GET", "requestUri": "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"},
|
||||
"GetSchemaCreationStatus": {"method": "GET", "requestUri": "/v1/apis/{apiId}/schemacreation"},
|
||||
"GetSourceApiAssociation": {"method": "GET", "requestUri": "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"},
|
||||
"GetType": {"method": "GET", "requestUri": "/v1/apis/{apiId}/types/{typeName}"},
|
||||
"ListApiKeys": {"method": "GET", "requestUri": "/v1/apis/{apiId}/apikeys"},
|
||||
"ListApis": {"method": "GET", "requestUri": "/v2/apis"},
|
||||
"ListChannelNamespaces": {"method": "GET", "requestUri": "/v2/apis/{apiId}/channelNamespaces"},
|
||||
"ListDataSources": {"method": "GET", "requestUri": "/v1/apis/{apiId}/datasources"},
|
||||
"ListDomainNames": {"method": "GET", "requestUri": "/v1/domainnames"},
|
||||
"ListFunctions": {"method": "GET", "requestUri": "/v1/apis/{apiId}/functions"},
|
||||
"ListGraphqlApis": {"method": "GET", "requestUri": "/v1/apis"},
|
||||
"ListResolvers": {"method": "GET", "requestUri": "/v1/apis/{apiId}/types/{typeName}/resolvers"},
|
||||
"ListResolversByFunction": {"method": "GET", "requestUri": "/v1/apis/{apiId}/functions/{functionId}/resolvers"},
|
||||
"ListSourceApiAssociations": {"method": "GET", "requestUri": "/v1/apis/{apiId}/sourceApiAssociations"},
|
||||
"ListTagsForResource": {"method": "GET", "requestUri": "/v1/tags/{resourceArn}"},
|
||||
"ListTypes": {"method": "GET", "requestUri": "/v1/apis/{apiId}/types"},
|
||||
"ListTypesByAssociation": {"method": "GET", "requestUri": "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/types"},
|
||||
"PutGraphqlApiEnvironmentVariables": {"method": "PUT", "requestUri": "/v1/apis/{apiId}/environmentVariables"},
|
||||
"StartDataSourceIntrospection": {"method": "POST", "requestUri": "/v1/datasources/introspections"},
|
||||
"StartSchemaCreation": {"method": "POST", "requestUri": "/v1/apis/{apiId}/schemacreation"},
|
||||
"StartSchemaMerge": {"method": "POST", "requestUri": "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}/merge"},
|
||||
"TagResource": {"method": "POST", "requestUri": "/v1/tags/{resourceArn}"},
|
||||
"UntagResource": {"method": "DELETE", "requestUri": "/v1/tags/{resourceArn}"},
|
||||
"UpdateApi": {"method": "POST", "requestUri": "/v2/apis/{apiId}"},
|
||||
"UpdateApiCache": {"method": "POST", "requestUri": "/v1/apis/{apiId}/ApiCaches/update"},
|
||||
"UpdateApiKey": {"method": "POST", "requestUri": "/v1/apis/{apiId}/apikeys/{id}"},
|
||||
"UpdateChannelNamespace": {"method": "POST", "requestUri": "/v2/apis/{apiId}/channelNamespaces/{name}"},
|
||||
"UpdateDataSource": {"method": "POST", "requestUri": "/v1/apis/{apiId}/datasources/{name}"},
|
||||
"UpdateDomainName": {"method": "POST", "requestUri": "/v1/domainnames/{domainName}"},
|
||||
"UpdateFunction": {"method": "POST", "requestUri": "/v1/apis/{apiId}/functions/{functionId}"},
|
||||
"UpdateGraphqlApi": {"method": "POST", "requestUri": "/v1/apis/{apiId}"},
|
||||
"UpdateResolver": {"method": "POST", "requestUri": "/v1/apis/{apiId}/types/{typeName}/resolvers/{fieldName}"},
|
||||
"UpdateSourceApiAssociation": {"method": "POST", "requestUri": "/v1/mergedApis/{mergedApiIdentifier}/sourceApiAssociations/{associationId}"},
|
||||
"UpdateType": {"method": "POST", "requestUri": "/v1/apis/{apiId}/types/{typeName}"}
|
||||
}
|
||||
},
|
||||
"batch": {
|
||||
"credentialScope": "batch",
|
||||
"apiVersion": "2016-08-10",
|
||||
|
||||
@@ -16,6 +16,8 @@ import org.junit.jupiter.api.Order;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.TestMethodOrder;
|
||||
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.time.Duration;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
@@ -701,9 +703,20 @@ class AppSyncIntegrationTest {
|
||||
""")
|
||||
.urlEncodingEnabled(false)
|
||||
.when()
|
||||
.post("/v1/tags/" + apiArn)
|
||||
.post(tagsPath(apiArn))
|
||||
.then()
|
||||
.statusCode(204);
|
||||
|
||||
// AWS serves AppSync's tagging on /v1/tags/{resourceArn}, the ARN's slash encoded as an SDK sends it: one sent
|
||||
// unencoded is no route of AppSync's.
|
||||
given()
|
||||
.header("Authorization", AUTH)
|
||||
.urlEncodingEnabled(false)
|
||||
.when()
|
||||
.get("/v1/tags/" + apiArn)
|
||||
.then()
|
||||
.statusCode(400)
|
||||
.body("message", equalTo("Invalid resource ARN: " + apiArn));
|
||||
}
|
||||
|
||||
@Test
|
||||
@@ -715,7 +728,7 @@ class AppSyncIntegrationTest {
|
||||
.header("Authorization", AUTH)
|
||||
.urlEncodingEnabled(false)
|
||||
.when()
|
||||
.get("/v1/tags/" + apiArn)
|
||||
.get(tagsPath(apiArn))
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body("tags.env", equalTo("test"))
|
||||
@@ -732,7 +745,7 @@ class AppSyncIntegrationTest {
|
||||
.queryParam("tagKeys", "team")
|
||||
.urlEncodingEnabled(false)
|
||||
.when()
|
||||
.delete("/v1/tags/" + apiArn)
|
||||
.delete(tagsPath(apiArn))
|
||||
.then()
|
||||
.statusCode(204);
|
||||
|
||||
@@ -740,7 +753,7 @@ class AppSyncIntegrationTest {
|
||||
.header("Authorization", AUTH)
|
||||
.urlEncodingEnabled(false)
|
||||
.when()
|
||||
.get("/v1/tags/" + apiArn)
|
||||
.get(tagsPath(apiArn))
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body("tags.team", nullValue())
|
||||
@@ -4066,4 +4079,9 @@ class AppSyncIntegrationTest {
|
||||
.body("__type", equalTo("NotFoundException"))
|
||||
.body("message", containsString("Type not found:"));
|
||||
}
|
||||
|
||||
/** The tag route of a resource, its ARN encoded as an SDK sends it. */
|
||||
private static String tagsPath(String arn) {
|
||||
return "/v1/tags/" + URLEncoder.encode(arn, StandardCharsets.UTF_8);
|
||||
}
|
||||
}
|
||||
@@ -1758,6 +1758,38 @@ class IamPassRoleEnforcementIntegrationTest {
|
||||
"Target":{"Arn":"%s","RoleArn":"%s"}}""".formatted(QUEUE_ARN, role);
|
||||
}
|
||||
|
||||
@Test
|
||||
void anAppSyncDataSourceOrApiNeedsPassRoleOnTheRoleItGivesAppSync() {
|
||||
// The Service Reference passes each role an AppSync request names to AppSync, which assumes it: a data source's
|
||||
// service role and a GraphQL API's CloudWatch Logs role.
|
||||
String role = role("appsync-service");
|
||||
User user = user("passrole-appsync");
|
||||
String api = admin("appsync").contentType("application/json")
|
||||
.body("{\"name\":\"passrole-api-" + suffix() + "\",\"authenticationType\":\"API_KEY\"}")
|
||||
.post("/v1/apis").then().statusCode(200).extract().path("graphqlApi.apiId");
|
||||
cleanup.register(() -> admin("appsync").delete("/v1/apis/" + api));
|
||||
String dataSource = "{\"name\":\"passrole_source\",\"type\":\"AMAZON_DYNAMODB\",\"serviceRoleArn\":\""
|
||||
+ role + "\",\"dynamodbConfig\":{\"tableName\":\"t\",\"awsRegion\":\"us-east-1\"}}";
|
||||
String create = allow("appsync:CreateDataSource", "*");
|
||||
|
||||
user.policy(create);
|
||||
denied(user.rest("appsync").body(dataSource).post("/v1/apis/" + api + "/datasources").then());
|
||||
user.policy(create + "," + passRole(role, "lambda.amazonaws.com"));
|
||||
denied(user.rest("appsync").body(dataSource).post("/v1/apis/" + api + "/datasources").then());
|
||||
user.policy(create + "," + passRole(role, "appsync.amazonaws.com"));
|
||||
user.rest("appsync").body(dataSource).post("/v1/apis/" + api + "/datasources").then().statusCode(200);
|
||||
|
||||
String logged = "{\"name\":\"passrole-api-" + suffix() + "\",\"authenticationType\":\"API_KEY\","
|
||||
+ "\"logConfig\":{\"fieldLogLevel\":\"ERROR\",\"cloudWatchLogsRoleArn\":\"" + role + "\"}}";
|
||||
String createApi = allow("appsync:CreateGraphqlApi", "*");
|
||||
user.policy(createApi);
|
||||
denied(user.rest("appsync").body(logged).post("/v1/apis").then());
|
||||
user.policy(createApi + "," + passRole(role, "appsync.amazonaws.com"));
|
||||
String made = user.rest("appsync").body(logged).post("/v1/apis").then().statusCode(200)
|
||||
.extract().path("graphqlApi.apiId");
|
||||
cleanup.register(() -> admin("appsync").delete("/v1/apis/" + made));
|
||||
}
|
||||
|
||||
private static void denied(ValidatableResponse response) {
|
||||
response.statusCode(403).body(containsString("iam:PassRole"));
|
||||
}
|
||||
|
||||
@@ -10,6 +10,7 @@ import io.floci.aws.testing.RestAssuredJsonUtils;
|
||||
import io.quarkus.test.common.http.TestHTTPResource;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.TestProfile;
|
||||
import io.restassured.response.ExtractableResponse;
|
||||
import io.restassured.response.Response;
|
||||
import io.restassured.response.ValidatableResponse;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
@@ -274,6 +275,92 @@ class IamRestRouteEnforcementIntegrationTest {
|
||||
return name;
|
||||
}
|
||||
|
||||
/**
|
||||
* An AppSync route is checked on the GraphQL API or the custom domain name it names, by the id or the name in its
|
||||
* path, as the Service Reference gives their own operations; one on an API's data sources on {@code *}, as AWS
|
||||
* checks an action with no resource type; and an {@code aws:ResourceTag} condition reads the tags AppSync holds on
|
||||
* the API or the domain name.
|
||||
*/
|
||||
@Test
|
||||
void anAppSyncRouteIsCheckedOnTheGraphqlApiOrDomainNameItNames() {
|
||||
String user = user("route-appsync");
|
||||
String tagged = graphqlApi("route-api-" + suffix(), "data");
|
||||
String other = graphqlApi("route-api-" + suffix(), "web");
|
||||
String prefix = "arn:aws:appsync:us-east-1:" + ACCOUNT + ":";
|
||||
|
||||
policy(user, allow("appsync:GetGraphqlApi", prefix + "apis/" + tagged));
|
||||
request(user, "appsync", "GET", "/v1/apis/" + tagged, null).statusCode(200);
|
||||
refused(request(user, "appsync", "GET", "/v1/apis/" + other, null), "appsync:GetGraphqlApi");
|
||||
|
||||
// Listing an API's data sources acts on no resource type, so only a grant on every resource covers it.
|
||||
policy(user, allow("appsync:ListDataSources", prefix + "apis/" + tagged));
|
||||
refused(request(user, "appsync", "GET", "/v1/apis/" + tagged + "/datasources", null),
|
||||
"appsync:ListDataSources");
|
||||
policy(user, allow("appsync:ListDataSources", "*"));
|
||||
request(user, "appsync", "GET", "/v1/apis/" + tagged + "/datasources", null).statusCode(200);
|
||||
|
||||
policy(user, onTeam("Allow", "appsync:GetGraphqlApi", "data"));
|
||||
request(user, "appsync", "GET", "/v1/apis/" + tagged, null).statusCode(200);
|
||||
refused(request(user, "appsync", "GET", "/v1/apis/" + other, null), "appsync:GetGraphqlApi");
|
||||
|
||||
String domain = domainName("route-" + suffix() + ".example.com", "data");
|
||||
String untagged = domainName("route-" + suffix() + ".example.com", "web");
|
||||
policy(user, allow("appsync:GetDomainName", prefix + "domainnames/" + domain));
|
||||
request(user, "appsync", "GET", "/v1/domainnames/" + domain, null).statusCode(200);
|
||||
refused(request(user, "appsync", "GET", "/v1/domainnames/" + untagged, null), "appsync:GetDomainName");
|
||||
policy(user, onTeam("Allow", "appsync:GetDomainName", "data"));
|
||||
request(user, "appsync", "GET", "/v1/domainnames/" + domain, null).statusCode(200);
|
||||
refused(request(user, "appsync", "GET", "/v1/domainnames/" + untagged, null), "appsync:GetDomainName");
|
||||
|
||||
// A grant on the ARN AppSync returns for a channel namespace or an association covers it, and a deny on it
|
||||
// holds.
|
||||
String namespace = adminOf("appsync").body("{\"name\":\"routens\"}").post("/v2/apis/" + tagged
|
||||
+ "/channelNamespaces").then().statusCode(200).extract().path("channelNamespace.channelNamespaceArn");
|
||||
adminOf("appsync").body("{\"name\":\"otherns\"}").post("/v2/apis/" + tagged + "/channelNamespaces").then()
|
||||
.statusCode(200);
|
||||
policy(user, allow("appsync:GetChannelNamespace", namespace));
|
||||
request(user, "appsync", "GET", "/v2/apis/" + tagged + "/channelNamespaces/routens", null).statusCode(200);
|
||||
refused(request(user, "appsync", "GET", "/v2/apis/" + tagged + "/channelNamespaces/otherns", null),
|
||||
"appsync:GetChannelNamespace");
|
||||
ExtractableResponse<Response> association = adminOf("appsync").body("{\"sourceApiIdentifier\":\"" + other
|
||||
+ "\"}").post("/v1/mergedApis/" + tagged + "/sourceApiAssociations").then().statusCode(200).extract();
|
||||
String associationArn = association.path("sourceApiAssociation.associationArn");
|
||||
String associationPath = "/v1/mergedApis/" + tagged + "/sourceApiAssociations/"
|
||||
+ association.path("sourceApiAssociation.associationId");
|
||||
policy(user, allow("appsync:GetSourceApiAssociation", associationArn));
|
||||
request(user, "appsync", "GET", associationPath, null).statusCode(200);
|
||||
policy(user, allow("appsync:GetSourceApiAssociation", "*") + ","
|
||||
+ deny("appsync:GetSourceApiAssociation", associationArn));
|
||||
refused(request(user, "appsync", "GET", associationPath, null), "appsync:GetSourceApiAssociation");
|
||||
// The source API's side of the association is the mergedApiAssociation the Service Reference gives
|
||||
// DisassociateMergedGraphqlApi, apis/<sourceApiId>/mergedApiAssociations/<associationId>, not the ARN returned.
|
||||
String sourceSide = "/v1/sourceApis/" + other + "/mergedApiAssociations/"
|
||||
+ association.path("sourceApiAssociation.associationId");
|
||||
policy(user, allow("appsync:DisassociateMergedGraphqlApi", associationArn));
|
||||
refused(request(user, "appsync", "DELETE", sourceSide, null), "appsync:DisassociateMergedGraphqlApi");
|
||||
policy(user, allow("appsync:DisassociateMergedGraphqlApi", prefix + "apis/" + other + "/mergedApiAssociations/"
|
||||
+ association.path("sourceApiAssociation.associationId")));
|
||||
request(user, "appsync", "DELETE", sourceSide, null).statusCode(not(403));
|
||||
}
|
||||
|
||||
/** A GraphQL API an administrator creates, tagged with {@code team}; its id. */
|
||||
private String graphqlApi(String name, String team) {
|
||||
String id = adminOf("appsync").body("{\"name\":\"" + name + "\",\"authenticationType\":\"API_KEY\","
|
||||
+ "\"tags\":{\"team\":\"" + team + "\"}}").post("/v1/apis").then().statusCode(200)
|
||||
.extract().path("graphqlApi.apiId");
|
||||
cleanup.register(() -> adminOf("appsync").delete("/v1/apis/" + id));
|
||||
return id;
|
||||
}
|
||||
|
||||
/** A custom domain name an administrator creates, tagged with {@code team}; the name. */
|
||||
private String domainName(String name, String team) {
|
||||
adminOf("appsync").body("{\"domainName\":\"" + name + "\",\"certificateArn\":\"arn:aws:acm:us-east-1:"
|
||||
+ ACCOUNT + ":certificate/route\",\"tags\":{\"team\":\"" + team + "\"}}").post("/v1/domainnames")
|
||||
.then().statusCode(200);
|
||||
cleanup.register(() -> adminOf("appsync").delete("/v1/domainnames/" + name));
|
||||
return name;
|
||||
}
|
||||
|
||||
@Test
|
||||
void sharedTaggingIsCheckedAsTheServiceItsArnNames() {
|
||||
// The shared tagging routes hand the request to the service its ARN names, whatever scope it is
|
||||
|
||||
@@ -95,7 +95,8 @@ SERVICE_SUFFIX = ".amazonaws.com"
|
||||
# The IAM namespaces whose operations this file reads: those Floci serves over the JSON and Query
|
||||
# protocols and Smithy RPC v2 CBOR, and the REST ones whose routes Floci authorizes by operation.
|
||||
NAMESPACES = (
|
||||
"apigateway", "application-autoscaling", "aps", "athena", "autoscaling", "batch", "budgets", "cloudformation",
|
||||
"apigateway", "application-autoscaling", "aps", "appsync", "athena", "autoscaling", "batch", "budgets",
|
||||
"cloudformation",
|
||||
"cloudtrail",
|
||||
"cloudwatch", "codebuild", "codedeploy", "codepipeline", "cognito-identity", "cognito-idp",
|
||||
"comprehend", "config", "datasync", "dms", "dsql", "ec2", "ecr", "ecs", "eks",
|
||||
@@ -114,7 +115,6 @@ NOT_COVERED = {
|
||||
"airflow": "REST routes no rule maps yet",
|
||||
"appconfig": "CreateExtension and UpdateExtension pass a role in Actions{}[].RoleArn, a map of lists, which this file "
|
||||
"does not read yet",
|
||||
"appsync": "REST routes no rule maps yet",
|
||||
"aws-marketplace": "REST routes no rule maps yet",
|
||||
"backup": "REST routes no rule maps yet",
|
||||
"bedrock": "REST routes no rule maps yet",
|
||||
|
||||
@@ -163,6 +163,10 @@ Beyond the members' names, botocore's shapes and documentation say what a member
|
||||
request is), and every other row names every client's;
|
||||
- a variable no member fills is `fixed` to the one value of an enum named after it that the operation's name gives
|
||||
(CodePipeline's `CreateCustomActionType` makes an action type whose `ActionOwner` is `Custom`);
|
||||
- a variable whose stem no member's matches is filled by the one path label a REST route puts after the literal
|
||||
segment the type's format puts before that variable, or after that segment qualified by the variable's first word
|
||||
(AppSync's `apiId` in `/v1/apis/{apiId}` fills `apis/${GraphQLAPIId}`, and `sourceApiIdentifier` in
|
||||
`/v1/sourceApis/{sourceApiIdentifier}` a merged API association's `apis/${SourceGraphQLAPIId}`);
|
||||
- a type named only by an optional member documented as holding what the operation is about ("the cluster to which
|
||||
the instance group belongs") is named, when the request leaves that member out, through each member naming what
|
||||
the operation is about (`ModifyInstanceGroups`' `InstanceGroups[].InstanceGroupId`);
|
||||
@@ -386,7 +390,7 @@ NAMESPACES = ("access-analyzer", "account", "acm", "appconfig", "application-aut
|
||||
"sqs", "sns", "kinesis", "pipes", "dsql", "sts", "eks", "resource-groups", "logs", "ses", "cloudwatch",
|
||||
"comprehend", "config", "dms", "elasticache", "identitystore", "memorydb", "route53resolver",
|
||||
"sagemaker", "transcribe", "transfer", "ec2-instance-connect", "s3", "bedrock", "apigateway", "kms",
|
||||
"dynamodb", "iam", "rds-data", "batch")
|
||||
"dynamodb", "iam", "rds-data", "batch", "appsync")
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
# MEASURED: what AWS was measured to check where neither botocore nor the Service Reference says it.
|
||||
@@ -647,7 +651,6 @@ _REST = ("REST: its requests name their resources in the path, which RequestReso
|
||||
NOT_COVERED: dict[str, str] = {
|
||||
"airflow": _REST,
|
||||
"app-integrations": _REST,
|
||||
"appsync": _REST,
|
||||
"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",
|
||||
@@ -1469,6 +1472,51 @@ def with_documented(operation: str, types: list[str], formats: dict[str, str], m
|
||||
return resources
|
||||
|
||||
|
||||
def route_segments(models: dict[str, dict], operation: str) -> dict[str, str]:
|
||||
"""The members the operation's REST request carries as a path label, each with the literal segment its route puts
|
||||
before it: AppSync's `apiId` in `/v1/apis/{apiId}/datasources` follows `apis`."""
|
||||
found: dict[str, str] = {}
|
||||
for model in models.values():
|
||||
spec = model["operations"].get(operation)
|
||||
if spec is None or "input" not in spec or "http" not in spec:
|
||||
continue
|
||||
segments = spec["http"]["requestUri"].split("?", 1)[0].strip("/").split("/")
|
||||
before = {match.group(1): segments[index - 1] for index, segment in enumerate(segments)
|
||||
if index and "{" not in segments[index - 1] and (match := re.fullmatch(r"\{(\w+)\+?}", segment))}
|
||||
for name, member in model["shapes"][spec["input"]["shape"]].get("members", {}).items():
|
||||
label = member.get("locationName", name)
|
||||
if member.get("location") == "uri" and label in before:
|
||||
found[name] = before[label]
|
||||
return found
|
||||
|
||||
|
||||
def _aligned_label(variable: str, arn_format: str, eligible: dict[str, str],
|
||||
routed: dict[str, str] | None) -> str | None:
|
||||
"""The one path label that fills a variable its stem alone does not reach, its route putting before it the literal
|
||||
segment the type's ARN format puts before the variable, and its stem ending the variable's: AppSync's `apiId`,
|
||||
after `apis` in `/v1/apis/{apiId}`, fills `apis/${GraphQLAPIId}`, where `api` is too short a stem to match
|
||||
`graphqlapi` alone. The route's segment may qualify the format's with the variable's first word, the label then
|
||||
named as that qualified segment is: `sourceApiIdentifier`, after `sourceApis` in
|
||||
`/v1/sourceApis/{sourceApiIdentifier}/mergedApiAssociations/{associationId}`, fills
|
||||
`apis/${SourceGraphQLAPIId}/mergedApiAssociations/${Associationid}`."""
|
||||
segment = re.search(r"(?:^|[:/])([A-Za-z0-9_-]+)/\$\{" + re.escape(variable) + r"}", arn_format)
|
||||
if segment is None or not routed:
|
||||
return None
|
||||
word = segment.group(1)
|
||||
|
||||
def aligns(member: str) -> bool:
|
||||
before = routed.get(member)
|
||||
if before is None or not stem(member):
|
||||
return False
|
||||
if before == word:
|
||||
return stem(variable).endswith(stem(member))
|
||||
qualifier = before[:-len(word)].lower() if before.lower().endswith(word.lower()) else ""
|
||||
return bool(qualifier) and stem(variable).startswith(qualifier) and stem(member) == stem(before) \
|
||||
and stem(variable).endswith(stem(word))
|
||||
aligned = [member for member in eligible if aligns(member)]
|
||||
return aligned[0] if len(aligned) == 1 else None
|
||||
|
||||
|
||||
def path_labels(models: dict[str, dict], operation: str) -> dict[str, str]:
|
||||
"""The bare members (`BARE`) the operation's REST request carries as a path label after a segment naming
|
||||
something, each with that segment stemmed, a plural in `ies` read as its `y`: FIS's `id` in
|
||||
@@ -2408,11 +2456,12 @@ def compatible(member: str, variable: str) -> bool:
|
||||
def resources_for(operation: str, types: list[str], formats: dict[str, str], members: dict[str, str],
|
||||
arn_members: set[str] | None = None, labels: dict[str, str] | None = None,
|
||||
shapes: dict[str, str] | None = None, aliased: set[str] | None = None,
|
||||
foreign: set[str] | None = None) -> list[dict]:
|
||||
foreign: set[str] | None = None, routed: dict[str, str] | None = None) -> list[dict]:
|
||||
"""The resources the rule finds the operation's request naming, as vendored entries. `labels` gives the path
|
||||
segment before each bare member a REST request carries as a path label, stemmed (`path_labels`), `shapes` the
|
||||
botocore shape each member holds (`member_shapes`), and `foreign` the members holding another service's ARN
|
||||
(`foreign_arn_members`), which name nothing of the namespace."""
|
||||
botocore shape each member holds (`member_shapes`), `foreign` the members holding another service's ARN
|
||||
(`foreign_arn_members`), which name nothing of the namespace, and `routed` the literal segment a REST route puts
|
||||
before each path label (`route_segments`)."""
|
||||
members = {member: path for member, path in members.items() if member not in (foreign or set())}
|
||||
name = operation.split(":", 1)[1]
|
||||
created = stem(CREATING_RE.sub("", name)) if CREATING_RE.match(name) else None
|
||||
@@ -2474,6 +2523,8 @@ def resources_for(operation: str, types: list[str], formats: dict[str, str], mem
|
||||
choice = _filling(variable, kind_stem, len(variables), eligible,
|
||||
bare=bare, aliased=aliased, word_stem=word_stem,
|
||||
shapes=shapes if not held else None)
|
||||
if choice is None:
|
||||
choice = _aligned_label(variable, formats[kind], eligible, routed)
|
||||
if choice is not None:
|
||||
fill[variable] = choice
|
||||
used[kind] = choice
|
||||
@@ -4265,7 +4316,8 @@ def read_resources(operation: str, types: list[str], formats: dict[str, str], mo
|
||||
arn_members, labels,
|
||||
member_shapes(models, name),
|
||||
alias_members(models, name),
|
||||
foreign_arn_members(models, name, formats)),
|
||||
foreign_arn_members(models, name, formats),
|
||||
route_segments(models, name)),
|
||||
formats, types, members),
|
||||
types, formats, members, found_keys(models, formats),
|
||||
requested_members(models)),
|
||||
|
||||
@@ -107,7 +107,7 @@ OUTPUT = REPO_ROOT / "src/main/resources/aws/iam-tag-on-create.json"
|
||||
# The IAM namespaces whose operations this file reads: those Floci serves over the JSON and Query
|
||||
# protocols and Smithy RPC v2 CBOR, and the REST ones whose routes Floci authorizes by operation.
|
||||
NAMESPACES = (
|
||||
"access-analyzer", "acm", "appconfig", "application-autoscaling", "aps", "athena", "autoscaling",
|
||||
"access-analyzer", "acm", "appconfig", "application-autoscaling", "aps", "appsync", "athena", "autoscaling",
|
||||
"bcm-data-exports", "bcm-pricing-calculator", "bedrock", "budgets", "ce", "cloudformation", "cloudhsm",
|
||||
"cloudtrail", "cloudwatch", "codedeploy", "codeguru-reviewer", "codepipeline", "cognito-identity", "cognito-idp",
|
||||
"comprehend", "config", "controltower", "cur",
|
||||
@@ -127,7 +127,7 @@ _NO_ROUTES = "REST routes no rule maps yet"
|
||||
# Namespaces Floci serves whose operations list a tagging action but are not read here yet, each with
|
||||
# why. `TagOnCreateNamespacesIntegrationTest` fails for a namespace Floci serves that is in neither list.
|
||||
NOT_COVERED = {
|
||||
"airflow": _NO_ROUTES, "app-integrations": _NO_ROUTES, "appsync": _NO_ROUTES,
|
||||
"airflow": _NO_ROUTES, "app-integrations": _NO_ROUTES,
|
||||
"aws-marketplace": _NO_ROUTES, "backup": _NO_ROUTES,
|
||||
"batch": "CreateComputeEnvironment is checked as batch:TagResource or batch:SetCapacityTags, and nothing says "
|
||||
"which of its tag members each is for",
|
||||
|
||||
@@ -67,6 +67,7 @@ MODELS: dict[str, str] = {
|
||||
"apigatewayv2": "apigateway",
|
||||
"appconfig": "appconfig",
|
||||
"appconfigdata": "appconfig",
|
||||
"appsync": "appsync",
|
||||
"batch": "batch",
|
||||
"bedrock": "bedrock",
|
||||
"bedrock-agent": "bedrock",
|
||||
|
||||
@@ -2733,6 +2733,30 @@ def test_a_spelled_form_wins_over_the_name_its_member_fills():
|
||||
other]
|
||||
|
||||
|
||||
def test_a_path_label_after_the_segment_its_types_format_puts_before_a_variable_fills_it():
|
||||
# AppSync's `apiId`, after `apis` in `/v1/apis/{apiId}`, fills `apis/${GraphQLAPIId}`: its stem, `api`, is too
|
||||
# short to match the variable's alone, and the segment both put before it says it is the API's id.
|
||||
graphql = "arn:${Partition}:svc:${Region}:${Account}:apis/${GraphQLAPIId}"
|
||||
assert r._aligned_label("GraphQLAPIId", graphql, {"apiId": "apiId"}, {"apiId": "apis"}) == "apiId"
|
||||
# Not after another segment, nor a label whose stem does not end the variable's.
|
||||
assert r._aligned_label("GraphQLAPIId", graphql, {"apiId": "apiId"}, {"apiId": "domainnames"}) is None
|
||||
assert r._aligned_label("GraphQLAPIId", graphql, {"name": "name"}, {"name": "apis"}) is None
|
||||
# A route segment qualifying the format's with the variable's first word: `sourceApiIdentifier`, after
|
||||
# `sourceApis`, fills the source API's id of a merged API association; the API's own id is not a source API's.
|
||||
association = "arn:${Partition}:svc:${Region}:${Account}:apis/${SourceGraphQLAPIId}/mergedApiAssociations/${Id}"
|
||||
source = {"sourceApiIdentifier": "sourceApiIdentifier"}
|
||||
assert r._aligned_label("SourceGraphQLAPIId", association, source, {"sourceApiIdentifier": "sourceApis"}) == \
|
||||
"sourceApiIdentifier"
|
||||
assert r._aligned_label("GraphQLAPIId", graphql, source, {"sourceApiIdentifier": "sourceApis"}) is None
|
||||
model = {"svc": {"metadata": {"apiVersion": "2017-07-25", "protocol": "rest-json"},
|
||||
"operations": {"GetGraphqlApi": {"http": {"method": "GET", "requestUri": "/v1/apis/{apiId}"},
|
||||
"input": {"shape": "In"}}},
|
||||
"shapes": {"In": {"type": "structure", "members": {
|
||||
"apiId": {"shape": "String", "location": "uri", "locationName": "apiId"}}},
|
||||
"String": {"type": "string"}}}}
|
||||
assert r.route_segments(model, "GetGraphqlApi") == {"apiId": "apis"}
|
||||
|
||||
|
||||
def test_an_arn_patterns_type_words_and_a_clients_versioned_twin():
|
||||
assert r.pattern_words("arn:aws:svc:[a-z0-9-]+:([0-9]{12}):(bus-v2|subscriber|source-v2\\/(a|b))\\/[A-Za-z]+") == {
|
||||
"bus-v2", "subscriber", "source-v2"}
|
||||
|
||||
Reference in new issue
Block a user