fix(s3tables): check S3 Tables requests under IAM enforcement (#8424)

Under IAM enforcement no S3 Tables request was checked: its model was
not among the vendored REST routes and its namespace's request
resources were not read, so no request mapped to an action and every
call went through, DeleteTableBucket and the policy calls included.

s3tables is now vendored by regen_rest_routes.py and read by the
request-resources, tag-on-create and passed-role generators. A table
bucket call is checked on the bucket its path names. A table's ARN ends
in an id the service mints, which no request carries: a request names
the table by its table bucket's ARN, its namespace and its name. A new
generic rule in the request-resources generator reads such a type,
found by its service by those path labels (or GetTable's query string
members, when tableArn is absent), instead of filling the bucket's name
from the table's name or reading the bucket's ARN as the table's.
S3TablesStoredResourceArns answers it from the stored table, read only.
This commit is contained in:
Priamo Germosen authored and GitHub committed 2026-11-15 10:47:17 -04:00
1 parent 0a40ab728c
commit 92a61c2b86
22 files changed
+651 -44

No files matched your search

@@ -21,6 +21,7 @@ class S3TablesTest {
private static String bucketArn;
private static String tableName;
private static String versionToken;
private static String tableArn;
private static final String NAMESPACE = "analytics";
@BeforeAll
@@ -93,7 +94,9 @@ class S3TablesTest {
.tags(Map.of("suite", "sdk-java"))
.build());
versionToken = table.versionToken();
assertThat(table.tableARN()).isEqualTo(bucketArn + "/table/" + tableName);
// AWS ends a table's ARN in an id it mints, not the table's name.
tableArn = table.tableARN();
assertThat(tableArn).startsWith(bucketArn + "/table/").isNotEqualTo(bucketArn + "/table/" + tableName);
assertThat(versionToken).isNotBlank();
GetTableResponse fetched = client.getTable(GetTableRequest.builder()
@@ -198,6 +201,7 @@ class S3TablesTest {
GetTableResponse renamed = client.getTable(GetTableRequest.builder()
.tableBucketARN(bucketArn).namespace(NAMESPACE).name(renamedTableName).build());
assertThat(renamed.name()).isEqualTo(renamedTableName);
assertThat(renamed.tableARN()).isEqualTo(tableArn);
assertThat(renamed.versionToken()).isNotEqualTo(originalToken);
assertThatThrownBy(() -> client.getTable(GetTableRequest.builder()
.tableBucketARN(bucketArn).namespace(NAMESPACE).name(tableName).build()))
@@ -38,6 +38,7 @@ describe('S3 Tables lifecycle', () => {
const namespace = 'analytics';
let tableName = uniqueName('events');
let versionToken: string;
let tableArn: string;
beforeAll(() => {
client = makeClient(S3TablesClient);
@@ -77,7 +78,10 @@ describe('S3 Tables lifecycle', () => {
tags: { suite: 'sdk-node' },
}));
versionToken = table.versionToken!;
expect(table.tableARN).toBe(`${bucketArn}/table/${tableName}`);
// AWS ends a table's ARN in an id it mints, not the table's name.
tableArn = table.tableARN!;
expect(tableArn.startsWith(`${bucketArn}/table/`)).toBe(true);
expect(tableArn).not.toBe(`${bucketArn}/table/${tableName}`);
});
it('gets resources and applies list prefixes', async () => {
@@ -95,7 +99,7 @@ describe('S3 Tables lifecycle', () => {
const tables = await client.send(new ListTablesCommand({ tableBucketARN: bucketArn, namespace, prefix: 'events' }));
expect(tables.tables?.some((table) => table.name === tableName)).toBe(true);
const table = await client.send(new GetTableCommand({ tableBucketARN: bucketArn, namespace, name: tableName }));
expect(table.tableARN).toBe(`${bucketArn}/table/${tableName}`);
expect(table.tableARN).toBe(tableArn);
});
it('round-trips policies and metadata version tokens', async () => {
@@ -170,6 +174,7 @@ describe('S3 Tables lifecycle', () => {
name: renamedTableName,
}));
expect(renamed.name).toBe(renamedTableName);
expect(renamed.tableARN).toBe(tableArn);
expect(renamed.versionToken).not.toBe(originalToken);
await expect(client.send(new GetTableCommand({ tableBucketARN: bucketArn, namespace, name: tableName })))
.rejects.toBeInstanceOf(NotFoundException);
+7
View File
@@ -23,6 +23,13 @@ table's storage, not a general purpose bucket, so `ListBuckets` leaves it out. F
snapshot expiry, replication, encryption management, and metrics are outside
this implementation.
A table's ARN ends in an id Floci mints when it creates the table
(`arn:aws:s3tables:<region>:<account>:bucket/<bucket>/table/<id>`), as AWS's
do, so two tables of one name in different namespaces have their own ARNs, and
a rename keeps it. `GetTable` takes either `tableArn` or the table bucket's
ARN, namespace and name. A table created by an earlier Floci keeps the ARN it
was stored with, which ends in its name.
## Supported operations
| Area | Operations |
@@ -55,6 +55,8 @@ final class RequestResourceMembers {
private static final Pattern LOCATION = Pattern.compile("\\{[A-Za-z0-9_]+}|\\?[A-Za-z0-9_.-]+");
/** The one id a child type's format appends to its parent's. */
private static final Pattern APPENDED_ID = Pattern.compile("[/:]\\$\\{\\w+}");
/** A word of a child type's own and one id, which its format appends to its parent's whole resource. */
private static final Pattern NESTED_ID = Pattern.compile("[/:][A-Za-z][A-Za-z0-9-]*[/:]\\$\\{\\w+}");
/** The keys a resource found by members does not take: it is read no other way. */
private static final List<String> FOUND_ONLY = List.of("arnOf", "fixed");
/** The keys of a resource read from a member holding its ARN. */
@@ -273,9 +275,11 @@ final class RequestResourceMembers {
/**
* A resource a create makes under a parent its action acts on, from a member holding the parent's ARN: the
* parent's resource with its leading type word {@code parentWord} replaced by {@code childWord} and an open
* id appended after {@code separator} ({@code listener/app/<lb>/<id>/*} under {@code loadbalancer/app/...}).
* id appended after {@code infix} ({@code listener/app/<lb>/<id>/*} under {@code loadbalancer/app/...}, infix
* {@code /}), or the parent's whole resource with a word of the child's own before the open id
* ({@code bucket/<name>/table/*} under {@code bucket/<name>}, infix {@code /table/}).
*/
record Created(String type, String parent, Member arn, String parentWord, String childWord, String separator) {
record Created(String type, String parent, Member arn, String parentWord, String childWord, String infix) {
}
/** An ordered heterogeneous id list; unsupported ids retain wildcard authorization. */
@@ -783,15 +787,18 @@ final class RequestResourceMembers {
String parent = created.path("parent").asText("");
Matcher child = formats.containsKey(type) ? RESOURCE_PART.matcher(formats.get(type).format()) : null;
Matcher under = formats.containsKey(parent) ? RESOURCE_PART.matcher(formats.get(parent).format()) : null;
boolean nested = child != null && under != null && child.matches() && under.matches()
&& child.group(1).equals(under.group(1));
if (child == null || under == null || !child.matches() || !under.matches()
|| child.group(1).equals(under.group(1)) || !child.group(2).startsWith(under.group(2))
|| !APPENDED_ID.matcher(child.group(2).substring(under.group(2).length())).matches()) {
|| !child.group(2).startsWith(under.group(2))
|| !(nested ? NESTED_ID : APPENDED_ID).matcher(child.group(2).substring(under.group(2).length()))
.matches()) {
throw new IllegalStateException(RESOURCE_NAME + " creates a " + type + " for " + operation
+ " under a " + parent + ", no parent of it");
}
String separator = child.group(2).substring(under.group(2).length(), under.group(2).length() + 1);
String appended = child.group(2).substring(under.group(2).length());
return new Created(type, parent, member(operation, created.path("arn").asText("")), under.group(1),
child.group(1), separator);
child.group(1), appended.substring(0, appended.indexOf("${")));
}
private static Member member(String operation, String path) {
@@ -367,7 +367,7 @@ public final class RequestResources {
AwsArnUtils.Arn parent = AwsArnUtils.parse(parentFormat.checked(named));
String under = parent.resource().substring(created.parentWord().length());
addNamed(arns, new AwsArnUtils.Arn(parent.partition(), parent.service(), parent.region(),
parent.accountId(), created.childWord() + under + created.separator() + "*").toString(),
parent.accountId(), created.childWord() + under + created.infix() + "*").toString(),
false, partition, region, accountId, null);
}
}
@@ -155,8 +155,15 @@ public class S3TablesController {
@GET
@Path("/get-table")
public Response getTable(@Context HttpHeaders headers, @QueryParam("tableBucketARN") String tableBucketArn,
@QueryParam("namespace") String namespace, @QueryParam("name") String name) {
return Response.ok(tableRepresentation(service.getTable(decode(tableBucketArn), namespace, name, region(headers)))).build();
@QueryParam("namespace") String namespace, @QueryParam("name") String name,
@QueryParam("tableArn") String tableArn) {
// A table ARN names the table whatever else the request gives, as IAM checks the request on it. Query
// parameters arrive decoded, as IAM reads them, so they are not decoded again: a double-encoded ARN would
// name one table to IAM and another here.
S3Table table = tableArn != null
? service.getTableByArn(tableArn, region(headers))
: service.getTable(tableBucketArn, namespace, name, region(headers));
return Response.ok(tableRepresentation(table)).build();
}
@GET
@@ -21,12 +21,14 @@ import java.util.Comparator;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.UUID;
@ApplicationScoped
public class S3TablesService {
private static final Logger LOG = Logger.getLogger(S3TablesService.class);
private static final String BUCKET_PREFIX = "bucket/";
private static final String TABLE_INFIX = "/table/";
private static final int LIST_PAGE_SIZE = 1000;
private final StorageBackend<String, TableBucket> store;
@@ -124,7 +126,9 @@ public class S3TablesService {
if (namespace.getTables().containsKey(name)) {
throw conflict("The table already exists.");
}
S3Table table = new S3Table(name, bucket.getArn() + "/table/" + name, namespaceName, format,
// AWS ends a table's ARN in an id it mints, not the table's name, so tables of one name in two namespaces
// differ, and a rename keeps it.
S3Table table = new S3Table(name, bucket.getArn() + TABLE_INFIX + UUID.randomUUID(), namespaceName, format,
versionToken(), metadataLocation(metadata), now(), regionResolver.getAccountId(), metadata,
encryptionConfiguration, storageClassConfiguration, tags);
table.setWarehouseLocation(createWarehouse(region));
@@ -146,6 +150,43 @@ public class S3TablesService {
return table;
}
/**
* The table {@code tableArn} names, as {@code GetTable} reads it when given one: in the table bucket the ARN's
* resource starts with, whichever namespace holds it. A table persisted before ARNs ended in a minted id keeps
* the name-based ARN it was stored with, and is found by it.
*/
public synchronized S3Table getTableByArn(String tableArn, String region) {
int infix = tableArn == null ? -1 : tableArn.lastIndexOf(TABLE_INFIX);
if (infix < 0) {
throw notFound("The table does not exist.");
}
TableBucket bucket = getTableBucket(tableArn.substring(0, infix), region);
S3Table table = bucket.getNamespaces().values().stream()
.flatMap(namespace -> namespace.getTables().values().stream())
.filter(candidate -> tableArn.equals(candidate.getArn()))
.findFirst()
.orElseThrow(() -> notFound("The table does not exist."));
withWarehouses(bucket, List.of(table), region);
return table;
}
/**
* The ARN of the table a request names by its table bucket's ARN, its namespace and its name, as IAM asks for it
* before the handler runs; empty when there is no such table. Reads only: a table without a warehouse yet keeps
* it so.
*/
public synchronized Optional<String> tableArn(String tableBucketArn, String namespaceName, String name,
String region) {
try {
return Optional.of(getTable(getTableBucket(tableBucketArn, region), namespaceName, name).getArn());
} catch (AwsException e) {
if (!"NotFoundException".equals(e.getErrorCode())) {
throw e;
}
return Optional.empty();
}
}
public synchronized List<S3Table> listTables(String tableBucketArn, String namespaceName, String prefix, String region) {
TableBucket bucket = getTableBucket(tableBucketArn, region);
List<S3Table> tables = new ArrayList<>();
@@ -261,7 +302,6 @@ public class S3TablesService {
sourceNamespace.getTables().remove(name);
table.setNamespace(targetNamespaceName);
table.setName(targetName);
table.setArn(bucket.getArn() + "/table/" + targetName);
touch(table);
targetNamespace.getTables().put(targetName, table);
persist(bucket, region);
@@ -0,0 +1,37 @@
package io.floci.aws.services.s3tables;
import io.floci.aws.core.common.StoredResourceArns;
import jakarta.enterprise.context.ApplicationScoped;
import jakarta.inject.Inject;
import java.util.List;
import java.util.Optional;
/**
* What IAM asks S3 Tables of the resources a request names: the table a request names by its table bucket's ARN, its
* namespace and its name, whose ARN AWS ends in an id the service mints and Floci in the table's name, so only the
* stored table gives it.
*/
@ApplicationScoped
public class S3TablesStoredResourceArns implements StoredResourceArns {
private final S3TablesService s3TablesService;
@Inject
public S3TablesStoredResourceArns(S3TablesService s3TablesService) {
this.s3TablesService = s3TablesService;
}
@Override
public String namespace() {
return "s3tables";
}
@Override
public Optional<String> find(String type, List<String> names, String region) {
if (!"Table".equals(type) || names.size() != 3) {
return Optional.empty();
}
return s3TablesService.tableArn(names.get(0), names.get(1), names.get(2), region);
}
}
@@ -1034,6 +1034,9 @@
"ListTrafficPolicyInstances",
"TestDNSAnswer"
],
"s3tables": [
"ListTableBuckets"
],
"scheduler": [
"ListScheduleGroups",
"ListSchedules",
+10 -2
View File
@@ -1,7 +1,7 @@
{
"_source": {"generator": "tools/aws/regen_iam_passed_roles.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-13", "note": "make iam-passed-roles-check re-derives every member from botocore; make iam-passed-roles-verify checks every operation against AWS."},
"namespaces": {"application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "budgets": ["budgets"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "s3": ["s3", "s3control"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicecatalog": ["servicecatalog"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "sns": ["sns"], "ssm": ["ssm"], "states": ["stepfunctions"], "swf": ["swf"], "textract": ["textract"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"]},
"notCovered": {"access-analyzer": "REST routes no rule maps yet", "airflow": "REST routes no rule maps yet", "apigateway": "authorized by HTTP method, so no request is checked as one of these operations", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; role passing and iam:PassRole checks are not implemented", "rum": "REST routes no rule maps yet", "s3tables": "REST routes no rule maps yet"},
"namespaces": {"application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "budgets": ["budgets"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicecatalog": ["servicecatalog"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "sns": ["sns"], "ssm": ["ssm"], "states": ["stepfunctions"], "swf": ["swf"], "textract": ["textract"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"]},
"notCovered": {"access-analyzer": "REST routes no rule maps yet", "airflow": "REST routes no rule maps yet", "apigateway": "authorized by HTTP method, so no request is checked as one of these operations", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; role passing and iam:PassRole checks are not implemented", "rum": "REST routes no rule maps yet"},
"otherNamespaces": ["agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "aoss", "appflow", "appmesh", "apprunner", "appstream", "arc-region-switch", "backup-gateway", "backup-search", "bcm-dashboards", "braket", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "codeconnections", "codestar-connections", "cognito-sync", "comprehendmedical", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "elemental-inference", "emr-containers", "entityresolution", "fms", "forecast", "frauddetector", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "kafkaconnect", "kendra", "lex", "lookoutequipment", "m2", "machinelearning", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "medical-imaging", "mobiletargeting", "neptune-graph", "observabilityadmin", "odb", "omics", "opensearch", "osis", "partnercentral", "pcs", "personalize", "profile", "proton", "qbusiness", "repostspace", "resiliencehub", "rolesanywhere", "s3files", "sagemaker-geospatial", "securityagent", "securitylake", "shield", "sms-voice", "snowball", "social-messaging", "ssm-incidents", "ssm-quicksetup", "storagegateway", "supportapp", "synthetics", "timestream", "voiceid", "wellarchitected", "wisdom", "workmail", "workspaces"],
"operations": {
"application-autoscaling:RegisterScalableTarget": {"passedTo": ["application-autoscaling"], "byHand": "the scalable target's role"},
@@ -732,6 +732,14 @@
]},
"s3:CreateAccessGrantsLocation": {"passedTo": [], "notRead": "the request body is XML, which PassedRoles does not read"},
"s3:PutBucketReplication": {"passedTo": ["s3"], "notRead": "the request body is XML, which PassedRoles does not read"},
"s3tables:PutTableBucketReplication": {"passedTo": ["replication.s3tables"], "roles": [
{"member": "configuration.role", "passedTo": "replication.s3tables"}
]},
"s3tables:PutTableReplication": {"passedTo": ["replication.s3tables"], "roles": [
{"member": "configuration.role", "passedTo": "replication.s3tables"}
]},
"s3tables:StartTableMigration": {"passedTo": ["migration.s3tables"], "notRead": "the pinned botocore does not have the operation yet, so its request cannot be read"},
"s3tables:SyncTableMigration": {"passedTo": ["migration.s3tables"], "notRead": "the pinned botocore does not have the operation yet, so its request cannot be read"},
"sagemaker:CreateAIBenchmarkJob": {"passedTo": ["sagemaker"], "roles": [
{"member": "RoleArn", "passedTo": "sagemaker"}
]},
@@ -1,11 +1,11 @@
{
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-15", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."},
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "ram": ["ram"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "route53": ["route53"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "ram": ["ram"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "route53": ["route53"], "s3tables": ["s3tables"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
"handBuilt": ["apigateway", "bedrock", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "logs", "pipes", "resource-groups", "s3", "sns", "sqs", "sts"],
"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", "ec2-instance-connect": "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 rLine truncated
"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", "ec2-instance-connect": "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 rLine truncated
"otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifyuibuilder", "aoss", "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", "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", "emr-containers", "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", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "ssmmessages", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web"],
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudformation": {"changeset": "arn:${Partition}:cloudformation:${Region}:${Account}:changeSet/${ChangeSetName}/${Id}", "generatedtemplate": "arn:${Partition}:cloudformation:${Region}:${Account}:generatedTemplate/${Id}", "resourcescan": "arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}", "stack": "arn:${Partition}:cloudformation:${Region}:${Account}:stack/${StackName}/${Id}", "stackset": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset/${StackSetName}:${Id}", "stackset-target": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset-target/${StackSetTarget}", "type": "arn:${Partition}:cloudformation:${Region}:${Account}:type/resource/${Type}", "typeHook": "arn:${Partition}:cloudformation:${Region}:${Account}:type/hook/${Type}"}, "cloudfront": {"anycast-ip-list": "arn:${Partition}:cloudfront::${Account}:anycast-ip-list/${Id}", "cache-policy": "arn:${Partition}:cloudfront::${Account}:cache-policy/${Id}", "connection-function": "arn:${Partition}:cloudfront::${Account}:connection-function/${Id}", "connection-group": "arn:${Partition}:cloudfront::${Account}:connection-group/${Id}", "continuous-deployment-policy": "arn:${Partition}:cloudfront::${Account}:continuous-deployment-policy/${Id}", "distribution": "arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}", "distribution-tenant": "arn:${Partition}:cloudfront::${Account}:distribution-tenant/${Id}", "field-level-encryption-config": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-config/${Id}", "field-level-encryption-profile": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-profile/${Id}", "function": "arn:${Partition}:cloudfront::${Account}:function/${Name}", "key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}", "origin-access-control": "arn:${Partition}:cloudfront::${Account}:origin-access-control/${Id}", "origin-access-identity": "arn:${Partition}:cloudfront::${Account}:origin-access-identity/${Id}", "origin-request-policy": "arn:${Partition}:cloudfront::${Account}:origin-request-policy/${Id}", "realtime-log-config": "arn:${Partition}:cloudfront::${Account}:realtime-log-config/${Name}", "response-headers-policy": "arn:$Line truncated
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/"], "budgetAction": ["aws:ResourceTag/"]}, "ce": {"anomalymonitor": ["aws:ResourceTag/"], "anomalysubscription": ["aws:ResourceTag/"], "billingview": ["aws:ResourceTag/"], "costcategory": ["aws:ResourceTag/"]}, "cloudformation": {"changeset": ["aws:ResourceTag/"], "stack": ["aws:ResourceTag/"], "stackset": ["aws:ResourceTag/"]}, "cloudfront": {"anycast-ip-list": ["aws:ResourceTag/"], "connection-function": ["aws:ResourceTag/"], "connection-group": ["aws:ResourceTag/"], "distribution": ["aws:ResourceTag/"], "distribution-tenant": ["aws:ResourceTag/"], "function": ["aws:ResourceTag/"], "key-value-store": ["aws:ResourceTag/"], "streaming-distribution": ["aws:ResourceTag/"], "trust-store": ["aws:ResourceTag/"], "vpcorigin": ["aws:ResourceTag/"]}, "cloudtrail": {"channel": ["aws:ResourceTag/"], "dashboard": ["aws:ResourceTag/"], "eventdatastore": ["aws:ResourceTag/"], "trail": ["aws:ResourceTag/"]}, "codebuild": {"project": ["aws:ResourceTag/"], "report-group": ["aws:ResourceTag/"]}, "codepipeline": {"action": ["aws:ResourceTag/"], "actiontype": ["aws:ResourceTag/"], "pipeline": ["aws:ResourceTag/"], "stage": ["aws:ResourceTag/"], "webhook": ["aws:ResourceTag/"]}, "cognito-identity": {"identitypool": ["aws:ResourceTag/"]}, "cognito-idp": {"userpool": ["aws:ResourceTag/"]}, "controltower": {"EnabledBaseline": ["aws:ResourceTag/"], "EnabledControl": ["aws:ResourceTag/"], "LandingZone": ["aws:ResourceTag/"]}, "datasync": {"agent": ["aws:ResourceTag/"], "discoveryjob": ["aws:ResourceTag/"], "location": ["aws:ResourceTag/"], "storagesystem": ["aws:ResourceTag/"], "task": ["aws:ResourceTag/"], "taskexecution": ["aws:ResourceTag/"]}, "dynamodb": {"index": ["aws:ResourceTag/"], "stream": ["aws:ResourceTag/"], "table": ["aws:ResourceTag/"]}, "ec2": {"application-status-check": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-block": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-manager-data-export": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-cancellation-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-modification-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "carrier-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "client-vpn-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "coip-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "customer-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "declarative-policies-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dedicated-host": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dhcp-options": ["aws:ResourceTag/", "ec2:ResourceTag/"], "egress-only-internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-gpu": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-ip": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-instance-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fpga-image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "host-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image-usage-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-snapshot-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-connect-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-event-window": ["aws:ResourceTag/", "ec2:ResourceTag/"], "internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-external-resource-verification-token": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-internet-registry-association": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-policy": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool-allocation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver-target": ["aws:ResourceTag/", "ec2:Line truncated
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudformation": {"changeset": "arn:${Partition}:cloudformation:${Region}:${Account}:changeSet/${ChangeSetName}/${Id}", "generatedtemplate": "arn:${Partition}:cloudformation:${Region}:${Account}:generatedTemplate/${Id}", "resourcescan": "arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}", "stack": "arn:${Partition}:cloudformation:${Region}:${Account}:stack/${StackName}/${Id}", "stackset": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset/${StackSetName}:${Id}", "stackset-target": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset-target/${StackSetTarget}", "type": "arn:${Partition}:cloudformation:${Region}:${Account}:type/resource/${Type}", "typeHook": "arn:${Partition}:cloudformation:${Region}:${Account}:type/hook/${Type}"}, "cloudfront": {"anycast-ip-list": "arn:${Partition}:cloudfront::${Account}:anycast-ip-list/${Id}", "cache-policy": "arn:${Partition}:cloudfront::${Account}:cache-policy/${Id}", "connection-function": "arn:${Partition}:cloudfront::${Account}:connection-function/${Id}", "connection-group": "arn:${Partition}:cloudfront::${Account}:connection-group/${Id}", "continuous-deployment-policy": "arn:${Partition}:cloudfront::${Account}:continuous-deployment-policy/${Id}", "distribution": "arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}", "distribution-tenant": "arn:${Partition}:cloudfront::${Account}:distribution-tenant/${Id}", "field-level-encryption-config": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-config/${Id}", "field-level-encryption-profile": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-profile/${Id}", "function": "arn:${Partition}:cloudfront::${Account}:function/${Name}", "key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}", "origin-access-control": "arn:${Partition}:cloudfront::${Account}:origin-access-control/${Id}", "origin-access-identity": "arn:${Partition}:cloudfront::${Account}:origin-access-identity/${Id}", "origin-request-policy": "arn:${Partition}:cloudfront::${Account}:origin-request-policy/${Id}", "realtime-log-config": "arn:${Partition}:cloudfront::${Account}:realtime-log-config/${Name}", "response-headers-policy": "arn:$Line truncated
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/"], "budgetAction": ["aws:ResourceTag/"]}, "ce": {"anomalymonitor": ["aws:ResourceTag/"], "anomalysubscription": ["aws:ResourceTag/"], "billingview": ["aws:ResourceTag/"], "costcategory": ["aws:ResourceTag/"]}, "cloudformation": {"changeset": ["aws:ResourceTag/"], "stack": ["aws:ResourceTag/"], "stackset": ["aws:ResourceTag/"]}, "cloudfront": {"anycast-ip-list": ["aws:ResourceTag/"], "connection-function": ["aws:ResourceTag/"], "connection-group": ["aws:ResourceTag/"], "distribution": ["aws:ResourceTag/"], "distribution-tenant": ["aws:ResourceTag/"], "function": ["aws:ResourceTag/"], "key-value-store": ["aws:ResourceTag/"], "streaming-distribution": ["aws:ResourceTag/"], "trust-store": ["aws:ResourceTag/"], "vpcorigin": ["aws:ResourceTag/"]}, "cloudtrail": {"channel": ["aws:ResourceTag/"], "dashboard": ["aws:ResourceTag/"], "eventdatastore": ["aws:ResourceTag/"], "trail": ["aws:ResourceTag/"]}, "codebuild": {"project": ["aws:ResourceTag/"], "report-group": ["aws:ResourceTag/"]}, "codepipeline": {"action": ["aws:ResourceTag/"], "actiontype": ["aws:ResourceTag/"], "pipeline": ["aws:ResourceTag/"], "stage": ["aws:ResourceTag/"], "webhook": ["aws:ResourceTag/"]}, "cognito-identity": {"identitypool": ["aws:ResourceTag/"]}, "cognito-idp": {"userpool": ["aws:ResourceTag/"]}, "controltower": {"EnabledBaseline": ["aws:ResourceTag/"], "EnabledControl": ["aws:ResourceTag/"], "LandingZone": ["aws:ResourceTag/"]}, "datasync": {"agent": ["aws:ResourceTag/"], "discoveryjob": ["aws:ResourceTag/"], "location": ["aws:ResourceTag/"], "storagesystem": ["aws:ResourceTag/"], "task": ["aws:ResourceTag/"], "taskexecution": ["aws:ResourceTag/"]}, "dynamodb": {"index": ["aws:ResourceTag/"], "stream": ["aws:ResourceTag/"], "table": ["aws:ResourceTag/"]}, "ec2": {"application-status-check": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-block": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-manager-data-export": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-cancellation-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-modification-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "carrier-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "client-vpn-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "coip-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "customer-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "declarative-policies-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dedicated-host": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dhcp-options": ["aws:ResourceTag/", "ec2:ResourceTag/"], "egress-only-internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-gpu": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-ip": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-instance-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fpga-image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "host-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image-usage-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-snapshot-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-connect-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-event-window": ["aws:ResourceTag/", "ec2:ResourceTag/"], "internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-external-resource-verification-token": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-internet-registry-association": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-policy": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool-allocation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver-target": ["aws:ResourceTag/", "ec2:Line truncated
"resourceKeys": {"ec2": {"capacity-reservation": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:CapacityReservationFleet": {"member": "CapacityReservationFleetId", "arn": "capacity-reservation-fleet"}, "ec2:EbsOptimized": {"member": "EbsOptimized"}, "ec2:EndDateType": {"member": "EndDateType"}, "ec2:EphemeralStorage": {"member": "EphemeralStorage"}, "ec2:InstanceMatchCriteria": {"member": "InstanceMatchCriteria"}, "ec2:InstanceType": {"member": "InstanceType"}, "ec2:Tenancy": {"member": "Tenancy"}}, "carrier-gateway": {"ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "dhcp-options": {"ec2:DhcpOptionsID": {"member": "DhcpOptionsId"}}, "fpga-image": {"ec2:Owner": {"member": "OwnerId"}, "ec2:Public": {"member": "Public"}}, "image": {"ec2:ImageID": {"member": "ImageId"}, "ec2:ImageType": {"member": "ImageType"}, "ec2:Owner": {"member": "OwnerId"}, "ec2:Public": {"member": "Public"}, "ec2:RootDeviceType": {"member": "RootDeviceType"}}, "instance": {"ec2:EbsOptimized": {"member": "EbsOptimized"}, "ec2:InstanceID": {"member": "InstanceId"}, "ec2:InstanceType": {"member": "InstanceType"}, "ec2:RootDeviceType": {"member": "RootDeviceType"}}, "internet-gateway": {"ec2:InternetGatewayID": {"member": "InternetGatewayId"}}, "launch-template": {"ec2:LaunchTemplate": {"member": "LaunchTemplateId", "arn": "launch-template"}}, "network-acl": {"ec2:NetworkAclID": {"member": "NetworkAclId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "network-interface": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:NetworkInterfaceID": {"member": "NetworkInterfaceId"}, "ec2:Subnet": {"member": "SubnetId", "arn": "subnet"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "reserved-instances": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:InstanceType": {"member": "InstanceType"}}, "route-table": {"ec2:RouteTableID": {"member": "RouteTableId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "secondary-interface": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}}, "security-group": {"ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "snapshot": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:Encrypted": {"member": "Encrypted"}, "ec2:Owner": {"member": "OwnerId"}, "ec2:SnapshotID": {"member": "SnapshotId"}, "ec2:VolumeSize": {"member": "VolumeSize"}}, "subnet": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:SubnetID": {"member": "SubnetId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "transit-gateway": {"ec2:transitGatewayId": {"member": "TransitGatewayId"}}, "transit-gateway-attachment": {"ec2:transitGatewayAttachmentId": {"member": "TransitGatewayAttachmentId"}}, "transit-gateway-connect-peer": {"ec2:transitGatewayConnectPeerId": {"member": "TransitGatewayConnectPeerId"}}, "transit-gateway-metering-policy": {"ec2:transitGatewayMeteringPolicyId": {"member": "TransitGatewayMeteringPolicyId"}}, "transit-gateway-multicast-domain": {"ec2:transitGatewayMulticastDomainId": {"member": "TransitGatewayMulticastDomainId"}}, "transit-gateway-policy-table": {"ec2:transitGatewayPolicyTableId": {"member": "TransitGatewayPolicyTableId"}}, "transit-gateway-route-table": {"ec2:transitGatewayRouteTableId": {"member": "TransitGatewayRouteTableId"}}, "transit-gateway-route-table-announcement": {"ec2:transitGatewayRouteTableAnnouncementId": {"member": "TransitGatewayRouteTableAnnouncementId"}}, "volume": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:Encrypted": {"member": "Encrypted"}, "ec2:KmsKeyId": {"member": "KmsKeyId"}, "ec2:VolumeID": {"member": "VolumeId"}, "ec2:VolumeInitializationRate": {"member": "VolumeInitializationRate"}, "ec2:VolumeType": {"member": "VolumeType"}}, "vpc": {"ec2:VpcID": {"member": "VpcId"}}, "vpc-peering-connection": {"ec2:VpcPeeringConnectionID": {"member": "VpcPeeringConnectionId"}}}},
"unqualified": {"ssm": ["parameter"], "states": ["statemachine"]},
"mintedIds": {"events": ["api-destination", "connection"]},
@@ -71,9 +71,9 @@
"account:StartPrimaryEmailUpdate": {"action": "account:StartPrimaryEmailUpdate", "types": ["accountInOrganization"], "resources": [{"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]},
"account:VerifyPhoneNumber": {"action": "account:VerifyPhoneNumber", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]},
"acm:AddTagsToCertificate": {"action": "acm:AddTagsToCertificate", "types": ["certificate"], "resources": [{"types": ["certificate"], "arn": "CertificateArn"}]},
"acm:CreateAcmeDomainValidation": {"action": "acm:CreateAcmeDomainValidation", "types": ["acme-endpoint"], "resources": [{"types": ["acme-endpoint"], "arn": "AcmeEndpointArn"}]},
"acm:CreateAcmeDomainValidation": {"action": "acm:CreateAcmeDomainValidation", "types": ["acme-endpoint"], "resources": [{"types": ["acme-endpoint"], "arn": "AcmeEndpointArn"}], "creates": [{"type": "acme-domain-validation", "parent": "acme-endpoint", "arn": "AcmeEndpointArn"}]},
"acm:CreateAcmeEndpoint": {"action": "acm:CreateAcmeEndpoint", "types": [], "resources": [], "makes": [{"type": "acme-endpoint", "fill": {}}]},
"acm:CreateAcmeExternalAccountBinding": {"action": "acm:CreateAcmeExternalAccountBinding", "types": ["acme-endpoint"], "resources": [{"types": ["acme-endpoint"], "arn": "AcmeEndpointArn"}]},
"acm:CreateAcmeExternalAccountBinding": {"action": "acm:CreateAcmeExternalAccountBinding", "types": ["acme-endpoint"], "resources": [{"types": ["acme-endpoint"], "arn": "AcmeEndpointArn"}], "creates": [{"type": "acme-external-account-binding", "parent": "acme-endpoint", "arn": "AcmeEndpointArn"}]},
"acm:DeleteAcmeDomainValidation": {"action": "acm:DeleteAcmeDomainValidation", "types": ["acme-domain-validation"], "resources": [{"types": ["acme-domain-validation"], "arn": "AcmeDomainValidationArn"}]},
"acm:DeleteAcmeEndpoint": {"action": "acm:DeleteAcmeEndpoint", "types": ["acme-endpoint"], "resources": [{"types": ["acme-endpoint"], "arn": "AcmeEndpointArn"}]},
"acm:DeleteAcmeExternalAccountBinding": {"action": "acm:DeleteAcmeExternalAccountBinding", "types": ["acme-external-account-binding"], "resources": [{"types": ["acme-external-account-binding"], "arn": "AcmeExternalAccountBindingArn"}]},
@@ -997,7 +997,7 @@
"datasync:ListTagsForResource": {"action": "datasync:ListTagsForResource", "types": ["agent", "discoveryjob", "location", "storagesystem", "task", "taskexecution"], "resources": [{"types": ["agent", "discoveryjob", "location", "storagesystem", "task", "taskexecution"], "arn": "ResourceArn"}]},
"datasync:ListTaskExecutions": {"action": "datasync:ListTaskExecutions", "types": [], "resources": []},
"datasync:ListTasks": {"action": "datasync:ListTasks", "types": [], "resources": []},
"datasync:StartTaskExecution": {"action": "datasync:StartTaskExecution", "types": ["task"], "resources": [{"types": ["task"], "arn": "TaskArn"}]},
"datasync:StartTaskExecution": {"action": "datasync:StartTaskExecution", "types": ["task"], "resources": [{"types": ["task"], "arn": "TaskArn"}], "creates": [{"type": "taskexecution", "parent": "task", "arn": "TaskArn"}]},
"datasync:TagResource": {"action": "datasync:TagResource", "types": ["agent", "discoveryjob", "location", "storagesystem", "task", "taskexecution"], "resources": [{"types": ["agent", "discoveryjob", "location", "storagesystem", "task", "taskexecution"], "arn": "ResourceArn"}]},
"datasync:UntagResource": {"action": "datasync:UntagResource", "types": ["agent", "discoveryjob", "location", "storagesystem", "task", "taskexecution"], "resources": [{"types": ["agent", "discoveryjob", "location", "storagesystem", "task", "taskexecution"], "arn": "ResourceArn"}]},
"datasync:UpdateAgent": {"action": "datasync:UpdateAgent", "types": ["agent"], "resources": [{"types": ["agent"], "arn": "AgentArn"}]},
@@ -2383,10 +2383,10 @@
"globalaccelerator:CreateAccelerator": {"action": "globalaccelerator:CreateAccelerator", "types": [], "resources": [], "makes": [{"type": "accelerator", "fill": {}}]},
"globalaccelerator:CreateCrossAccountAttachment": {"action": "globalaccelerator:CreateCrossAccountAttachment", "types": [], "resources": [], "makes": [{"type": "attachment", "fill": {}}]},
"globalaccelerator:CreateCustomRoutingAccelerator": {"action": "globalaccelerator:CreateCustomRoutingAccelerator", "types": [], "resources": [], "makes": [{"type": "accelerator", "fill": {}}]},
"globalaccelerator:CreateCustomRoutingEndpointGroup": {"action": "globalaccelerator:CreateCustomRoutingEndpointGroup", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
"globalaccelerator:CreateCustomRoutingListener": {"action": "globalaccelerator:CreateCustomRoutingListener", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
"globalaccelerator:CreateEndpointGroup": {"action": "globalaccelerator:CreateEndpointGroup", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "EndpointConfigurations[].AttachmentArn"}, {"types": ["listener"], "arn": "ListenerArn"}]},
"globalaccelerator:CreateListener": {"action": "globalaccelerator:CreateListener", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
"globalaccelerator:CreateCustomRoutingEndpointGroup": {"action": "globalaccelerator:CreateCustomRoutingEndpointGroup", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}], "creates": [{"type": "endpointgroup", "parent": "listener", "arn": "ListenerArn"}]},
"globalaccelerator:CreateCustomRoutingListener": {"action": "globalaccelerator:CreateCustomRoutingListener", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}], "creates": [{"type": "listener", "parent": "accelerator", "arn": "AcceleratorArn"}]},
"globalaccelerator:CreateEndpointGroup": {"action": "globalaccelerator:CreateEndpointGroup", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "EndpointConfigurations[].AttachmentArn"}, {"types": ["listener"], "arn": "ListenerArn"}], "creates": [{"type": "endpointgroup", "parent": "listener", "arn": "ListenerArn"}]},
"globalaccelerator:CreateListener": {"action": "globalaccelerator:CreateListener", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}], "creates": [{"type": "listener", "parent": "accelerator", "arn": "AcceleratorArn"}]},
"globalaccelerator:DeleteAccelerator": {"action": "globalaccelerator:DeleteAccelerator", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
"globalaccelerator:DeleteCrossAccountAttachment": {"action": "globalaccelerator:DeleteCrossAccountAttachment", "types": ["attachment"], "resources": [{"types": ["attachment"], "arn": "AttachmentArn"}]},
"globalaccelerator:DeleteCustomRoutingAccelerator": {"action": "globalaccelerator:DeleteCustomRoutingAccelerator", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
@@ -3707,6 +3707,63 @@
"route53:UpdateHostedZoneFeatures": {"action": "route53:UpdateHostedZoneFeatures", "types": ["hostedzone"], "resources": [{"type": "hostedzone", "fill": {"Id": "HostedZoneId"}}], "located": {"HostedZoneId": "{Id}"}},
"route53:UpdateTrafficPolicyComment": {"action": "route53:UpdateTrafficPolicyComment", "types": ["trafficpolicy"], "resources": [{"type": "trafficpolicy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
"route53:UpdateTrafficPolicyInstance": {"action": "route53:UpdateTrafficPolicyInstance", "types": ["trafficpolicyinstance"], "resources": [{"type": "trafficpolicyinstance", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
"s3tables:CompleteTableMigration": {"action": "s3tables:CompleteTableMigration", "types": ["Table"], "resources": []},
"s3tables:CreateNamespace": {"action": "s3tables:CreateNamespace", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:CreateTable": {"action": "s3tables:CreateTable", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "creates": [{"type": "Table", "parent": "TableBucket", "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:CreateTableBucket": {"action": "s3tables:CreateTableBucket", "types": ["TableBucket"], "resources": [{"type": "TableBucket", "fill": {"TableBucketName": "name"}}]},
"s3tables:DeleteNamespace": {"action": "s3tables:DeleteNamespace", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:DeleteTable": {"action": "s3tables:DeleteTable", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:DeleteTableBucket": {"action": "s3tables:DeleteTableBucket", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:DeleteTableBucketEncryption": {"action": "s3tables:DeleteTableBucketEncryption", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:DeleteTableBucketMetricsConfiguration": {"action": "s3tables:DeleteTableBucketMetricsConfiguration", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:DeleteTableBucketPolicy": {"action": "s3tables:DeleteTableBucketPolicy", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:DeleteTableBucketReplication": {"action": "s3tables:DeleteTableBucketReplication", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "?tableBucketARN"}},
"s3tables:DeleteTablePolicy": {"action": "s3tables:DeleteTablePolicy", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:DeleteTableReplication": {"action": "s3tables:DeleteTableReplication", "types": ["Table"], "resources": [{"types": ["Table"], "arn": "tableArn"}], "located": {"tableArn": "?tableArn"}},
"s3tables:GetNamespace": {"action": "s3tables:GetNamespace", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTable": {"action": "s3tables:GetTable", "types": ["Table"], "resources": [{"types": ["Table"], "arn": "tableArn"}, {"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"], "when": {"tableArn": [null]}}], "located": {"name": "?name", "namespace": "?namespace", "tableArn": "?tableArn", "tableBucketARN": "?tableBucketARN"}},
"s3tables:GetTableBucket": {"action": "s3tables:GetTableBucket", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableBucketEncryption": {"action": "s3tables:GetTableBucketEncryption", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableBucketLogging": {"action": "s3tables:GetTableBucketLogging", "types": ["TableBucket"], "resources": []},
"s3tables:GetTableBucketMaintenanceConfiguration": {"action": "s3tables:GetTableBucketMaintenanceConfiguration", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableBucketMetricsConfiguration": {"action": "s3tables:GetTableBucketMetricsConfiguration", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableBucketPolicy": {"action": "s3tables:GetTableBucketPolicy", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableBucketReplication": {"action": "s3tables:GetTableBucketReplication", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "?tableBucketARN"}},
"s3tables:GetTableBucketStorageClass": {"action": "s3tables:GetTableBucketStorageClass", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableEncryption": {"action": "s3tables:GetTableEncryption", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableMaintenanceConfiguration": {"action": "s3tables:GetTableMaintenanceConfiguration", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableMaintenanceJobStatus": {"action": "s3tables:GetTableMaintenanceJobStatus", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableMetadataLocation": {"action": "s3tables:GetTableMetadataLocation", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableMigration": {"action": "s3tables:GetTableMigration", "types": ["Table"], "resources": []},
"s3tables:GetTablePolicy": {"action": "s3tables:GetTablePolicy", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:GetTableRecordExpirationConfiguration": {"action": "s3tables:GetTableRecordExpirationConfiguration", "types": ["Table"], "resources": [{"types": ["Table"], "arn": "tableArn"}], "located": {"tableArn": "?tableArn"}},
"s3tables:GetTableRecordExpirationJobStatus": {"action": "s3tables:GetTableRecordExpirationJobStatus", "types": ["Table"], "resources": [{"types": ["Table"], "arn": "tableArn"}], "located": {"tableArn": "?tableArn"}},
"s3tables:GetTableReplication": {"action": "s3tables:GetTableReplication", "types": ["Table"], "resources": [{"types": ["Table"], "arn": "tableArn"}], "located": {"tableArn": "?tableArn"}},
"s3tables:GetTableReplicationStatus": {"action": "s3tables:GetTableReplicationStatus", "types": ["Table"], "resources": [{"types": ["Table"], "arn": "tableArn"}], "located": {"tableArn": "?tableArn"}},
"s3tables:GetTableStorageClass": {"action": "s3tables:GetTableStorageClass", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:ListNamespaces": {"action": "s3tables:ListNamespaces", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:ListTableBuckets": {"action": "s3tables:ListTableBuckets", "types": [], "resources": []},
"s3tables:ListTableMigrations": {"action": "s3tables:ListTableMigrations", "types": ["Table", "TableBucket"], "resources": []},
"s3tables:ListTables": {"action": "s3tables:ListTables", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:ListTagsForResource": {"action": "s3tables:ListTagsForResource", "types": ["Table", "TableBucket"], "resources": [{"types": ["Table", "TableBucket"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}},
"s3tables:PutTableBucketEncryption": {"action": "s3tables:PutTableBucketEncryption", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:PutTableBucketLogging": {"action": "s3tables:PutTableBucketLogging", "types": ["TableBucket"], "resources": []},
"s3tables:PutTableBucketMaintenanceConfiguration": {"action": "s3tables:PutTableBucketMaintenanceConfiguration", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:PutTableBucketMetricsConfiguration": {"action": "s3tables:PutTableBucketMetricsConfiguration", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:PutTableBucketPolicy": {"action": "s3tables:PutTableBucketPolicy", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:PutTableBucketReplication": {"action": "s3tables:PutTableBucketReplication", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "?tableBucketARN"}},
"s3tables:PutTableBucketStorageClass": {"action": "s3tables:PutTableBucketStorageClass", "types": ["TableBucket"], "resources": [{"types": ["TableBucket"], "arn": "tableBucketARN"}], "located": {"tableBucketARN": "{tableBucketARN}"}},
"s3tables:PutTableMaintenanceConfiguration": {"action": "s3tables:PutTableMaintenanceConfiguration", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}", "type": "{type}"}},
"s3tables:PutTablePolicy": {"action": "s3tables:PutTablePolicy", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:PutTableRecordExpirationConfiguration": {"action": "s3tables:PutTableRecordExpirationConfiguration", "types": ["Table"], "resources": [{"types": ["Table"], "arn": "tableArn"}], "located": {"tableArn": "?tableArn"}},
"s3tables:PutTableReplication": {"action": "s3tables:PutTableReplication", "types": ["Table"], "resources": [{"types": ["Table"], "arn": "tableArn"}], "located": {"tableArn": "?tableArn"}},
"s3tables:RenameTable": {"action": "s3tables:RenameTable", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:StartTableMigration": {"action": "s3tables:StartTableMigration", "types": ["TableBucket"], "resources": []},
"s3tables:SyncTableMigration": {"action": "s3tables:SyncTableMigration", "types": ["Table"], "resources": []},
"s3tables:TagResource": {"action": "s3tables:TagResource", "types": ["Table", "TableBucket"], "resources": [{"types": ["Table", "TableBucket"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}},
"s3tables:UntagResource": {"action": "s3tables:UntagResource", "types": ["Table", "TableBucket"], "resources": [{"types": ["Table", "TableBucket"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}},
"s3tables:UpdateTableMetadataLocation": {"action": "s3tables:UpdateTableMetadataLocation", "types": ["Table"], "resources": [{"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}], "located": {"name": "{name}", "namespace": "{namespace}", "tableBucketARN": "{tableBucketARN}"}},
"s3tables:UpdateTableMigration": {"action": "s3tables:UpdateTableMigration", "types": ["Table"], "resources": []},
"scheduler:CreateSchedule": {"action": "scheduler:CreateSchedule", "types": ["schedule"], "resources": [{"types": ["schedule"], "arn": "Target.Arn"}, {"type": "schedule", "fill": {"GroupName": "GroupName", "ScheduleName": "Name"}, "defaults": {"GroupName": "schedule-group"}}], "located": {"Name": "{Name}"}},
"scheduler:CreateScheduleGroup": {"action": "scheduler:CreateScheduleGroup", "types": ["schedule-group"], "resources": [{"type": "schedule-group", "fill": {"GroupName": "Name"}}], "located": {"Name": "{Name}"}},
"scheduler:DeleteSchedule": {"action": "scheduler:DeleteSchedule", "types": ["schedule"], "resources": [{"type": "schedule", "fill": {"GroupName": "GroupName", "ScheduleName": "Name"}, "defaults": {"GroupName": "schedule-group"}}], "located": {"GroupName": "?groupName", "Name": "{Name}"}},
@@ -1,7 +1,7 @@
{
"_source": {"generator": "tools/aws/regen_iam_tag_on_create.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-13", "note": "make iam-tag-on-create-check re-derives every member from botocore; make iam-tag-on-create-verify checks every operation against AWS."},
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "s3tables": "REST routes no rule maps yet", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "s3tables": ["s3tables"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
"otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "applicationinsights", "appmesh", "apprunner", "appstream", "arc-region-switch", "artifact", "auditmanager", "b2bi", "backup-gateway", "backup-search", "bcm-dashboards", "billing", "billingconductor", "braket", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "connect-campaigns", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "directconnect", "docdb-elastic", "drs", "ds", "ebs", "ecr-public", "elemental-inference", "emr-containers", "entityresolution", "evs", "fms", "forecast", "frauddetector", "fsx", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "ivs", "ivschat", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "m2", "managedblockchain", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgn", "migrationhub-orchestrator", "mobiletargeting", "mpa", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "notifications", "notifications-contacts", "observabilityadmin", "odb", "omics", "opensearch", "osis", "outposts", "partnercentral", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "profile", "proton", "qbusiness", "rbin", "refactor-spaces", "repostspace", "resiliencehub", "rolesanywhere", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3files", "sagemaker-geospatial", "savingsplans", "schemas", "scn", "security-ir", "securityagent", "securitylake", "shield", "sms-voice", "snow-device-management", "social-messaging", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "voiceid", "vpc-lattice", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workspaces", "workspaces-instances", "workspaces-web"],
"resourceArns": {"ec2": {"application-status-check": "arn:${Partition}:ec2:${Region}:${Account}:application-status-check/*", "capacity-block": "arn:${Partition}:ec2:${Region}:${Account}:capacity-block/*", "capacity-manager-data-export": "arn:${Partition}:ec2:${Region}:${Account}:capacity-manager-data-export/*", "capacity-reservation": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/*", "capacity-reservation-cancellation-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-cancellation-quote/*", "capacity-reservation-fleet": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-fleet/*", "capacity-reservation-modification-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-modification-quote/*", "carrier-gateway": "arn:${Partition}:ec2:${Region}:${Account}:carrier-gateway/*", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/*", "client-vpn-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:client-vpn-endpoint/*", "coip-pool": "arn:${Partition}:ec2:${Region}:${Account}:coip-pool/*", "customer-gateway": "arn:${Partition}:ec2:${Region}:${Account}:customer-gateway/*", "declarative-policies-report": "arn:${Partition}:ec2:${Region}:${Account}:declarative-policies-report/*", "dedicated-host": "arn:${Partition}:ec2:${Region}:${Account}:dedicated-host/*", "dhcp-options": "arn:${Partition}:ec2:${Region}:${Account}:dhcp-options/*", "egress-only-internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:egress-only-internet-gateway/*", "elastic-gpu": "arn:${Partition}:ec2:${Region}:${Account}:elastic-gpu/*", "elastic-inference": "arn:${Partition}:elastic-inference:${Region}:${Account}:elastic-inference-accelerator/*", "elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/*", "export-image-task": "arn:${Partition}:ec2:${Region}:${Account}:export-image-task/*", "export-instance-task": "arn:${Partition}:ec2:${Region}:${Account}:export-instance-task/*", "fleet": "arn:${Partition}:ec2:${Region}:${Account}:fleet/*", "fpga-image": "arn:${Partition}:ec2:${Region}:${Account}:fpga-image/*", "group": "arn:${Partition}:resource-groups:${Region}:${Account}:group/*", "host-reservation": "arn:${Partition}:ec2:${Region}:${Account}:host-reservation/*", "image": "arn:${Partition}:ec2:${Region}::image/*", "image-usage-report": "arn:${Partition}:ec2:${Region}:${Account}:image-usage-report/*", "import-image-task": "arn:${Partition}:ec2:${Region}:${Account}:import-image-task/*", "import-snapshot-task": "arn:${Partition}:ec2:${Region}:${Account}:import-snapshot-task/*", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/*", "instance-connect-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:instance-connect-endpoint/*", "instance-event-window": "arn:${Partition}:ec2:${Region}:${Account}:instance-event-window/*", "internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:internet-gateway/*", "ipam": "arn:${Partition}:ec2::${Account}:ipam/*", "ipam-external-resource-verification-token": "arn:${Partition}:ec2::${Account}:ipam-external-resource-verification-token/*", "ipam-internet-registry-association": "arn:${Partition}:ec2::${Account}:ipam-internet-registry-association/*", "ipam-policy": "arn:${Partition}:ec2::${Account}:ipam-policy/*", "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/*", "ipam-pool-allocation": "arn:${Partition}:ec2:${Region}:${Account}:ipam-pool-allocation/*", "ipam-prefix-list-resolver": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver/*", "ipam-prefix-list-resolver-target": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver-target/*", "ipam-resource-discovery": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery/*", "ipam-resource-discovery-association": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery-association/*", "ipam-scope": "arn:${Partition}:ec2::${Account}:ipam-scope/*", "ipv4pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv4pool-ec2/*", "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/*", "key-pair": "arn:${Partition}:ec2:${Region}:${Account}:key-pair/*", "launch-template": "arn:${Partition}:ec2:${Region}:${Account}:launch-template/*", "license-configuration": "arn:${Partition}:license-manager:${Region}:${Account}:license-configuration:*", "local-gateway": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway/*", "local-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table/*", "local-gateway-route-table-virtual-interface-group-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-virtual-interface-group-association/*", "local-gateway-route-table-vpc-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-vpc-association/*", "local-gateway-virtual-interface": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface/*", "local-gateway-virtual-interface-group": "arn:${Partition}:ec2:${Region}:${Account}:Line truncated
"operations": {
@@ -486,6 +486,8 @@
"route53resolver:CreateResolverEndpoint": {"tagging": ["route53resolver:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
"route53resolver:CreateResolverQueryLogConfig": {"tagging": ["route53resolver:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
"route53resolver:CreateResolverRule": {"tagging": ["route53resolver:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
"s3tables:CreateTable": {"tagging": ["s3tables:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"s3tables:CreateTableBucket": {"tagging": ["s3tables:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
"sagemaker:CreateAIBenchmarkJob": {"tagging": ["sagemaker:AddTags"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
"sagemaker:CreateAIRecommendationJob": {"tagging": ["sagemaker:AddTags"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
"sagemaker:CreateAIWorkloadConfig": {"tagging": ["sagemaker:AddTags"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
+56
View File
@@ -2144,6 +2144,62 @@
"UpdateStorageLensGroup": {"method": "PUT", "requestUri": "/v20180820/storagelensgroup/{name}"}
}
},
"s3tables": {
"credentialScope": "s3tables",
"apiVersion": "2018-05-10",
"accessDeniedStatus": 403,
"operations": {
"CreateNamespace": {"method": "PUT", "requestUri": "/namespaces/{tableBucketARN}"},
"CreateTable": {"method": "PUT", "requestUri": "/tables/{tableBucketARN}/{namespace}"},
"CreateTableBucket": {"method": "PUT", "requestUri": "/buckets"},
"DeleteNamespace": {"method": "DELETE", "requestUri": "/namespaces/{tableBucketARN}/{namespace}"},
"DeleteTable": {"method": "DELETE", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}"},
"DeleteTableBucket": {"method": "DELETE", "requestUri": "/buckets/{tableBucketARN}"},
"DeleteTableBucketEncryption": {"method": "DELETE", "requestUri": "/buckets/{tableBucketARN}/encryption"},
"DeleteTableBucketMetricsConfiguration": {"method": "DELETE", "requestUri": "/buckets/{tableBucketARN}/metrics"},
"DeleteTableBucketPolicy": {"method": "DELETE", "requestUri": "/buckets/{tableBucketARN}/policy"},
"DeleteTableBucketReplication": {"method": "DELETE", "requestUri": "/table-bucket-replication"},
"DeleteTablePolicy": {"method": "DELETE", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/policy"},
"DeleteTableReplication": {"method": "DELETE", "requestUri": "/table-replication"},
"GetNamespace": {"method": "GET", "requestUri": "/namespaces/{tableBucketARN}/{namespace}"},
"GetTable": {"method": "GET", "requestUri": "/get-table"},
"GetTableBucket": {"method": "GET", "requestUri": "/buckets/{tableBucketARN}"},
"GetTableBucketEncryption": {"method": "GET", "requestUri": "/buckets/{tableBucketARN}/encryption"},
"GetTableBucketMaintenanceConfiguration": {"method": "GET", "requestUri": "/buckets/{tableBucketARN}/maintenance"},
"GetTableBucketMetricsConfiguration": {"method": "GET", "requestUri": "/buckets/{tableBucketARN}/metrics"},
"GetTableBucketPolicy": {"method": "GET", "requestUri": "/buckets/{tableBucketARN}/policy"},
"GetTableBucketReplication": {"method": "GET", "requestUri": "/table-bucket-replication"},
"GetTableBucketStorageClass": {"method": "GET", "requestUri": "/buckets/{tableBucketARN}/storage-class"},
"GetTableEncryption": {"method": "GET", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/encryption"},
"GetTableMaintenanceConfiguration": {"method": "GET", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/maintenance"},
"GetTableMaintenanceJobStatus": {"method": "GET", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/maintenance-job-status"},
"GetTableMetadataLocation": {"method": "GET", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/metadata-location"},
"GetTablePolicy": {"method": "GET", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/policy"},
"GetTableRecordExpirationConfiguration": {"method": "GET", "requestUri": "/table-record-expiration"},
"GetTableRecordExpirationJobStatus": {"method": "GET", "requestUri": "/table-record-expiration-job-status"},
"GetTableReplication": {"method": "GET", "requestUri": "/table-replication"},
"GetTableReplicationStatus": {"method": "GET", "requestUri": "/replication-status"},
"GetTableStorageClass": {"method": "GET", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/storage-class"},
"ListNamespaces": {"method": "GET", "requestUri": "/namespaces/{tableBucketARN}"},
"ListTableBuckets": {"method": "GET", "requestUri": "/buckets"},
"ListTables": {"method": "GET", "requestUri": "/tables/{tableBucketARN}"},
"ListTagsForResource": {"method": "GET", "requestUri": "/tag/{resourceArn}"},
"PutTableBucketEncryption": {"method": "PUT", "requestUri": "/buckets/{tableBucketARN}/encryption"},
"PutTableBucketMaintenanceConfiguration": {"method": "PUT", "requestUri": "/buckets/{tableBucketARN}/maintenance/{type}"},
"PutTableBucketMetricsConfiguration": {"method": "PUT", "requestUri": "/buckets/{tableBucketARN}/metrics"},
"PutTableBucketPolicy": {"method": "PUT", "requestUri": "/buckets/{tableBucketARN}/policy"},
"PutTableBucketReplication": {"method": "PUT", "requestUri": "/table-bucket-replication"},
"PutTableBucketStorageClass": {"method": "PUT", "requestUri": "/buckets/{tableBucketARN}/storage-class"},
"PutTableMaintenanceConfiguration": {"method": "PUT", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/maintenance/{type}"},
"PutTablePolicy": {"method": "PUT", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/policy"},
"PutTableRecordExpirationConfiguration": {"method": "PUT", "requestUri": "/table-record-expiration"},
"PutTableReplication": {"method": "PUT", "requestUri": "/table-replication"},
"RenameTable": {"method": "PUT", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/rename"},
"TagResource": {"method": "POST", "requestUri": "/tag/{resourceArn}"},
"UntagResource": {"method": "DELETE", "requestUri": "/tag/{resourceArn}"},
"UpdateTableMetadataLocation": {"method": "PUT", "requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/metadata-location"}
}
},
"scheduler": {
"credentialScope": "scheduler",
"apiVersion": "2021-06-30",
@@ -586,6 +586,15 @@ class RequestResourceMembersTest {
String parent = example(table.formats().get(namespace).get(created.parent()).format());
String child = example(table.formats().get(namespace).get(created.type()).format());
String expected = child.substring(0, child.length() - 1) + "*";
// A REST request carrying the parent's ARN in its path names it there alone (S3 Tables'
// CreateTable, under /tables/{tableBucketARN}/...), as its handler reads it.
String where = table.located().getOrDefault(operation.getKey(), Map.of()).get(created.arn().name());
if (where != null && where.startsWith("{")) {
assertTrue(RequestResources.created(operation.getKey(), null, json("{}"), "aws", "us-east-1",
"000000000000", Map.of(where.substring(1, where.length() - 1), parent))
.contains(expected), where + " " + parent);
return;
}
ObjectNode body = MAPPER.createObjectNode();
if (created.arn().list()) {
body.putArray(created.arn().name()).add(parent);
@@ -0,0 +1,219 @@
package io.floci.aws.services.s3tables;
import io.floci.aws.testing.SignedIamEnforcementProfile;
import io.floci.aws.testing.SignedIamUsers;
import io.floci.aws.testutil.AwsRequestSigner;
import io.quarkus.test.common.http.TestHTTPResource;
import io.quarkus.test.junit.QuarkusTest;
import io.quarkus.test.junit.TestProfile;
import io.restassured.response.Response;
import io.restassured.specification.RequestSpecification;
import org.junit.jupiter.api.Test;
import java.net.URI;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.Map;
import java.util.UUID;
import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.not;
/**
* S3 Tables requests are checked against the caller's policies through its generated routes: a table bucket call on
* the bucket its path names, and a table call on the table its path (or {@code GetTable}'s query string) names by its
* table bucket's ARN, its namespace and its name, whose ARN S3 Tables answers from the table it stores.
*/
@QuarkusTest
@TestProfile(SignedIamEnforcementProfile.class)
class S3TablesIamIntegrationTest {
private final AwsRequestSigner admin = AwsRequestSigner.signedAs("test", "test", "s3tables");
@TestHTTPResource("/")
URI endpoint;
@Test
void callerWithoutPermissionsIsRefusedBeforeATableBucketIsCreated() throws Exception {
String name = "iam-none-" + UUID.randomUUID().toString().substring(0, 8);
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "s3t-iam-")) {
denied(send(user.signer("s3tables"), "PUT", "/buckets", "{\"name\":\"" + name + "\"}"),
"s3tables:CreateTableBucket");
denied(send(user.signer("s3tables"), "GET", "/buckets", null), "s3tables:ListTableBuckets");
}
send(admin, "GET", "/buckets", null).then().statusCode(200).body(not(containsString(name)));
}
@Test
void aBucketScopedAllowReadsThatBucketAndRefusesAnother() throws Exception {
String allowed = createBucket();
String other = createBucket();
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "s3t-iam-", "access",
allow("\"s3tables:GetTableBucket\"", allowed))) {
send(user.signer("s3tables"), "GET", "/buckets/" + encoded(allowed), null).then().statusCode(200)
.body("arn", equalTo(allowed));
denied(send(user.signer("s3tables"), "GET", "/buckets/" + encoded(other), null),
"s3tables:GetTableBucket");
denied(send(user.signer("s3tables"), "DELETE", "/buckets/" + encoded(allowed), null),
"s3tables:DeleteTableBucket");
} finally {
send(admin, "DELETE", "/buckets/" + encoded(allowed), null).then().statusCode(204);
send(admin, "DELETE", "/buckets/" + encoded(other), null).then().statusCode(204);
}
}
@Test
void aTableScopedAllowReadsThatTableByItsPathAndRefusesAnother() throws Exception {
String bucket = createBucket();
String path = "/tables/" + encoded(bucket) + "/analytics/";
send(admin, "PUT", "/namespaces/" + encoded(bucket), "{\"namespace\":[\"analytics\"]}").then().statusCode(200);
String table = send(admin, "PUT", path, "{\"name\":\"events\",\"format\":\"ICEBERG\"}").then().statusCode(200)
.extract().path("tableARN");
send(admin, "PUT", path, "{\"name\":\"orders\",\"format\":\"ICEBERG\"}").then().statusCode(200);
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "s3t-iam-", "access",
allow("[\"s3tables:GetTableMetadataLocation\",\"s3tables:GetTable\"]", table))) {
send(user.signer("s3tables"), "GET", path + "events/metadata-location", null).then().statusCode(200);
denied(send(user.signer("s3tables"), "GET", path + "orders/metadata-location", null),
"s3tables:GetTableMetadataLocation");
denied(send(user.signer("s3tables"), "DELETE", path + "events", null), "s3tables:DeleteTable");
String query = "/get-table?tableBucketARN=" + encoded(bucket) + "&namespace=analytics&name=";
send(user.signer("s3tables"), "GET", query + "events", null).then().statusCode(200)
.body("tableARN", equalTo(table));
denied(send(user.signer("s3tables"), "GET", query + "orders", null), "s3tables:GetTable");
} finally {
send(admin, "DELETE", path + "events", null).then().statusCode(204);
send(admin, "DELETE", path + "orders", null).then().statusCode(204);
send(admin, "DELETE", "/namespaces/" + encoded(bucket) + "/analytics", null).then().statusCode(204);
send(admin, "DELETE", "/buckets/" + encoded(bucket), null).then().statusCode(204);
}
}
/** Tables of one name in two namespaces have ARNs of their own, so an allow on one opens only that one. */
@Test
void aTableScopedAllowDoesNotOpenATableOfTheSameNameInAnotherNamespace() throws Exception {
String bucket = createBucket();
String analytics = createTable(bucket, "analytics", "events");
createTable(bucket, "staging", "events");
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "s3t-iam-", "access",
allow("\"s3tables:GetTableMetadataLocation\"", analytics))) {
send(user.signer("s3tables"), "GET", "/tables/" + encoded(bucket) + "/analytics/events/metadata-location",
null).then().statusCode(200);
denied(send(user.signer("s3tables"), "GET", "/tables/" + encoded(bucket)
+ "/staging/events/metadata-location", null), "s3tables:GetTableMetadataLocation");
} finally {
deleteBucket(bucket, "analytics", "staging");
}
}
/** A {@code GetTable} naming a table by its ARN is checked on that table and answers it, whatever else it gives. */
@Test
void getTableByArnServesTheTableTheArnNames() throws Exception {
String bucket = createBucket();
String events = createTable(bucket, "analytics", "events");
String orders = createTable(bucket, "analytics", "orders");
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "s3t-iam-", "access",
allow("\"s3tables:GetTable\"", events))) {
send(user.signer("s3tables"), "GET", "/get-table?tableArn=" + encoded(events) + "&tableBucketARN="
+ encoded(bucket) + "&namespace=analytics&name=orders", null).then().statusCode(200)
.body("tableARN", equalTo(events)).body("name", equalTo("events"));
denied(send(user.signer("s3tables"), "GET", "/get-table?tableArn=" + encoded(orders), null),
"s3tables:GetTable");
} finally {
deleteBucket(bucket, "analytics");
}
}
/** A double-encoded table ARN names no table to the handler either, so a deny on the table holds. */
@Test
void aDoubleEncodedTableArnReadsNoTableADenyCovers() throws Exception {
String bucket = createBucket();
String orders = createTable(bucket, "analytics", "orders");
String policy = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":"
+ "\"s3tables:GetTable\",\"Resource\":\"*\"},{\"Effect\":\"Deny\",\"Action\":"
+ "\"s3tables:GetTable\",\"Resource\":\"" + orders + "\"}]}";
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "s3t-iam-", "access", policy)) {
denied(send(user.signer("s3tables"), "GET", "/get-table?tableArn=" + encoded(orders), null),
"s3tables:GetTable");
send(user.signer("s3tables"), "GET", "/get-table?tableArn=" + encoded(encoded(orders)), null).then()
.statusCode(not(200)).body(not(containsString(orders)));
} finally {
deleteBucket(bucket, "analytics");
}
}
/** Tags a {@code CreateTable} sends are checked as {@code s3tables:TagResource} on the table it makes. */
@Test
void aTaggedCreateTableNeedsTagResourceOnTheTable() throws Exception {
String bucket = createBucket();
String path = "/tables/" + encoded(bucket) + "/analytics/";
send(admin, "PUT", "/namespaces/" + encoded(bucket), "{\"namespace\":[\"analytics\"]}").then().statusCode(200);
String tagged = "{\"name\":\"events\",\"format\":\"ICEBERG\",\"tags\":{\"team\":\"data\"}}";
String onBucket = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":"
+ "[\"s3tables:CreateTable\",\"s3tables:TagResource\"],\"Resource\":\"" + bucket + "\"}]}";
String onTables = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":"
+ "\"s3tables:CreateTable\",\"Resource\":\"" + bucket + "\"},{\"Effect\":\"Allow\",\"Action\":"
+ "\"s3tables:TagResource\",\"Resource\":\"" + bucket + "/table/*\"}]}";
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "s3t-iam-", "create", onBucket)) {
denied(send(user.signer("s3tables"), "PUT", path, tagged), "s3tables:TagResource");
}
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "s3t-iam-", "create", onTables)) {
send(user.signer("s3tables"), "PUT", path, tagged).then().statusCode(200);
} finally {
deleteBucket(bucket, "analytics");
}
}
private String createTable(String bucket, String namespace, String name) throws Exception {
send(admin, "PUT", "/namespaces/" + encoded(bucket), "{\"namespace\":[\"" + namespace + "\"]}");
return send(admin, "PUT", "/tables/" + encoded(bucket) + "/" + namespace + "/",
"{\"name\":\"" + name + "\",\"format\":\"ICEBERG\"}").then().statusCode(200)
.extract().path("tableARN");
}
/** Deletes the bucket's tables in the namespaces given, the namespaces and the bucket. */
private void deleteBucket(String bucket, String... namespaces) throws Exception {
for (String namespace : namespaces) {
List<String> tables = send(admin, "GET", "/tables/" + encoded(bucket) + "?namespace=" + namespace, null)
.then().statusCode(200).extract().path("tables.name");
for (String table : tables) {
send(admin, "DELETE", "/tables/" + encoded(bucket) + "/" + namespace + "/" + table, null).then()
.statusCode(204);
}
send(admin, "DELETE", "/namespaces/" + encoded(bucket) + "/" + namespace, null).then().statusCode(204);
}
send(admin, "DELETE", "/buckets/" + encoded(bucket), null).then().statusCode(204);
}
private static String allow(String actions, String resource) {
return "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":" + actions
+ ",\"Resource\":\"" + resource + "\"}]}";
}
private String createBucket() throws Exception {
String name = "iam-" + UUID.randomUUID().toString().substring(0, 8);
return send(admin, "PUT", "/buckets", "{\"name\":\"" + name + "\"}").then().statusCode(200)
.extract().path("arn");
}
private static String encoded(String value) {
return URLEncoder.encode(value, StandardCharsets.UTF_8);
}
private Response send(AwsRequestSigner signer, String method, String path, String body) throws Exception {
URI uri = endpoint.resolve(path);
byte[] bytes = body == null ? new byte[0] : body.getBytes(StandardCharsets.UTF_8);
RequestSpecification request = given().urlEncodingEnabled(false)
.headers(signer.headersFor(method, uri, Map.of(), bytes));
if (body != null) {
request = request.contentType("application/json").body(bytes);
}
return request.request(method, uri);
}
private static void denied(Response response, String action) {
response.then().statusCode(403).body(containsString("not authorized to perform: " + action));
}
}
@@ -11,12 +11,14 @@ import org.junit.jupiter.api.TestMethodOrder;
import java.net.URLEncoder;
import java.nio.charset.StandardCharsets;
import java.util.regex.Pattern;
import static io.restassured.RestAssured.given;
import static org.hamcrest.Matchers.contains;
import static org.hamcrest.Matchers.containsString;
import static org.hamcrest.Matchers.equalTo;
import static org.hamcrest.Matchers.hasKey;
import static org.hamcrest.Matchers.matchesPattern;
import static org.hamcrest.Matchers.not;
@QuarkusTest
@@ -90,7 +92,7 @@ class S3TablesIntegrationTest {
.then()
.statusCode(200)
.contentType(containsString(JSON_CONTENT_TYPE))
.body("tableARN", equalTo(BUCKET_ARN + "/table/" + TABLE_NAME))
.body("tableARN", matchesPattern(Pattern.quote(BUCKET_ARN) + "/table/[0-9a-f-]{36}"))
.body("versionToken", not(""))
.extract()
.path("versionToken");
@@ -15,11 +15,13 @@ import org.mockito.Mockito;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.CountDownLatch;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;
import java.util.concurrent.TimeUnit;
import java.util.regex.Pattern;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assertions.assertNotEquals;
@@ -130,19 +132,36 @@ class S3TablesServiceTest {
service.getTable(arn, "analytics", "events", REGION).getMetadataLocation());
}
@Test
void tablesOfOneNameInTwoNamespacesHaveTheirOwnArnsEndingInAMintedId() {
String arn = createBucketWithNamespace("analytics");
service.createNamespace(arn, List.of("staging"), REGION);
S3Table analytics = createTable(arn, "analytics", "events");
S3Table staging = createTable(arn, "staging", "events");
assertTrue(analytics.getArn().matches(Pattern.quote(arn) + "/table/[0-9a-f-]{36}"), analytics.getArn());
assertNotEquals(analytics.getArn(), staging.getArn());
assertEquals("staging", service.getTableByArn(staging.getArn(), REGION).getNamespace());
assertEquals(Optional.of(analytics.getArn()), service.tableArn(arn, "analytics", "events", REGION));
assertEquals(Optional.empty(), service.tableArn(arn, "analytics", "missing", REGION));
assertError("NotFoundException", () -> service.getTableByArn(arn + "/table/unknown", REGION));
}
@Test
void renameMovesTableAndRotatesItsVersionToken() {
String arn = createBucketWithNamespace("analytics");
service.createNamespace(arn, List.of("reporting"), REGION);
S3Table created = createTable(arn, "analytics", "events");
String originalToken = created.getVersionToken();
String tableArn = created.getArn();
S3Table renamed = service.renameTable(arn, "analytics", "events", "reporting", "daily_events",
originalToken, REGION);
assertEquals("reporting", renamed.getNamespace());
assertEquals("daily_events", renamed.getName());
assertEquals(arn + "/table/daily_events", renamed.getArn());
assertEquals(tableArn, renamed.getArn(), "a rename keeps the table's id, so its ARN");
assertNotEquals(originalToken, renamed.getVersionToken());
assertError("NotFoundException", () -> service.getTable(arn, "analytics", "events", REGION));
assertEquals(renamed, service.getTable(arn, "reporting", "daily_events", REGION));
+2 -3
View File
@@ -82,8 +82,8 @@ NAMESPACES = (
"cloudwatch", "codebuild", "codedeploy", "codepipeline", "cognito-identity", "cognito-idp",
"comprehend", "config", "datasync", "dms", "dsql", "ec2", "ecr", "ecs", "eks", "elasticmapreduce",
"emr-serverless", "events", "firehose", "glue", "iam", "kinesis", "kinesisanalytics", "lambda", "logs", "pipes",
"rds", "redshift", "redshift-serverless", "rekognition", "resource-groups", "s3", "sagemaker", "scheduler",
"secretsmanager", "servicecatalog", "ses", "sns", "ssm", "states", "swf", "textract",
"rds", "redshift", "redshift-serverless", "rekognition", "resource-groups", "s3", "s3tables", "sagemaker",
"scheduler", "secretsmanager", "servicecatalog", "ses", "sns", "ssm", "states", "swf", "textract",
"transcribe", "transfer", "translate",
)
@@ -113,7 +113,6 @@ NOT_COVERED = {
"mq": "REST routes no rule maps yet",
"quicksight": "metadata-only REST subset; role passing and iam:PassRole checks are not implemented",
"rum": "REST routes no rule maps yet",
"s3tables": "REST routes no rule maps yet",
}
# A member that names a role: Role, RoleArn, RoleName, their plurals, and an Update or Override of one.
+52 -7
View File
@@ -270,9 +270,9 @@ NAMESPACES = ("access-analyzer", "account", "acm", "application-autoscaling", "a
"datasync", "ec2", "ecr", "ecs", "elasticloadbalancing", "elasticmapreduce", "emr-serverless", "es", "events",
"firehose", "fis", "globalaccelerator", "inspector2", "kinesisanalytics", "macie2", "oam",
"payment-cryptography", "quicksight", "ram", "redshift", "redshift-data", "redshift-serverless",
"rekognition", "resource-explorer-2", "route53", "servicediscovery", "servicequotas", "ssm", "sso",
"states", "textract", "timestream-influxdb", "translate", "signer", "xray", "securityhub", "guardduty",
"secretsmanager", "scheduler", "lambda", "cloudformation")
"rekognition", "resource-explorer-2", "route53", "s3tables", "servicediscovery", "servicequotas", "ssm",
"sso", "states", "textract", "timestream-influxdb", "translate", "signer", "xray", "securityhub",
"guardduty", "secretsmanager", "scheduler", "lambda", "cloudformation")
# The namespaces whose resources ResourceArnBuilder builds itself.
HAND_BUILT = ("apigateway", "bedrock", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "logs", "pipes",
@@ -427,7 +427,6 @@ NOT_COVERED: dict[str, str] = {
"rds-data": _REST,
"route53resolver": _LATER,
"rum": _REST,
"s3tables": _REST,
"s3vectors": _REST,
"sagemaker": _LATER,
"servicecatalog": "not read yet: CreatePortfolioShare, UpdatePortfolioShare and DeletePortfolioShare give in "
@@ -850,6 +849,17 @@ def uri_labels(models: dict[str, dict], operation: str) -> list[str]:
return []
def query_members(models: dict[str, dict], operation: str) -> list[str]:
"""The members a REST request's query string carries, in the order its model gives them."""
for model in models.values():
spec = model["operations"].get(operation)
if spec is None or "input" not in spec or "http" not in spec:
continue
return [name for name, member in model["shapes"][spec["input"]["shape"]].get("members", {}).items()
if member.get("location") == "querystring"]
return []
def created_aliases(models: dict[str, dict]) -> dict[str, str]:
"""The id a create answers beside the ARN of another type, by their stems: `RunJobFlow` answers `JobFlowId` and
`ClusterArn`, so a job flow's id is a cluster's."""
@@ -1043,6 +1053,38 @@ def with_documented(operation: str, types: list[str], formats: dict[str, str], m
# The labels before the member's own scope it; those after it name something inside it (a group's member).
scope = labels[:labels.index(member)] if member in labels else labels
resources.append({"type": kind, "fill": {}, "find": [label for label in scope if label != member] + [member]})
# A type whose format ends in an id its service mints, which no member fills, in a REST request whose path labels
# (or, with none, query string members) end in a member naming the type by its name, documented so or holding a
# botocore shape named so (`TableName`, documented as "The table name."), is found by its service by those
# members: an S3 Tables table by its table bucket's ARN, its namespace and its name, in
# `/tables/{tableBucketARN}/{namespace}/{name}`. A member among them holding an ARN holds another type's, which
# scopes this one; an optional member holding this type's own ARN names it instead when the request gives it
# (`GetTable`'s `tableArn`).
located = labels or query_members(models, name)
held_shapes = member_shapes(models, name)
for kind in kinds:
variables = [v for v in VARIABLE_RE.findall(formats[kind]) if v not in KNOWN_VARIABLES]
if creating or len(variables) < 2 or kind_of(variables[-1]) != "id" or not located:
continue
if any(resource.get("type") == kind and "find" in resource for resource in resources):
continue
named = [member for member in located if member in facts and not facts[member]["nested"] and (
(doc_kind(facts[member]["lead"]) == "name" and doc_names(facts[member]["lead"], kind, formats))
or (kind_of(held_shapes.get(member, "")) == "name" and stem(held_shapes[member]) == stem(kind)))]
if len(named) != 1:
continue
scope = located[:located.index(named[0]) + 1]
own = [resource["arn"] for resource in resources if "arn" in resource and resource["arn"] not in scope
and kind in resource["types"] and related(stem(resource["arn"]), stem(kind))]
optional = optional_members(models, name)
if own and not all(member in optional for member in own):
continue
resources = [resource for resource in resources if resource.get("type") != kind
and not ("arn" in resource and resource["arn"] in scope)]
found = {"type": kind, "fill": {}, "find": scope}
if own:
found["when"] = {member: [None] for member in own}
resources.append(found)
# A `ResourceId` a non-create's request gives names whatever the action acts on, which its service finds it as
# (an EMR cluster or Studio its tag calls name), and another member then scopes the call rather than names one.
one = [kind for kind in kinds if len([v for v in VARIABLE_RE.findall(formats[kind]) if v not in KNOWN_VARIABLES]) == 1]
@@ -1760,11 +1802,14 @@ def with_documented_creation(resources: list[dict], operation: str, types: list[
def child_id(child: str, parent: str) -> str | None:
"""The variable a child type's ARN format adds to its parent's: the parent's with its leading resource type word
replaced and one id appended (`listener/app/.../${ListenerId}` for `loadbalancer/app/...`); None for any other."""
replaced and one id appended (`listener/app/.../${ListenerId}` for `loadbalancer/app/...`), or the parent's whole
with a word of its own and one id appended (`bucket/${TableBucketName}/table/${TableID}` for
`bucket/${TableBucketName}`); None for any other."""
child_match, parent_match = RESOURCE_PART_RE.match(child), RESOURCE_PART_RE.match(parent)
if child_match is None or parent_match is None or child_match.group(1) == parent_match.group(1):
if child_match is None or parent_match is None:
return None
appended = re.fullmatch(re.escape(parent_match.group(2)) + r"[/:]\$\{(\w+)}", child_match.group(2))
nested = r"[/:][A-Za-z][A-Za-z0-9-]*" if child_match.group(1) == parent_match.group(1) else ""
appended = re.fullmatch(re.escape(parent_match.group(2)) + nested + r"[/:]\$\{(\w+)}", child_match.group(2))
return appended.group(1) if appended else None
+3 -3
View File
@@ -112,8 +112,8 @@ NAMESPACES = (
"elasticmapreduce", "emr-serverless", "es", "events", "firehose", "fis", "globalaccelerator", "glue",
"guardduty", "iam", "kinesis", "kinesisanalytics", "kms", "lambda", "lightsail", "logs", "macie2", "memorydb",
"network-firewall", "oam", "organizations", "payment-cryptography", "pipes", "ram", "rds", "redshift",
"redshift-serverless", "rekognition", "resource-explorer-2", "resource-groups", "route53resolver", "sagemaker",
"scheduler", "secretsmanager", "securityhub", "servicediscovery", "ses", "signer", "sns", "sqs", "ssm", "sso",
"redshift-serverless", "rekognition", "resource-explorer-2", "resource-groups", "route53resolver", "s3tables",
"sagemaker", "scheduler", "secretsmanager", "securityhub", "servicediscovery", "ses", "signer", "sns", "sqs", "ssm", "sso",
"states", "sts", "swf", "textract", "timestream-influxdb", "transcribe", "transfer", "translate", "wafv2",
"xray",
)
@@ -132,7 +132,7 @@ NOT_COVERED = {
"inspector2": _NO_ROUTES, "iot": _NO_ROUTES, "kafka": _NO_ROUTES,
"mq": _NO_ROUTES,
"quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented",
"rum": _NO_ROUTES, "s3tables": _NO_ROUTES,
"rum": _NO_ROUTES,
"s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself",
"servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet",
}
+1
View File
@@ -80,6 +80,7 @@ MODELS: dict[str, str] = {
"route53": "route53",
"s3": "s3",
"s3control": "s3",
"s3tables": "s3tables",
"scheduler": "scheduler",
"securityhub": "securityhub",
"signer": "signer",
@@ -383,6 +383,86 @@ def write_models(root, models: dict[str, dict]):
(directory / "service-2.json").write_text(json.dumps(value), encoding="utf-8")
def tables_model() -> dict:
"""A rest-json model naming a table by its table bucket's ARN, its namespace and its name, as S3 Tables does: in its
path, documented as the table's name or holding a `TableName`, and in `GetTable`'s query string beside an optional
`tableArn`."""
def table_members(location: str, name_doc: str) -> dict:
return {"tableBucketARN": {"shape": "TableBucketARN", "location": location, "locationName": "tableBucketARN",
"documentation": "<p>The Amazon Resource Name (ARN) of the table bucket that "
"contains the table.</p>"},
"namespace": {"shape": "NamespaceName", "location": location, "locationName": "namespace",
"documentation": "<p>The namespace associated with the table.</p>"},
"name": {"shape": "TableName", "location": location, "locationName": "name",
"documentation": name_doc}}
get = table_members("querystring", "<p>The name of the table.</p>")
get["tableArn"] = {"shape": "TableARN", "location": "querystring", "locationName": "tableArn",
"documentation": "<p>The Amazon Resource Name (ARN) of the table.</p>"}
return {"metadata": {"protocol": "rest-json"},
"operations": {
"DeleteTable": {"http": {"method": "DELETE",
"requestUri": "/tables/{tableBucketARN}/{namespace}/{name}"},
"input": {"shape": "DeleteIn"}},
"GetTablePolicy": {"http": {"method": "GET",
"requestUri": "/tables/{tableBucketARN}/{namespace}/{name}/policy"},
"input": {"shape": "PolicyIn"}},
"GetTable": {"http": {"method": "GET", "requestUri": "/get-table"}, "input": {"shape": "GetIn"}},
"GetTableBucket": {"http": {"method": "GET", "requestUri": "/buckets/{tableBucketARN}"},
"input": {"shape": "BucketIn"}}},
"shapes": {
"DeleteIn": {"type": "structure", "required": ["tableBucketARN", "namespace", "name"],
"members": table_members("uri", "<p>The name of the table.</p>")},
"PolicyIn": {"type": "structure", "required": ["tableBucketARN", "namespace", "name"],
"members": table_members("uri", "<p>The table name.</p>")},
"GetIn": {"type": "structure", "members": get},
"BucketIn": {"type": "structure", "required": ["tableBucketARN"],
"members": {"tableBucketARN": table_members("uri", "")["tableBucketARN"]}},
"TableBucketARN": {"type": "string", "pattern": "(arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}"
":bucket/[a-z0-9_-]{3,63})"},
"TableARN": {"type": "string", "pattern": "(arn:aws[-a-z0-9]*:[a-z0-9]+:[-a-z0-9]*:[0-9]{12}"
":bucket/[a-z0-9_-]{3,63}/table/[0-9a-f_-]{36})"},
"NamespaceName": {"type": "string"},
"TableName": {"type": "string"}}}
def test_a_type_ending_in_a_minted_id_is_found_by_the_path_members_naming_it():
formats = {"Table": "arn:${Partition}:s3tables:${Region}:${Account}:bucket/${TableBucketName}/table/${TableID}",
"TableBucket": "arn:${Partition}:s3tables:${Region}:${Account}:bucket/${TableBucketName}"}
models = {"s3tables": tables_model()}
found = {"type": "Table", "fill": {}, "find": ["tableBucketARN", "namespace", "name"]}
def resources(operation: str, types: list[str]) -> list[dict]:
return r.entry_for(f"s3tables:{operation}", {"action": f"s3tables:{operation}", "types": types},
formats, models)["resources"]
# Its table bucket's ARN scopes the table rather than holding the table's ARN, and the table's name fills no
# variable of the bucket: the table is found by all three, documented as its name or holding a `TableName`.
assert resources("DeleteTable", ["Table"]) == [found]
assert resources("GetTablePolicy", ["Table"]) == [found]
# The same from a query string, unless the request gives the table's own ARN.
assert resources("GetTable", ["Table"]) == [{"types": ["Table"], "arn": "tableArn"},
dict(found, when={"tableArn": [None]})]
# A type its ARN member holds, of one variable, is read as before.
assert resources("GetTableBucket", ["TableBucket"]) == [{"types": ["TableBucket"], "arn": "tableBucketARN"}]
def test_a_create_making_a_type_nested_under_its_parent_names_it_from_the_parents_arn():
formats = {"Table": "arn:${Partition}:s3tables:${Region}:${Account}:bucket/${TableBucketName}/table/${TableID}",
"TableBucket": "arn:${Partition}:s3tables:${Region}:${Account}:bucket/${TableBucketName}"}
# The table's format is the bucket's whole with a word of its own and the table's id, so a create acting on the
# bucket makes a table under it, whose tags are checked there.
assert r.child_id(formats["Table"], formats["TableBucket"]) == "TableID"
assert r.creates_for("s3tables:CreateTable", ["TableBucket"], formats,
members("tableBucketARN", "namespace", "name")) == [
{"type": "Table", "parent": "TableBucket", "arn": "tableBucketARN"}]
# A namespace is no type of its own here, so creating one makes nothing.
assert r.creates_for("s3tables:CreateNamespace", ["TableBucket"], formats,
members("tableBucketARN", "namespace")) == []
# The same word with no word of the child's own between is no child.
assert r.child_id("arn:${Partition}:svc:${Region}:${Account}:thing/${ThingName}/${PartId}",
"arn:${Partition}:svc:${Region}:${Account}:thing/${ThingName}") is None
def test_rest_arn_alternatives_and_integer_shapes_fill_versioned_resources(isolated, tmp_path):
formats = {
"product": "arn:${Partition}:svc:${Region}:${Account}:product:${ProductName}",