feat(iam): read API Gateway from the generated tables, its paths from the developer guide (#9207)

API Gateway leaves ResourceArnBuilder's own branch, and the enforcement filter's call that went around the
table for it: its requests are matched on their botocore routes and checked on the resources the
request-resources table reads. API Gateway authorizes a management call as the HTTP method of the request, on
the resource its path names, which its developer guide says and neither botocore nor the Service Reference
does. fetch_apigateway_arn_formats.py copies the guide's IAM page (the action and resource format sentences)
and its ARN reference tables unchanged into tools/aws/sources/apigateway-arn-formats.json, which
regen_iam_request_resources.py reads: a route authorized as its method is checked on the resource whose
published format is its own path, a Service Reference type before the guide's REST row, the /v2 of HTTP and
WebSocket API paths left out, and a path neither gives a row on the guide's ARN format with that path as its
resource path. The formats the reference does not give are recorded under pathFormats.

RequestResourceMembers reads pathFormats beside arnFormats and takes a hyphen in a path label;
RequestResources URL-encodes a value filling a UrlEncoded variable, so a tagging route acts on
/tags/<URL-encoded ARN> however it sends the ARN, and escapes % and / in a value filling a path-shaped format,
so one label cannot pass for several segments.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-22 10:09:43 -04:00
1 parent fe95e22866
commit 0638a7f1d1
16 files changed
+1417 -169

No files matched your search

+3 -1
View File
@@ -625,7 +625,9 @@ IAM_REQUEST_RESOURCES_PATHS := src/main/resources/aws/iam-request-resources.json
tools/aws/regen_iam_request_resources.py $(IAM_PASSED_ROLES_GENERATOR) \
tools/aws/test_regen_iam_request_resources.py tools/aws/sources/athena-glue-ddl-permissions.json \
tools/aws/fetch_athena_glue_ddl_permissions.py tools/aws/test_fetch_athena_glue_ddl_permissions.py \
tools/aws/regen_iam_authorized_actions.py tools/aws/sources/s3-required-actions.json
tools/aws/regen_iam_authorized_actions.py tools/aws/sources/s3-required-actions.json \
tools/aws/sources/apigateway-arn-formats.json tools/aws/fetch_apigateway_arn_formats.py \
tools/aws/test_fetch_apigateway_arn_formats.py src/main/resources/aws/iam-authorized-actions.json
iam-data-verify: ## CI gate (online): every vendored IAM file must still match AWS; CHANGED="<paths>" checks only the ones they cover
@# Every check runs even when an earlier one fails, so one file's drift cannot hide another's
+18
View File
@@ -767,6 +767,24 @@ setups, and `floci:override-id` wins when both are present. Every other tag is p
---
## IAM enforcement of management calls
With IAM enforcement on, a v1 or v2 management call is authorized as AWS authorizes it, read from
the generated tables like other services' requests. A route AWS authorizes by its HTTP method is
checked as `apigateway:GET`, `POST`, `PUT`, `DELETE` or `PATCH` on the resource its own path names,
`arn:aws:apigateway:<region>::<path>`, without the `/v2` of an HTTP or WebSocket API path:
`GET /restapis/abc123/stages` acts on `arn:aws:apigateway:<region>::/restapis/abc123/stages`. The
[ARN reference](https://docs.aws.amazon.com/apigateway/latest/developerguide/arn-format-reference.html)
of the developer guide gives the ARN of each such path; where it gives one with an account
(`/domainnameaccessassociations`), the account is the caller's. A path it gives no ARN for
(`/sdktypes`, `/usageplans/<id>/usage`) acts on the guide's ARN format with that path as its
resource path. A tagging route acts on `/tags/<arn>` with the ARN it tags URL-encoded, however the
request sends it. A label's own `/` stays escaped in its segment, and
`DeleteDomainNameAccessAssociation` acts on the association ARN its path carries. A route AWS
authorizes as an action of its own, a portal's, a routing rule's or
`RejectDomainNameAccessAssociation`'s, is checked as that action on the resources the Service
Reference gives it.
## Partitions
Edge-optimized APIs and custom domains (`EDGE`) exist only in the commercial partition: China
@@ -1787,18 +1787,15 @@ public class IamEnforcementFilter implements ContainerRequestFilter {
}
/**
* KMS targets depend on the serving operation and the request's partition; API Gateway's path ARNs on the
* request's partition, which that service mints them in; and the targets of a namespace the table of request
* resources reads on {@code operation}, the one the request is dispatched as (see {@link RequestResources}).
* KMS targets depend on the serving operation and the request's partition, and the targets of a namespace the
* table of request resources reads on {@code operation}, the one the request is dispatched as (see
* {@link RequestResources}).
*/
private List<String> targetResources(String credentialScope, String action, String operation,
ContainerRequestContext ctx, String region, String accountId) {
if ("kms".equals(credentialScope)) {
return arnBuilder.buildKmsResources(action, ctx, region, accountId, requestPartition());
}
if ("apigateway".equals(credentialScope)) {
return arnBuilder.buildResources(credentialScope, ctx, region, accountId, requestPartition());
}
// ARNs the table renders take the request's partition, which a Region Floci does not know cannot be mapped to.
return arnBuilder.buildResources(credentialScope, operation, ctx, region, accountId, requestPartition());
}
@@ -21,8 +21,11 @@ import java.util.stream.Collectors;
*
* <p>The file is generated by {@code tools/aws/regen_iam_request_resources.py} from AWS's Service Reference, which
* lists the resource types each action acts on and each type's ARN formats, and from botocore's model of the
* request, which gives the members that name them. {@code make iam-request-resources-check} re-derives every
* operation from botocore and {@code make iam-request-resources-verify} checks them against AWS.
* request, which gives the members that name them. A namespace AWS authorizes as the HTTP method of a request, on the
* resource its path names, also has the ARN formats its developer guide gives the paths of resources the Service
* Reference gives no type ({@code pathFormats}: API Gateway's), read as the reference's types are.
* {@code make iam-request-resources-check} re-derives every operation from botocore and
* {@code make iam-request-resources-verify} checks them against AWS.
*
* <p>A missing or malformed resource is a build defect, so loading fails with {@link IllegalStateException}
* rather than leaving every operation it reads checked on {@code *}.
@@ -53,7 +56,8 @@ final class RequestResourceMembers {
private static final Pattern MINTED_SUFFIX = Pattern.compile("[-_.]\\?+");
/** A member a REST request carries outside its body, by its name, and where: a path label or a query parameter. */
private static final Pattern LOCATED_MEMBER = Pattern.compile("[A-Za-z][A-Za-z0-9_]*");
private static final Pattern LOCATION = Pattern.compile("\\{[A-Za-z0-9_]+}|\\?[A-Za-z0-9_.-]+");
/** A path label may hold a hyphen, as API Gateway v2's {@code /v2/tags/{resource-arn}} does. */
private static final Pattern LOCATION = Pattern.compile("\\{[A-Za-z0-9_-]+}|\\?[A-Za-z0-9_.-]+");
// A botocore client, as the vendored routes name its model.
private static final Pattern CLIENT = Pattern.compile("[a-z0-9][a-z0-9-]*");
// A member of a request's body at any depth: Delete.Objects[].Key.
@@ -371,24 +375,28 @@ final class RequestResourceMembers {
Set<String> namespaces = Set.copyOf(document.path("namespaces").propertyStream().map(Map.Entry::getKey).toList());
validateIntegerVariables(document.path("integerVariables"), document.path("arnFormats"));
Map<String, Map<String, ArnFormat>> formats = new LinkedHashMap<>();
document.path("arnFormats").properties().forEach(namespace -> {
Set<String> unqualified = names(document.path("unqualified").path(namespace.getKey()));
Set<String> minted = names(document.path("mintedIds").path(namespace.getKey()));
JsonNode suffixes = document.path("mintedSuffixes").path(namespace.getKey());
Map<String, ArnFormat> types = new LinkedHashMap<>();
namespace.getValue().properties().forEach(type -> {
String format = type.getValue().asText("");
if (!format.startsWith("arn:${Partition}:")) {
throw new IllegalStateException(RESOURCE_NAME + " gives " + namespace.getKey() + "'s "
+ type.getKey() + " no ARN format");
}
Set<String> integers = names(document.path("integerVariables").path(namespace.getKey()).path(type.getKey()));
types.put(type.getKey(), new ArnFormat(format, pattern(format), unqualified.contains(type.getKey()),
minted.contains(type.getKey()), integers.isEmpty() ? null : pattern(format, integers),
suffixes.path(type.getKey()).asText(null)));
// A route type the developer guide gives a path of is a resource type as the Service Reference's are.
for (String section : List.of("arnFormats", "pathFormats")) {
document.path(section).properties().forEach(namespace -> {
Set<String> unqualified = names(document.path("unqualified").path(namespace.getKey()));
Set<String> minted = names(document.path("mintedIds").path(namespace.getKey()));
JsonNode suffixes = document.path("mintedSuffixes").path(namespace.getKey());
Map<String, ArnFormat> types = new LinkedHashMap<>(formats.getOrDefault(namespace.getKey(), Map.of()));
namespace.getValue().properties().forEach(type -> {
String format = type.getValue().asText("");
if (!format.startsWith("arn:${Partition}:") || types.containsKey(type.getKey())) {
throw new IllegalStateException(RESOURCE_NAME + " gives " + namespace.getKey() + "'s "
+ type.getKey() + " no ARN format, or two");
}
Set<String> integers = names(document.path("integerVariables").path(namespace.getKey())
.path(type.getKey()));
types.put(type.getKey(), new ArnFormat(format, pattern(format), unqualified.contains(type.getKey()),
minted.contains(type.getKey()), integers.isEmpty() ? null : pattern(format, integers),
suffixes.path(type.getKey()).asText(null)));
});
formats.put(namespace.getKey(), Map.copyOf(types));
});
formats.put(namespace.getKey(), Map.copyOf(types));
});
}
document.path("unqualified").properties().forEach(namespace -> {
Set<String> types = formats.getOrDefault(namespace.getKey(), Map.of()).keySet();
if (!namespace.getValue().isArray() || !types.containsAll(names(namespace.getValue()))) {
@@ -3,6 +3,7 @@ package io.floci.aws.core.common;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.node.JsonNodeFactory;
import com.fasterxml.jackson.databind.node.ObjectNode;
import io.floci.aws.core.common.auth.SigV4Canonicalization;
import io.floci.aws.services.iam.IamActionRegistry;
import jakarta.ws.rs.container.ContainerRequestContext;
import jakarta.ws.rs.core.MultivaluedMap;
@@ -51,6 +52,8 @@ public final class RequestResources {
/** An ARN without its leading {@code arn:<partition>:<service>:}, its Region optional: {@code 123456789012:function:f}. */
private static final Pattern PARTIAL_ARN = Pattern.compile("(?:([a-z]{2}(?:-[a-z0-9]+)+-\\d+):)?(\\d{12}):(.+)");
private static final String WITHOUT_LEADING_SLASH = "WithoutLeadingSlash";
/** A variable whose value the format holds URL-encoded: API Gateway's {@code /tags/${UrlEncodedResourceARN}}. */
private static final String URL_ENCODED = "UrlEncoded";
/** Values for a type's variables, and the ARN whose account and Region the resource they name is in, if any. */
private record Filling(Map<String, String> variables, AwsArnUtils.Arn from) {
@@ -1034,19 +1037,40 @@ public final class RequestResources {
private static String render(String format, Map<String, String> filling, String partition, String region,
String accountId) {
Matcher variable = VARIABLE.matcher(format);
boolean path = isPath(format);
StringBuilder arn = new StringBuilder();
while (variable.find()) {
String value = switch (variable.group(1)) {
case "Partition" -> partition;
case "Region" -> region;
case "Account" -> accountId;
default -> filling.getOrDefault(variable.group(1), "*");
default -> filling.containsKey(variable.group(1))
? spelled(variable.group(1), filling.get(variable.group(1)), path) : "*";
};
variable.appendReplacement(arn, Matcher.quoteReplacement(value));
}
return variable.appendTail(arn).toString();
}
/** Whether a format's resource is a path, as API Gateway's are: {@code ::/restapis/${RestApiId}}. */
private static boolean isPath(String format) {
String[] parts = format.split(":", 6);
return parts.length == 6 && parts[5].startsWith("/");
}
/**
* A value as its variable holds it: URL-encoded, in SigV4 canonical form, for a variable the format names
* {@code UrlEncoded...}, as AWS names a tagged API Gateway resource {@code /tags/<UrlEncodedResourceARN>}; with its
* {@code %} and {@code /} escaped in a path, so a value given as one segment of it cannot pass for more than one;
* as given otherwise.
*/
private static String spelled(String variable, String value, boolean path) {
if (variable.startsWith(URL_ENCODED)) {
return SigV4Canonicalization.uriEncode(value);
}
return path ? value.replace("%", "%25").replace("/", "%2F") : value;
}
/**
* An ARN the request names: as given, and, when it names another partition, account or Region than the
* request's, as each resource of that name in the request's partition, in the ARN's account or the caller's and
@@ -12,7 +12,6 @@ import io.floci.aws.core.common.RequestResources;
import io.floci.aws.core.common.ServicePrincipals;
import io.floci.aws.core.common.SigV4CredentialScope;
import io.floci.aws.core.common.StoredResourceArns;
import io.floci.aws.core.common.auth.SigV4Canonicalization;
import io.floci.aws.services.kms.KmsService;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.enterprise.inject.Instance;
@@ -22,8 +21,6 @@ import jakarta.ws.rs.container.ContainerRequestContext;
import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URLDecoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.Iterator;
@@ -33,7 +30,6 @@ import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.Set;
import java.util.StringJoiner;
/**
* Constructs the target resource ARN for a request so the policy evaluator
@@ -54,12 +50,6 @@ public class ResourceArnBuilder {
/** What a service-linked role deletion task identifier starts with; see its resolver. */
private static final String DELETION_TASK_PREFIX = "task" + ServiceLinkedRoles.PATH;
/** The segment that starts an API Gateway v2 management path, and is not part of the resource it names. */
private static final String API_GATEWAY_V2_SEGMENT = "v2";
/** The segment a tagging route names before the ARN it tags, which it captures whole, slashes included. */
private static final String API_GATEWAY_TAGS_SEGMENT = "tags";
private final ObjectMapper objectMapper;
/**
@@ -127,9 +117,8 @@ public class ResourceArnBuilder {
}
/**
* The resources a request is checked against. API Gateway ARNs are minted in {@code partition}, the request's, as
* that service mints its own, so a Region no partition publishes gets the deployment's partition rather than
* {@code aws}.
* The resources a request is checked against, minted in {@code partition}, the request's, as its service mints its
* own, so a Region no partition publishes gets the deployment's partition rather than {@code aws}.
*/
public List<String> buildResources(String credentialScope, ContainerRequestContext ctx,
String region, String accountId, String partition) {
@@ -152,7 +141,6 @@ public class ResourceArnBuilder {
return switch (credentialScope) {
case "dynamodb" -> buildDynamoDbArns(ctx, region, accountId);
case "iam" -> buildIamArns(ctx, region, accountId);
case "apigateway" -> List.of(buildApiGatewayArn(ctx, region, partition));
default -> namedResources(credentialScope, operation, ctx, region, accountId, partition);
};
}
@@ -757,48 +745,6 @@ public class ResourceArnBuilder {
return stored.filter(entity -> entity.arn() != null && !entity.arn().isBlank());
}
/**
* API Gateway authorizes a management call as its HTTP method on the path it names, in the Region serving
* it and with no account: {@code GET /restapis/abc/stages} acts on
* {@code arn:<partition>:apigateway:<region>::/restapis/abc/stages}. The path is read as the router reads
* it: each segment decoded, then {@code .} dropped and {@code ..} resolved, then empty segments dropped, so
* {@code /restapis/%61bc}, {@code /restapis/x/%2E%2E/abc} and {@code /restapis//abc} all act on
* {@code ::/restapis/abc}, the API they reach, and a stage keeps
* its name as written, {@code ::/apis/<id>/stages/$default}. The {@code /v2} that starts an HTTP or
* WebSocket API path is not part of its resource, so {@code GET /v2/apis} acts on {@code ::/apis}. Only the
* ARN a tagging route names, everything after {@code /tags/}, is re-encoded, in SigV4 canonical form, as AWS
* names that resource {@code /tags/<UrlEncodedResourceARN>}; elsewhere a decoded {@code %} or {@code /}
* stays escaped, so a segment cannot pass for more than one.
*/
private static String buildApiGatewayArn(ContainerRequestContext ctx, String region, String partition) {
String[] raw = IamActionRegistry.routedPath(ctx).split("/", -1);
List<String> segments = new ArrayList<>();
for (int i = 1; i < raw.length; i++) {
String segment = pathSegment(raw[i]);
if (segment.equals("..")) {
if (!segments.isEmpty()) {
segments.removeLast();
}
} else if (!segment.equals(".")) {
segments.add(segment);
}
}
segments.removeIf(String::isEmpty);
if (!segments.isEmpty() && segments.getFirst().equals(API_GATEWAY_V2_SEGMENT)) {
segments.removeFirst();
}
if (segments.size() > 1 && segments.getFirst().equals(API_GATEWAY_TAGS_SEGMENT)) {
String tagged = String.join("/", segments.subList(1, segments.size()));
return new AwsArnUtils.Arn(partition, "apigateway", region, "",
"/" + API_GATEWAY_TAGS_SEGMENT + "/" + SigV4Canonicalization.uriEncode(tagged)).toString();
}
StringJoiner resource = new StringJoiner("/", "/", "");
for (String segment : segments) {
resource.add(segment.replace("%", "%25").replace("/", "%2F"));
}
return new AwsArnUtils.Arn(partition, "apigateway", region, "", resource.toString()).toString();
}
/**
* The ARN a shared tagging route acts on, read where its controller reads it: after {@code /tags/} or
* {@code /v1/tags/} in the path; on {@code POST /tags}, the body's {@code resourceArn}; and on the other
@@ -822,18 +768,6 @@ public class ResourceArnBuilder {
return null;
}
/**
* A path segment as sent, decoded as a path parameter is: a {@code +} stays a {@code +}. A malformed
* escape is kept as sent.
*/
private static String pathSegment(String raw) {
try {
return URLDecoder.decode(raw.replace("+", "%2B"), StandardCharsets.UTF_8);
} catch (IllegalArgumentException e) {
return raw;
}
}
// ── DynamoDB ─────────────────────────────────────────────────────────────────
private String buildDynamoDbArn(ContainerRequestContext ctx, String region, String accountId) {
List<String> arns = buildDynamoDbArns(ctx, region, accountId);
@@ -1,11 +1,12 @@
{
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-22", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."},
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ec2-instance-connect": ["ec2-instance-connect"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
"handBuilt": ["apigateway", "dynamodb", "iam", "kms"],
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "apigateway": ["apigateway", "apigatewayv2"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ec2-instance-connect": ["ec2-instance-connect"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
"handBuilt": ["dynamodb", "iam", "kms"],
"notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rules do not fill a name from, so nearly every operation's resource would be left open", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment/<application>/<name>`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "execute-api": "REST: its requests name their resourcLine truncated
"otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifyuibuilder", "aoss", "apiportal", "appfabric", "appflow", "application-signals", "application-signals-mcp", "appmesh", "appmesh-preview", "apprunner", "appstream", "apptest", "arc-region-switch", "arc-zonal-shift", "artifact", "assurance", "auditmanager", "aws-external-anthropic", "b2bi", "backup-gateway", "backup-search", "bcm-data-hub", "bedrock-mantle", "bedrock-websearch", "billing", "billingconductor", "braket", "bugbust", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "clouddirectory", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "end-user-messaging", "entityresolution", "evs", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "osm", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "ssmmessages", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web"],
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "bedrock": {"advanced-prompt-optimization-job": "arn:${Partition}:bedrock:${Region}:${Account}:advanced-prompt-optimization-job/${ResourceId}", "agent": "arn:${Partition}:bedrock:${Region}:${Account}:agent/${AgentId}", "agent-alias": "arn:${Partition}:bedrock:${Region}:${Account}:agent-alias/${AgentId}/${AgentAliasId}", "application-inference-profile": "arn:${Partition}:bedrock:${Region}:${Account}:application-inference-profile/${ResourceId}", "async-invoke": "arn:${Partition}:bedrock:${Region}:${Account}:async-invoke/${ResourceId}", "automated-reasoning-policy": "arn:${Partition}:bedrock:${Region}:${Account}:automated-reasoning-policy/${AutomatedReasoningPolicyId}", "automated-reasoning-policy-version": "arn:${Partition}:bedrock:${Region}:${Account}:automated-reasoning-policy/${AutomatedReasoningPolicyId}:${AutomatedReasoningPolicyVersion}", "bedrock-marketplace-model-endpoint": "arn:${Partition}:bedrock:${Region}:${Account}:marketplace/model-endpoint/all-access", "blueprint": "arn:${Partition}:bedrock:${Region}:${Account}:blueprint/${BlueprintId}", "blueprint-optimization-invocation": "arn:${Partition}:bedrock:${Region}:${Account}:blueprint-optimization-invocation/${ResourceId}", "custom-model": "arn:${Partition}:bedrock:${Region}:${Account}:custom-model/${ResourceId}", "custom-model-deployment": "arn:${Partition}:bedrock:${Region}:${Account}:custom-model-deployment/${ResourceId}", "data-automation-invocation-job": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-invocation/${JobId}", "data-automation-library": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-library/${DataAutomationLibraryId}", "data-automation-library-ingestion-job": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-library-ingestion-job/${IngestionJobId}", "data-automation-profile": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-profile/${ProfileId}", "data-automation-project": "arn:${Partition}:bedrock:${Region}:${Account}:data-automation-project/${ProjectId}", "default-prompt-router": "arn:${Partition}:bedrock:${Region}:${Account}:default-prompt-router/${ResourceId}", "evaluation-job": "arn:${Partition}:bedrock:${Region}:${Account}:evaluation-job/${ResourceId}", "flow": "arn:${Partition}:bedrock:${Region}:${Account}:flow/${FlowId}", "flow-alias": "arn:${Partition}:bedrock:${Region}:${Account}:flow/${FlowId}/alias/${FlowAliasId}", "flow-execution": "arn:${Partition}:bedrock:${Region}:${Account}:flow/${FlowId}/alias/${FlowAliasId}/execution/${FlowExecutionId}", "foundation-model": "arn:${Partition}:bedrock:${Region}::foundation-model/${ResourceId}", "guardrail": "arn:${Partition}:bedrock:${Region}:${Account}:guardrail/${GuardrailId}", "guardrail-profile": "arn:${Partition}:bedLine truncated
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-estimate": ["aws:ResourceTag/"], "bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "bedrock": {"advanced-prompt-optimization-job": ["aws:ResourceTag/"], "agent": ["aws:ResourceTag/"], "agent-alias": ["aws:ResourceTag/"], "application-inference-profile": ["aws:ResourceTag/"], "async-invoke": ["aws:ResourceTag/"], "automated-reasoning-policy": ["aws:ResourceTag/"], "automated-reasoning-policy-version": ["aws:ResourceTag/"], "blueprint": ["aws:ResourceTag/"], "blueprint-optimization-invocation": ["aws:ResourceTag/"], "custom-model": ["aws:ResourceTag/"], "custom-model-deployment": ["aws:ResourceTag/"], "data-automation-invocation-job": ["aws:ResourceTag/"], "data-automation-library": ["aws:ResourceTag/"], "data-automation-library-ingestion-job": ["aws:ResourceTag/"], "data-automation-project": ["aws:ResourceTag/"], "evaluation-job": ["aws:ResourceTag/"], "flow": ["aws:ResourceTag/"], "flow-alias": ["aws:ResourceTag/"], "guardrail": ["aws:ResourceTag/"], "imported-model": ["aws:ResourceTag/"], "knowledge-base": ["aws:ResourceTag/"], "model-copy-job": ["aws:ResourceTag/"], "model-customization-job": ["aws:ResourceTag/"], "model-evaluation-job": ["aws:ResourceTag/"], "model-import-job": ["aws:ResourceTag/"], "model-invocation-job": ["aws:ResourceTag/"], "project": ["aws:ResourceTag/"], "prompt": ["aws:ResourceTag/"], "prompt-router": ["aws:ResourceTag/"], "prompt-version": ["aws:ResourceTag/"], "provisioned-model": ["aws:ResourceTag/"], "retrieval-instruction": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/"], "budgetAction": ["aws:ResourceTag/"]}, "ce": {"anomalymonitor": ["aws:ResourceTag/"], "anomalysubscription": ["aws:ResourceTag/"], "billingview": ["aws:ResourceTag/"], "costcategory": ["aws:ResourceTag/"]}, "cloudformation": {"changeset": ["aws:ResourceTag/"], "stack": ["aws:ResourceTag/"], "stackset": ["aws:ResourceTag/"]}, "cloudfront": {"anycast-ip-list": ["aws:ResourceTag/"], "connection-function": ["aws:ResourceTag/"], "connection-group": ["aws:ResourceTag/"], "distribution": ["aws:ResourceTag/"], "distribution-tenant": ["aws:ResourceTag/"], "function": ["aws:ResourceTag/"], "key-value-store": ["aws:ResourceTag/"], "streaming-distribution": ["aws:ResourceTag/"], "trust-store": ["aws:ResourceTag/"], "vpcorigin": ["aws:ResourceTag/"]}, "cloudtrail": {"channel": ["aws:ResourceTag/"], "dashboard": ["aws:ResourceTag/"], "eventdatastore": ["aws:ResourceTag/"], "trail": ["aws:ResourceTag/"]}, "codebuild": {"project": ["aws:ResourceTag/"], "report-group": ["aws:ResourceTag/"]}, "codepipeline": {"action": ["aws:ResourceTag/"], "actiontype": ["aws:ResourceTag/"], "pipeline": ["aws:ResourceTag/"], "stage": ["aws:ResourceTag/"], "webhook": ["aws:ResourceTag/"]}, "cognito-identity": {"identitypool": ["aws:ResourceTag/"]}, "cognito-idp": {"userpool": ["aws:ResourceTag/"]}, "controltower": {"EnabledBaseline": ["aws:ResourceTag/"], "EnabledControl": ["aws:ResourceTag/"], "LandingZone": ["aws:ResourceTag/"]}, "datasync": {"agent": ["aws:ResourceTag/"], "discoveryjob": ["aws:ResourceTag/"], "location": ["aws:ResourceTag/"], "storagesystem": ["aws:ResourceTag/"], "task": ["aws:ResourceTag/"], "taskexecution": ["aws:ResourceTag/"]}, "dsql": {"Cluster": ["aws:ResourceTag/"], "Stream": ["aws:ResourceTag/"]}, "dynamodb": {"index": ["aws:ResourceTag/"], "stream": ["aws:ResourceTag/"], "table": ["aws:ResourceTag/"]}, "ec2": {"application-status-check": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-block": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-manager-data-export": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-cancellation-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-modification-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "carrier-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "client-vpn-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "coip-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "customer-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "declarative-policies-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dedicated-host": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dLine truncated
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "apigateway": {"AccessLogSettings": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/accesslogsettings", "Account": "arn:${Partition}:apigateway:${Region}::/account", "Api": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}", "ApiKey": "arn:${Partition}:apigateway:${Region}::/apikeys/${ApiKeyId}", "ApiKeys": "arn:${Partition}:apigateway:${Region}::/apikeys", "ApiMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings/${ApiMappingId}", "ApiMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings", "Apis": "arn:${Partition}:apigateway:${Region}::/apis", "Authorizer": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers/${AuthorizerId}", "Authorizers": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers", "AuthorizersCache": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/cache/authorizers", "BasePathMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings/${BasePath}", "BasePathMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings", "ClientCertificate": "arn:${Partition}:apigateway:${Region}::/clientcertificates/${ClientCertificateId}", "ClientCertificates": "arn:${Partition}:apigateway:${Region}::/clientcertificates", "Cors": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/cors", "Deployment": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments/${DeploymentId}", "Deployments": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments", "DocumentationPart": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts/${DocumentationPartId}", "DocumentationParts": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts", "DocumentationVersion": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions/${DocumentationVersionId}", "DocumentationVersions": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions", "DomainName": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}", "DomainNameAccessAssociation": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations/domainname/${DomainName}/${SourceType}/${SourceId}", "DomainNameAccessAssociations": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations", "DomainNames": "arn:${Partition}:apigateway:${Region}::/domainnames", "ExportedAPI": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/exports/${Specification}", "GatewayResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses/${ResponseType}", "GatewayResponses": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses", "Integration": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}", "IntegrationResponse": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses/${IntegrationResponseId}", "IntegrationResponses": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses", "Integrations": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations", "Method": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}", "MethodResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}/responses/${StatusCode}", "Model": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}", "ModelTemplate": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}/template", "Models": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models", "Portal": "arn:${Partition}:apigateway:${Region}:${Account}:/portals/${PortalId}", "PortalProduct": "arn:${Partition}:apigateway:${Region}:${Account}:/portalproducts/$Line truncated
"pathFormats": {"apigateway": {"/restapis/{restapi_id}/models/{model_name}/default_template (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/models/${ModelName}/default_template", "/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/cache/authorizers", "/restapis/{restapi_id}/stages/{stage_name}/cache/data (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/cache/data", "/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type} (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/exports/${ExportType}", "/sdktypes (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/sdktypes", "/sdktypes/{sdktype_id} (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/sdktypes/${SdktypeId}", "/usageplans/{usageplanId}/keys/{keyId}/usage (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/usageplans/${UsageplanId}/keys/${KeyId}/usage", "/usageplans/{usageplanId}/usage (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/usageplans/${UsageplanId}/usage", "Authorizer (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/authorizers/${Id}", "Authorizers (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/authorizers", "Deployment (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/deployments/${Id}", "Deployments (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/deployments", "Integration (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/resources/${ResourceId}/methods/${HttpMethod}/integration", "IntegrationResponse (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/resources/${ResourceId}/methods/${HttpMethod}/integration/responses/${StatusCode}", "Model (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/models/${ModelName}", "Models (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/models", "Stage (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/stages/${StageName}", "Stages (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/stages"}},
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "apigateway": {"AccessLogSettings": ["aws:ResourceTag/"], "Api": ["aws:ResourceTag/"], "ApiKey": ["aws:ResourceTag/"], "ApiKeys": ["aws:ResourceTag/"], "ApiMapping": ["aws:ResourceTag/"], "ApiMappings": ["aws:ResourceTag/"], "Apis": ["aws:ResourceTag/"], "Authorizer": ["aws:ResourceTag/"], "Authorizers": ["aws:ResourceTag/"], "AuthorizersCache": ["aws:ResourceTag/"], "BasePathMapping": ["aws:ResourceTag/"], "BasePathMappings": ["aws:ResourceTag/"], "ClientCertificate": ["aws:ResourceTag/"], "ClientCertificates": ["aws:ResourceTag/"], "Cors": ["aws:ResourceTag/"], "Deployment": ["aws:ResourceTag/"], "Deployments": ["aws:ResourceTag/"], "DocumentationPart": ["aws:ResourceTag/"], "DocumentationParts": ["aws:ResourceTag/"], "DocumentationVersion": ["aws:ResourceTag/"], "DocumentationVersions": ["aws:ResourceTag/"], "DomainName": ["aws:ResourceTag/"], "DomainNameAccessAssociations": ["aws:ResourceTag/"], "DomainNames": ["aws:ResourceTag/"], "ExportedAPI": ["aws:ResourceTag/"], "GatewayResponse": ["aws:ResourceTag/"], "GatewayResponses": ["aws:ResourceTag/"], "Integration": ["aws:ResourceTag/"], "IntegrationResponse": ["aws:ResourceTag/"], "IntegrationResponses": ["aws:ResourceTag/"], "Integrations": ["aws:ResourceTag/"], "Method": ["aws:ResourceTag/"], "MethodResponse": ["aws:ResourceTag/"], "Model": ["aws:ResourceTag/"], "ModelTemplate": ["aws:ResourceTag/"], "Models": ["aws:ResourceTag/"], "Portal": ["aws:ResourceTag/"], "PortalProduct": ["aws:ResourceTag/"], "PrivateBasePathMapping": ["aws:ResourceTag/"], "PrivateBasePathMappings": ["aws:ResourceTag/"], "PrivateDomainName": ["aws:ResourceTag/"], "ProductPage": ["aws:ResourceTag/"], "ProductRestEndpointPage": ["aws:ResourceTag/"], "RequestValidator": ["aws:ResourceTag/"], "RequestValidators": ["aws:ResourceTag/"], "Resource": ["aws:ResourceTag/"], "Resources": ["aws:ResourceTag/"], "RestApi": ["aws:ResourceTag/"], "RestApis": ["aws:ResourceTag/"], "Route": ["aws:ResourceTag/"], "RouteRequestParameter": ["aws:ResourceTag/"], "RouteResponse": ["aws:ResourceTag/"], "RouteResponses": ["aws:ResourceTag/"], "RouteSettings": ["aws:ResourceTag/"], "Routes": ["aws:ResourceTag/"], "RoutingRule": ["aws:ResourceTag/"], "Sdk": ["aws:ResourceTag/"], "Stage": ["aws:ResourceTag/"], "Stages": ["aws:ResourceTag/"], "Template": ["aws:ResourceTag/"], "UsagePlan": ["aws:ResourceTag/"], "UsagePlanKey": ["aws:ResourceTag/"], "UsagePlanKeys": ["aws:ResourceTag/"], "UsagePlans": ["aws:ResourceTag/"], "VpcLink": ["aws:ResourceTag/"], "VpcLinks": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-estimate": ["aws:ResourceTag/"], "bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "bedrock": {"advanced-prompt-optimization-job": ["aws:ResourceTag/"], "agent": ["aws:ResourceTag/"], "agent-alias": ["aws:ResourceTag/"], "application-inference-profile": ["aws:ResourceTag/"], "async-invoke": ["aws:ResourceTag/"], "automated-reasoning-policy": ["aws:ResourceTag/"], "automated-reasoning-policy-version": ["aws:ResourceTag/"], "blueprint": ["aws:ResourceTag/"], "blueprint-optimization-invocation": ["aws:ResourceTag/"], "custom-model": ["aws:ResourceTag/"], "custom-model-deployment": ["aws:ResourceTag/"], "data-automation-invocation-job": ["aws:ResourceTag/"], "data-automation-library": ["aws:ResourceTag/"], "data-automation-library-ingestion-job": ["aws:ResourceTag/"], "data-automation-project": ["aws:ResourceTag/"], "evaluation-job": ["aws:ResourceTag/"], "flow": ["aws:ResourceTag/"], "flow-alias": ["aws:ResourceTag/"], "guardrail": ["aws:ResourceTag/"], "imported-model": ["aws:ResourceTag/"], "knowledge-base": ["aws:ResourceTag/"], "model-copy-job": ["aws:ResourceTag/"], "model-customization-job": ["aws:ResourceTag/"], "model-evaluation-job": ["aws:ResourceTag/"], "model-import-job": ["aws:ResourceTag/"], "model-invocation-job": ["aws:ResourceTag/"], "project": ["aws:ResourceTag/"], "prompt": ["aws:ResourceTag/"], "prompt-router": ["aws:ResourceTag/"], "prompt-version": ["aws:ResourceTag/"], "provisioned-model": ["aws:ResourceTag/"], "retrieval-instruction": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/"], "budgetAction": ["aws:ResourceTag/"]}, "ce": {"anomalymonitor": ["aws:ResourceTag/"], "anomalysubscription": ["aws:ResourceTag/"], "billingview": ["aws:ResourceTag/"], "costcategory": ["aws:ReLine 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"]},
@@ -112,6 +113,193 @@
"acm:UpdateAcmeDomainValidation": {"action": "acm:UpdateAcmeDomainValidation", "types": ["acme-domain-validation"], "resources": [{"types": ["acme-domain-validation"], "arn": "AcmeDomainValidationArn"}]},
"acm:UpdateAcmeEndpoint": {"action": "acm:UpdateAcmeEndpoint", "types": ["acme-endpoint"], "resources": [{"types": ["acme-endpoint"], "arn": "AcmeEndpointArn"}]},
"acm:UpdateCertificateOptions": {"action": "acm:UpdateCertificateOptions", "types": ["certificate"], "resources": [{"types": ["certificate"], "arn": "CertificateArn"}]},
"apigateway:CreateApi": {"action": "apigateway:CreateApi", "types": [], "resources": [{"type": "Apis", "fill": {}}]},
"apigateway:CreateApiKey": {"action": "apigateway:CreateApiKey", "types": [], "resources": [{"type": "ApiKeys", "fill": {}}]},
"apigateway:CreateApiMapping": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "ApiMappings", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{domainName}"}},
"apigateway:CreateAuthorizer": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "Authorizers (REST API resources)", "fill": {"ApiId": "restApiId"}}, {"type": "Authorizers", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}", "restApiId": "{restapi_id}"}},
"apigateway:CreateBasePathMapping": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "BasePathMappings", "fill": {"DomainName": "domainName"}}], "located": {"domainName": "{domain_name}"}},
"apigateway:CreateDeployment": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "Deployments (REST API resources)", "fill": {"ApiId": "restApiId"}}, {"type": "Deployments", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}", "restApiId": "{restapi_id}"}},
"apigateway:CreateDocumentationPart": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "DocumentationParts", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:CreateDocumentationVersion": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "DocumentationVersions", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:CreateDomainName": {"action": "apigateway:CreateDomainName", "types": [], "resources": [{"type": "DomainNames", "fill": {}}]},
"apigateway:CreateDomainNameAccessAssociation": {"action": "apigateway:CreateDomainNameAccessAssociation", "types": [], "resources": [{"type": "DomainNameAccessAssociations", "fill": {}}]},
"apigateway:CreateIntegration": {"action": "apigateway:CreateIntegration", "types": [], "resources": [{"type": "Integrations", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}"}},
"apigateway:CreateIntegrationResponse": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "IntegrationResponses", "fill": {"ApiId": "ApiId", "IntegrationId": "IntegrationId"}}], "located": {"ApiId": "{apiId}", "IntegrationId": "{integrationId}"}},
"apigateway:CreateModel": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "Models (REST API resources)", "fill": {"ApiId": "restApiId"}}, {"type": "Models", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}", "restApiId": "{restapi_id}"}},
"apigateway:CreatePortal": {"action": "apigateway:CreatePortal", "types": ["Portal"], "resources": [{"types": ["Portal"], "arn": "IncludedPortalProductArns[]"}, {"type": "Portal", "fill": {}}]},
"apigateway:CreatePortalProduct": {"action": "apigateway:CreatePortalProduct", "types": ["PortalProduct"], "resources": [{"type": "PortalProduct", "fill": {}}]},
"apigateway:CreateProductPage": {"action": "apigateway:CreateProductPage", "types": ["ProductPage"], "resources": [{"type": "ProductPage", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:CreateProductRestEndpointPage": {"action": "apigateway:CreateProductRestEndpointPage", "types": ["ProductRestEndpointPage"], "resources": [{"type": "ProductRestEndpointPage", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:CreateRequestValidator": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "RequestValidators", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:CreateResource": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "Resource", "fill": {"RestApiId": "restApiId", "ResourceId": "parentId"}}], "located": {"parentId": "{parent_id}", "restApiId": "{restapi_id}"}},
"apigateway:CreateRestApi": {"action": "apigateway:CreateRestApi", "types": [], "resources": [{"type": "RestApis", "fill": {}}]},
"apigateway:CreateRoute": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "Routes", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}"}},
"apigateway:CreateRouteResponse": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "RouteResponses", "fill": {"ApiId": "ApiId", "RouteId": "RouteId"}}], "located": {"ApiId": "{apiId}", "RouteId": "{routeId}"}},
"apigateway:CreateRoutingRule": {"action": "apigateway:CreateRoutingRule", "types": ["RoutingRule"], "resources": [{"type": "RoutingRule", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{domainName}"}},
"apigateway:CreateStage": {"action": "apigateway:CreateStage", "types": [], "resources": [{"type": "Stages (REST API resources)", "fill": {"ApiId": "restApiId"}}, {"type": "Stages", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}", "restApiId": "{restapi_id}"}},
"apigateway:CreateUsagePlan": {"action": "apigateway:CreateUsagePlan", "types": [], "resources": [{"type": "UsagePlans", "fill": {}}]},
"apigateway:CreateUsagePlanKey": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "UsagePlanKeys", "fill": {"UsagePlanId": "usagePlanId"}}], "located": {"usagePlanId": "{usageplanId}"}},
"apigateway:CreateVpcLink": {"action": "apigateway:CreateVpcLink", "types": [], "resources": [{"type": "VpcLinks", "fill": {}}]},
"apigateway:DeleteAccessLogSettings": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "AccessLogSettings", "fill": {"ApiId": "ApiId", "StageName": "StageName"}}], "located": {"ApiId": "{apiId}", "StageName": "{stageName}"}},
"apigateway:DeleteApi": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Api", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}"}},
"apigateway:DeleteApiKey": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "ApiKey", "fill": {"ApiKeyId": "apiKey"}}], "located": {"apiKey": "{api_Key}"}},
"apigateway:DeleteApiMapping": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "ApiMapping", "fill": {"DomainName": "DomainName", "ApiMappingId": "ApiMappingId"}}], "located": {"ApiMappingId": "{apiMappingId}", "DomainName": "{domainName}"}},
"apigateway:DeleteAuthorizer": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Authorizer (REST API resources)", "fill": {"ApiId": "restApiId", "Id": "authorizerId"}}, {"type": "Authorizer", "fill": {"ApiId": "ApiId", "AuthorizerId": "AuthorizerId"}}], "located": {"ApiId": "{apiId}", "AuthorizerId": "{authorizerId}", "authorizerId": "{authorizer_id}", "restApiId": "{restapi_id}"}},
"apigateway:DeleteBasePathMapping": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "BasePathMapping", "fill": {"DomainName": "domainName", "BasePath": "basePath"}}], "located": {"basePath": "{base_path}", "domainName": "{domain_name}"}},
"apigateway:DeleteClientCertificate": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "ClientCertificate", "fill": {"ClientCertificateId": "clientCertificateId"}}], "located": {"clientCertificateId": "{clientcertificate_id}"}},
"apigateway:DeleteCorsConfiguration": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Cors", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}"}},
"apigateway:DeleteDeployment": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Deployment (REST API resources)", "fill": {"ApiId": "restApiId", "Id": "deploymentId"}}, {"type": "Deployment", "fill": {"ApiId": "ApiId", "DeploymentId": "DeploymentId"}}], "located": {"ApiId": "{apiId}", "DeploymentId": "{deploymentId}", "deploymentId": "{deployment_id}", "restApiId": "{restapi_id}"}},
"apigateway:DeleteDocumentationPart": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "DocumentationPart", "fill": {"RestApiId": "restApiId", "DocumentationPartId": "documentationPartId"}}], "located": {"documentationPartId": "{part_id}", "restApiId": "{restapi_id}"}},
"apigateway:DeleteDocumentationVersion": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "DocumentationVersion", "fill": {"RestApiId": "restApiId", "DocumentationVersionId": "documentationVersion"}}], "located": {"documentationVersion": "{doc_version}", "restApiId": "{restapi_id}"}},
"apigateway:DeleteDomainName": {"action": "apigateway:DeleteDomainName", "types": [], "resources": [{"type": "DomainName", "fill": {"DomainName": "domainName"}}, {"type": "DomainName", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{domainName}", "domainName": "{domain_name}"}},
"apigateway:DeleteDomainNameAccessAssociation": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "arn": "domainNameAccessAssociationArn"}], "located": {"domainNameAccessAssociationArn": "{domain_name_access_association_arn}"}},
"apigateway:DeleteGatewayResponse": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "GatewayResponse", "fill": {"RestApiId": "restApiId", "ResponseType": "responseType"}}], "located": {"responseType": "{response_type}", "restApiId": "{restapi_id}"}},
"apigateway:DeleteIntegration": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Integration (REST API resources)", "fill": {"ApiId": "restApiId", "ResourceId": "resourceId", "HttpMethod": "httpMethod"}}, {"type": "Integration", "fill": {"ApiId": "ApiId", "IntegrationId": "IntegrationId"}}], "located": {"ApiId": "{apiId}", "IntegrationId": "{integrationId}", "httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:DeleteIntegrationResponse": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "IntegrationResponse (REST API resources)", "fill": {"ApiId": "restApiId", "ResourceId": "resourceId", "HttpMethod": "httpMethod", "StatusCode": "statusCode"}}, {"type": "IntegrationResponse", "fill": {"ApiId": "ApiId", "IntegrationId": "IntegrationId", "IntegrationResponseId": "IntegrationResponseId"}}], "located": {"ApiId": "{apiId}", "IntegrationId": "{integrationId}", "IntegrationResponseId": "{integrationResponseId}", "httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}", "statusCode": "{status_code}"}},
"apigateway:DeleteMethod": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Method", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId", "HttpMethodType": "httpMethod"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:DeleteMethodResponse": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "MethodResponse", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId", "HttpMethodType": "httpMethod", "StatusCode": "statusCode"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}", "statusCode": "{status_code}"}},
"apigateway:DeleteModel": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Model (REST API resources)", "fill": {"ApiId": "restApiId", "ModelName": "modelName"}}, {"type": "Model", "fill": {"ApiId": "ApiId", "ModelId": "ModelId"}}], "located": {"ApiId": "{apiId}", "ModelId": "{modelId}", "modelName": "{model_name}", "restApiId": "{restapi_id}"}},
"apigateway:DeletePortal": {"action": "apigateway:DeletePortal", "types": ["Portal"], "resources": [{"type": "Portal", "fill": {"PortalId": "PortalId"}}], "located": {"PortalId": "{portalId}"}},
"apigateway:DeletePortalProduct": {"action": "apigateway:DeletePortalProduct", "types": ["PortalProduct"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:DeletePortalProductSharingPolicy": {"action": "apigateway:DeletePortalProductSharingPolicy", "types": ["PortalProduct"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:DeleteProductPage": {"action": "apigateway:DeleteProductPage", "types": ["ProductPage"], "resources": [{"type": "ProductPage", "fill": {"PortalProductId": "PortalProductId", "ProductPageId": "ProductPageId"}}], "located": {"PortalProductId": "{portalProductId}", "ProductPageId": "{productPageId}"}},
"apigateway:DeleteProductRestEndpointPage": {"action": "apigateway:DeleteProductRestEndpointPage", "types": ["PortalProduct", "ProductRestEndpointPage"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}, {"type": "ProductRestEndpointPage", "fill": {"PortalProductId": "PortalProductId", "ProductRestEndpointPageId": "ProductRestEndpointPageId"}}], "located": {"PortalProductId": "{portalProductId}", "ProductRestEndpointPageId": "{productRestEndpointPageId}"}},
"apigateway:DeleteRequestValidator": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "RequestValidator", "fill": {"RestApiId": "restApiId", "RequestValidatorId": "requestValidatorId"}}], "located": {"requestValidatorId": "{requestvalidator_id}", "restApiId": "{restapi_id}"}},
"apigateway:DeleteResource": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Resource", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId"}}], "located": {"resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:DeleteRestApi": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "RestApi", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:DeleteRoute": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Route", "fill": {"ApiId": "ApiId", "RouteId": "RouteId"}}], "located": {"ApiId": "{apiId}", "RouteId": "{routeId}"}},
"apigateway:DeleteRouteRequestParameter": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "RouteRequestParameter", "fill": {"ApiId": "ApiId", "RouteId": "RouteId", "RequestParameterKey": "RequestParameterKey"}}], "located": {"ApiId": "{apiId}", "RequestParameterKey": "{requestParameterKey}", "RouteId": "{routeId}"}},
"apigateway:DeleteRouteResponse": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "RouteResponse", "fill": {"ApiId": "ApiId", "RouteId": "RouteId", "RouteResponseId": "RouteResponseId"}}], "located": {"ApiId": "{apiId}", "RouteId": "{routeId}", "RouteResponseId": "{routeResponseId}"}},
"apigateway:DeleteRouteSettings": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "RouteSettings", "fill": {"ApiId": "ApiId", "StageName": "StageName", "RouteKey": "RouteKey"}}], "located": {"ApiId": "{apiId}", "RouteKey": "{routeKey}", "StageName": "{stageName}"}},
"apigateway:DeleteRoutingRule": {"action": "apigateway:DeleteRoutingRule", "types": ["RoutingRule"], "resources": [{"type": "RoutingRule", "fill": {"DomainName": "DomainName", "RoutingRuleId": "RoutingRuleId"}}], "located": {"DomainName": "{domainName}", "RoutingRuleId": "{routingRuleId}"}},
"apigateway:DeleteStage": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Stage (REST API resources)", "fill": {"ApiId": "restApiId", "StageName": "stageName"}}, {"type": "Stage", "fill": {"ApiId": "ApiId", "StageName": "StageName"}}], "located": {"ApiId": "{apiId}", "StageName": "{stageName}", "restApiId": "{restapi_id}", "stageName": "{stage_name}"}},
"apigateway:DeleteUsagePlan": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "UsagePlan", "fill": {"UsagePlanId": "usagePlanId"}}], "located": {"usagePlanId": "{usageplanId}"}},
"apigateway:DeleteUsagePlanKey": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "UsagePlanKey", "fill": {"UsagePlanId": "usagePlanId", "Id": "keyId"}}], "located": {"keyId": "{keyId}", "usagePlanId": "{usageplanId}"}},
"apigateway:DeleteVpcLink": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "VpcLink", "fill": {"VpcLinkId": "vpcLinkId"}}, {"type": "VpcLink", "fill": {"VpcLinkId": "VpcLinkId"}}], "located": {"VpcLinkId": "{vpcLinkId}", "vpcLinkId": "{vpclink_id}"}},
"apigateway:DisablePortal": {"action": "apigateway:DisablePortal", "types": ["Portal"], "resources": [{"type": "Portal", "fill": {"PortalId": "PortalId"}}], "located": {"PortalId": "{portalId}"}},
"apigateway:ExportApi": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "ExportedAPI", "fill": {"ApiId": "ApiId", "Specification": "Specification"}}], "located": {"ApiId": "{apiId}", "Specification": "{specification}"}},
"apigateway:FlushStageAuthorizersCache": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers (resource-path-specifier)", "fill": {"RestapiId": "restApiId", "StageName": "stageName"}}], "located": {"restApiId": "{restapi_id}", "stageName": "{stage_name}"}},
"apigateway:FlushStageCache": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "/restapis/{restapi_id}/stages/{stage_name}/cache/data (resource-path-specifier)", "fill": {"RestapiId": "restApiId", "StageName": "stageName"}}], "located": {"restApiId": "{restapi_id}", "stageName": "{stage_name}"}},
"apigateway:GenerateClientCertificate": {"action": "apigateway:GenerateClientCertificate", "types": [], "resources": [{"type": "ClientCertificates", "fill": {}}]},
"apigateway:GetAccount": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Account", "fill": {}}]},
"apigateway:GetApi": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Api", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}"}},
"apigateway:GetApiKey": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "ApiKey", "fill": {"ApiKeyId": "apiKey"}}], "located": {"apiKey": "{api_Key}"}},
"apigateway:GetApiKeys": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "ApiKeys", "fill": {}}]},
"apigateway:GetApiMapping": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "ApiMapping", "fill": {"DomainName": "DomainName", "ApiMappingId": "ApiMappingId"}}], "located": {"ApiMappingId": "{apiMappingId}", "DomainName": "{domainName}"}},
"apigateway:GetApiMappings": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "ApiMappings", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{domainName}"}},
"apigateway:GetApis": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Apis", "fill": {}}]},
"apigateway:GetAuthorizer": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Authorizer (REST API resources)", "fill": {"ApiId": "restApiId", "Id": "authorizerId"}}, {"type": "Authorizer", "fill": {"ApiId": "ApiId", "AuthorizerId": "AuthorizerId"}}], "located": {"ApiId": "{apiId}", "AuthorizerId": "{authorizerId}", "authorizerId": "{authorizer_id}", "restApiId": "{restapi_id}"}},
"apigateway:GetAuthorizers": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Authorizers (REST API resources)", "fill": {"ApiId": "restApiId"}}, {"type": "Authorizers", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}", "restApiId": "{restapi_id}"}},
"apigateway:GetBasePathMapping": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "BasePathMapping", "fill": {"DomainName": "domainName", "BasePath": "basePath"}}], "located": {"basePath": "{base_path}", "domainName": "{domain_name}"}},
"apigateway:GetBasePathMappings": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "BasePathMappings", "fill": {"DomainName": "domainName"}}], "located": {"domainName": "{domain_name}"}},
"apigateway:GetClientCertificate": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "ClientCertificate", "fill": {"ClientCertificateId": "clientCertificateId"}}], "located": {"clientCertificateId": "{clientcertificate_id}"}},
"apigateway:GetClientCertificates": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "ClientCertificates", "fill": {}}]},
"apigateway:GetDeployment": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Deployment (REST API resources)", "fill": {"ApiId": "restApiId", "Id": "deploymentId"}}, {"type": "Deployment", "fill": {"ApiId": "ApiId", "DeploymentId": "DeploymentId"}}], "located": {"ApiId": "{apiId}", "DeploymentId": "{deploymentId}", "deploymentId": "{deployment_id}", "restApiId": "{restapi_id}"}},
"apigateway:GetDeployments": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Deployments (REST API resources)", "fill": {"ApiId": "restApiId"}}, {"type": "Deployments", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}", "restApiId": "{restapi_id}"}},
"apigateway:GetDocumentationPart": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "DocumentationPart", "fill": {"RestApiId": "restApiId", "DocumentationPartId": "documentationPartId"}}], "located": {"documentationPartId": "{part_id}", "restApiId": "{restapi_id}"}},
"apigateway:GetDocumentationParts": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "DocumentationParts", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}", "type": "?type"}},
"apigateway:GetDocumentationVersion": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "DocumentationVersion", "fill": {"RestApiId": "restApiId", "DocumentationVersionId": "documentationVersion"}}], "located": {"documentationVersion": "{doc_version}", "restApiId": "{restapi_id}"}},
"apigateway:GetDocumentationVersions": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "DocumentationVersions", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:GetDomainName": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "DomainName", "fill": {"DomainName": "domainName"}}, {"type": "DomainName", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{domainName}", "domainName": "{domain_name}"}},
"apigateway:GetDomainNameAccessAssociations": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "DomainNameAccessAssociations", "fill": {}}]},
"apigateway:GetDomainNames": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "DomainNames", "fill": {}}]},
"apigateway:GetExport": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type} (resource-path-specifier)", "fill": {"RestapiId": "restApiId", "StageName": "stageName", "ExportType": "exportType"}}], "located": {"exportType": "{export_type}", "restApiId": "{restapi_id}", "stageName": "{stage_name}"}},
"apigateway:GetGatewayResponse": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "GatewayResponse", "fill": {"RestApiId": "restApiId", "ResponseType": "responseType"}}], "located": {"responseType": "{response_type}", "restApiId": "{restapi_id}"}},
"apigateway:GetGatewayResponses": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "GatewayResponses", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:GetIntegration": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Integration (REST API resources)", "fill": {"ApiId": "restApiId", "ResourceId": "resourceId", "HttpMethod": "httpMethod"}}, {"type": "Integration", "fill": {"ApiId": "ApiId", "IntegrationId": "IntegrationId"}}], "located": {"ApiId": "{apiId}", "IntegrationId": "{integrationId}", "httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:GetIntegrationResponse": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "IntegrationResponse (REST API resources)", "fill": {"ApiId": "restApiId", "ResourceId": "resourceId", "HttpMethod": "httpMethod", "StatusCode": "statusCode"}}, {"type": "IntegrationResponse", "fill": {"ApiId": "ApiId", "IntegrationId": "IntegrationId", "IntegrationResponseId": "IntegrationResponseId"}}], "located": {"ApiId": "{apiId}", "IntegrationId": "{integrationId}", "IntegrationResponseId": "{integrationResponseId}", "httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}", "statusCode": "{status_code}"}},
"apigateway:GetIntegrationResponses": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "IntegrationResponses", "fill": {"ApiId": "ApiId", "IntegrationId": "IntegrationId"}}], "located": {"ApiId": "{apiId}", "IntegrationId": "{integrationId}"}},
"apigateway:GetIntegrations": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Integrations", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}"}},
"apigateway:GetMethod": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Method", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId", "HttpMethodType": "httpMethod"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:GetMethodResponse": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "MethodResponse", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId", "HttpMethodType": "httpMethod", "StatusCode": "statusCode"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}", "statusCode": "{status_code}"}},
"apigateway:GetModel": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Model (REST API resources)", "fill": {"ApiId": "restApiId", "ModelName": "modelName"}}, {"type": "Model", "fill": {"ApiId": "ApiId", "ModelId": "ModelId"}}], "located": {"ApiId": "{apiId}", "ModelId": "{modelId}", "modelName": "{model_name}", "restApiId": "{restapi_id}"}},
"apigateway:GetModelTemplate": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "/restapis/{restapi_id}/models/{model_name}/default_template (resource-path-specifier)", "fill": {"RestapiId": "restApiId", "ModelName": "modelName"}}, {"type": "ModelTemplate", "fill": {"ApiId": "ApiId", "ModelId": "ModelId"}}], "located": {"ApiId": "{apiId}", "ModelId": "{modelId}", "modelName": "{model_name}", "restApiId": "{restapi_id}"}},
"apigateway:GetModels": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Models (REST API resources)", "fill": {"ApiId": "restApiId"}}, {"type": "Models", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}", "restApiId": "{restapi_id}"}},
"apigateway:GetPortal": {"action": "apigateway:GetPortal", "types": ["Portal"], "resources": [{"type": "Portal", "fill": {"PortalId": "PortalId"}}], "located": {"PortalId": "{portalId}"}},
"apigateway:GetPortalProduct": {"action": "apigateway:GetPortalProduct", "types": ["PortalProduct"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:GetPortalProductSharingPolicy": {"action": "apigateway:GetPortalProductSharingPolicy", "types": ["PortalProduct"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:GetProductPage": {"action": "apigateway:GetProductPage", "types": ["PortalProduct", "ProductPage"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}, {"type": "ProductPage", "fill": {"PortalProductId": "PortalProductId", "ProductPageId": "ProductPageId"}}], "located": {"PortalProductId": "{portalProductId}", "ProductPageId": "{productPageId}"}},
"apigateway:GetProductRestEndpointPage": {"action": "apigateway:GetProductRestEndpointPage", "types": ["PortalProduct", "ProductRestEndpointPage"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}, {"type": "ProductRestEndpointPage", "fill": {"PortalProductId": "PortalProductId", "ProductRestEndpointPageId": "ProductRestEndpointPageId"}}], "located": {"PortalProductId": "{portalProductId}", "ProductRestEndpointPageId": "{productRestEndpointPageId}"}},
"apigateway:GetRequestValidator": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "RequestValidator", "fill": {"RestApiId": "restApiId", "RequestValidatorId": "requestValidatorId"}}], "located": {"requestValidatorId": "{requestvalidator_id}", "restApiId": "{restapi_id}"}},
"apigateway:GetRequestValidators": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "RequestValidators", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:GetResource": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Resource", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId"}}], "located": {"resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:GetResources": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Resources", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:GetRestApi": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "RestApi", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:GetRestApis": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "RestApis", "fill": {}}]},
"apigateway:GetRoute": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Route", "fill": {"ApiId": "ApiId", "RouteId": "RouteId"}}], "located": {"ApiId": "{apiId}", "RouteId": "{routeId}"}},
"apigateway:GetRouteResponse": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "RouteResponse", "fill": {"ApiId": "ApiId", "RouteId": "RouteId", "RouteResponseId": "RouteResponseId"}}], "located": {"ApiId": "{apiId}", "RouteId": "{routeId}", "RouteResponseId": "{routeResponseId}"}},
"apigateway:GetRouteResponses": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "RouteResponses", "fill": {"ApiId": "ApiId", "RouteId": "RouteId"}}], "located": {"ApiId": "{apiId}", "RouteId": "{routeId}"}},
"apigateway:GetRoutes": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Routes", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}"}},
"apigateway:GetRoutingRule": {"action": "apigateway:GetRoutingRule", "types": ["RoutingRule"], "resources": [{"type": "RoutingRule", "fill": {"DomainName": "DomainName", "RoutingRuleId": "RoutingRuleId"}}], "located": {"DomainName": "{domainName}", "RoutingRuleId": "{routingRuleId}"}},
"apigateway:GetSdk": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Sdk", "fill": {"RestApiId": "restApiId", "StageName": "stageName", "SdkType": "sdkType"}}], "located": {"restApiId": "{restapi_id}", "sdkType": "{sdk_type}", "stageName": "{stage_name}"}},
"apigateway:GetSdkType": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "/sdktypes/{sdktype_id} (resource-path-specifier)", "fill": {"SdktypeId": "id"}}], "located": {"id": "{sdktype_id}"}},
"apigateway:GetSdkTypes": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "/sdktypes (resource-path-specifier)", "fill": {}}]},
"apigateway:GetStage": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Stage (REST API resources)", "fill": {"ApiId": "restApiId", "StageName": "stageName"}}, {"type": "Stage", "fill": {"ApiId": "ApiId", "StageName": "StageName"}}], "located": {"ApiId": "{apiId}", "StageName": "{stageName}", "restApiId": "{restapi_id}", "stageName": "{stage_name}"}},
"apigateway:GetStages": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Stages (REST API resources)", "fill": {"ApiId": "restApiId"}}, {"type": "Stages", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}", "restApiId": "{restapi_id}"}},
"apigateway:GetTags": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "Tags", "fill": {"UrlEncodedResourceARN": "resourceArn"}}, {"type": "Tags", "fill": {"UrlEncodedResourceARN": "ResourceArn"}}], "located": {"ResourceArn": "{resource-arn}", "resourceArn": "{resource_arn}"}},
"apigateway:GetUsage": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "/usageplans/{usageplanId}/usage (resource-path-specifier)", "fill": {"UsageplanId": "usagePlanId"}}], "located": {"usagePlanId": "{usageplanId}"}},
"apigateway:GetUsagePlan": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "UsagePlan", "fill": {"UsagePlanId": "usagePlanId"}}], "located": {"usagePlanId": "{usageplanId}"}},
"apigateway:GetUsagePlanKey": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "UsagePlanKey", "fill": {"UsagePlanId": "usagePlanId", "Id": "keyId"}}], "located": {"keyId": "{keyId}", "usagePlanId": "{usageplanId}"}},
"apigateway:GetUsagePlanKeys": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "UsagePlanKeys", "fill": {"UsagePlanId": "usagePlanId"}}], "located": {"usagePlanId": "{usageplanId}"}},
"apigateway:GetUsagePlans": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "UsagePlans", "fill": {}}]},
"apigateway:GetVpcLink": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "VpcLink", "fill": {"VpcLinkId": "vpcLinkId"}}, {"type": "VpcLink", "fill": {"VpcLinkId": "VpcLinkId"}}], "located": {"VpcLinkId": "{vpcLinkId}", "vpcLinkId": "{vpclink_id}"}},
"apigateway:GetVpcLinks": {"action": "apigateway:GET", "types": ["AccessLogSettings", "Account", "Api", "ApiKey", "ApiKeys", "ApiMapping", "ApiMappings", "Apis", "Authorizer", "Authorizers", "AuthorizersCache", "BasePathMapping", "BasePathMappings", "ClientCertificate", "ClientCertificates", "Cors", "Deployment", "Deployments", "DocumentationPart", "DocumentationParts", "DocumentationVersion", "DocumentationVersions", "DomainName", "DomainNameAccessAssociations", "DomainNames", "ExportedAPI", "GatewayResponse", "GatewayResponses", "Integration", "IntegrationResponse", "IntegrationResponses", "Integrations", "Method", "MethodResponse", "Model", "ModelTemplate", "Models", "PrivateBasePathMapping", "PrivateBasePathMappings", "PrivateDomainName", "RequestValidator", "RequestValidators", "Resource", "Resources", "RestApi", "RestApis", "Route", "RouteRequestParameter", "RouteResponse", "RouteResponses", "RouteSettings", "Routes", "Sdk", "Stage", "Stages", "Tags", "UsagePlan", "UsagePlanKey", "UsagePlanKeys", "UsagePlans", "VpcLink", "VpcLinks"], "resources": [{"type": "VpcLinks", "fill": {}}]},
"apigateway:ImportApi": {"action": "apigateway:ImportApi", "types": [], "resources": [{"type": "Apis", "fill": {}}]},
"apigateway:ImportApiKeys": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "ApiKeys", "fill": {}}]},
"apigateway:ImportDocumentationParts": {"action": "apigateway:PUT", "types": ["Api", "Apis", "DocumentationPart", "GatewayResponse", "IntegrationResponse", "MethodResponse", "RestApi", "Tags"], "resources": [{"type": "DocumentationParts", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:ImportRestApi": {"action": "apigateway:ImportRestApi", "types": [], "resources": [{"type": "RestApis", "fill": {}}]},
"apigateway:ListPortalProducts": {"action": "apigateway:ListPortalProducts", "types": ["PortalProduct"], "resources": []},
"apigateway:ListPortals": {"action": "apigateway:ListPortals", "types": ["Portal"], "resources": []},
"apigateway:ListProductPages": {"action": "apigateway:ListProductPages", "types": ["PortalProduct", "ProductPage"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:ListProductRestEndpointPages": {"action": "apigateway:ListProductRestEndpointPages", "types": ["PortalProduct", "ProductRestEndpointPage"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:ListRoutingRules": {"action": "apigateway:ListRoutingRules", "types": ["RoutingRule"], "resources": [{"type": "RoutingRule", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{domainName}"}},
"apigateway:PreviewPortal": {"action": "apigateway:PreviewPortal", "types": ["Portal"], "resources": [{"type": "Portal", "fill": {"PortalId": "PortalId"}}], "located": {"PortalId": "{portalId}"}},
"apigateway:PublishPortal": {"action": "apigateway:PublishPortal", "types": ["Portal"], "resources": [{"type": "Portal", "fill": {"PortalId": "PortalId"}}], "located": {"PortalId": "{portalId}"}},
"apigateway:PutGatewayResponse": {"action": "apigateway:PUT", "types": ["Api", "Apis", "DocumentationPart", "GatewayResponse", "IntegrationResponse", "MethodResponse", "RestApi", "Tags"], "resources": [{"type": "GatewayResponse", "fill": {"RestApiId": "restApiId", "ResponseType": "responseType"}}], "located": {"responseType": "{response_type}", "restApiId": "{restapi_id}"}},
"apigateway:PutIntegration": {"action": "apigateway:PutIntegration", "types": [], "resources": [{"type": "Integration (REST API resources)", "fill": {"ApiId": "restApiId", "ResourceId": "resourceId", "HttpMethod": "httpMethod"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:PutIntegrationResponse": {"action": "apigateway:PUT", "types": ["Api", "Apis", "DocumentationPart", "GatewayResponse", "IntegrationResponse", "MethodResponse", "RestApi", "Tags"], "resources": [{"type": "IntegrationResponse (REST API resources)", "fill": {"ApiId": "restApiId", "ResourceId": "resourceId", "HttpMethod": "httpMethod", "StatusCode": "statusCode"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}", "statusCode": "{status_code}"}},
"apigateway:PutMethod": {"action": "apigateway:PUT", "types": ["Api", "Apis", "DocumentationPart", "GatewayResponse", "IntegrationResponse", "MethodResponse", "RestApi", "Tags"], "resources": [{"type": "Method", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId", "HttpMethodType": "httpMethod"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:PutMethodResponse": {"action": "apigateway:PUT", "types": ["Api", "Apis", "DocumentationPart", "GatewayResponse", "IntegrationResponse", "MethodResponse", "RestApi", "Tags"], "resources": [{"type": "MethodResponse", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId", "HttpMethodType": "httpMethod", "StatusCode": "statusCode"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}", "statusCode": "{status_code}"}},
"apigateway:PutPortalProductSharingPolicy": {"action": "apigateway:PutPortalProductSharingPolicy", "types": ["PortalProduct"], "resources": [{"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:PutRestApi": {"action": "apigateway:PutRestApi", "types": [], "resources": [{"type": "RestApi", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:PutRoutingRule": {"action": "apigateway:UpdateRoutingRule", "types": ["RoutingRule"], "resources": [{"type": "RoutingRule", "fill": {"DomainName": "DomainName", "RoutingRuleId": "RoutingRuleId"}}], "located": {"DomainName": "{domainName}", "RoutingRuleId": "{routingRuleId}"}},
"apigateway:ReimportApi": {"action": "apigateway:ReimportApi", "types": [], "resources": [{"type": "Api", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}"}},
"apigateway:RejectDomainNameAccessAssociation": {"action": "apigateway:RejectAccessAssociation", "types": ["PrivateDomainName"], "resources": [{"types": ["PrivateDomainName"], "arn": "domainNameAccessAssociationArn"}, {"types": ["PrivateDomainName"], "arn": "domainNameArn"}], "located": {"domainNameAccessAssociationArn": "?domainNameAccessAssociationArn", "domainNameArn": "?domainNameArn"}},
"apigateway:ResetAuthorizersCache": {"action": "apigateway:DELETE", "types": ["AccessLogSettings", "Api", "ApiKey", "ApiMapping", "Authorizer", "AuthorizersCache", "BasePathMapping", "ClientCertificate", "Cors", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "DomainNameAccessAssociation", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "RouteSettings", "Stage", "Tags", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "AuthorizersCache", "fill": {"ApiId": "ApiId", "StageName": "StageName"}}], "located": {"ApiId": "{apiId}", "StageName": "{stageName}"}},
"apigateway:TagResource": {"action": "apigateway:TagResource", "types": [], "resources": [{"type": "Tags", "fill": {"UrlEncodedResourceARN": "resourceArn"}}, {"type": "Tags", "fill": {"UrlEncodedResourceARN": "ResourceArn"}}], "located": {"ResourceArn": "{resource-arn}", "resourceArn": "{resource_arn}"}},
"apigateway:TestInvokeAuthorizer": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "Authorizer (REST API resources)", "fill": {"ApiId": "restApiId", "Id": "authorizerId"}}], "located": {"authorizerId": "{authorizer_id}", "restApiId": "{restapi_id}"}},
"apigateway:TestInvokeMethod": {"action": "apigateway:POST", "types": ["ApiKeys", "ApiMappings", "Apis", "Authorizers", "BasePathMappings", "ClientCertificates", "Deployments", "DocumentationParts", "DocumentationVersions", "DomainNameAccessAssociations", "DomainNames", "GatewayResponses", "IntegrationResponse", "IntegrationResponses", "Integrations", "MethodResponse", "Models", "PrivateBasePathMappings", "RequestValidators", "Resources", "RestApis", "RouteResponses", "Routes", "Stages", "UsagePlanKeys", "UsagePlans", "VpcLinks"], "resources": [{"type": "Method", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId", "HttpMethodType": "httpMethod"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:UntagResource": {"action": "apigateway:UntagResource", "types": [], "resources": [{"type": "Tags", "fill": {"UrlEncodedResourceARN": "resourceArn"}}, {"type": "Tags", "fill": {"UrlEncodedResourceARN": "ResourceArn"}}], "located": {"ResourceArn": "{resource-arn}", "resourceArn": "{resource_arn}"}},
"apigateway:UpdateAccount": {"action": "apigateway:UpdateAccount", "types": [], "resources": [{"type": "Account", "fill": {}}]},
"apigateway:UpdateApi": {"action": "apigateway:UpdateApi", "types": [], "resources": [{"type": "Api", "fill": {"ApiId": "ApiId"}}], "located": {"ApiId": "{apiId}"}},
"apigateway:UpdateApiKey": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "ApiKey", "fill": {"ApiKeyId": "apiKey"}}], "located": {"apiKey": "{api_Key}"}},
"apigateway:UpdateApiMapping": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "ApiMapping", "fill": {"DomainName": "DomainName", "ApiMappingId": "ApiMappingId"}}], "located": {"ApiMappingId": "{apiMappingId}", "DomainName": "{domainName}"}},
"apigateway:UpdateAuthorizer": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Authorizer (REST API resources)", "fill": {"ApiId": "restApiId", "Id": "authorizerId"}}, {"type": "Authorizer", "fill": {"ApiId": "ApiId", "AuthorizerId": "AuthorizerId"}}], "located": {"ApiId": "{apiId}", "AuthorizerId": "{authorizerId}", "authorizerId": "{authorizer_id}", "restApiId": "{restapi_id}"}},
"apigateway:UpdateBasePathMapping": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "BasePathMapping", "fill": {"DomainName": "domainName", "BasePath": "basePath"}}], "located": {"basePath": "{base_path}", "domainName": "{domain_name}"}},
"apigateway:UpdateClientCertificate": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "ClientCertificate", "fill": {"ClientCertificateId": "clientCertificateId"}}], "located": {"clientCertificateId": "{clientcertificate_id}"}},
"apigateway:UpdateDeployment": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Deployment (REST API resources)", "fill": {"ApiId": "restApiId", "Id": "deploymentId"}}, {"type": "Deployment", "fill": {"ApiId": "ApiId", "DeploymentId": "DeploymentId"}}], "located": {"ApiId": "{apiId}", "DeploymentId": "{deploymentId}", "deploymentId": "{deployment_id}", "restApiId": "{restapi_id}"}},
"apigateway:UpdateDocumentationPart": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "DocumentationPart", "fill": {"RestApiId": "restApiId", "DocumentationPartId": "documentationPartId"}}], "located": {"documentationPartId": "{part_id}", "restApiId": "{restapi_id}"}},
"apigateway:UpdateDocumentationVersion": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "DocumentationVersion", "fill": {"RestApiId": "restApiId", "DocumentationVersionId": "documentationVersion"}}], "located": {"documentationVersion": "{doc_version}", "restApiId": "{restapi_id}"}},
"apigateway:UpdateDomainName": {"action": "apigateway:UpdateDomainName", "types": [], "resources": [{"type": "DomainName", "fill": {"DomainName": "domainName"}}, {"type": "DomainName", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{domainName}", "domainName": "{domain_name}"}},
"apigateway:UpdateGatewayResponse": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "GatewayResponse", "fill": {"RestApiId": "restApiId", "ResponseType": "responseType"}}], "located": {"responseType": "{response_type}", "restApiId": "{restapi_id}"}},
"apigateway:UpdateIntegration": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Integration (REST API resources)", "fill": {"ApiId": "restApiId", "ResourceId": "resourceId", "HttpMethod": "httpMethod"}}, {"type": "Integration", "fill": {"ApiId": "ApiId", "IntegrationId": "IntegrationId"}}], "located": {"ApiId": "{apiId}", "IntegrationId": "{integrationId}", "httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:UpdateIntegrationResponse": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "IntegrationResponse (REST API resources)", "fill": {"ApiId": "restApiId", "ResourceId": "resourceId", "HttpMethod": "httpMethod", "StatusCode": "statusCode"}}, {"type": "IntegrationResponse", "fill": {"ApiId": "ApiId", "IntegrationId": "IntegrationId", "IntegrationResponseId": "IntegrationResponseId"}}], "located": {"ApiId": "{apiId}", "IntegrationId": "{integrationId}", "IntegrationResponseId": "{integrationResponseId}", "httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}", "statusCode": "{status_code}"}},
"apigateway:UpdateMethod": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Method", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId", "HttpMethodType": "httpMethod"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:UpdateMethodResponse": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "MethodResponse", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId", "HttpMethodType": "httpMethod", "StatusCode": "statusCode"}}], "located": {"httpMethod": "{http_method}", "resourceId": "{resource_id}", "restApiId": "{restapi_id}", "statusCode": "{status_code}"}},
"apigateway:UpdateModel": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Model (REST API resources)", "fill": {"ApiId": "restApiId", "ModelName": "modelName"}}, {"type": "Model", "fill": {"ApiId": "ApiId", "ModelId": "ModelId"}}], "located": {"ApiId": "{apiId}", "ModelId": "{modelId}", "modelName": "{model_name}", "restApiId": "{restapi_id}"}},
"apigateway:UpdatePortal": {"action": "apigateway:UpdatePortal", "types": ["Portal"], "resources": [{"types": ["Portal"], "arn": "IncludedPortalProductArns[]"}, {"type": "Portal", "fill": {"PortalId": "PortalId"}}], "located": {"PortalId": "{portalId}"}},
"apigateway:UpdatePortalProduct": {"action": "apigateway:UpdatePortalProduct", "types": ["PortalProduct"], "resources": [{"types": ["PortalProduct"], "arn": "DisplayOrder.OverviewPageArn"}, {"types": ["PortalProduct"], "arn": "DisplayOrder.ProductPageArns[]"}, {"type": "PortalProduct", "fill": {"PortalProductId": "PortalProductId"}}], "located": {"PortalProductId": "{portalProductId}"}},
"apigateway:UpdateProductPage": {"action": "apigateway:UpdateProductPage", "types": ["ProductPage"], "resources": [{"type": "ProductPage", "fill": {"PortalProductId": "PortalProductId", "ProductPageId": "ProductPageId"}}], "located": {"PortalProductId": "{portalProductId}", "ProductPageId": "{productPageId}"}},
"apigateway:UpdateProductRestEndpointPage": {"action": "apigateway:UpdateProductRestEndpointPage", "types": ["ProductRestEndpointPage"], "resources": [{"type": "ProductRestEndpointPage", "fill": {"PortalProductId": "PortalProductId", "ProductRestEndpointPageId": "ProductRestEndpointPageId"}}], "located": {"PortalProductId": "{portalProductId}", "ProductRestEndpointPageId": "{productRestEndpointPageId}"}},
"apigateway:UpdateRequestValidator": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "RequestValidator", "fill": {"RestApiId": "restApiId", "RequestValidatorId": "requestValidatorId"}}], "located": {"requestValidatorId": "{requestvalidator_id}", "restApiId": "{restapi_id}"}},
"apigateway:UpdateResource": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Resource", "fill": {"RestApiId": "restApiId", "ResourceId": "resourceId"}}], "located": {"resourceId": "{resource_id}", "restApiId": "{restapi_id}"}},
"apigateway:UpdateRestApi": {"action": "apigateway:UpdateRestApi", "types": [], "resources": [{"type": "RestApi", "fill": {"RestApiId": "restApiId"}}], "located": {"restApiId": "{restapi_id}"}},
"apigateway:UpdateRoute": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Route", "fill": {"ApiId": "ApiId", "RouteId": "RouteId"}}], "located": {"ApiId": "{apiId}", "RouteId": "{routeId}"}},
"apigateway:UpdateRouteResponse": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "RouteResponse", "fill": {"ApiId": "ApiId", "RouteId": "RouteId", "RouteResponseId": "RouteResponseId"}}], "located": {"ApiId": "{apiId}", "RouteId": "{routeId}", "RouteResponseId": "{routeResponseId}"}},
"apigateway:UpdateStage": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "Stage (REST API resources)", "fill": {"ApiId": "restApiId", "StageName": "stageName"}}, {"type": "Stage", "fill": {"ApiId": "ApiId", "StageName": "StageName"}}], "located": {"ApiId": "{apiId}", "StageName": "{stageName}", "restApiId": "{restapi_id}", "stageName": "{stage_name}"}},
"apigateway:UpdateUsage": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "/usageplans/{usageplanId}/keys/{keyId}/usage (resource-path-specifier)", "fill": {"UsageplanId": "usagePlanId", "KeyId": "keyId"}}], "located": {"keyId": "{keyId}", "usagePlanId": "{usageplanId}"}},
"apigateway:UpdateUsagePlan": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "UsagePlan", "fill": {"UsagePlanId": "usagePlanId"}}], "located": {"usagePlanId": "{usageplanId}"}},
"apigateway:UpdateVpcLink": {"action": "apigateway:PATCH", "types": ["Account", "Api", "ApiKey", "ApiMapping", "Authorizer", "BasePathMapping", "ClientCertificate", "Deployment", "DocumentationPart", "DocumentationVersion", "DomainName", "GatewayResponse", "Integration", "IntegrationResponse", "Method", "MethodResponse", "Model", "PrivateBasePathMapping", "PrivateDomainName", "RequestValidator", "Resource", "RestApi", "Route", "RouteRequestParameter", "RouteResponse", "Stage", "Template", "UsagePlan", "UsagePlanKey", "VpcLink"], "resources": [{"type": "VpcLink", "fill": {"VpcLinkId": "vpcLinkId"}}, {"type": "VpcLink", "fill": {"VpcLinkId": "VpcLinkId"}}], "located": {"VpcLinkId": "{vpcLinkId}", "vpcLinkId": "{vpclink_id}"}},
"application-autoscaling:DeleteScalingPolicy": {"action": "application-autoscaling:DeleteScalingPolicy", "types": ["ScalableTarget"], "resources": [{"type": "ScalableTarget", "fill": {}, "find": ["ServiceNamespace", "ResourceId", "ScalableDimension"]}]},
"application-autoscaling:DeleteScheduledAction": {"action": "application-autoscaling:DeleteScheduledAction", "types": ["ScalableTarget"], "resources": [{"type": "ScalableTarget", "fill": {}, "find": ["ServiceNamespace", "ResourceId", "ScalableDimension"]}]},
"application-autoscaling:DeregisterScalableTarget": {"action": "application-autoscaling:DeregisterScalableTarget", "types": ["ScalableTarget"], "resources": [{"type": "ScalableTarget", "fill": {}, "find": ["ServiceNamespace", "ResourceId", "ScalableDimension"]}]},
@@ -446,7 +446,8 @@ class IamEnforcementFilterTest {
verify(actionRegistry).resolveRoute("apigateway", containerRequest);
verify(actionRegistry, never()).resolveRoute("iam", containerRequest);
verify(arnBuilder).buildResources("apigateway", containerRequest, "us-east-1", "000000000000", "aws");
verify(arnBuilder).buildResources("apigateway", "apigateway:POST", containerRequest, "us-east-1",
"000000000000", "aws");
verify(conditionContextResolver).resolve("apigateway", "apigateway:POST", containerRequest);
}
@@ -479,7 +480,8 @@ class IamEnforcementFilterTest {
@Test
void apiGatewayResourcesAreBuiltInTheRequestsPartition() {
// A Region no partition publishes takes the deployment's partition, the one its path ARNs are in.
// A Region no partition publishes takes the deployment's partition, the one its path ARNs are in, on the
// operation the request is dispatched as, which the table of request resources reads.
ContainerRequestContext containerRequest = mock(ContainerRequestContext.class);
String auth = "AWS4-HMAC-SHA256 Credential=AKIAUSER/20260924/xx-local-1/apigateway/aws4_request, "
+ "SignedHeaders=host, Signature=abc";
@@ -494,12 +496,13 @@ class IamEnforcementFilterTest {
.thenReturn(Optional.of(descriptor("apigateway", ServiceProtocol.REST_JSON,
Set.of("apigateway", "execute-api"), ApiGatewayController.class)));
when(actionRegistry.resolveRoute("apigateway", containerRequest)).thenReturn("apigateway:GET");
when(arnBuilder.buildResources(any(), any(), any(), any(), any())).thenReturn(List.of("*"));
when(arnBuilder.buildResources(any(), any(), any(), any(), any(), any())).thenReturn(List.of("*"));
when(iamService.resolveCallerContext(eq("AKIAUSER"), any())).thenReturn(CallerContext.of(List.of()));
newFilter(resourceInfo(ApiGatewayController.class)).filter(containerRequest);
verify(arnBuilder).buildResources("apigateway", containerRequest, "xx-local-1", "000000000000", "aws-cn");
verify(arnBuilder).buildResources("apigateway", "apigateway:GET", containerRequest, "xx-local-1",
"000000000000", "aws-cn");
}
@Test
@@ -157,6 +157,38 @@ class RequestResourceMembersTest {
assertThrows(IllegalStateException.class, () -> parse(otherKey.toString()));
}
@Test
void aRouteTypeIsReadAsAReferenceTypeAndNeverUnderOneOfItsNames() throws Exception {
// API Gateway's developer guide gives the paths of resources the Service Reference gives no type, and an API
// Gateway v2 path label holds a hyphen.
ObjectNode document = (ObjectNode) MAPPER.readTree("""
{
"namespaces": {"example": ["example"]},
"arnFormats": {"example": {
"Tags": "arn:${Partition}:example:${Region}::/tags/${UrlEncodedResourceARN}"
}},
"pathFormats": {"example": {
"/sdktypes (resource-path-specifier)": "arn:${Partition}:example:${Region}::/sdktypes"
}},
"operations": {
"example:GetSdkTypes": {"resources": [{"type": "/sdktypes (resource-path-specifier)", "fill": {}}]},
"example:GetTags": {
"resources": [{"type": "Tags", "fill": {"UrlEncodedResourceARN": "ResourceArn"}}],
"located": {"ResourceArn": "{resource-arn}"}
}
}
}
""");
RequestResourceMembers.Table table = parse(document.toString());
assertEquals(Set.of("Tags", "/sdktypes (resource-path-specifier)"), table.formats().get("example").keySet());
assertEquals(List.of("/sdktypes (resource-path-specifier)"),
table.operations().get("example:GetSdkTypes").getFirst().types());
ObjectNode clash = document.deepCopy();
((ObjectNode) clash.path("pathFormats").path("example"))
.put("Tags", "arn:${Partition}:example:${Region}::/tags");
assertThrows(IllegalStateException.class, () -> parse(clash.toString()));
}
@Test
void theTableReadsItsNamespacesAndGivesEachTypeItNamesAnArnFormat() {
RequestResourceMembers.Table table = RequestResourceMembers.table();
@@ -26,7 +26,9 @@ import static org.junit.jupiter.api.Assertions.assertEquals;
/**
* API Gateway authorizes a management call as its HTTP method on the path it names,
* {@code arn:<partition>:apigateway:<region>::<path>}, with no account and without the {@code /v2} of an HTTP
* API path, so a grant or a deny of {@code apigateway:GET} on a path covers that path's reads and no others.
* API path, so a grant or a deny of {@code apigateway:GET} on a path covers that path's reads and no others. The
* generated table of request resources reads it from the developer guide's ARN reference, and for a path the guide
* gives no row, from its ARN format with the path as the resource path.
*/
@QuarkusTest
@TestProfile(IamEnforcementProfile.class)
@@ -162,6 +164,58 @@ class ApiGatewayPathArnEnforcementIntegrationTest {
refused("apigateway:POST", send(user, "POST", "/v2/tags/" + httpArn, tags));
}
/**
* A path the developer guide gives no row is checked on its ARN format with that path as the resource path: a
* usage plan's usage is {@code /usageplans/<id>/usage}, which a grant on the plan does not cover.
*/
@Test
void getUsageIsCheckedOnItsOwnPath() {
String planId = createUsagePlan();
String usage = "/usageplans/" + planId + "/usage?startDate=2026-01-01&endDate=2026-01-02";
String user = user("apigw-usage");
policy(user, allow("apigateway:GET", "arn:aws:apigateway:*::/usageplans/" + planId + "/usage"));
get(user, usage).statusCode(200);
policy(user, allow("apigateway:GET", "arn:aws:apigateway:*::/usageplans/" + planId));
refused(get(user, usage));
policy(user, allow("apigateway:*", "*") + ","
+ deny("apigateway:GET", "arn:aws:apigateway:*::/usageplans/" + planId + "/usage"));
refused(get(user, usage));
}
/**
* An operation several actions authorize, CreateRestApi by POST and PUT and by UpdateRestApiPolicy for a policy,
* is checked as its route's method on that route's path.
*/
@Test
void createRestApiIsCheckedAsItsMethodOnTheRestApisPath() {
String user = user("apigw-create");
String body = "{\"name\":\"apigw-path-" + suffix() + "\"}";
policy(user, allow("apigateway:POST", "arn:aws:apigateway:*::/restapis/*"));
refused("apigateway:POST", send(user, "POST", "/restapis", body));
policy(user, allow("apigateway:POST", "arn:aws:apigateway:*::/restapis"));
String apiId = send(user, "POST", "/restapis", body).statusCode(201).extract().path("id");
cleanup.register(() -> given().header("Authorization", auth(ADMIN, "apigateway"))
.delete("/restapis/" + apiId));
}
private String createUsagePlan() {
String planId = given()
.header("Authorization", auth(ADMIN, "apigateway"))
.contentType("application/json")
.body("{\"name\":\"apigw-path-" + suffix() + "\"}")
.when().post("/usageplans")
.then().statusCode(201)
.extract().path("id");
cleanup.register(() -> given().header("Authorization", auth(ADMIN, "apigateway"))
.delete("/usageplans/" + planId));
return planId;
}
private String createHttpApiWithDefaultStage() {
String apiId = given()
.header("Authorization", auth(ADMIN, "apigateway"))
@@ -49,6 +49,7 @@ import java.io.ByteArrayInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.net.URI;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.ArrayList;
import java.util.Base64;
@@ -2366,68 +2367,82 @@ class ResourceArnBuilderTest {
return builder.buildResources("bedrock", "bedrock:" + operation, ctx, "us-east-1", ACCOUNT, "aws");
}
/**
* API Gateway's requests are read from the generated table on the route they match: a route authorized as its HTTP
* method acts on the resource its own path names, with no account, the {@code /v2} of an HTTP or WebSocket API's
* left out. The router resolves dot segments and empty segments before the route is matched, which
* {@code ApiGatewayPathArnEnforcementIntegrationTest} covers through the server.
*/
@Test
void apiGatewayRoutesResolveThePathTheyNameWithNoAccount() {
void anApiGatewayRouteIsCheckedOnThePathItNames() {
when(ctx.getMethod()).thenReturn("GET");
request("/restapis/abc123/stages");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123/stages"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
// Each segment is decoded as the router decodes it, so an encoded id names the API it routes to.
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123/stages"), apiGateway("GetStages"));
// A label is decoded as the router decodes it, so an encoded id names the API it routes to.
request("/restapis/%61bc123/stages");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123/stages"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
// Dot segments are resolved after decoding, as the router resolves them.
request("/restapis/x/%2E%2E/abc123/stages");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123/stages"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
request("/restapis/%2e/abc123");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
// Empty segments are dropped once the dots are resolved, as the router collapses them.
request("/restapis//abc123");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
request("/restapis/x/..//abc123");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
request("/restapis/x//../abc123");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/x/abc123"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
request("/v2/tags/arn:aws:apigateway:us-east-1::/apis/x/%2E%2E/a1b2c3");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/tags/arn%3Aaws%3Aapigateway%3Aus-east-1%3A%3A%2Fapis%2Fa1b2c3"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123/stages"), apiGateway("GetStages"));
// The guide's REST API row, where the Service Reference gives the HTTP API's stage.
request("/restapis/abc123/stages/prod");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123/stages/prod"), apiGateway("GetStage"));
request("/restapis/");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis"), apiGateway("GetRestApis"));
// A label's own slash or escape stays in its segment, so it cannot pass for a path of more segments.
request("/restapis/abc%2Fstages%2Fprod");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc%2Fstages%2Fprod"), apiGateway("GetRestApi"));
request("/restapis/abc%2525");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc%2525"), apiGateway("GetRestApi"));
// A path the guide publishes no row for is its own resource path.
request("/sdktypes");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/sdktypes"), apiGateway("GetSdkTypes"));
// An HTTP or WebSocket API path's /v2 is not part of the resource it names.
request("/v2/apis");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/apis"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
assertEquals(List.of("arn:aws:apigateway:us-east-1::/apis"), apiGateway("GetApis"));
request("/v2/apis/a1b2c3/stages/prod");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/apis/a1b2c3/stages/prod"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
assertEquals(List.of("arn:aws:apigateway:us-east-1::/apis/a1b2c3/stages/prod"), apiGateway("GetStage"));
// A stage name keeps the characters it is written with, sent literally or encoded.
request("/v2/apis/a1b2c3/stages/$default");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/apis/a1b2c3/stages/$default"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
assertEquals(List.of("arn:aws:apigateway:us-east-1::/apis/a1b2c3/stages/$default"), apiGateway("GetStage"));
request("/v2/apis/a1b2c3/stages/%24default");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/apis/a1b2c3/stages/$default"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
request("/v2domains");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/v2domains"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
// A tagging route names the ARN it tags still encoded, as AWS names its Tags resource.
assertEquals(List.of("arn:aws:apigateway:us-east-1::/apis/a1b2c3/stages/$default"), apiGateway("GetStage"));
// A tagging route names the ARN it tags URL-encoded, as AWS names its Tags resource, however it is sent.
String tags = "arn:aws:apigateway:us-east-1::/tags/arn%3Aaws%3Aapigateway%3Aus-east-1%3A%3A%2Fapis%2Fa1b2c3";
request("/v2/tags/arn%3Aaws%3Aapigateway%3Aus-east-1%3A%3A%2Fapis%2Fa1b2c3");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/tags/arn%3Aaws%3Aapigateway%3Aus-east-1%3A%3A%2Fapis%2Fa1b2c3"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
assertEquals(List.of(tags), apiGateway("GetTags"));
request("/v2/tags/arn:aws:apigateway:us-east-1::/apis/a1b2c3");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/tags/arn%3Aaws%3Aapigateway%3Aus-east-1%3A%3A%2Fapis%2Fa1b2c3"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
assertEquals(List.of(tags), apiGateway("GetTags"));
request("/tags/arn%3aaws%3aapigateway%3aus-east-1%3a%3a%2frestapis%2fabc123");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/tags/arn%3Aaws%3Aapigateway%3Aus-east-1%3A%3A%2Frestapis%2Fabc123"),
builder.buildResources("apigateway", ctx, "us-east-1", ACCOUNT));
assertEquals(List.of("arn:aws:apigateway:us-east-1::/tags/"
+ "arn%3Aaws%3Aapigateway%3Aus-east-1%3A%3A%2Frestapis%2Fabc123"), apiGateway("GetTags"));
// The guide's domain name access associations carry the account.
request("/domainnameaccessassociations");
assertEquals(List.of("arn:aws:apigateway:us-east-1:" + ACCOUNT + ":/domainnameaccessassociations"),
apiGateway("GetDomainNameAccessAssociations"));
request("/restapis");
assertEquals(List.of("arn:aws-us-gov:apigateway:us-gov-west-1::/restapis"),
builder.buildResources("apigateway", ctx, "us-gov-west-1", ACCOUNT, "aws-us-gov"));
builder.buildResources("apigateway", "apigateway:GetRestApis", ctx, "us-gov-west-1", ACCOUNT,
"aws-us-gov"));
}
/** API Gateway's operations AWS authorizes as their method by several of its actions, and their own named ones. */
@Test
void anApiGatewayRouteOfSeveralActionsOrAnArnItCarriesIsCheckedAsTheTableReadsIt() {
// CreateRestApi is authorized by POST and PUT, and by UpdateRestApiPolicy for a policy: its route's own path.
when(ctx.getMethod()).thenReturn("POST");
request("/restapis");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis"), apiGateway("CreateRestApi"));
when(ctx.getMethod()).thenReturn("DELETE");
request("/restapis/abc123/stages/prod/cache/data");
assertEquals(List.of("arn:aws:apigateway:us-east-1::/restapis/abc123/stages/prod/cache/data"),
apiGateway("FlushStageCache"));
// A label holding the ARN of what the route acts on names that resource.
String association = "arn:aws:apigateway:us-east-1:" + ACCOUNT + ":/domainnameaccessassociations/domainname/"
+ "private.example.com+abc123/vpcesource/vpce-0123456789abcdef0";
request("/domainnameaccessassociations/" + URLEncoder.encode(association, StandardCharsets.UTF_8));
assertEquals(List.of(association), apiGateway("DeleteDomainNameAccessAssociation"));
}
private List<String> apiGateway(String operation) {
return builder.buildResources("apigateway", "apigateway:" + operation, ctx, "us-east-1", ACCOUNT, "aws");
}
/**
+157
View File
@@ -0,0 +1,157 @@
#!/usr/bin/env python3
"""Vendor what the API Gateway developer guide says API Gateway's management actions act on into
tools/aws/sources/apigateway-arn-formats.json, a source of the IAM tables.
API Gateway authorizes a management call as the HTTP method of its request, on the resource its path names. Its
developer guide says both, in "How Amazon API Gateway works with IAM":
The API-managing Action expression has the format apigateway:action, where action is one of the following API
Gateway actions: GET, POST, PUT, DELETE, PATCH (to update resources), or *, which is all of the previous actions.
API Gateway resources have the following ARN format:
arn:aws:apigateway:region::resource-path-specifier
https://docs.aws.amazon.com/apigateway/latest/developerguide/security_iam_service-with-iam.html
and lists each resource's ARN in "API Gateway Amazon Resource Name (ARN) reference", a table for each kind of API,
its variables marked as the page marks them:
https://docs.aws.amazon.com/apigateway/latest/developerguide/arn-format-reference.html
The Service Reference gives the resource types of HTTP and WebSocket APIs where a REST API's differ (its `Stage` is
`/apis/${ApiId}/stages/${StageName}`, a REST API's `/restapis/{api-id}/stages/{stage-name}`), and botocore does not
say which resource a route acts on. This script copies the two sentences and every row of the reference's tables as
they stand, each variable written `{name}`: nothing in the output is written by hand, and the generator reads it
against botocore's routes.
Run from anywhere in the repo:
python3 tools/aws/fetch_apigateway_arn_formats.py # rewrite the vendored file from the pages
python3 tools/aws/fetch_apigateway_arn_formats.py --verify # online: the file still says what the pages do
"""
from __future__ import annotations
import argparse
import html
import json
import re
import sys
import urllib.request
from datetime import datetime, timezone
from pathlib import Path
IAM_PAGE = "https://docs.aws.amazon.com/apigateway/latest/developerguide/security_iam_service-with-iam.html"
ARN_PAGE = "https://docs.aws.amazon.com/apigateway/latest/developerguide/arn-format-reference.html"
REPO_ROOT = Path(__file__).resolve().parents[2]
OUTPUT = REPO_ROOT / "tools/aws/sources/apigateway-arn-formats.json"
ACTION_LEAD = "The API-managing Action expression has the format"
RESOURCE_LEAD = "API Gateway resources have the following ARN format:"
# The actions the action sentence names, each in bold.
BOLD_RE = re.compile(r"<b>(.*?)</b>", re.S)
VERBS = ("GET", "POST", "PUT", "DELETE", "PATCH")
# The reference's tables, one for each kind of resource: HTTP and WebSocket APIs, REST APIs, domain names and
# execute-api's. Far fewer rows means its layout changed under the parser.
MINIMUM_TABLES = 4
MINIMUM_ROWS = 60
def text(fragment: str) -> str:
"""A fragment of the page as text, each variable the page marks (`<code class="replaceable">`) written `{name}`,
spaces collapsed."""
marked = re.sub(r'<code class="replaceable">(?:<code[^>]*>)?(.*?)(?:</code>)?</code>',
lambda match: "{" + re.sub(r"<[^>]+>", "", match.group(1)).strip() + "}", fragment, flags=re.S)
return re.sub(r"\s+", " ", html.unescape(re.sub(r"<[^>]+>", "", marked))).strip()
def read_iam_page(page: str) -> dict:
"""The action sentence, with the actions it names, and the resource sentence, with the ARN format after it."""
action = None
for paragraph in re.findall(r"<p>(.*?)</p>", page, re.S):
if text(paragraph).startswith(ACTION_LEAD):
action = {"sentence": text(paragraph), "actions": [text(bold) for bold in BOLD_RE.findall(paragraph)]}
break
if action is None or not set(VERBS) <= set(action["actions"]):
raise ValueError(f"{IAM_PAGE} gives no action sentence naming {', '.join(VERBS)}: its layout changed")
resource = re.search(r"<p>\s*" + re.escape(RESOURCE_LEAD) + r"\s*</p>\s*<pre[^>]*>(.*?)</pre>", page, re.S)
if resource is None:
raise ValueError(f"{IAM_PAGE} gives no ARN format after '{RESOURCE_LEAD}': its layout changed")
code = re.search(r'<code class="[^"]*">(.*)</code>', resource.group(1), re.S)
return {"action": action,
"resource": {"sentence": RESOURCE_LEAD, "format": text(code.group(1) if code else resource.group(1))}}
def read_arn_page(page: str) -> list[dict]:
"""Each table of the reference under the heading it stands under, each row's resource and ARN as given."""
headings = [(match.start(), text(match.group(1))) for match in re.finditer(r"<h2[^>]*>(.*?)</h2>", page, re.S)]
tables = []
for table in re.finditer(r"<table.*?</table>", page, re.S):
above = [heading for start, heading in headings if start < table.start()]
if not above:
raise ValueError(f"{ARN_PAGE} has a table under no heading: its layout changed")
rows = []
for row in re.findall(r"<tr>(.*?)</tr>", table.group(0), re.S):
cells = re.findall(r"<td[^>]*>(.*?)</td>", row, re.S)
if len(cells) == 2:
rows.append({"resource": text(cells[0]), "arn": text(cells[1])})
tables.append({"heading": above[-1], "rows": rows})
return tables
def build(iam_page: str, arn_page: str) -> dict:
tables = read_arn_page(arn_page)
if len(tables) < MINIMUM_TABLES or sum(len(table["rows"]) for table in tables) < MINIMUM_ROWS:
raise ValueError(f"{ARN_PAGE} gives {len(tables)} tables of "
f"{sum(len(table['rows']) for table in tables)} rows: its layout changed")
return {
"_source": {
"pages": [IAM_PAGE, ARN_PAGE],
"fetcher": str(Path(__file__).resolve().relative_to(REPO_ROOT)),
"retrieved": datetime.now(timezone.utc).strftime("%Y-%m-%d"),
"note": "The IAM page's action sentence with the actions it names, its resource sentence with the ARN "
"format after it, and each table of the ARN reference under its heading, each row's resource "
"and ARN, copied as they stand, each variable the pages mark written {name}.",
},
**read_iam_page(iam_page),
"tables": tables,
}
def fetch_url(url: str) -> str:
request = urllib.request.Request(url, headers={"User-Agent": "floci-tools"})
with urllib.request.urlopen(request, timeout=60) as response:
return response.read().decode("utf-8")
def stale(vendored: dict, iam_page: str, arn_page: str) -> bool:
"""Whether the pages now give something other than the vendored file, its date aside."""
built = build(iam_page, arn_page)
return any(vendored.get(key) != built[key] for key in built if key != "_source")
def main(argv: list[str] | None = None, fetch=fetch_url) -> int:
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
parser.add_argument("--verify", action="store_true", help="online: the vendored file matches the pages")
args = parser.parse_args(argv)
try:
iam_page, arn_page = fetch(IAM_PAGE), fetch(ARN_PAGE)
except OSError as e:
print(f"error: could not read the API Gateway developer guide ({e})", file=sys.stderr)
return 2
if args.verify:
vendored = json.loads(OUTPUT.read_text(encoding="utf-8"))
if stale(vendored, iam_page, arn_page):
print(f"error: {OUTPUT.relative_to(REPO_ROOT)} no longer says what {IAM_PAGE} and {ARN_PAGE} do: run "
f"tools/aws/fetch_apigateway_arn_formats.py and then make iam-request-resources-sync",
file=sys.stderr)
return 1
print(f"{OUTPUT.relative_to(REPO_ROOT)} matches {IAM_PAGE} and {ARN_PAGE}")
return 0
built = build(iam_page, arn_page)
OUTPUT.write_text(json.dumps(built, indent=2) + "\n", encoding="utf-8")
print(f"wrote {OUTPUT.relative_to(REPO_ROOT)} ({sum(len(table['rows']) for table in built['tables'])} rows in "
f"{len(built['tables'])} tables)")
return 0
if __name__ == "__main__":
sys.exit(main())
+297 -17
View File
@@ -207,6 +207,18 @@ same policy statement whose type the Service Reference gives the action, the typ
matches, its variables filled from what the page says the example's names stand for (`database`, `table`) and
open where the example has a wildcard. `statementActions` records the types the reference gives each such action,
which `--verify` checks against AWS, as it checks the vendored page against the live one.
An operation AWS authorizes as the HTTP method of its request, on the resource its path names, is checked so. API
Gateway's developer guide says it of its management API ("The API-managing Action expression has the format
apigateway:action, where action is one of the following API Gateway actions: GET, POST, PUT, DELETE, PATCH", and "API
Gateway resources have the following ARN format: arn:aws:apigateway:region::resource-path-specifier") and lists each
resource's ARN in its ARN reference. Neither botocore nor the Service Reference says which resource a route acts on,
and the reference gives an HTTP API's `Stage` where a REST API's differs, so they come from another source, granted for
that namespace alone: those pages, which their own script vendors as they stand (`PATH_SOURCES`). A route checked as
its method acts on the resource whose format, of the reference's types or the guide's rows, is its own path, its labels
filling its variables, and on the guide's ARN format with that path where no published path is (`routed_resources`):
every published path a route matches is that route's own, the `/v2` of an HTTP or WebSocket API's left out.
`pathFormats` records the formats of those the reference gives no type, which `--check` derives again from the vendored
pages and botocore, and `--verify` checks the vendored pages against the live ones.
A qualified type the reference gives an action, one whose format is another type's and one more `:${...}` (Lambda's
`function alias` and `function version`), which no member fills alone, is named by that type's member and the
request's one member documented as naming the qualified types ("The version number or alias name"): Lambda's
@@ -272,6 +284,7 @@ import sys
from datetime import datetime, timezone
from pathlib import Path
import fetch_apigateway_arn_formats
import fetch_athena_glue_ddl_permissions
from regen_iam_authorized_actions import (ROUTES as ROUTES_FILE, authorized_actions, fetch_references,
load_s3_required, s3_query_parameters, s3_version_choices,
@@ -304,10 +317,10 @@ NAMESPACES = ("access-analyzer", "account", "acm", "application-autoscaling", "a
"servicequotas", "ssm", "sso", "states", "textract", "timestream-influxdb", "translate", "signer", "xray",
"securityhub", "guardduty", "secretsmanager", "scheduler", "lambda", "cloudformation", "glue",
"sqs", "sns", "kinesis", "pipes", "dsql", "sts", "eks", "resource-groups", "logs",
"ec2-instance-connect", "s3", "bedrock")
"ec2-instance-connect", "s3", "bedrock", "apigateway")
# The namespaces whose resources ResourceArnBuilder builds itself.
HAND_BUILT = ("apigateway", "dynamodb", "iam", "kms")
HAND_BUILT = ("dynamodb", "iam", "kms")
# ---------------------------------------------------------------------------------------------------------------------
# MEASURED: what AWS was measured to check where neither botocore nor the Service Reference says it.
@@ -397,8 +410,9 @@ MEASURED: dict[str, tuple[list[dict], str]] = {
# STATEMENT_SOURCES: the statements an operation's request carries that its service runs against another service as
# the caller, and the vendored page each one's permissions come from.
#
# This is the file's one source besides botocore and the Service Reference, granted for Athena's DDL statements alone:
# it is not a place for any other table. Its file is written by its own script from AWS's documentation, unchanged
# This is one of the file's two sources besides botocore and the Service Reference (`PATH_SOURCES` is the other),
# granted for Athena's DDL statements alone: it is not a place for any other table. Its file is written by its own
# script from AWS's documentation, unchanged
# (tools/aws/fetch_athena_glue_ddl_permissions.py, with a prompt beside the file for rebuilding it when the page's
# layout changes), and the generator only reads it (`statement_requests`): nothing about a statement is stated here.
# ---------------------------------------------------------------------------------------------------------------------
@@ -408,6 +422,33 @@ STATEMENT_SOURCES: dict[str, Path] = {
# What a row's sentence says when its policy names partition actions a table without partitions does not need.
UNPARTITIONED_RE = re.compile(r"does not have partitions, do not include partition actions", re.I)
# ---------------------------------------------------------------------------------------------------------------------
# PATH_SOURCES: the namespaces whose management calls AWS authorizes as the HTTP method of the request, on the resource
# its path names, and the vendored pages that say so.
#
# Granted for API Gateway alone, whose developer guide says it ("The API-managing Action expression has the format
# apigateway:action, where action is one of the following API Gateway actions: GET, POST, PUT, DELETE, PATCH", and
# "API Gateway resources have the following ARN format: arn:aws:apigateway:region::resource-path-specifier") and lists
# each resource's ARN in its ARN reference. Its file is written by its own script from those pages, unchanged
# (tools/aws/fetch_apigateway_arn_formats.py), and the generator only reads it (`routed_resources`): nothing about a
# route is stated here.
# ---------------------------------------------------------------------------------------------------------------------
PATH_SOURCES: dict[str, Path] = {
"apigateway": REPO_ROOT / "tools/aws/sources/apigateway-arn-formats.json",
}
# What the route of an operation is checked as, where it is not the operation's own name: the authorized-actions file
# `regen_iam_authorized_actions.py` writes, whose `authorizedByMethod` and `authorizedByModel` IamAuthorizedActions
# reads.
AUTHORIZED_ACTIONS = REPO_ROOT / "src/main/resources/aws/iam-authorized-actions.json"
# The ARN format the guide gives a namespace's resources, the path naming one after its empty account.
RESOURCE_PATH_FORMAT_RE = re.compile(r"arn:aws:(?P<namespace>[a-z0-9-]+):\{region}::\{resource-path-specifier}")
# A label of a route's path, `{restapi_id}`, or one taking the rest of it, `{resource_arn+}`.
ROUTE_LABEL_RE = re.compile(r"\{(?P<label>[^{}+]+)\+?}")
# A segment of an ARN format's resource path that is one variable and nothing else.
ONE_VARIABLE_SEGMENT_RE = re.compile(r"\$\{(?P<variable>\w+)}")
# The guide's variables for the partition, Region and account, which the Service Reference writes as its own.
GUIDE_VARIABLES = {"partition": "Partition", "region": "Region", "account-id": "Account"}
_LATER ="not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint"
_REST = ("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")
@@ -546,8 +587,8 @@ READ_PROTOCOLS = {"json", "query", "ec2", "smithy-rpc-v2-cbor", "rest-json"}
LOCATED_ONLY_PROTOCOLS = {"rest-xml"}
BODY_LOCATIONS = (None, "")
# Where a REST request carries a member outside its body, as the file writes it: a label of its path, `{Name}`, or a
# parameter of its query, `?name`.
LOCATED_RE = re.compile(r"^(\{[A-Za-z0-9_]+\}|\?[A-Za-z0-9_.-]+)$")
# parameter of its query, `?name`. A label may hold a hyphen, as API Gateway v2's `/v2/tags/{resource-arn}` does.
LOCATED_RE = re.compile(r"^(\{[A-Za-z0-9_-]+\}|\?[A-Za-z0-9_.-]+)$")
def stem(name: str) -> str:
@@ -2325,9 +2366,11 @@ def ec2_query_members(operation: str, models: dict[str, dict], named: set[str])
def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: dict[str, dict],
known: dict[str, str] | None = None, forwarded: dict[str, dict] | None = None) -> dict:
known: dict[str, str] | None = None, forwarded: dict[str, dict] | None = None,
routed: list[dict] | None = None) -> dict:
"""What the file says for one operation, `forwarded` being what the file records of each action a `MEASURED` entry
names."""
names, and `routed` the resources its routes name where AWS authorizes them as their method (`routed_resources`),
which are then its resources."""
types = upstream["types"] or []
members = request_members(models, operation.split(":", 1)[1])
patterns = string_patterns(models, operation.split(":", 1)[1])
@@ -2339,9 +2382,12 @@ def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: d
targets = id_targets(operation, types, formats, models, known) if namespace_of(operation) in ID_TARGETS else None
if targets is not None:
return {"action": upstream["action"], "types": types, "resources": [], "targets": targets}
resources = by_client(operation, models, lambda read: read_resources(operation, types, formats, read), formats)
resources = with_documented_creation(resources, operation, types, formats, models)
resources = with_made(resources, operation, formats)
if routed is not None:
resources = routed
else:
resources = by_client(operation, models, lambda read: read_resources(operation, types, formats, read), formats)
resources = with_documented_creation(resources, operation, types, formats, models)
resources = with_made(resources, operation, formats)
uses = MEASURED.get(operation, (None, ""))[0]
# An entry naming only another action AWS checks gives the operation no resources of its own.
if uses is not None and not (uses and all("action" in use for use in uses)):
@@ -2618,6 +2664,194 @@ def statements_for(sources: dict[str, dict], actions: dict[str, list[str]],
return {operation: statement_requests(source, actions, formats) for operation, source in sorted(sources.items())}
def load_path_sources() -> dict[str, dict]:
"""Each namespace's vendored path source (`PATH_SOURCES`)."""
return {namespace: json.loads(path.read_text(encoding="utf-8")) for namespace, path in PATH_SOURCES.items()}
def load_route_actions(source: Path = AUTHORIZED_ACTIONS) -> dict[str, dict]:
"""What the authorized-actions file checks a route of an operation as, beside the operation's own action: each
namespace's operations authorized by method (`byMethod`), and its actions by namespace and client (`byModel`)."""
document = json.loads(source.read_text(encoding="utf-8"))
return {"byMethod": {namespace: set(names) for namespace, names in document.get("authorizedByMethod", {}).items()},
"byModel": document.get("authorizedByModel", {})}
def guide_formats(namespace: str, source: dict) -> dict[str, str]:
"""Each row of the vendored ARN reference naming a resource of the namespace, as `<resource> (<heading>)`, its ARN
spelled as the Service Reference spells a format: the reference gives a REST API's `Stage` and an HTTP API's under
two headings, and execute-api's ARNs beside API Gateway's."""
formats: dict[str, str] = {}
for table in source["tables"]:
for row in table["rows"]:
parts = row["arn"].split(":", 5)
if len(parts) == 6 and parts[2] == namespace:
formats[f"{row['resource']} ({table['heading']})"] = re.sub(
r"\{([^{}]+)}",
lambda match: "${" + GUIDE_VARIABLES.get(match.group(1), _words(match.group(1))) + "}", row["arn"])
return dict(sorted(formats.items()))
def _words(name: str) -> str:
"""A label's or a variable's words run together, each capitalized: `stage-name` and `stage_name` are `StageName`."""
return "".join(word[:1].upper() + word[1:] for word in re.split(r"[-_]", name) if word)
def _route_label(segment: str) -> str | None:
match = ROUTE_LABEL_RE.fullmatch(segment)
return match.group("label") if match else None
def _format_path(arn: str) -> list[str] | None:
"""The segments of an ARN format's resource when it is a path; None for another."""
parts = arn.split(":", 5)
return [segment for segment in parts[5].split("/") if segment] if len(parts) == 6 and parts[5].startswith("/") \
else None
def _dropped(segments: list[str], arn: str) -> int | None:
"""How many leading segments of a route's path a format's resource path leaves out, the rest being that path: a
literal for each literal and one variable for each label. None when it is not, or a segment it leaves out is a
label."""
template = _format_path(arn)
if not template:
return None
dropped = len(segments) - len(template)
if dropped < 0 or any(_route_label(segment) for segment in segments[:dropped]):
return None
for segment, part in zip(segments[dropped:], template):
if _route_label(segment) is not None:
if not ONE_VARIABLE_SEGMENT_RE.fullmatch(part):
return None
elif segment != part:
return None
return dropped
def routed_resources(namespace: str, operations: dict[str, dict], formats: dict[str, str], source: dict,
models: dict[str, dict], actions: dict[str, dict]) -> tuple[dict[str, list[dict]], dict[str, str]]:
"""The resource each route of the namespace's operations names where AWS authorizes it as its HTTP method
(`PATH_SOURCES`), by operation, and the ARN formats of those the Service Reference gives no type, by name.
A route is authorized as its method when it is checked as `<namespace>:<METHOD>`: as its client's action
(`authorizedByModel`), as an operation authorized by method (`authorizedByMethod`), or as the action the reference
gives the operation. It acts on the resource whose format, of the reference's types or the guide's rows, is its own
path: a literal for each literal, one variable for each label, each label's member filling its variable, the
leading segments every published path of its client leaves out (API Gateway v2's `/v2`) left out. A reference type
comes before a guide row of the same path, whose name is `<resource> (<heading>)`. A route no published path
matches acts on the guide's ARN format with its own path as the resource path (named `<path>
(resource-path-specifier)`), unless a label's member holds the ARN of what it acts on (`...Arn`), which the rules
read then, as for an operation whose routes are not authorized by method."""
verbs = set(source["action"]["actions"])
guide = guide_formats(namespace, source)
published = sorted(formats.items()) + sorted(guide.items())
routes = []
for operation, upstream in sorted(operations.items()):
name = operation.split(":", 1)[1]
by_method = set()
for client, model in sorted(models.items()):
spec = model["operations"].get(name)
if spec is None or "http" not in spec:
continue
method = spec["http"]["method"].upper()
action = actions["byModel"].get(namespace, {}).get(client, {}).get(name) or (
f"{namespace}:{method}" if name in actions["byMethod"].get(namespace, set()) else upstream["action"])
routed = method in verbs and action == f"{namespace}:{method}"
by_method.add(routed)
if not routed:
continue
members = {member.get("locationName", member_name): member_name for member_name, member in
(model["shapes"][spec["input"]["shape"]].get("members", {}) if "input" in spec else {}).items()
if member.get("location") == "uri"}
path = [segment for segment in spec["http"]["requestUri"].split("?", 1)[0].split("/") if segment]
routes.append((operation, client, path, members))
if len(by_method) > 1:
raise ValueError(f"{operation} is authorized as its method on one client's route and not another's")
matched: dict[int, tuple[int, str, str]] = {}
prefixes: dict[str, set[tuple[str, ...]]] = {}
for index, (operation, client, path, _) in enumerate(routes):
found = [(dropped, kind, arn) for kind, arn in published if (dropped := _dropped(path, arn)) is not None]
if not found:
continue
least = min(dropped for dropped, _, _ in found)
best = [(kind, arn) for dropped, kind, arn in found if dropped == least]
if len({"${Account}" in arn for _, arn in best}) > 1:
raise ValueError(f"{operation}'s route {'/'.join(path)} is a path the reference and the guide give with an "
f"account and without one: {sorted(kind for kind, _ in best)}")
chosen = [entry for entry in best if entry[0] in formats] or best
if len({arn for _, arn in chosen}) > 1:
raise ValueError(f"{operation}'s route {'/'.join(path)} is the path of several formats: "
f"{sorted(kind for kind, _ in chosen)}")
matched[index] = (least, *chosen[0])
prefixes.setdefault(client, set()).add(tuple(path[:least]))
for client, left in sorted(prefixes.items()):
if len(left) > 1:
raise ValueError(f"{namespace}'s published paths leave out different leading segments of {client}'s "
f"routes: {sorted(left)}")
resources: dict[str, list[dict]] = {}
arns: dict[str, str] = {}
unrouted: set[str] = set()
for index, (operation, client, path, members) in enumerate(routes):
if index in matched:
least, kind, arn = matched[index]
template = _format_path(arn)
else:
left = next(iter(prefixes.get(client, {()})))
least = len(left) if tuple(path[:len(left)]) == left else 0
labels = [label for segment in path[least:] if (label := _route_label(segment))]
if any(re.search(r"Arns?$", members.get(label, "")) for label in labels):
unrouted.add(operation)
continue
match = RESOURCE_PATH_FORMAT_RE.fullmatch(source["resource"]["format"])
if match is None or match.group("namespace") != namespace:
raise ValueError(f"the guide gives {namespace}'s resources no ARN format of a resource path: "
f"{source['resource']['format']}")
template = [("${" + _words(label) + "}") if (label := _route_label(segment)) else segment
for segment in path[least:]]
kind = "/" + "/".join(path[least:]) + " (resource-path-specifier)"
arn = f"arn:${{Partition}}:{namespace}:${{Region}}::/" + "/".join(template)
if len(set(template)) != len(template):
raise ValueError(f"{operation}'s route {'/'.join(path)} gives two labels one variable")
fill: dict[str, str] = {}
for segment, part in zip(path[least:], template):
label = _route_label(segment)
if label is None:
continue
if label not in members:
raise ValueError(f"{operation}'s route {'/'.join(path)} has a label {label} no member is carried in")
fill[ONE_VARIABLE_SEGMENT_RE.fullmatch(part).group("variable")] = members[label]
arns[kind] = arn
resource = {"type": kind, "fill": fill}
if resource not in resources.setdefault(operation, []):
resources[operation].append(resource)
for operation in unrouted:
resources.pop(operation, None)
used = {resource["type"] for named in resources.values() for resource in named}
needed = {kind: arns[kind] for kind in sorted(used) if kind not in formats}
return dict(sorted(resources.items())), needed
def namespace_routed(operations: dict[str, dict], formats: dict[str, dict[str, str]], namespaces: dict[str, list[str]],
data: Path) -> tuple[dict[str, list[dict]], dict[str, dict[str, str]]]:
"""`routed_resources` for each namespace with a path source the file reads: the resources by operation, and the
formats they need beside the reference's, by namespace."""
resources: dict[str, list[dict]] = {}
needed: dict[str, dict[str, str]] = {}
sources = load_path_sources()
actions = load_route_actions() if sources else {}
for namespace, source in sorted(sources.items()):
if namespace not in namespaces:
continue
found, kinds = routed_resources(namespace, {operation: value for operation, value in operations.items()
if namespace_of(operation) == namespace},
formats.get(namespace, {}), source,
load_models(data, set(namespaces[namespace])), actions)
resources.update(found)
if kinds:
needed[namespace] = kinds
return resources, needed
def read_resources(operation: str, types: list[str], formats: dict[str, str], models: dict[str, dict]) -> list[dict]:
"""The resources the rules read from the request of the clients given."""
name = operation.split(":", 1)[1]
@@ -3408,14 +3642,16 @@ def build(documents: list[dict], provenance: str, data: Path, botocore: str) ->
forwarded = forwarded_actions(documents)
sources = load_statement_sources()
statement_types = statement_actions(documents, sources)
routed, path_formats = namespace_routed(covered, formats, namespaces, data)
operations = {}
prefixes = {namespace: namespace_id_prefixes(namespace, load_models(data, set(namespaces[namespace])),
load_examples(data, set(namespaces[namespace])))
for namespace in ID_TARGETS if namespace in namespaces}
for operation, value in sorted(covered.items()):
models = load_models(data, set(namespaces[namespace_of(operation)]))
operations[operation] = entry_for(operation, value, formats.get(namespace_of(operation), {}), models,
prefixes.get(namespace_of(operation)), forwarded)
operations[operation] = entry_for(operation, value, {**formats.get(namespace_of(operation), {}),
**path_formats.get(namespace_of(operation), {})}, models,
prefixes.get(namespace_of(operation)), forwarded, routed.get(operation))
unqualified = unqualified_types(formats, operations, namespaces, data)
return {
"_source": {
@@ -3433,6 +3669,7 @@ def build(documents: list[dict], provenance: str, data: Path, botocore: str) ->
if namespace not in NAMESPACES and namespace not in HAND_BUILT
and namespace not in NOT_COVERED),
"arnFormats": formats,
"pathFormats": path_formats,
"resourceTagKeys": resource_tag_keys(documents, formats),
"resourceKeys": resource_keys(documents, data, namespaces),
"unqualified": unqualified,
@@ -3597,7 +3834,8 @@ def _check_overrides(covered: dict[str, dict]) -> None:
def render(document: dict) -> str:
"""The document with one operation to a line."""
lines = ["{"]
for key in ("_source", "namespaces", "handBuilt", "notCovered", "otherNamespaces", "arnFormats", "resourceTagKeys",
for key in ("_source", "namespaces", "handBuilt", "notCovered", "otherNamespaces", "arnFormats", "pathFormats",
"resourceTagKeys",
"resourceKeys", "unqualified", "mintedIds", "mintedSuffixes", "integerVariables", "forwardedActions",
"statementActions", "statements"):
lines.append(f' "{key}": {json.dumps(document[key])},')
@@ -3643,6 +3881,17 @@ def validate(document: dict) -> list[str]:
isinstance(types, dict) and all(isinstance(arn, str) and arn.startswith("arn:${Partition}:")
for arn in types.values()) for types in formats.values()):
return ["arnFormats is not an ARN format for each resource type of namespaces the file reads"]
path_formats = document.get("pathFormats")
if not isinstance(path_formats, dict) or set(path_formats) - (set(namespaces) & set(PATH_SOURCES)) or not all(
isinstance(kinds, dict) and kinds and all(
isinstance(kind, str) and kind not in formats.get(namespace, {}) and isinstance(arn, str)
and arn.startswith(f"arn:${{Partition}}:{namespace}:") for kind, arn in kinds.items())
for namespace, kinds in path_formats.items()):
return ["pathFormats is not an ARN format for each route type, of no reference type's name, of namespaces the "
"file reads routes of by their method"]
# A route type is a resource type as the reference's are, wherever the file names one.
formats = {namespace: {**formats.get(namespace, {}), **path_formats.get(namespace, {})}
for namespace in sorted(set(formats) | set(path_formats))}
if list(operations) != sorted(operations):
problems.append("operations is not sorted")
integers = document.get("integerVariables", {})
@@ -3740,7 +3989,11 @@ def validate(document: dict) -> list[str]:
# Only a measured entry names a type the reference omits for the action; MEASURED's admission checks
# (see `measured_resources`) say when it may.
measured = set(_kinds(resource)) if isinstance(resource, dict) and operation in MEASURED else set()
problems += _resource_problems(operation, resource, set(types) | measured, formats.get(namespace, {}))
# A route authorized by its method names the type of its path, which its action may not list (`--check`
# says whether it is the one its path is).
routed = set(formats.get(namespace, {})) if namespace in PATH_SOURCES else set()
problems += _resource_problems(operation, resource, set(types) | measured | routed,
formats.get(namespace, {}))
for created in entry.get("creates", []) if isinstance(entry.get("creates", []), list) else [None]:
problems += _created_problems(operation, created, set(types), formats.get(namespace, {}))
for made in entry.get("makes", []) if isinstance(entry.get("makes", []), list) else [None]:
@@ -3991,6 +4244,16 @@ def derive(document: dict, data: Path) -> list[str]:
if document["statements"] != statements:
problems.append(f"the file's statements differ from what its sources give: expected "
f"{json.dumps(statements)}")
try:
routed, path_formats = namespace_routed(
{operation: {"action": entry["action"], "types": entry["types"]}
for operation, entry in document["operations"].items()},
document["arnFormats"], document["namespaces"], data)
except ValueError as e:
return problems + [str(e)]
if document.get("pathFormats", {}) != path_formats:
problems.append(f"the file gives {json.dumps(document.get('pathFormats', {}))} as route types, the path "
f"sources and botocore give {json.dumps(path_formats)}")
prefixes = {namespace: namespace_id_prefixes(namespace, load_models(data, set(document["namespaces"][namespace])),
load_examples(data, set(document["namespaces"][namespace])))
for namespace in ID_TARGETS if namespace in document["namespaces"]}
@@ -3998,8 +4261,8 @@ def derive(document: dict, data: Path) -> list[str]:
namespace = namespace_of(operation)
models = load_models(data, set(document["namespaces"][namespace]))
expected = entry_for(operation, {"action": entry["action"], "types": entry["types"]},
document["arnFormats"].get(namespace, {}), models, prefixes.get(namespace),
document["forwardedActions"])
{**document["arnFormats"].get(namespace, {}), **path_formats.get(namespace, {})}, models,
prefixes.get(namespace), document["forwardedActions"], routed.get(operation))
if expected != entry:
problems.append(f"{operation}: the file has {json.dumps(entry)}, botocore gives {json.dumps(expected)}")
return problems
@@ -4046,6 +4309,22 @@ def verify_statements(vendored: dict, documents: list[dict]) -> list[str]:
return untrue
def verify_path_sources() -> list[str]:
"""A vendored path source whose pages AWS has changed."""
untrue: list[str] = []
for namespace, source in sorted(load_path_sources().items()):
pages = source["_source"]["pages"]
try:
changed = fetch_apigateway_arn_formats.stale(
source, *(fetch_apigateway_arn_formats.fetch_url(page) for page in pages))
except (OSError, ValueError) as e:
raise OSError(f"could not read {' and '.join(pages)} ({e})") from e
if changed:
untrue.append(f"{' and '.join(pages)} no longer give what {PATH_SOURCES[namespace].name} holds for "
f"{namespace}: run {source['_source']['fetcher']}")
return untrue
def verify_against(vendored: dict, upstream: dict[str, dict], formats: dict[str, dict[str, str]]) -> tuple[list[str], list[str]]:
"""What the file claims and AWS does not, and the operations AWS has added since."""
untrue: list[str] = []
@@ -4122,6 +4401,7 @@ def main(argv: list[str] | None = None) -> int:
untrue += verify_forwarded(document, documents)
try:
untrue += verify_statements(document, documents)
untrue += verify_path_sources()
except OSError as e:
print(f"error: {e}", file=sys.stderr)
return 2
@@ -0,0 +1,348 @@
{
"_source": {
"pages": [
"https://docs.aws.amazon.com/apigateway/latest/developerguide/security_iam_service-with-iam.html",
"https://docs.aws.amazon.com/apigateway/latest/developerguide/arn-format-reference.html"
],
"fetcher": "tools/aws/fetch_apigateway_arn_formats.py",
"retrieved": "2026-11-22",
"note": "The IAM page's action sentence with the actions it names, its resource sentence with the ARN format after it, and each table of the ARN reference under its heading, each row's resource and ARN, copied as they stand, each variable the pages mark written {name}."
},
"action": {
"sentence": "The API-managing Action expression has the format apigateway:{action}, where {action} is one of the following API Gateway actions: GET, POST, PUT, DELETE, PATCH (to update resources), or *, which is all of the previous actions.",
"actions": [
"GET",
"POST",
"PUT",
"DELETE",
"PATCH",
"*"
]
},
"resource": {
"sentence": "API Gateway resources have the following ARN format:",
"format": "arn:aws:apigateway:{region}::{resource-path-specifier}"
},
"tables": [
{
"heading": "HTTP API and WebSocket API resources",
"rows": [
{
"resource": "AccessLogSettings",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/stages/{stage-name}/accesslogsettings"
},
{
"resource": "Api",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}"
},
{
"resource": "Apis",
"arn": "arn:{partition}:apigateway:{region}::/apis"
},
{
"resource": "Authorizer",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/authorizers/{id}"
},
{
"resource": "Authorizers",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/authorizers"
},
{
"resource": "Cors",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/cors"
},
{
"resource": "Deployment",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/deployments/{id}"
},
{
"resource": "Deployments",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/deployments"
},
{
"resource": "ExportedAPI",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/exports/{specification}"
},
{
"resource": "Integration",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/integrations/{integration-id}"
},
{
"resource": "Integrations",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/integrations"
},
{
"resource": "IntegrationResponse",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/integrationresponses/{integration-response}"
},
{
"resource": "IntegrationResponses",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/integrationresponses"
},
{
"resource": "Model",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/models/{id}"
},
{
"resource": "Models",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/models"
},
{
"resource": "ModelTemplate",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/models/{id}/template"
},
{
"resource": "Route",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/routes/{id}"
},
{
"resource": "Routes",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/routes"
},
{
"resource": "RouteRequestParameter",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/routes/{id}/requestparameters/{key}"
},
{
"resource": "RouteResponse",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/routes/{id}/routeresponses/{id}"
},
{
"resource": "RouteResponses",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/routes/{id}/routeresponses"
},
{
"resource": "RouteSettings",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/stages/{stage-name}/routesettings/{route-key}"
},
{
"resource": "Stage",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/stages/{stage-name}"
},
{
"resource": "Stages",
"arn": "arn:{partition}:apigateway:{region}::/apis/{api-id}/stages"
},
{
"resource": "VpcLink",
"arn": "arn:{partition}:apigateway:{region}::/vpclinks/{vpclink-id}"
},
{
"resource": "VpcLinks",
"arn": "arn:{partition}:apigateway:{region}::/vpclinks"
}
]
},
{
"heading": "REST API resources",
"rows": [
{
"resource": "Account",
"arn": "arn:{partition}:apigateway:{region}::/account"
},
{
"resource": "ApiKey",
"arn": "arn:{partition}:apigateway:{region}::/apikeys/{id}"
},
{
"resource": "ApiKeys",
"arn": "arn:{partition}:apigateway:{region}::/apikeys"
},
{
"resource": "Authorizer",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/authorizers/{id}"
},
{
"resource": "Authorizers",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/authorizers"
},
{
"resource": "ClientCertificate",
"arn": "arn:{partition}:apigateway:{region}::/clientcertificates/{id}"
},
{
"resource": "ClientCertificates",
"arn": "arn:{partition}:apigateway:{region}::/clientcertificates"
},
{
"resource": "Deployment",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/deployments/{id}"
},
{
"resource": "Deployments",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/deployments"
},
{
"resource": "DocumentationPart",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/documentation/parts/{id}"
},
{
"resource": "DocumentationParts",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/documentation/parts"
},
{
"resource": "DocumentationVersion",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/documentation/versions/{version}"
},
{
"resource": "DocumentationVersions",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/documentation/versions"
},
{
"resource": "GatewayResponse",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/gatewayresponses/{response-type}"
},
{
"resource": "GatewayResponses",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/gatewayresponses"
},
{
"resource": "Integration",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/resources/{resource-id}/methods/{http-method}/integration"
},
{
"resource": "IntegrationResponse",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/resources/{resource-id}/methods/{http-method}/integration/responses/{status-code}"
},
{
"resource": "Method",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/resources/{resource-id}/methods/{http-method}"
},
{
"resource": "MethodResponse",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/resources/{resource-id}/methods/{http-method}/responses/{status-code}"
},
{
"resource": "Model",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/models/{model-name}"
},
{
"resource": "Models",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/models"
},
{
"resource": "RequestValidator",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/requestvalidators/{id}"
},
{
"resource": "RequestValidators",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/requestvalidators"
},
{
"resource": "Resource",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/resources/{id}"
},
{
"resource": "Resources",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/resources"
},
{
"resource": "RestApi",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}"
},
{
"resource": "RestApis",
"arn": "arn:{partition}:apigateway:{region}::/restapis"
},
{
"resource": "Stage",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/stages/{stage-name}"
},
{
"resource": "Stages",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/stages"
},
{
"resource": "Tags",
"arn": "arn:{partition}:apigateway:{region}::/tags/{url-encoded-resource-arn}"
},
{
"resource": "Template",
"arn": "arn:{partition}:apigateway:{region}::/restapis/models/{model-name}/template"
},
{
"resource": "UsagePlan",
"arn": "arn:{partition}:apigateway:{region}::/usageplans/{usageplan-id}"
},
{
"resource": "UsagePlans",
"arn": "arn:{partition}:apigateway:{region}::/usageplans"
},
{
"resource": "UsagePlanKey",
"arn": "arn:{partition}:apigateway:{region}::/usageplans/{usageplan-id}/keys/{id}"
},
{
"resource": "UsagePlanKeys",
"arn": "arn:{partition}:apigateway:{region}::/usageplans/{usageplan-id}/keys"
},
{
"resource": "VpcLink",
"arn": "arn:{partition}:apigateway:{region}::/vpclinks/{vpclink-id}"
},
{
"resource": "VpcLinks",
"arn": "arn:{partition}:apigateway:{region}::/vpclinks"
}
]
},
{
"heading": "Domain names resources",
"rows": [
{
"resource": "ApiMapping",
"arn": "arn:{partition}:apigateway:{region}::/domainnames/{domain-name}/apimappings/{id}"
},
{
"resource": "ApiMappings",
"arn": "arn:{partition}:apigateway:{region}::/domainnames/{domain-name}/apimappings"
},
{
"resource": "BasePathMapping",
"arn": "arn:{partition}:apigateway:{region}::/domainnames/{domain-name}/basepathmappings/{basepath}"
},
{
"resource": "BasePathMappings",
"arn": "arn:{partition}:apigateway:{region}::/domainnames/{domain-name}/basepathmappings"
},
{
"resource": "DomainName",
"arn": "arn:{partition}:apigateway:{region}::/domainnames/{domain-name}"
},
{
"resource": "DomainNameAccessAssociation",
"arn": "arn:{partition}:apigateway:{region}:{account-id}:/domainnameaccessassociations/domainname/{domain-name}/vpcesource/{vpce-source-id}"
},
{
"resource": "DomainNameAccessAssociations",
"arn": "arn:{partition}:apigateway:{region}:{account-id}:/domainnameaccessassociations"
},
{
"resource": "DomainNames",
"arn": "arn:{partition}:apigateway:{region}::/domainnames"
},
{
"resource": "RoutingRule",
"arn": "arn:{partition}:apigateway:{region}:{account-id}:/domainnames/{domain-name}/routingrules/{routing-rule-id}"
}
]
},
{
"heading": "execute-api (HTTP APIs, WebSocket APIs, and REST APIs)",
"rows": [
{
"resource": "WebSocket API endpoint",
"arn": "arn:{partition}:execute-api:{region}:{account-id}:{api-id}/{stage}/{route-key}"
},
{
"resource": "HTTP API and REST API endpoint *",
"arn": "arn:{partition}:execute-api:{region}:{account-id}:{api-id}/{stage}/{http-method}/{resource-path}"
},
{
"resource": "Lambda authorizer **",
"arn": "arn:{partition}:execute-api:{region}:{account-id}:{api-id}/authorizers/{authorizer-id}"
}
]
}
]
}
@@ -0,0 +1,90 @@
#!/usr/bin/env python3
"""Tests for fetch_apigateway_arn_formats.py, on pages in the API Gateway developer guide's markup."""
from __future__ import annotations
import pytest
import fetch_apigateway_arn_formats as f
ACTION = ('<p>The API-managing <code class="code">Action</code> expression has the format\n'
' <code class="code">apigateway:<code class="replaceable">action</code></code>, where\n'
' <code class="replaceable">action</code> is one of the following API Gateway actions: <b>GET</b>,\n'
' <b>POST</b>, <b>PUT</b>, <b>DELETE</b>, <b>PATCH</b>\n'
' (to update resources), or <b>*</b>, which is all of the previous actions.</p>')
RESOURCE = ('<p>API Gateway resources have the following ARN format:</p>\n'
'<pre class="programlisting"><div class="code-btn-container"></div><code class="nohighlight">'
'arn:aws:apigateway:<code class="replaceable">region</code>::'
'<code class="replaceable">resource-path-specifier</code></code></pre>')
def iam_page(*paragraphs: str) -> str:
return "<html><body>" + "".join(paragraphs) + "</body></html>"
def row(resource: str, arn: str) -> str:
return (f'<tr><td tabindex="-1"><p>{resource}</p></td>'
f'<td tabindex="-1"><p><code class="code">{arn}</code></p></td></tr>')
def arn_page(*tables: tuple[str, list[str]], rows_each: int = 1) -> str:
body = ""
for heading, rows in tables:
body += (f"<h2>{heading}</h2><table><thead><tr><th>Resource</th><th>ARN</th></tr></thead>"
+ "".join(rows * rows_each) + "</table>")
return "<html><body>" + body + "</body></html>"
REST_STAGE = row("Stage", 'arn:<code class="replaceable">partition</code>:apigateway:<code class="replaceable">region'
'</code>::/restapis/<code class="replaceable">api-id</code>/stages/'
'<code class="replaceable">stage-name</code>')
ROUTING_RULE = row("RoutingRule", 'arn:<code class="replaceable">partition</code>:apigateway:<code class="replaceable">'
'region</code>:<code class="replaceable">account-id</code>:/domainnames/<code class="replaceable">'
'domain-name</code>/routingrules/<code class="replaceable">routing-rule-id</code>')
def test_the_iam_page_gives_the_action_sentence_its_actions_and_the_resource_format():
read = f.read_iam_page(iam_page(ACTION, RESOURCE))
assert read == {
"action": {
"sentence": "The API-managing Action expression has the format apigateway:{action}, where {action} is "
"one of the following API Gateway actions: GET, POST, PUT, DELETE, PATCH (to update "
"resources), or *, which is all of the previous actions.",
"actions": ["GET", "POST", "PUT", "DELETE", "PATCH", "*"],
},
"resource": {"sentence": "API Gateway resources have the following ARN format:",
"format": "arn:aws:apigateway:{region}::{resource-path-specifier}"},
}
def test_a_page_without_the_action_sentence_or_the_resource_format_is_refused():
with pytest.raises(ValueError, match="action sentence"):
f.read_iam_page(iam_page(RESOURCE))
with pytest.raises(ValueError, match="ARN format"):
f.read_iam_page(iam_page(ACTION))
def test_each_row_keeps_its_table_heading_and_marks_its_variables():
tables = f.read_arn_page(arn_page(("REST API resources", [REST_STAGE]), ("Domain names resources", [ROUTING_RULE])))
assert tables == [
{"heading": "REST API resources",
"rows": [{"resource": "Stage",
"arn": "arn:{partition}:apigateway:{region}::/restapis/{api-id}/stages/{stage-name}"}]},
{"heading": "Domain names resources",
"rows": [{"resource": "RoutingRule",
"arn": "arn:{partition}:apigateway:{region}:{account-id}:/domainnames/{domain-name}/routingrules/"
"{routing-rule-id}"}]},
]
def test_a_page_of_too_few_tables_or_rows_is_refused():
with pytest.raises(ValueError, match="layout changed"):
f.build(iam_page(ACTION, RESOURCE), arn_page(("REST API resources", [REST_STAGE])))
def test_the_file_is_stale_when_a_page_changes_and_not_for_its_date():
tables = [(f"Heading {index}", [REST_STAGE]) for index in range(f.MINIMUM_TABLES)]
arns = arn_page(*tables, rows_each=f.MINIMUM_ROWS // f.MINIMUM_TABLES + 1)
vendored = f.build(iam_page(ACTION, RESOURCE), arns)
vendored["_source"]["retrieved"] = "2000-01-01"
assert not f.stale(vendored, iam_page(ACTION, RESOURCE), arns)
assert f.stale(vendored, iam_page(ACTION, RESOURCE), arns.replace("/stages/", "/stage/"))
@@ -372,6 +372,7 @@ def isolated(monkeypatch):
monkeypatch.setattr(r, "NOT_COVERED", {"later": "a later batch"})
monkeypatch.setattr(r, "MEASURED", {})
monkeypatch.setattr(r, "STATEMENT_SOURCES", {})
monkeypatch.setattr(r, "PATH_SOURCES", {})
return monkeypatch
@@ -874,6 +875,7 @@ def good_document() -> dict:
return {"namespaces": {"svc": ["svc"]}, "handBuilt": ["hand"],
"notCovered": {"later": "a later batch"},
"otherNamespaces": ["other"], "arnFormats": {"svc": {"thing": FORMATS["thing"], "group": FORMATS["group"]}},
"pathFormats": {},
"unqualified": {"svc": ["thing"]}, "mintedIds": {"svc": ["thing"]}, "mintedSuffixes": {},
"forwardedActions": {},
"operations": {
@@ -882,6 +884,102 @@ def good_document() -> dict:
"svc:C": {"action": "svc:C", "types": [], "resources": []}}}
GUIDE = {
"action": {"sentence": "The API-managing Action expression has the format svc:{action}, where {action} is one of "
"the following actions: GET, POST, PUT, DELETE, PATCH, or *.",
"actions": ["GET", "POST", "PUT", "DELETE", "PATCH", "*"]},
"resource": {"sentence": "API Gateway resources have the following ARN format:",
"format": "arn:aws:svc:{region}::{resource-path-specifier}"},
"tables": [
{"heading": "REST API resources",
"rows": [{"resource": "Stage", "arn": "arn:{partition}:svc:{region}::/restapis/{api-id}/stages/{stage-name}"},
{"resource": "Associations", "arn": "arn:{partition}:svc:{region}:{account-id}:/associations"}]},
{"heading": "execute-api",
"rows": [{"resource": "endpoint",
"arn": "arn:{partition}:execute-api:{region}:{account-id}:{api-id}/{stage}"}]}],
}
NO_ROUTE_ACTIONS = {"byMethod": {}, "byModel": {}}
def routed_model(routes: dict[str, tuple[str, str, dict[str, str]]]) -> dict:
"""A rest-json model: each operation its method, its path, and the member each label of its path carries."""
shapes = {"String": {"type": "string"}}
operations = {}
for name, (method, uri, labels) in routes.items():
shapes[name + "In"] = {"type": "structure", "members": {
member: {"shape": "String", "location": "uri", "locationName": label} for label, member in labels.items()}}
operations[name] = {"http": {"method": method, "requestUri": uri}, "input": {"shape": name + "In"}}
return {"metadata": {"protocol": "rest-json"}, "operations": operations, "shapes": shapes}
def test_a_route_authorized_by_its_method_names_the_reference_type_of_its_own_path():
formats = {"Api": "arn:${Partition}:svc:${Region}::/apis/${ApiId}", "Apis": "arn:${Partition}:svc:${Region}::/apis"}
models = {"svc": routed_model({"GetApi": ("GET", "/apis/{api_id}", {"api_id": "restApiId"})}),
"svcv2": routed_model({"GetApi": ("GET", "/v2/apis/{apiId}", {"apiId": "ApiId"}),
"CreateApi": ("POST", "/v2/apis", {})})}
operations = {"svc:GetApi": {"action": "svc:GET", "types": ["Api"]},
"svc:CreateApi": {"action": "svc:CreateApi", "types": []}}
# CreateApi is authorized as the method of its route, which the reference gives no single action.
resources, needed = r.routed_resources("svc", operations, formats, GUIDE, models,
{"byMethod": {"svc": {"CreateApi"}}, "byModel": {}})
assert resources == {
"svc:CreateApi": [{"type": "Apis", "fill": {}}],
"svc:GetApi": [{"type": "Api", "fill": {"ApiId": "restApiId"}}, {"type": "Api", "fill": {"ApiId": "ApiId"}}],
}
assert needed == {}
def test_a_path_the_reference_does_not_give_takes_the_guides_row_and_else_the_guides_format():
models = {"svc": routed_model({
"GetStage": ("GET", "/restapis/{restapi_id}/stages/{stage_name}",
{"restapi_id": "restApiId", "stage_name": "stageName"}),
"GetAssociations": ("GET", "/associations", {}),
"GetSdkType": ("GET", "/sdktypes/{sdktype_id}", {"sdktype_id": "id"})})}
operations = {f"svc:{name}": {"action": "svc:GET", "types": []}
for name in ("GetStage", "GetAssociations", "GetSdkType")}
resources, needed = r.routed_resources("svc", operations, {}, GUIDE, models, NO_ROUTE_ACTIONS)
assert resources == {
"svc:GetAssociations": [{"type": "Associations (REST API resources)", "fill": {}}],
"svc:GetSdkType": [{"type": "/sdktypes/{sdktype_id} (resource-path-specifier)", "fill": {"SdktypeId": "id"}}],
"svc:GetStage": [{"type": "Stage (REST API resources)",
"fill": {"ApiId": "restApiId", "StageName": "stageName"}}],
}
# The guide's row keeps the account it gives; its ARN format gives none.
assert needed == {
"/sdktypes/{sdktype_id} (resource-path-specifier)": "arn:${Partition}:svc:${Region}::/sdktypes/${SdktypeId}",
"Associations (REST API resources)": "arn:${Partition}:svc:${Region}:${Account}:/associations",
"Stage (REST API resources)": "arn:${Partition}:svc:${Region}::/restapis/${ApiId}/stages/${StageName}",
}
def test_a_route_whose_label_holds_an_arn_or_checked_as_a_named_action_is_left_to_the_rules():
models = {"svc": routed_model({
"DeleteAssociation": ("DELETE", "/associations/{association_arn}", {"association_arn": "associationArn"}),
"DeletePortal": ("DELETE", "/portals/{portal_id}", {"portal_id": "PortalId"})})}
operations = {"svc:DeleteAssociation": {"action": "svc:DELETE", "types": []},
"svc:DeletePortal": {"action": "svc:DeletePortal", "types": []}}
assert r.routed_resources("svc", operations, {}, GUIDE, models, NO_ROUTE_ACTIONS) == ({}, {})
def test_published_paths_leaving_out_different_leading_segments_of_one_clients_routes_are_refused():
formats = {"Apis": "arn:${Partition}:svc:${Region}::/apis", "Things": "arn:${Partition}:svc:${Region}::/things"}
models = {"svcv2": routed_model({"GetApis": ("GET", "/v2/apis", {}), "GetThings": ("GET", "/v3/things", {})})}
operations = {f"svc:{name}": {"action": "svc:GET", "types": []} for name in ("GetApis", "GetThings")}
with pytest.raises(ValueError, match="different leading segments"):
r.routed_resources("svc", operations, formats, GUIDE, models, NO_ROUTE_ACTIONS)
def test_route_types_are_read_only_for_a_namespace_with_a_path_source_and_never_named_as_a_reference_type(monkeypatch):
document = good_document()
document["pathFormats"] = {
"svc": {"/sdktypes (resource-path-specifier)": "arn:${Partition}:svc:${Region}::/sdktypes"}}
assert any("pathFormats" in problem for problem in r.validate(document))
monkeypatch.setattr(r, "PATH_SOURCES", {"svc": Path("svc.json")})
assert r.validate(document) == []
document["pathFormats"] = {"svc": {"thing": "arn:${Partition}:svc:${Region}::/things"}}
assert any("pathFormats" in problem for problem in r.validate(document))
def test_a_well_formed_document_validates():
assert r.validate(good_document()) == []
document = good_document()