mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(iam): check AWS Backup by its generated routes, resources and passed roles (#9669)
Under enforcement a REST route no vendored model names runs unchecked, and AWS Backup was among them: a caller could start a backup job or assign resources to a backup plan with any role and no iam:PassRole, and a grant scoped to one backup vault or plan covered every one, as #6255 reports. Backup's model routes are vendored, so each request is checked as its operation's action, and Backup joins the tables of request resources, passed roles and tags on create. The Service Reference passes most of Backup's roles to one service, which the passed-roles generator reads alone: IamRoleArn to backup.amazonaws.com, a backup plan's scan settings' ScannerRoleArn to malware-protection.guardduty.amazonaws.com, and a restore testing selection's to restore-testing.backup.amazonaws.com. It passes StartScanJob's IamRoleArn and ScannerRoleArn to both of the first two without saying which goes where, so a vendored source, tools/aws/sources/backup-roles.json, written by tools/aws/fetch_backup_roles.py from the developer guide's malware protection page, gives each: the scanner role "trusts malware-protection.guardduty.amazonaws.com", and the backup role is "the same role found in ... the BackupSelection API", linking CreateBackupSelection, whose role the Service Reference passes to backup alone. The generator reads such a role as going where the reference passes that operation's roles, when that is one service. A backup vault is checked by its name and a backup plan by its id; BackupStoredResourceArns answers the tags Backup holds on either, which an aws:ResourceTag condition reads. A recovery point's format the Service Reference gives with a literal * account, which the reader matches as written, so a request naming a recovery point by its ARN is checked on *, as one naming a DMS endpoint is. A namespace the table reads is served on the shared tag routes only with a method its model gives on the path, as it already was only on the paths its model gives: Backup removes tags with POST /untag/{resourceArn}, so a DELETE on its /tags/{resourceArn}, which no Backup operation is and no action checks, was let through and removed tags an aws:ResourceTag deny relies on. It is now refused with MethodNotAllowedException (405), as a tag call sent with the other verb is. Closes #6255.
This commit is contained in:
1 parent
0da5179612
commit
c0c60ea886
31 files changed
+929
-74
No files matched your search
@@ -64,6 +64,9 @@ on:
|
||||
- 'tools/aws/sources/batch-roles.json'
|
||||
- 'tools/aws/fetch_batch_roles.py'
|
||||
- 'tools/aws/test_fetch_batch_roles.py'
|
||||
- 'tools/aws/sources/backup-roles.json'
|
||||
- 'tools/aws/fetch_backup_roles.py'
|
||||
- 'tools/aws/test_fetch_backup_roles.py'
|
||||
- 'src/main/resources/aws/iam-passed-network-connectors.json'
|
||||
- 'tools/aws/regen_iam_passed_network_connectors.py'
|
||||
- 'tools/aws/test_regen_iam_passed_network_connectors.py'
|
||||
|
||||
@@ -626,7 +626,8 @@ IAM_PASSED_ROLES_PATHS := src/main/resources/aws/iam-passed-roles.json $(IAM_PAS
|
||||
tools/aws/test_fetch_eks_roles.py tools/aws/sources/emr-roles.json tools/aws/fetch_emr_roles.py \
|
||||
tools/aws/test_fetch_emr_roles.py tools/aws/sources/apigateway-roles.json tools/aws/fetch_apigateway_roles.py \
|
||||
tools/aws/test_fetch_apigateway_roles.py tools/aws/sources/batch-roles.json tools/aws/fetch_batch_roles.py \
|
||||
tools/aws/test_fetch_batch_roles.py
|
||||
tools/aws/test_fetch_batch_roles.py tools/aws/sources/backup-roles.json tools/aws/fetch_backup_roles.py \
|
||||
tools/aws/test_fetch_backup_roles.py
|
||||
IAM_PASSED_NETWORK_CONNECTORS_PATHS := src/main/resources/aws/iam-passed-network-connectors.json \
|
||||
tools/aws/regen_iam_passed_network_connectors.py $(IAM_PASSED_ROLES_GENERATOR) \
|
||||
tools/aws/test_regen_iam_passed_network_connectors.py
|
||||
|
||||
+19
-3
@@ -2591,7 +2591,7 @@ AWS Data Exports, AWS Pricing Calculator, Cost Explorer, CloudTrail, Global Acce
|
||||
Timestream for InfluxDB, Amazon Redshift, the Amazon Redshift Data API, AWS Payment Cryptography, AWS DataSync, Amazon EMR,
|
||||
Amazon Rekognition, IAM Identity Center, Amazon Inspector, Amazon Macie, AWS Fault Injection Service, AWS Resource
|
||||
Access Manager, CloudWatch Observability Access Manager, AWS Resource Explorer, AWS Account Management, AWS Control
|
||||
Catalog, Amazon OpenSearch Service, IAM Access Analyzer, AWS Security Hub, Amazon GuardDuty, Lambda, AWS Glue, Amazon SQS, Amazon SNS, Amazon Kinesis Data Streams, Amazon EventBridge Pipes, Aurora DSQL, STS, Amazon EKS, AWS Batch, AWS AppSync, AWS Resource Groups, Amazon CloudWatch Logs, Amazon CloudWatch, Amazon Comprehend, AWS Config, AWS DMS, Amazon ElastiCache, AWS Identity Store, Amazon MemoryDB, Amazon Route 53 Resolver, Amazon SageMaker, Amazon Transcribe, AWS Transfer Family, Amazon EFS, Amazon SES, AWS AppConfig, AWS CodeArtifact and Amazon CodeGuru Reviewer they come from a table generated from AWS's Service Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each
|
||||
Catalog, Amazon OpenSearch Service, IAM Access Analyzer, AWS Security Hub, Amazon GuardDuty, Lambda, AWS Glue, Amazon SQS, Amazon SNS, Amazon Kinesis Data Streams, Amazon EventBridge Pipes, Aurora DSQL, STS, Amazon EKS, AWS Batch, AWS AppSync, AWS Backup, AWS Resource Groups, Amazon CloudWatch Logs, Amazon CloudWatch, Amazon Comprehend, AWS Config, AWS DMS, Amazon ElastiCache, AWS Identity Store, Amazon MemoryDB, Amazon Route 53 Resolver, Amazon SageMaker, Amazon Transcribe, AWS Transfer Family, Amazon EFS, Amazon SES, AWS AppConfig, AWS CodeArtifact and Amazon CodeGuru Reviewer they come from a table generated from AWS's Service Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each
|
||||
operation's action, the resource types that action acts on with their ARN formats, and the request
|
||||
members that name them: a member holding a resource's ARN, which counts when it matches the format
|
||||
of a type the action acts on, or members filling the variables of a type's format. Nothing in it is
|
||||
@@ -2847,7 +2847,10 @@ the one after `/tags/` or `/v1/tags/`, the body's `resourceArn` on `POST /tags`,
|
||||
whole is served there only on the routes its model gives, as AWS, which tells these services apart by hostname,
|
||||
serves no other: EventBridge Scheduler, EMR Serverless, GuardDuty, Security Hub and EKS tag only on
|
||||
`/tags/{resourceArn}`, the ARN encoded, and a request on the bare `/tags`, or naming an ARN whose `/` is not
|
||||
encoded, is refused with `BadRequestException` ("Invalid resource ARN") and tags nothing.
|
||||
encoded, is refused with `BadRequestException` ("Invalid resource ARN") and tags nothing. One sent with a method its
|
||||
model does not give on the path is refused with `MethodNotAllowedException` (405): AWS Backup lists and adds tags on
|
||||
`/tags/{resourceArn}` and removes them with `POST /untag/{resourceArn}`, so a `DELETE` on its `/tags/{resourceArn}`,
|
||||
which no Backup operation is and no action checks, removes nothing.
|
||||
|
||||
A REST request names its resources in its path and its query as well as its body. For the REST
|
||||
services the table reads, OpenSearch Service, IAM Access Analyzer, Security Hub and GuardDuty among them, a member its path carries, the
|
||||
@@ -2927,7 +2930,11 @@ API's side (`DisassociateMergedGraphqlApi`) on the `mergedApiAssociation` the Se
|
||||
`apis/<sourceApiId>/mergedApiAssociations/<associationId>`, rather than the `associationArn` AppSync returns; an operation
|
||||
on an API's data sources, resolvers, functions, types, API keys or schema, which the Service Reference gives no
|
||||
resource type, is checked on `*`, as AWS checks it. An `aws:ResourceTag` condition reads the tags AppSync holds on a
|
||||
GraphQL API or a custom domain name. Amazon SES v2's
|
||||
GraphQL API or a custom domain name. AWS Backup's routes are checked the
|
||||
same way: a backup vault by its name and a backup plan by its id, an `aws:ResourceTag` condition reading the tags
|
||||
Backup holds on either; a recovery point's format the Service Reference gives with a literal `*` account, which the
|
||||
reader matches as written, so a request naming a recovery point by its ARN is checked on `*`, as one naming a DMS
|
||||
endpoint is. Amazon SES v2's
|
||||
and Amazon Pinpoint Email's routes are checked by their routes, on the resources the table reads, as SES v1's Query
|
||||
requests are by their `Action`. Two `GET` routes an SDK built before botocore moved `ListConfigurationSets` and
|
||||
`ListEmailIdentities` to `POST /v2/email/list-configuration-sets` and `POST /v2/email/list-identities` still sends,
|
||||
@@ -3148,6 +3155,15 @@ role each passes:
|
||||
and `UpdateApi`, which Floci does not serve, an Event API's `eventConfig.logConfig.cloudWatchLogsRoleArn`, each to
|
||||
`appsync.amazonaws.com`, the one service the Service Reference passes their roles to. All are read from the table
|
||||
below.
|
||||
- **Backup:** `StartBackupJob`, `StartCopyJob`, `StartRestoreJob`, `UpdateRecoveryPointIndexSettings` and
|
||||
`CreateBackupSelection` pass `IamRoleArn` to `backup.amazonaws.com`, `CreateBackupPlan` and `UpdateBackupPlan` each
|
||||
scan setting's `ScannerRoleArn` to `malware-protection.guardduty.amazonaws.com`, and the restore testing selections
|
||||
theirs to `restore-testing.backup.amazonaws.com`, as the Service Reference gives them. The reference passes `StartScanJob`'s
|
||||
`IamRoleArn` and `ScannerRoleArn` to both of the first two without saying which goes where, so a vendored source,
|
||||
`tools/aws/sources/backup-roles.json`, written by `tools/aws/fetch_backup_roles.py` from the developer guide's
|
||||
malware protection page, gives each: the scanner role "trusts malware-protection.guardduty.amazonaws.com", and the
|
||||
backup role is "the same role found in ... the BackupSelection API", whose role the Service Reference passes to
|
||||
Backup alone. All are read from the table below.
|
||||
- **Batch:** `CreateComputeEnvironment` and `UpdateComputeEnvironment` pass `serviceRole`, by its name, a name
|
||||
its path prefixes (`/foo/bar`, the role `bar` of the path `/foo/`) or its ARN, to `batch.amazonaws.com`, the roles of the instance profile a compute resource's `instanceRole` names, by its
|
||||
name or its ARN, to `ec2.amazonaws.com`, and a managed instances provider's `infrastructureRoleArn` to
|
||||
|
||||
@@ -3,6 +3,7 @@ package io.floci.aws.core.common;
|
||||
import jakarta.ws.rs.Consumes;
|
||||
import jakarta.ws.rs.DELETE;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.HttpMethod;
|
||||
import jakarta.ws.rs.POST;
|
||||
import jakarta.ws.rs.PUT;
|
||||
import jakarta.ws.rs.Path;
|
||||
@@ -36,7 +37,7 @@ public abstract class AbstractTagsController {
|
||||
@GET
|
||||
@Path("/{arn: .+}")
|
||||
public Response listTags(@Context HttpHeaders headers, @Context UriInfo uriInfo, @PathParam("arn") String arn) {
|
||||
dispatcher.resolveHandler(arn, uriInfo);
|
||||
dispatcher.resolveHandler(arn, uriInfo, HttpMethod.GET);
|
||||
return dispatcher.listTagsForArn(headers, arn);
|
||||
}
|
||||
|
||||
@@ -47,7 +48,7 @@ public abstract class AbstractTagsController {
|
||||
@Context UriInfo uriInfo,
|
||||
@PathParam("arn") String arn,
|
||||
String body) {
|
||||
TagHandler handler = dispatcher.resolveHandler(arn, uriInfo);
|
||||
TagHandler handler = dispatcher.resolveHandler(arn, uriInfo, HttpMethod.POST);
|
||||
return dispatcher.tagResourcePost(headers, arn, body,
|
||||
Response.status(handler.tagResourceSuccessStatus()).build());
|
||||
}
|
||||
@@ -59,7 +60,7 @@ public abstract class AbstractTagsController {
|
||||
@Context UriInfo uriInfo,
|
||||
@PathParam("arn") String arn,
|
||||
String body) {
|
||||
TagHandler handler = dispatcher.resolveHandler(arn, uriInfo);
|
||||
TagHandler handler = dispatcher.resolveHandler(arn, uriInfo, HttpMethod.PUT);
|
||||
return dispatcher.tagResourcePut(headers, arn, body,
|
||||
Response.status(handler.tagResourceSuccessStatus()).build());
|
||||
}
|
||||
@@ -69,7 +70,7 @@ public abstract class AbstractTagsController {
|
||||
public Response untagResource(@Context HttpHeaders headers,
|
||||
@Context UriInfo uriInfo,
|
||||
@PathParam("arn") String arn) {
|
||||
TagHandler handler = dispatcher.resolveHandler(arn, uriInfo);
|
||||
TagHandler handler = dispatcher.resolveHandler(arn, uriInfo, HttpMethod.DELETE);
|
||||
return dispatcher.untagResourceForArn(headers, uriInfo, arn,
|
||||
Response.status(handler.untagResourceSuccessStatus()).build(), handler);
|
||||
}
|
||||
|
||||
@@ -6,6 +6,7 @@ import jakarta.inject.Inject;
|
||||
import jakarta.ws.rs.Consumes;
|
||||
import jakarta.ws.rs.DELETE;
|
||||
import jakarta.ws.rs.GET;
|
||||
import jakarta.ws.rs.HttpMethod;
|
||||
import jakarta.ws.rs.POST;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.Produces;
|
||||
@@ -27,7 +28,7 @@ import jakarta.ws.rs.core.UriInfo;
|
||||
* matching {@link TagHandler}.
|
||||
*
|
||||
* <p>A service whose IAM resources the generated table reads whole is served here only on the routes its AWS model
|
||||
* gives ({@link TagDispatcher#resolveHandler(String, UriInfo)}): the bare {@code /tags}, or an ARN whose
|
||||
* gives ({@link TagDispatcher#resolveHandler(String, UriInfo, String)}): the bare {@code /tags}, or an ARN whose
|
||||
* {@code /} is not encoded, is refused for it, as AWS has no such route for that service.
|
||||
*
|
||||
* <p>The resolution and wire-shape logic lives in {@link TagDispatcher}, shared with
|
||||
@@ -49,7 +50,7 @@ public class SharedTagsController extends AbstractTagsController {
|
||||
public Response listTagsByQuery(@Context HttpHeaders headers,
|
||||
@Context UriInfo uriInfo,
|
||||
@QueryParam("resourceArn") String arn) {
|
||||
dispatcher().resolveHandler(arn, uriInfo);
|
||||
dispatcher().resolveHandler(arn, uriInfo, HttpMethod.GET);
|
||||
return dispatcher().listTagsForArn(headers, arn);
|
||||
}
|
||||
|
||||
@@ -57,7 +58,7 @@ public class SharedTagsController extends AbstractTagsController {
|
||||
@Consumes(MediaType.APPLICATION_JSON)
|
||||
public Response tagResourceByBody(@Context HttpHeaders headers, @Context UriInfo uriInfo, String body) {
|
||||
String arn = dispatcher().readResourceArn(body);
|
||||
TagHandler handler = dispatcher().resolveHandler(arn, uriInfo);
|
||||
TagHandler handler = dispatcher().resolveHandler(arn, uriInfo, HttpMethod.POST);
|
||||
return dispatcher().doTagResource(headers, handler, arn, body,
|
||||
Response.ok(dispatcher().emptyObject()).build());
|
||||
}
|
||||
@@ -66,7 +67,7 @@ public class SharedTagsController extends AbstractTagsController {
|
||||
public Response untagResourceByQuery(@Context HttpHeaders headers,
|
||||
@Context UriInfo uriInfo,
|
||||
@QueryParam("resourceArn") String arn) {
|
||||
TagHandler handler = dispatcher().resolveHandler(arn, uriInfo);
|
||||
TagHandler handler = dispatcher().resolveHandler(arn, uriInfo, HttpMethod.DELETE);
|
||||
return dispatcher().untagResourceForArn(headers, uriInfo, arn,
|
||||
Response.ok(dispatcher().emptyObject()).build(), handler);
|
||||
}
|
||||
|
||||
@@ -52,7 +52,7 @@ import java.util.Optional;
|
||||
* another account an association runs and the tags of a parameter, a document or an association; CloudFront, for the
|
||||
* key value store a name names and the tags of any resource it tags; Batch, for the job definition revision a reference
|
||||
* resolves to and the tags of a compute environment, a job queue, a job definition or a job; AppSync, for the tags of a
|
||||
* GraphQL API or a custom domain name; ECS, for the revision a
|
||||
* GraphQL API or a custom domain name; Backup, for the tags of a backup vault or a backup plan; ECS, for the revision a
|
||||
* task definition reference resolves to, its default cluster and the tags of a cluster, a task definition, a service, a capacity
|
||||
* provider, a task or a container instance; ACM, for the tags of a certificate; Firehose, for the tags of a delivery
|
||||
* stream; Cognito, for the tags of a user pool or an identity pool; OpenSearch, for the tags of a domain; Signer, for
|
||||
|
||||
@@ -225,20 +225,28 @@ public class TagDispatcher {
|
||||
}
|
||||
|
||||
/**
|
||||
* The handler of the service the ARN names, for a request on a path that service's AWS model gives. AWS serves
|
||||
* a service's tagging on its own routes only, telling the services apart by hostname, so a service whose IAM
|
||||
* resources the generated table reads from its modeled routes ({@link RequestResources#readsNamespace}) is
|
||||
* served on those paths alone: the bare {@code /tags}, or a path whose ARN's {@code /} is not encoded, is
|
||||
* refused as an ARN this path does not serve when its model has no such path
|
||||
* ({@link IamActionRegistry#modelRoutes}). A method its model does not give on the path is the handler's to
|
||||
* answer.
|
||||
* The handler of the service the ARN names, for a request of a method and path that service's AWS model gives.
|
||||
* AWS serves a service's tagging on its own routes only, telling the services apart by hostname, so a service
|
||||
* whose IAM resources the generated table reads from its modeled routes ({@link RequestResources#readsNamespace})
|
||||
* is served on those routes alone, as no other is an operation, and so an action, of the service: the bare
|
||||
* {@code /tags}, or a path whose ARN's {@code /} is not encoded, is refused as an ARN this path does not serve
|
||||
* ({@link IamActionRegistry#modelRoutes(String, UriInfo)}), and a method its model does not give on the path
|
||||
* (Backup's {@code DELETE /tags/{arn}}, as Backup untags on {@code POST /untag/{arn}}) as a method the path does
|
||||
* not take, {@code 405 MethodNotAllowedException}.
|
||||
*/
|
||||
public TagHandler resolveHandler(String arn, UriInfo uriInfo) {
|
||||
public TagHandler resolveHandler(String arn, UriInfo uriInfo, String method) {
|
||||
TagHandler handler = resolveHandler(arn);
|
||||
String service = AwsArnUtils.parse(arn).service();
|
||||
if (RequestResources.readsNamespace(service) && !IamActionRegistry.modelRoutes(service, uriInfo)) {
|
||||
if (!RequestResources.readsNamespace(service)) {
|
||||
return handler;
|
||||
}
|
||||
if (!IamActionRegistry.modelRoutes(service, uriInfo)) {
|
||||
throw invalidArn(arn);
|
||||
}
|
||||
if (!IamActionRegistry.modelRoutes(service, method, uriInfo)) {
|
||||
throw new AwsException("MethodNotAllowedException",
|
||||
method + " is not supported for " + handler.serviceKey() + " tag resources.", 405);
|
||||
}
|
||||
return handler;
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ import com.fasterxml.jackson.databind.ObjectMapper;
|
||||
import jakarta.enterprise.inject.Instance;
|
||||
import jakarta.inject.Inject;
|
||||
import jakarta.ws.rs.Consumes;
|
||||
import jakarta.ws.rs.HttpMethod;
|
||||
import jakarta.ws.rs.POST;
|
||||
import jakarta.ws.rs.Path;
|
||||
import jakarta.ws.rs.Produces;
|
||||
@@ -49,7 +50,7 @@ public class V1TagsController extends AbstractTagsController {
|
||||
public Response listTagsForResourceByQuery(@Context HttpHeaders headers,
|
||||
@Context UriInfo uriInfo,
|
||||
@QueryParam("resourceArn") String resourceArn) {
|
||||
dispatcher().resolveHandler(resourceArn, uriInfo);
|
||||
dispatcher().resolveHandler(resourceArn, uriInfo, HttpMethod.POST);
|
||||
return dispatcher().listTagsForArn(headers, resourceArn);
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@ import io.floci.aws.core.common.PaginatedResult;
|
||||
import io.floci.aws.core.common.Pagination;
|
||||
import io.floci.aws.core.common.RegionResolver;
|
||||
import io.floci.aws.core.common.RequestScopes;
|
||||
import io.floci.aws.core.common.StoredResourceArns;
|
||||
import io.floci.aws.core.storage.AccountAwareStorageBackend;
|
||||
import io.floci.aws.core.storage.StorageBackend;
|
||||
import io.floci.aws.core.storage.StorageFactory;
|
||||
@@ -919,6 +920,19 @@ public class BackupService {
|
||||
applyTags(resourceArn, tags);
|
||||
}
|
||||
|
||||
/**
|
||||
* The tags Backup holds on the backup vault or the backup plan {@code resourceArn} names, which an
|
||||
* {@code aws:ResourceTag} condition reads; none for a resource it does not hold. Reads only.
|
||||
*/
|
||||
Map<String, String> storedTags(String resourceArn) {
|
||||
try {
|
||||
return StoredResourceArns.withEmptyValues(findTagsByArn(resourceArn));
|
||||
} catch (AwsException expected) {
|
||||
// findTagsByArn refuses an ARN naming no vault or plan Backup holds, which has no stored tags.
|
||||
return Map.of();
|
||||
}
|
||||
}
|
||||
|
||||
public void untagResource(String resourceArn, List<String> tagKeys) {
|
||||
removeTags(resourceArn, tagKeys);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,40 @@
|
||||
package io.floci.aws.services.backup;
|
||||
|
||||
import io.floci.aws.core.common.StoredResourceArns;
|
||||
import jakarta.enterprise.context.ApplicationScoped;
|
||||
import jakarta.inject.Inject;
|
||||
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import java.util.Optional;
|
||||
|
||||
/**
|
||||
* What IAM asks Backup of the resources a request names: the tags Backup holds on a backup vault or a backup plan,
|
||||
* which an {@code aws:ResourceTag} condition reads.
|
||||
*/
|
||||
@ApplicationScoped
|
||||
public class BackupStoredResourceArns implements StoredResourceArns {
|
||||
|
||||
private final BackupService backup;
|
||||
|
||||
@Inject
|
||||
public BackupStoredResourceArns(BackupService backup) {
|
||||
this.backup = backup;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String namespace() {
|
||||
return "backup";
|
||||
}
|
||||
|
||||
/** Backup stores no resource a request names but by its ARN or its format's variables: a plan's id it mints. */
|
||||
@Override
|
||||
public Optional<String> find(String type, List<String> names, String region) {
|
||||
return Optional.empty();
|
||||
}
|
||||
|
||||
@Override
|
||||
public Map<String, String> storedTags(String arn) {
|
||||
return backup.storedTags(arn);
|
||||
}
|
||||
}
|
||||
@@ -227,6 +227,17 @@ public class IamActionRegistry {
|
||||
|| routes.takesPath(credentialScope, sentPath(uriInfo), uriInfo.getQueryParameters());
|
||||
}
|
||||
|
||||
/**
|
||||
* Whether a request of the method sent to the URI {@code uriInfo} gives is a route of the credential scope's
|
||||
* vendored model, its path matched as {@link #modelRoutes(String, UriInfo)} matches it. True for a scope whose
|
||||
* routes are not vendored.
|
||||
*/
|
||||
public static boolean modelRoutes(String credentialScope, String method, UriInfo uriInfo) {
|
||||
IamRestRoutes routes = IamRestRoutes.vendored();
|
||||
return !routes.routes(credentialScope)
|
||||
|| routes.takesRoute(credentialScope, method, sentPath(uriInfo), uriInfo.getQueryParameters());
|
||||
}
|
||||
|
||||
/** Keep the modeled operation when AWS authorizes its route under a different action name. */
|
||||
public String operationForRoute(String credentialScope, String action, ContainerRequestContext ctx) {
|
||||
if (credentialScope == null || action == null) {
|
||||
|
||||
@@ -417,7 +417,12 @@ final class IamRestRoutes {
|
||||
*/
|
||||
boolean takesPath(String scope, String path, MultivaluedMap<String, String> query) {
|
||||
return routes.getOrDefault(scope, Map.of()).keySet().stream()
|
||||
.anyMatch(method -> match(scope, method, path, query).isPresent());
|
||||
.anyMatch(method -> takesRoute(scope, method, path, query));
|
||||
}
|
||||
|
||||
/** Whether a route of the credential scope takes the method, path and query: the request is one of its model's. */
|
||||
boolean takesRoute(String scope, String method, String path, MultivaluedMap<String, String> query) {
|
||||
return match(scope, method, path, query).isPresent();
|
||||
}
|
||||
|
||||
static IamRestRoutes parse(InputStream in) throws IOException {
|
||||
|
||||
@@ -440,6 +440,51 @@
|
||||
"ListScrapers",
|
||||
"ListWorkspaces"
|
||||
],
|
||||
"backup": [
|
||||
"DescribeBackupJob",
|
||||
"DescribeCopyJob",
|
||||
"DescribeGlobalSettings",
|
||||
"DescribeProtectedResource",
|
||||
"DescribeRegionSettings",
|
||||
"DescribeReportJob",
|
||||
"DescribeRestoreJob",
|
||||
"DescribeScanJob",
|
||||
"ExportBackupPlanTemplate",
|
||||
"GetBackupPlanFromJSON",
|
||||
"GetBackupPlanFromTemplate",
|
||||
"GetRestoreJobMetadata",
|
||||
"GetRestoreTestingInferredMetadata",
|
||||
"GetSupportedResourceTypes",
|
||||
"ListBackupAccessPoints",
|
||||
"ListBackupAccessPointsByRecoveryPoint",
|
||||
"ListBackupAccessPointsByResource",
|
||||
"ListBackupJobSummaries",
|
||||
"ListBackupJobs",
|
||||
"ListBackupPlanTemplates",
|
||||
"ListBackupPlans",
|
||||
"ListBackupVaults",
|
||||
"ListCopyJobSummaries",
|
||||
"ListCopyJobs",
|
||||
"ListFrameworks",
|
||||
"ListIndexedRecoveryPoints",
|
||||
"ListIndexedRecoveryPointsForSearch",
|
||||
"ListLegalHolds",
|
||||
"ListProtectedResources",
|
||||
"ListRecoveryPointsByResource",
|
||||
"ListReportJobs",
|
||||
"ListReportPlans",
|
||||
"ListRestoreJobSummaries",
|
||||
"ListRestoreJobs",
|
||||
"ListRestoreJobsByProtectedResource",
|
||||
"ListRestoreTestingPlans",
|
||||
"ListScanJobSummaries",
|
||||
"ListScanJobs",
|
||||
"ListTieringConfigurations",
|
||||
"PutRestoreValidationResult",
|
||||
"StopBackupJob",
|
||||
"UpdateGlobalSettings",
|
||||
"UpdateRegionSettings"
|
||||
],
|
||||
"batch": [
|
||||
"DescribeComputeEnvironments",
|
||||
"DescribeJobDefinitions",
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_passed_roles.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.44.9 (installed package)", "retrieved": "2026-11-28", "note": "make iam-passed-roles-check re-derives every member from botocore; make iam-passed-roles-verify checks every operation against AWS."},
|
||||
"namespaces": {"apigateway": ["apigateway", "apigatewayv2"], "application-autoscaling": ["application-autoscaling"], "appsync": ["appsync"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "batch": ["batch"], "budgets": ["budgets"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb-proxy"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicecatalog": ["servicecatalog"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "sns": ["sns"], "ssm": ["ssm"], "states": ["stepfunctions"], "swf": ["swf"], "textract": ["textract"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"]},
|
||||
"notCovered": {"access-analyzer": "REST routes no rule maps yet", "airflow": "REST routes no rule maps yet", "appconfig": "CreateExtension and UpdateExtension pass a role in Actions{}[].RoleArn, a map of lists, which this file does not read yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; role passing and iam:PassRole checks are not implemented", "rum": "REST routes no rule maps yet"},
|
||||
"namespaces": {"apigateway": ["apigateway", "apigatewayv2"], "application-autoscaling": ["application-autoscaling"], "appsync": ["appsync"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "backup": ["backup"], "batch": ["batch"], "budgets": ["budgets"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb-proxy"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicecatalog": ["servicecatalog"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "sns": ["sns"], "ssm": ["ssm"], "states": ["stepfunctions"], "swf": ["swf"], "textract": ["textract"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"]},
|
||||
"notCovered": {"access-analyzer": "REST routes no rule maps yet", "airflow": "REST routes no rule maps yet", "appconfig": "CreateExtension and UpdateExtension pass a role in Actions{}[].RoleArn, a map of lists, which this file does not read yet", "aws-marketplace": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; role passing and iam:PassRole checks are not implemented", "rum": "REST routes no rule maps yet"},
|
||||
"otherNamespaces": ["agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "aoss", "appflow", "appmesh", "apprunner", "appstream", "arc-region-switch", "backup-gateway", "backup-search", "bcm-dashboards", "braket", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "codeconnections", "codestar-connections", "cognito-sync", "comprehendmedical", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "elemental-inference", "entityresolution", "fms", "forecast", "frauddetector", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "kafkaconnect", "kendra", "lex", "lookoutequipment", "m2", "machinelearning", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "medical-imaging", "mobiletargeting", "neptune-graph", "observabilityadmin", "odb", "omics", "opensearch", "osis", "partnercentral", "pcs", "personalize", "profile", "proton", "qbusiness", "repostspace", "resiliencehub", "rolesanywhere", "s3files", "sagemaker-geospatial", "securityagent", "securitylake", "shield", "sms-voice", "snowball", "social-messaging", "ssm-incidents", "ssm-quicksetup", "storagegateway", "supportapp", "synthetics", "timestream", "voiceid", "wellarchitected", "wisdom", "workmail", "workspaces"],
|
||||
"operations": {
|
||||
"apigateway:CreateApi": {"passedTo": ["apigateway"], "roles": [
|
||||
@@ -97,6 +97,37 @@
|
||||
{"member": "RoleARN", "passedTo": "autoscaling"}
|
||||
]},
|
||||
"autoscaling:UpdateAutoScalingGroup": {"passedTo": ["autoscaling"], "byHand": "the roles of each launch template's instance profile, and the service-linked and lifecycle hook roles"},
|
||||
"backup:CreateBackupPlan": {"passedTo": ["malware-protection.guardduty"], "roles": [
|
||||
{"member": "BackupPlan.ScanSettings[].ScannerRoleArn", "passedTo": "malware-protection.guardduty"}
|
||||
]},
|
||||
"backup:CreateBackupSelection": {"passedTo": ["backup"], "roles": [
|
||||
{"member": "BackupSelection.IamRoleArn", "passedTo": "backup"}
|
||||
]},
|
||||
"backup:CreateRestoreTestingSelection": {"passedTo": ["restore-testing.backup"], "roles": [
|
||||
{"member": "RestoreTestingSelection.IamRoleArn", "passedTo": "restore-testing.backup"}
|
||||
]},
|
||||
"backup:StartBackupJob": {"passedTo": ["backup"], "roles": [
|
||||
{"member": "IamRoleArn", "passedTo": "backup"}
|
||||
]},
|
||||
"backup:StartCopyJob": {"passedTo": ["backup"], "roles": [
|
||||
{"member": "IamRoleArn", "passedTo": "backup"}
|
||||
]},
|
||||
"backup:StartRestoreJob": {"passedTo": ["backup"], "roles": [
|
||||
{"member": "IamRoleArn", "passedTo": "backup"}
|
||||
]},
|
||||
"backup:StartScanJob": {"passedTo": ["backup", "malware-protection.guardduty"], "roles": [
|
||||
{"member": "IamRoleArn", "passedTo": "backup"},
|
||||
{"member": "ScannerRoleArn", "passedTo": "malware-protection.guardduty"}
|
||||
]},
|
||||
"backup:UpdateBackupPlan": {"passedTo": ["malware-protection.guardduty"], "roles": [
|
||||
{"member": "BackupPlan.ScanSettings[].ScannerRoleArn", "passedTo": "malware-protection.guardduty"}
|
||||
]},
|
||||
"backup:UpdateRecoveryPointIndexSettings": {"passedTo": ["backup"], "roles": [
|
||||
{"member": "IamRoleArn", "passedTo": "backup"}
|
||||
]},
|
||||
"backup:UpdateRestoreTestingSelection": {"passedTo": ["restore-testing.backup"], "roles": [
|
||||
{"member": "RestoreTestingSelection.IamRoleArn", "passedTo": "restore-testing.backup"}
|
||||
]},
|
||||
"batch:CreateComputeEnvironment": {"passedTo": ["batch", "ec2", "ecs", "spotfleet"], "roles": [
|
||||
{"member": "computeResources.instanceRole", "passedTo": "ec2", "byName": true, "instanceProfile": true},
|
||||
{"member": "computeResources.managedInstancesProvider.infrastructureRoleArn", "passedTo": "ecs"},
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.44.9 (installed package)", "retrieved": "2026-11-28", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "apigateway": ["apigateway", "apigatewayv2"], "appconfig": ["appconfig", "appconfigdata"], "application-autoscaling": ["application-autoscaling"], "appsync": ["appsync"], "aps": ["amp"], "athena": ["athena"], "batch": ["batch"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codeartifact": ["codeartifact"], "codebuild": ["codebuild"], "codeguru-reviewer": ["codeguru-reviewer"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb", "dynamodbstreams"], "ec2": ["ec2"], "ec2-instance-connect": ["ec2-instance-connect"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb", "elb-proxy", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam", "iam-toolbox"], "identitystore": ["identitystore"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "rds-data": ["rds-data"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "route53resolver": ["route53resolver"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "sagemaker": ["sagemaker", "sagemaker-a2i-runtime", "sagemaker-edge", "sagemaker-featurestore-runtime", "sagemaker-gateway-runtime", "sagemaker-inference-router-runtime", "sagemaker-metrics", "sagemaker-runtime", "sagemakerjobruntime", "sagemakertrainingsessionruntime"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rules do not fill a name from, so nearly every operation's resource would be left open", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment/<application>/<name>`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "execute-api": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "iot": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "kafka": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "lightsail": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "mq": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "network-firewall": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "organizations": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "rum": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "servicecatalog": "not read yet: CreatePortfolioShare, UpdatePortfolioShare and DeletePortfolioShare give in AccountId the account a portfolio is shared with, which the rule reads as the portfolio's; a portfolio or product imported from another account keeps its owner's account in its ARN while requests name it by its id alone; and AppRegistry's applications and attribute groups are named in the path", "signin": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "ssmmessages": "channel routes authorise agent and client resources directly rather than through generated request mappings", "sso-oauth": "REST: its requests name their resources in the path, which RequestResoLine truncated
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "apigateway": ["apigateway", "apigatewayv2"], "appconfig": ["appconfig", "appconfigdata"], "application-autoscaling": ["application-autoscaling"], "appsync": ["appsync"], "aps": ["amp"], "athena": ["athena"], "backup": ["backup"], "batch": ["batch"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codeartifact": ["codeartifact"], "codebuild": ["codebuild"], "codeguru-reviewer": ["codeguru-reviewer"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb", "dynamodbstreams"], "ec2": ["ec2"], "ec2-instance-connect": ["ec2-instance-connect"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb", "elb-proxy", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam", "iam-toolbox"], "identitystore": ["identitystore"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "rds-data": ["rds-data"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "route53resolver": ["route53resolver"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "sagemaker": ["sagemaker", "sagemaker-a2i-runtime", "sagemaker-edge", "sagemaker-featurestore-runtime", "sagemaker-gateway-runtime", "sagemaker-inference-router-runtime", "sagemaker-metrics", "sagemaker-runtime", "sagemakerjobruntime", "sagemakertrainingsessionruntime"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rules do not fill a name from, so nearly every operation's resource would be left open", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment/<application>/<name>`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "execute-api": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "iot": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "kafka": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "lightsail": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "mq": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "network-firewall": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "organizations": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "rum": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "servicecatalog": "not read yet: CreatePortfolioShare, UpdatePortfolioShare and DeletePortfolioShare give in AccountId the account a portfolio is shared with, which the rule reads as the portfolio's; a portfolio or product imported from another account keeps its owner's account in its ARN while requests name it by its id alone; and AppRegistry's applications and attribute groups are named in the path", "signin": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "ssmmessages": "channel routes authorise agent and client resources directly rather than through generated request mappings", "sso-oauth": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "swf": "not read yet: the Service Reference gives a domain's ARN no Region, `swf:Line truncated
|
||||
"otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifygen3", "amplifyuibuilder", "aoss", "apiportal", "appfabric", "appflow", "application-signals", "application-signals-mcp", "appmesh", "appmesh-preview", "apprunner", "appstream", "apptest", "arc-region-switch", "arc-zonal-shift", "artifact", "assurance", "auditmanager", "aws-external-anthropic", "b2bi", "backup-gateway", "backup-search", "bcm-data-hub", "bedrock-mantle", "bedrock-websearch", "billing", "billingconductor", "braket", "bugbust", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "clouddirectory", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "end-user-messaging", "entityresolution", "evs", "finops-agent", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "osm", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web"],
|
||||
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "apigateway": {"AccessLogSettings": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/accesslogsettings", "Account": "arn:${Partition}:apigateway:${Region}::/account", "Api": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}", "ApiKey": "arn:${Partition}:apigateway:${Region}::/apikeys/${ApiKeyId}", "ApiKeys": "arn:${Partition}:apigateway:${Region}::/apikeys", "ApiMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings/${ApiMappingId}", "ApiMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings", "Apis": "arn:${Partition}:apigateway:${Region}::/apis", "Authorizer": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers/${AuthorizerId}", "Authorizers": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers", "AuthorizersCache": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/cache/authorizers", "BasePathMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings/${BasePath}", "BasePathMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings", "ClientCertificate": "arn:${Partition}:apigateway:${Region}::/clientcertificates/${ClientCertificateId}", "ClientCertificates": "arn:${Partition}:apigateway:${Region}::/clientcertificates", "Cors": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/cors", "Deployment": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments/${DeploymentId}", "Deployments": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments", "DocumentationPart": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts/${DocumentationPartId}", "DocumentationParts": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts", "DocumentationVersion": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions/${DocumentationVersionId}", "DocumentationVersions": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions", "DomainName": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}", "DomainNameAccessAssociation": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations/domainname/${DomainName}/${SourceType}/${SourceId}", "DomainNameAccessAssociations": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations", "DomainNames": "arn:${Partition}:apigateway:${Region}::/domainnames", "ExportedAPI": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/exports/${Specification}", "GatewayResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses/${ResponseType}", "GatewayResponses": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses", "Integration": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}", "IntegrationResponse": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses/${IntegrationResponseId}", "IntegrationResponses": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses", "Integrations": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations", "Method": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}", "MethodResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}/responses/${StatusCode}", "Model": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}", "ModelTemplate": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}/template", "Models": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models", "Portal": "arn:${Partition}:apigateway:${Region}:${Account}:/portals/${PortalId}", "PortalProduct": "arn:${Partition}:apigateway:${Region}:${Account}:/portalproducts/$Line truncated
|
||||
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "apigateway": {"AccessLogSettings": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/accesslogsettings", "Account": "arn:${Partition}:apigateway:${Region}::/account", "Api": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}", "ApiKey": "arn:${Partition}:apigateway:${Region}::/apikeys/${ApiKeyId}", "ApiKeys": "arn:${Partition}:apigateway:${Region}::/apikeys", "ApiMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings/${ApiMappingId}", "ApiMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings", "Apis": "arn:${Partition}:apigateway:${Region}::/apis", "Authorizer": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers/${AuthorizerId}", "Authorizers": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers", "AuthorizersCache": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/cache/authorizers", "BasePathMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings/${BasePath}", "BasePathMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings", "ClientCertificate": "arn:${Partition}:apigateway:${Region}::/clientcertificates/${ClientCertificateId}", "ClientCertificates": "arn:${Partition}:apigateway:${Region}::/clientcertificates", "Cors": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/cors", "Deployment": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments/${DeploymentId}", "Deployments": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments", "DocumentationPart": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts/${DocumentationPartId}", "DocumentationParts": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts", "DocumentationVersion": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions/${DocumentationVersionId}", "DocumentationVersions": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions", "DomainName": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}", "DomainNameAccessAssociation": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations/domainname/${DomainName}/${SourceType}/${SourceId}", "DomainNameAccessAssociations": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations", "DomainNames": "arn:${Partition}:apigateway:${Region}::/domainnames", "ExportedAPI": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/exports/${Specification}", "GatewayResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses/${ResponseType}", "GatewayResponses": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses", "Integration": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}", "IntegrationResponse": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses/${IntegrationResponseId}", "IntegrationResponses": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses", "Integrations": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations", "Method": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}", "MethodResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}/responses/${StatusCode}", "Model": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}", "ModelTemplate": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}/template", "Models": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models", "Portal": "arn:${Partition}:apigateway:${Region}:${Account}:/portals/${PortalId}", "PortalProduct": "arn:${Partition}:apigateway:${Region}:${Account}:/portalproducts/$Line truncated
|
||||
"pathFormats": {"apigateway": {"/restapis/{restapi_id}/models/{model_name}/default_template (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/models/${ModelName}/default_template", "/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/cache/authorizers", "/restapis/{restapi_id}/stages/{stage_name}/cache/data (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/cache/data", "/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type} (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/exports/${ExportType}", "/sdktypes (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/sdktypes", "/sdktypes/{sdktype_id} (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/sdktypes/${SdktypeId}", "/usageplans/{usageplanId}/keys/{keyId}/usage (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/usageplans/${UsageplanId}/keys/${KeyId}/usage", "/usageplans/{usageplanId}/usage (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/usageplans/${UsageplanId}/usage", "Authorizer (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/authorizers/${Id}", "Authorizers (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/authorizers", "Deployment (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/deployments/${Id}", "Deployments (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/deployments", "Integration (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/resources/${ResourceId}/methods/${HttpMethod}/integration", "IntegrationResponse (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/resources/${ResourceId}/methods/${HttpMethod}/integration/responses/${StatusCode}", "Model (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/models/${ModelName}", "Models (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/models", "Stage (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/stages/${StageName}", "Stages (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/stages"}},
|
||||
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "apigateway": {"AccessLogSettings": ["aws:ResourceTag/"], "Api": ["aws:ResourceTag/"], "ApiKey": ["aws:ResourceTag/"], "ApiKeys": ["aws:ResourceTag/"], "ApiMapping": ["aws:ResourceTag/"], "ApiMappings": ["aws:ResourceTag/"], "Apis": ["aws:ResourceTag/"], "Authorizer": ["aws:ResourceTag/"], "Authorizers": ["aws:ResourceTag/"], "AuthorizersCache": ["aws:ResourceTag/"], "BasePathMapping": ["aws:ResourceTag/"], "BasePathMappings": ["aws:ResourceTag/"], "ClientCertificate": ["aws:ResourceTag/"], "ClientCertificates": ["aws:ResourceTag/"], "Cors": ["aws:ResourceTag/"], "Deployment": ["aws:ResourceTag/"], "Deployments": ["aws:ResourceTag/"], "DocumentationPart": ["aws:ResourceTag/"], "DocumentationParts": ["aws:ResourceTag/"], "DocumentationVersion": ["aws:ResourceTag/"], "DocumentationVersions": ["aws:ResourceTag/"], "DomainName": ["aws:ResourceTag/"], "DomainNameAccessAssociations": ["aws:ResourceTag/"], "DomainNames": ["aws:ResourceTag/"], "ExportedAPI": ["aws:ResourceTag/"], "GatewayResponse": ["aws:ResourceTag/"], "GatewayResponses": ["aws:ResourceTag/"], "Integration": ["aws:ResourceTag/"], "IntegrationResponse": ["aws:ResourceTag/"], "IntegrationResponses": ["aws:ResourceTag/"], "Integrations": ["aws:ResourceTag/"], "Method": ["aws:ResourceTag/"], "MethodResponse": ["aws:ResourceTag/"], "Model": ["aws:ResourceTag/"], "ModelTemplate": ["aws:ResourceTag/"], "Models": ["aws:ResourceTag/"], "Portal": ["aws:ResourceTag/"], "PortalProduct": ["aws:ResourceTag/"], "PrivateBasePathMapping": ["aws:ResourceTag/"], "PrivateBasePathMappings": ["aws:ResourceTag/"], "PrivateDomainName": ["aws:ResourceTag/"], "ProductPage": ["aws:ResourceTag/"], "ProductRestEndpointPage": ["aws:ResourceTag/"], "RequestValidator": ["aws:ResourceTag/"], "RequestValidators": ["aws:ResourceTag/"], "Resource": ["aws:ResourceTag/"], "Resources": ["aws:ResourceTag/"], "RestApi": ["aws:ResourceTag/"], "RestApis": ["aws:ResourceTag/"], "Route": ["aws:ResourceTag/"], "RouteRequestParameter": ["aws:ResourceTag/"], "RouteResponse": ["aws:ResourceTag/"], "RouteResponses": ["aws:ResourceTag/"], "RouteSettings": ["aws:ResourceTag/"], "Routes": ["aws:ResourceTag/"], "RoutingRule": ["aws:ResourceTag/"], "Sdk": ["aws:ResourceTag/"], "Stage": ["aws:ResourceTag/"], "Stages": ["aws:ResourceTag/"], "Template": ["aws:ResourceTag/"], "UsagePlan": ["aws:ResourceTag/"], "UsagePlanKey": ["aws:ResourceTag/"], "UsagePlanKeys": ["aws:ResourceTag/"], "UsagePlans": ["aws:ResourceTag/"], "VpcLink": ["aws:ResourceTag/"], "VpcLinks": ["aws:ResourceTag/"]}, "appconfig": {"application": ["aws:ResourceTag/"], "configuration": ["aws:ResourceTag/"], "configurationprofile": ["aws:ResourceTag/"], "deployment": ["aws:ResourceTag/"], "deploymentstrategy": ["aws:ResourceTag/"], "environment": ["aws:ResourceTag/"], "experimentdefinition": ["aws:ResourceTag/"], "experimentrun": ["aws:ResourceTag/"], "extension": ["aws:ResourceTag/"], "extensionassociation": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "appsync": {"api": ["aws:ResourceTag/"], "channelNamespace": ["aws:ResourceTag/"], "domain": ["aws:ResourceTag/"], "graphqlapi": ["aws:ResourceTag/"]}, "aps": {"anomalydetector": ["aws:ResourceTag/"], "cluster": ["aws:ResourceTag/"], "rulegroupsnamespace": ["aws:ResourceTag/"], "scraper": ["aws:ResourceTag/"], "workspace": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "batch": {"compute-environment": ["aws:ResourceTag/"], "consumable-resource": ["aws:ResourceTag/"], "job": ["aws:ResourceTag/"], "job-definition-revision": ["aws:ResourceTag/"], "job-queue": ["aws:ResourceTag/"], "quota-share": ["aws:ResourceTag/"], "scheduling-policy": ["aws:ResourceTag/"], "service-environment": ["aws:ResourceTag/"], "service-job": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-estimate": ["aws:ResourceTag/"], "bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "bedrock": {"advanced-prompt-optimization-job": ["aws:ResourceTag/"], "agent": ["aws:ResourceTag/"], "agent-alias": ["aws:ResourceTag/"], "application-inference-profile": ["aws:ResourceTag/"], "async-invoke": ["aws:ResourceTag/"], "automated-reasoning-policy": ["aws:ResourceTag/"], "automated-reasoning-policy-version": ["aws:ResourceTag/"], "blueprint": ["aws:ResourceTag/"], "blueprint-optimization-invocation": ["aws:ResourceTag/"], "custom-model": ["aws:ResourceTag/"], "custom-model-deployment": ["aws:ResourceTag/"], "data-automation-invoLine truncated
|
||||
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "apigateway": {"AccessLogSettings": ["aws:ResourceTag/"], "Api": ["aws:ResourceTag/"], "ApiKey": ["aws:ResourceTag/"], "ApiKeys": ["aws:ResourceTag/"], "ApiMapping": ["aws:ResourceTag/"], "ApiMappings": ["aws:ResourceTag/"], "Apis": ["aws:ResourceTag/"], "Authorizer": ["aws:ResourceTag/"], "Authorizers": ["aws:ResourceTag/"], "AuthorizersCache": ["aws:ResourceTag/"], "BasePathMapping": ["aws:ResourceTag/"], "BasePathMappings": ["aws:ResourceTag/"], "ClientCertificate": ["aws:ResourceTag/"], "ClientCertificates": ["aws:ResourceTag/"], "Cors": ["aws:ResourceTag/"], "Deployment": ["aws:ResourceTag/"], "Deployments": ["aws:ResourceTag/"], "DocumentationPart": ["aws:ResourceTag/"], "DocumentationParts": ["aws:ResourceTag/"], "DocumentationVersion": ["aws:ResourceTag/"], "DocumentationVersions": ["aws:ResourceTag/"], "DomainName": ["aws:ResourceTag/"], "DomainNameAccessAssociations": ["aws:ResourceTag/"], "DomainNames": ["aws:ResourceTag/"], "ExportedAPI": ["aws:ResourceTag/"], "GatewayResponse": ["aws:ResourceTag/"], "GatewayResponses": ["aws:ResourceTag/"], "Integration": ["aws:ResourceTag/"], "IntegrationResponse": ["aws:ResourceTag/"], "IntegrationResponses": ["aws:ResourceTag/"], "Integrations": ["aws:ResourceTag/"], "Method": ["aws:ResourceTag/"], "MethodResponse": ["aws:ResourceTag/"], "Model": ["aws:ResourceTag/"], "ModelTemplate": ["aws:ResourceTag/"], "Models": ["aws:ResourceTag/"], "Portal": ["aws:ResourceTag/"], "PortalProduct": ["aws:ResourceTag/"], "PrivateBasePathMapping": ["aws:ResourceTag/"], "PrivateBasePathMappings": ["aws:ResourceTag/"], "PrivateDomainName": ["aws:ResourceTag/"], "ProductPage": ["aws:ResourceTag/"], "ProductRestEndpointPage": ["aws:ResourceTag/"], "RequestValidator": ["aws:ResourceTag/"], "RequestValidators": ["aws:ResourceTag/"], "Resource": ["aws:ResourceTag/"], "Resources": ["aws:ResourceTag/"], "RestApi": ["aws:ResourceTag/"], "RestApis": ["aws:ResourceTag/"], "Route": ["aws:ResourceTag/"], "RouteRequestParameter": ["aws:ResourceTag/"], "RouteResponse": ["aws:ResourceTag/"], "RouteResponses": ["aws:ResourceTag/"], "RouteSettings": ["aws:ResourceTag/"], "Routes": ["aws:ResourceTag/"], "RoutingRule": ["aws:ResourceTag/"], "Sdk": ["aws:ResourceTag/"], "Stage": ["aws:ResourceTag/"], "Stages": ["aws:ResourceTag/"], "Template": ["aws:ResourceTag/"], "UsagePlan": ["aws:ResourceTag/"], "UsagePlanKey": ["aws:ResourceTag/"], "UsagePlanKeys": ["aws:ResourceTag/"], "UsagePlans": ["aws:ResourceTag/"], "VpcLink": ["aws:ResourceTag/"], "VpcLinks": ["aws:ResourceTag/"]}, "appconfig": {"application": ["aws:ResourceTag/"], "configuration": ["aws:ResourceTag/"], "configurationprofile": ["aws:ResourceTag/"], "deployment": ["aws:ResourceTag/"], "deploymentstrategy": ["aws:ResourceTag/"], "environment": ["aws:ResourceTag/"], "experimentdefinition": ["aws:ResourceTag/"], "experimentrun": ["aws:ResourceTag/"], "extension": ["aws:ResourceTag/"], "extensionassociation": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "appsync": {"api": ["aws:ResourceTag/"], "channelNamespace": ["aws:ResourceTag/"], "domain": ["aws:ResourceTag/"], "graphqlapi": ["aws:ResourceTag/"]}, "aps": {"anomalydetector": ["aws:ResourceTag/"], "cluster": ["aws:ResourceTag/"], "rulegroupsnamespace": ["aws:ResourceTag/"], "scraper": ["aws:ResourceTag/"], "workspace": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "backup": {"backupAccessPoint": ["aws:ResourceTag/"], "backupPlan": ["aws:ResourceTag/"], "backupVault": ["aws:ResourceTag/"], "framework": ["aws:ResourceTag/"], "legalHold": ["aws:ResourceTag/"], "recoveryPoint": ["aws:ResourceTag/"], "reportPlan": ["aws:ResourceTag/"], "restoreTestingPlan": ["aws:ResourceTag/"], "tieringConfiguration": ["aws:ResourceTag/"]}, "batch": {"compute-environment": ["aws:ResourceTag/"], "consumable-resource": ["aws:ResourceTag/"], "job": ["aws:ResourceTag/"], "job-definition-revision": ["aws:ResourceTag/"], "job-queue": ["aws:ResourceTag/"], "quota-share": ["aws:ResourceTag/"], "scheduling-policy": ["aws:ResourceTag/"], "service-environment": ["aws:ResourceTag/"], "service-job": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-estimate": ["aws:ResourceTag/"], "bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "bedrock": {"advanced-prompt-optimization-job": ["aws:ResourceTag/"], "agent": ["aws:ResourceTag/"], "agent-alias": ["aws:ResourceTag/"], "application-inference-profile": ["aws:ResouLine 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"]},
|
||||
@@ -564,6 +564,121 @@
|
||||
"athena:UpdatePreparedStatement": {"action": "athena:UpdatePreparedStatement", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}, "apis": ["json/2017-05-18"]}]},
|
||||
"athena:UpdateSystemTableConfiguration": {"action": "athena:UpdateSystemTableConfiguration", "types": ["system-table"], "resources": [{"type": "system-table", "fill": {"TableName": "TableName"}, "apis": ["json/2017-05-18"]}]},
|
||||
"athena:UpdateWorkGroup": {"action": "athena:UpdateWorkGroup", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}, "apis": ["json/2017-05-18"]}]},
|
||||
"backup:AssociateBackupVaultMpaApprovalTeam": {"action": "backup:AssociateBackupVaultMpaApprovalTeam", "types": ["backupVault"], "resources": [{"types": ["backupVault"], "arn": "MpaApprovalTeamArn", "apis": ["rest-json/2018-11-15"]}, {"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:CancelLegalHold": {"action": "backup:CancelLegalHold", "types": ["legalHold"], "resources": [{"type": "legalHold", "fill": {"LegalHoldId": "LegalHoldId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"LegalHoldId": "{legalHoldId}"}},
|
||||
"backup:CreateBackupAccessPoint": {"action": "backup:CreateBackupAccessPoint", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "makes": [{"type": "backupAccessPoint", "fill": {"AccessPointName": "Name"}}]},
|
||||
"backup:CreateBackupPlan": {"action": "backup:CreateBackupPlan", "types": ["backupPlan"], "resources": [{"type": "backupPlan", "fill": {}, "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:CreateBackupSelection": {"action": "backup:CreateBackupSelection", "types": ["backupPlan"], "resources": [{"types": ["backupPlan"], "arn": "BackupSelection.IamRoleArn", "apis": ["rest-json/2018-11-15"]}, {"type": "backupPlan", "fill": {"BackupPlanId": "BackupPlanId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupPlanId": "{backupPlanId}"}},
|
||||
"backup:CreateBackupVault": {"action": "backup:CreateBackupVault", "types": ["backupVault"], "resources": [{"types": ["backupVault"], "arn": "EncryptionKeyArn", "apis": ["rest-json/2018-11-15"]}, {"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:CreateFramework": {"action": "backup:CreateFramework", "types": ["framework"], "resources": [{"type": "framework", "fill": {"FrameworkName": "FrameworkName"}, "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:CreateLegalHold": {"action": "backup:CreateLegalHold", "types": ["legalHold"], "resources": [{"type": "legalHold", "fill": {}, "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:CreateLogicallyAirGappedBackupVault": {"action": "backup:CreateLogicallyAirGappedBackupVault", "types": ["backupVault"], "resources": [{"types": ["backupVault"], "arn": "EncryptionKeyArn", "apis": ["rest-json/2018-11-15"]}, {"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:CreateReportPlan": {"action": "backup:CreateReportPlan", "types": ["reportPlan"], "resources": [{"types": ["reportPlan"], "arn": "ReportSetting.FrameworkArns[]", "apis": ["rest-json/2018-11-15"]}, {"type": "reportPlan", "fill": {"ReportPlanName": "ReportPlanName"}, "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:CreateRestoreAccessBackupVault": {"action": "backup:CreateRestoreAccessBackupVault", "types": ["backupVault"], "resources": [{"types": ["backupVault"], "arn": "SourceBackupVaultArn", "apis": ["rest-json/2018-11-15"]}, {"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:CreateRestoreTestingPlan": {"action": "backup:CreateRestoreTestingPlan", "types": ["restoreTestingPlan"], "resources": [{"type": "restoreTestingPlan", "fill": {}, "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:CreateRestoreTestingSelection": {"action": "backup:CreateRestoreTestingSelection", "types": ["restoreTestingPlan"], "resources": [{"types": ["restoreTestingPlan"], "arn": "RestoreTestingSelection.IamRoleArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["restoreTestingPlan"], "arn": "RestoreTestingSelection.ProtectedResourceArns[]", "apis": ["rest-json/2018-11-15"]}, {"type": "restoreTestingPlan", "fill": {"RestoreTestingPlanName": "RestoreTestingPlanName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"RestoreTestingPlanName": "{RestoreTestingPlanName}"}},
|
||||
"backup:CreateTieringConfiguration": {"action": "backup:CreateTieringConfiguration", "types": ["tieringConfiguration"], "resources": [{"type": "tieringConfiguration", "fill": {}, "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:DeleteBackupAccessPoint": {"action": "backup:DeleteBackupAccessPoint", "types": ["backupAccessPoint"], "resources": [{"types": ["backupAccessPoint"], "arn": "AccessPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"AccessPointArn": "{AccessPointArn}"}},
|
||||
"backup:DeleteBackupPlan": {"action": "backup:DeleteBackupPlan", "types": ["backupPlan"], "resources": [{"type": "backupPlan", "fill": {"BackupPlanId": "BackupPlanId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupPlanId": "{backupPlanId}"}},
|
||||
"backup:DeleteBackupSelection": {"action": "backup:DeleteBackupSelection", "types": ["backupPlan"], "resources": [{"type": "backupPlan", "fill": {"BackupPlanId": "BackupPlanId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupPlanId": "{backupPlanId}"}},
|
||||
"backup:DeleteBackupVault": {"action": "backup:DeleteBackupVault", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:DeleteBackupVaultAccessPolicy": {"action": "backup:DeleteBackupVaultAccessPolicy", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:DeleteBackupVaultLockConfiguration": {"action": "backup:DeleteBackupVaultLockConfiguration", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:DeleteBackupVaultNotifications": {"action": "backup:DeleteBackupVaultNotifications", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:DeleteFramework": {"action": "backup:DeleteFramework", "types": ["framework"], "resources": [{"type": "framework", "fill": {}, "find": ["FrameworkName"], "apis": ["rest-json/2018-11-15"]}], "located": {"FrameworkName": "{frameworkName}"}},
|
||||
"backup:DeleteRecoveryPoint": {"action": "backup:DeleteRecoveryPoint", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"RecoveryPointArn": "{recoveryPointArn}"}},
|
||||
"backup:DeleteReportPlan": {"action": "backup:DeleteReportPlan", "types": ["reportPlan"], "resources": [{"type": "reportPlan", "fill": {}, "find": ["ReportPlanName"], "apis": ["rest-json/2018-11-15"]}], "located": {"ReportPlanName": "{reportPlanName}"}},
|
||||
"backup:DeleteRestoreTestingPlan": {"action": "backup:DeleteRestoreTestingPlan", "types": ["restoreTestingPlan"], "resources": [{"type": "restoreTestingPlan", "fill": {"RestoreTestingPlanName": "RestoreTestingPlanName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"RestoreTestingPlanName": "{RestoreTestingPlanName}"}},
|
||||
"backup:DeleteRestoreTestingSelection": {"action": "backup:DeleteRestoreTestingSelection", "types": ["restoreTestingPlan"], "resources": [{"type": "restoreTestingPlan", "fill": {"RestoreTestingPlanName": "RestoreTestingPlanName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"RestoreTestingPlanName": "{RestoreTestingPlanName}"}},
|
||||
"backup:DeleteTieringConfiguration": {"action": "backup:DeleteTieringConfiguration", "types": ["tieringConfiguration"], "resources": [{"type": "tieringConfiguration", "fill": {}, "find": ["TieringConfigurationName"], "apis": ["rest-json/2018-11-15"]}], "located": {"TieringConfigurationName": "{tieringConfigurationName}"}},
|
||||
"backup:DescribeBackupAccessPoint": {"action": "backup:DescribeBackupAccessPoint", "types": ["backupAccessPoint"], "resources": [{"types": ["backupAccessPoint"], "arn": "AccessPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"AccessPointArn": "{AccessPointArn}"}},
|
||||
"backup:DescribeBackupJob": {"action": "backup:DescribeBackupJob", "types": [], "resources": []},
|
||||
"backup:DescribeBackupVault": {"action": "backup:DescribeBackupVault", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "account": "BackupVaultAccountId", "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultAccountId": "?backupVaultAccountId", "BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:DescribeCopyJob": {"action": "backup:DescribeCopyJob", "types": [], "resources": []},
|
||||
"backup:DescribeFramework": {"action": "backup:DescribeFramework", "types": ["framework"], "resources": [{"type": "framework", "fill": {}, "find": ["FrameworkName"], "apis": ["rest-json/2018-11-15"]}], "located": {"FrameworkName": "{frameworkName}"}},
|
||||
"backup:DescribeGlobalSettings": {"action": "backup:DescribeGlobalSettings", "types": [], "resources": []},
|
||||
"backup:DescribeProtectedResource": {"action": "backup:DescribeProtectedResource", "types": [], "resources": []},
|
||||
"backup:DescribeRecoveryPoint": {"action": "backup:DescribeRecoveryPoint", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"RecoveryPointArn": "{recoveryPointArn}"}},
|
||||
"backup:DescribeRegionSettings": {"action": "backup:DescribeRegionSettings", "types": [], "resources": []},
|
||||
"backup:DescribeReportJob": {"action": "backup:DescribeReportJob", "types": [], "resources": []},
|
||||
"backup:DescribeReportPlan": {"action": "backup:DescribeReportPlan", "types": ["reportPlan"], "resources": [{"type": "reportPlan", "fill": {}, "find": ["ReportPlanName"], "apis": ["rest-json/2018-11-15"]}], "located": {"ReportPlanName": "{reportPlanName}"}},
|
||||
"backup:DescribeRestoreJob": {"action": "backup:DescribeRestoreJob", "types": [], "resources": []},
|
||||
"backup:DescribeScanJob": {"action": "backup:DescribeScanJob", "types": [], "resources": []},
|
||||
"backup:DisassociateBackupVaultMpaApprovalTeam": {"action": "backup:DisassociateBackupVaultMpaApprovalTeam", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:DisassociateRecoveryPoint": {"action": "backup:DisassociateRecoveryPoint", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"RecoveryPointArn": "{recoveryPointArn}"}},
|
||||
"backup:DisassociateRecoveryPointFromParent": {"action": "backup:DisassociateRecoveryPointFromParent", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"RecoveryPointArn": "{recoveryPointArn}"}},
|
||||
"backup:ExportBackupPlanTemplate": {"action": "backup:ExportBackupPlanTemplate", "types": [], "resources": []},
|
||||
"backup:GetBackupPlan": {"action": "backup:GetBackupPlan", "types": ["backupPlan"], "resources": [{"type": "backupPlan", "fill": {"BackupPlanId": "BackupPlanId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupPlanId": "{backupPlanId}"}},
|
||||
"backup:GetBackupPlanFromJSON": {"action": "backup:GetBackupPlanFromJSON", "types": [], "resources": []},
|
||||
"backup:GetBackupPlanFromTemplate": {"action": "backup:GetBackupPlanFromTemplate", "types": [], "resources": []},
|
||||
"backup:GetBackupSelection": {"action": "backup:GetBackupSelection", "types": ["backupPlan"], "resources": [{"type": "backupPlan", "fill": {"BackupPlanId": "BackupPlanId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupPlanId": "{backupPlanId}"}},
|
||||
"backup:GetBackupVaultAccessPolicy": {"action": "backup:GetBackupVaultAccessPolicy", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:GetBackupVaultNotifications": {"action": "backup:GetBackupVaultNotifications", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:GetLegalHold": {"action": "backup:GetLegalHold", "types": ["legalHold"], "resources": [{"type": "legalHold", "fill": {"LegalHoldId": "LegalHoldId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"LegalHoldId": "{legalHoldId}"}},
|
||||
"backup:GetPITRMalwareScanResults": {"action": "backup:GetPITRMalwareScanResults", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"RecoveryPointArn": "?RecoveryPointArn"}},
|
||||
"backup:GetRecoveryPointIndexDetails": {"action": "backup:GetRecoveryPointIndexDetails", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"RecoveryPointArn": "{recoveryPointArn}"}},
|
||||
"backup:GetRecoveryPointRestoreMetadata": {"action": "backup:GetRecoveryPointRestoreMetadata", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"RecoveryPointArn": "{recoveryPointArn}"}},
|
||||
"backup:GetRestoreJobMetadata": {"action": "backup:GetRestoreJobMetadata", "types": [], "resources": []},
|
||||
"backup:GetRestoreTestingInferredMetadata": {"action": "backup:GetRestoreTestingInferredMetadata", "types": [], "resources": []},
|
||||
"backup:GetRestoreTestingPlan": {"action": "backup:GetRestoreTestingPlan", "types": ["restoreTestingPlan"], "resources": [{"type": "restoreTestingPlan", "fill": {"RestoreTestingPlanName": "RestoreTestingPlanName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"RestoreTestingPlanName": "{RestoreTestingPlanName}"}},
|
||||
"backup:GetRestoreTestingSelection": {"action": "backup:GetRestoreTestingSelection", "types": ["restoreTestingPlan"], "resources": [{"type": "restoreTestingPlan", "fill": {"RestoreTestingPlanName": "RestoreTestingPlanName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"RestoreTestingPlanName": "{RestoreTestingPlanName}"}},
|
||||
"backup:GetSupportedResourceTypes": {"action": "backup:GetSupportedResourceTypes", "types": [], "resources": []},
|
||||
"backup:GetTieringConfiguration": {"action": "backup:GetTieringConfiguration", "types": ["tieringConfiguration"], "resources": [{"type": "tieringConfiguration", "fill": {}, "find": ["TieringConfigurationName"], "apis": ["rest-json/2018-11-15"]}], "located": {"TieringConfigurationName": "{tieringConfigurationName}"}},
|
||||
"backup:ListBackupAccessPoints": {"action": "backup:ListBackupAccessPoints", "types": [], "resources": []},
|
||||
"backup:ListBackupAccessPointsByRecoveryPoint": {"action": "backup:ListBackupAccessPointsByRecoveryPoint", "types": [], "resources": []},
|
||||
"backup:ListBackupAccessPointsByResource": {"action": "backup:ListBackupAccessPointsByResource", "types": [], "resources": []},
|
||||
"backup:ListBackupJobSummaries": {"action": "backup:ListBackupJobSummaries", "types": [], "resources": []},
|
||||
"backup:ListBackupJobs": {"action": "backup:ListBackupJobs", "types": [], "resources": []},
|
||||
"backup:ListBackupPlanTemplates": {"action": "backup:ListBackupPlanTemplates", "types": [], "resources": []},
|
||||
"backup:ListBackupPlanVersions": {"action": "backup:ListBackupPlanVersions", "types": ["backupPlan"], "resources": [{"type": "backupPlan", "fill": {"BackupPlanId": "BackupPlanId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupPlanId": "{backupPlanId}"}},
|
||||
"backup:ListBackupPlans": {"action": "backup:ListBackupPlans", "types": [], "resources": []},
|
||||
"backup:ListBackupSelections": {"action": "backup:ListBackupSelections", "types": ["backupPlan"], "resources": [{"type": "backupPlan", "fill": {"BackupPlanId": "BackupPlanId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupPlanId": "{backupPlanId}"}},
|
||||
"backup:ListBackupVaults": {"action": "backup:ListBackupVaults", "types": [], "resources": []},
|
||||
"backup:ListCopyJobSummaries": {"action": "backup:ListCopyJobSummaries", "types": [], "resources": []},
|
||||
"backup:ListCopyJobs": {"action": "backup:ListCopyJobs", "types": [], "resources": []},
|
||||
"backup:ListFrameworks": {"action": "backup:ListFrameworks", "types": [], "resources": []},
|
||||
"backup:ListIndexedRecoveryPoints": {"action": "backup:ListIndexedRecoveryPoints", "types": [], "resources": []},
|
||||
"backup:ListLegalHolds": {"action": "backup:ListLegalHolds", "types": [], "resources": []},
|
||||
"backup:ListProtectedResources": {"action": "backup:ListProtectedResources", "types": [], "resources": []},
|
||||
"backup:ListProtectedResourcesByBackupVault": {"action": "backup:ListProtectedResourcesByBackupVault", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "account": "BackupVaultAccountId", "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultAccountId": "?backupVaultAccountId", "BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:ListRecoveryPointsByBackupVault": {"action": "backup:ListRecoveryPointsByBackupVault", "types": ["backupVault"], "resources": [{"types": ["backupVault"], "arn": "ByParentRecoveryPointArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["backupVault"], "arn": "ByResourceArn", "apis": ["rest-json/2018-11-15"]}, {"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "account": "BackupVaultAccountId", "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultAccountId": "?backupVaultAccountId", "BackupVaultName": "{backupVaultName}", "ByParentRecoveryPointArn": "?parentRecoveryPointArn", "ByResourceArn": "?resourceArn"}},
|
||||
"backup:ListRecoveryPointsByLegalHold": {"action": "backup:ListRecoveryPointsByLegalHold", "types": ["legalHold"], "resources": [{"type": "legalHold", "fill": {"LegalHoldId": "LegalHoldId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"LegalHoldId": "{legalHoldId}"}},
|
||||
"backup:ListRecoveryPointsByResource": {"action": "backup:ListRecoveryPointsByResource", "types": [], "resources": []},
|
||||
"backup:ListReportJobs": {"action": "backup:ListReportJobs", "types": [], "resources": []},
|
||||
"backup:ListReportPlans": {"action": "backup:ListReportPlans", "types": [], "resources": []},
|
||||
"backup:ListRestoreAccessBackupVaults": {"action": "backup:ListRestoreAccessBackupVaults", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:ListRestoreJobSummaries": {"action": "backup:ListRestoreJobSummaries", "types": [], "resources": []},
|
||||
"backup:ListRestoreJobs": {"action": "backup:ListRestoreJobs", "types": [], "resources": []},
|
||||
"backup:ListRestoreJobsByProtectedResource": {"action": "backup:ListRestoreJobsByProtectedResource", "types": [], "resources": []},
|
||||
"backup:ListRestoreTestingPlans": {"action": "backup:ListRestoreTestingPlans", "types": [], "resources": []},
|
||||
"backup:ListRestoreTestingSelections": {"action": "backup:ListRestoreTestingSelections", "types": ["restoreTestingPlan"], "resources": [{"type": "restoreTestingPlan", "fill": {"RestoreTestingPlanName": "RestoreTestingPlanName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"RestoreTestingPlanName": "{RestoreTestingPlanName}"}},
|
||||
"backup:ListScanJobSummaries": {"action": "backup:ListScanJobSummaries", "types": [], "resources": []},
|
||||
"backup:ListScanJobs": {"action": "backup:ListScanJobs", "types": [], "resources": []},
|
||||
"backup:ListTags": {"action": "backup:ListTags", "types": ["backupAccessPoint", "backupPlan", "backupVault", "framework", "legalHold", "recoveryPoint", "reportPlan", "restoreTestingPlan", "tieringConfiguration"], "resources": [{"types": ["backupAccessPoint", "backupPlan", "backupVault", "framework", "legalHold", "recoveryPoint", "reportPlan", "restoreTestingPlan", "tieringConfiguration"], "arn": "ResourceArn", "apis": ["rest-json/2018-11-15"]}], "located": {"ResourceArn": "{resourceArn}"}},
|
||||
"backup:ListTieringConfigurations": {"action": "backup:ListTieringConfigurations", "types": [], "resources": []},
|
||||
"backup:PutBackupVaultAccessPolicy": {"action": "backup:PutBackupVaultAccessPolicy", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:PutBackupVaultLockConfiguration": {"action": "backup:PutBackupVaultLockConfiguration", "types": ["backupVault"], "resources": [{"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:PutBackupVaultNotifications": {"action": "backup:PutBackupVaultNotifications", "types": ["backupVault"], "resources": [{"types": ["backupVault"], "arn": "SNSTopicArn", "apis": ["rest-json/2018-11-15"]}, {"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}"}},
|
||||
"backup:PutRestoreValidationResult": {"action": "backup:PutRestoreValidationResult", "types": [], "resources": []},
|
||||
"backup:RevokeRestoreAccessBackupVault": {"action": "backup:RevokeRestoreAccessBackupVault", "types": ["backupVault"], "resources": [{"types": ["backupVault"], "arn": "RestoreAccessBackupVaultArn", "apis": ["rest-json/2018-11-15"]}, {"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupVaultName": "{backupVaultName}", "RestoreAccessBackupVaultArn": "{restoreAccessBackupVaultArn}"}},
|
||||
"backup:StartBackupJob": {"action": "backup:StartBackupJob", "types": ["backupVault"], "resources": [{"types": ["backupVault"], "arn": "IamRoleArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["backupVault"], "arn": "LogicallyAirGappedBackupVaultArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["backupVault"], "arn": "ResourceArn", "apis": ["rest-json/2018-11-15"]}, {"type": "backupVault", "fill": {"BackupVaultName": "BackupVaultName"}, "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:StartCopyJob": {"action": "backup:StartCopyJob", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "DestinationBackupVaultArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["recoveryPoint"], "arn": "IamRoleArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:StartReportJob": {"action": "backup:StartReportJob", "types": ["reportPlan"], "resources": [{"type": "reportPlan", "fill": {}, "find": ["ReportPlanName"], "apis": ["rest-json/2018-11-15"]}], "located": {"ReportPlanName": "{reportPlanName}"}},
|
||||
"backup:StartRestoreJob": {"action": "backup:StartRestoreJob", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "IamRoleArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}, {"type": "recoveryPoint", "fill": {"ResourceType": "ResourceType"}, "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:StartScanJob": {"action": "backup:StartScanJob", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "IamRoleArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["recoveryPoint"], "arn": "ScanBaseRecoveryPointArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["recoveryPoint"], "arn": "ScannerRoleArn", "apis": ["rest-json/2018-11-15"]}]},
|
||||
"backup:StopBackupJob": {"action": "backup:StopBackupJob", "types": [], "resources": []},
|
||||
"backup:TagResource": {"action": "backup:TagResource", "types": ["backupAccessPoint", "backupPlan", "backupVault", "framework", "legalHold", "recoveryPoint", "reportPlan", "restoreTestingPlan", "tieringConfiguration"], "resources": [{"types": ["backupAccessPoint", "backupPlan", "backupVault", "framework", "legalHold", "recoveryPoint", "reportPlan", "restoreTestingPlan", "tieringConfiguration"], "arn": "ResourceArn", "apis": ["rest-json/2018-11-15"]}], "located": {"ResourceArn": "{resourceArn}"}},
|
||||
"backup:UntagResource": {"action": "backup:UntagResource", "types": ["backupAccessPoint", "backupPlan", "backupVault", "framework", "legalHold", "recoveryPoint", "reportPlan", "restoreTestingPlan", "tieringConfiguration"], "resources": [{"types": ["backupAccessPoint", "backupPlan", "backupVault", "framework", "legalHold", "recoveryPoint", "reportPlan", "restoreTestingPlan", "tieringConfiguration"], "arn": "ResourceArn", "apis": ["rest-json/2018-11-15"]}], "located": {"ResourceArn": "{resourceArn}"}},
|
||||
"backup:UpdateBackupPlan": {"action": "backup:UpdateBackupPlan", "types": ["backupPlan"], "resources": [{"type": "backupPlan", "fill": {"BackupPlanId": "BackupPlanId"}, "apis": ["rest-json/2018-11-15"]}], "located": {"BackupPlanId": "{backupPlanId}"}},
|
||||
"backup:UpdateFramework": {"action": "backup:UpdateFramework", "types": ["framework"], "resources": [{"type": "framework", "fill": {}, "find": ["FrameworkName"], "apis": ["rest-json/2018-11-15"]}], "located": {"FrameworkName": "{frameworkName}"}},
|
||||
"backup:UpdateGlobalSettings": {"action": "backup:UpdateGlobalSettings", "types": [], "resources": []},
|
||||
"backup:UpdateRecoveryPointIndexSettings": {"action": "backup:UpdateRecoveryPointIndexSettings", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "IamRoleArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"RecoveryPointArn": "{recoveryPointArn}"}},
|
||||
"backup:UpdateRecoveryPointLifecycle": {"action": "backup:UpdateRecoveryPointLifecycle", "types": ["recoveryPoint"], "resources": [{"types": ["recoveryPoint"], "arn": "RecoveryPointArn", "apis": ["rest-json/2018-11-15"]}], "located": {"RecoveryPointArn": "{recoveryPointArn}"}},
|
||||
"backup:UpdateRegionSettings": {"action": "backup:UpdateRegionSettings", "types": [], "resources": []},
|
||||
"backup:UpdateReportPlan": {"action": "backup:UpdateReportPlan", "types": ["reportPlan"], "resources": [{"types": ["reportPlan"], "arn": "ReportSetting.FrameworkArns[]", "apis": ["rest-json/2018-11-15"]}, {"type": "reportPlan", "fill": {}, "find": ["ReportPlanName"], "apis": ["rest-json/2018-11-15"]}], "located": {"ReportPlanName": "{reportPlanName}"}},
|
||||
"backup:UpdateRestoreTestingPlan": {"action": "backup:UpdateRestoreTestingPlan", "types": ["restoreTestingPlan"], "resources": [{"type": "restoreTestingPlan", "fill": {"RestoreTestingPlanName": "RestoreTestingPlanName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"RestoreTestingPlanName": "{RestoreTestingPlanName}"}},
|
||||
"backup:UpdateRestoreTestingSelection": {"action": "backup:UpdateRestoreTestingSelection", "types": ["restoreTestingPlan"], "resources": [{"types": ["restoreTestingPlan"], "arn": "RestoreTestingSelection.IamRoleArn", "apis": ["rest-json/2018-11-15"]}, {"types": ["restoreTestingPlan"], "arn": "RestoreTestingSelection.ProtectedResourceArns[]", "apis": ["rest-json/2018-11-15"]}, {"type": "restoreTestingPlan", "fill": {"RestoreTestingPlanName": "RestoreTestingPlanName"}, "apis": ["rest-json/2018-11-15"]}], "located": {"RestoreTestingPlanName": "{RestoreTestingPlanName}"}},
|
||||
"backup:UpdateTieringConfiguration": {"action": "backup:UpdateTieringConfiguration", "types": ["tieringConfiguration"], "resources": [{"type": "tieringConfiguration", "fill": {}, "find": ["TieringConfigurationName"], "apis": ["rest-json/2018-11-15"]}], "located": {"TieringConfigurationName": "{tieringConfigurationName}"}},
|
||||
"batch:CancelJob": {"action": "batch:CancelJob", "types": ["job"], "resources": [{"type": "job", "fill": {"JobId": "jobId"}, "apis": ["rest-json/2016-08-10"]}]},
|
||||
"batch:CancelJobs": {"action": "batch:CancelJob", "types": ["job"], "resources": [{"type": "job", "fill": {"JobId": "jobs[]"}, "apis": ["rest-json/2016-08-10"]}]},
|
||||
"batch:CreateComputeEnvironment": {"action": "batch:CreateComputeEnvironment", "types": ["compute-environment"], "resources": [{"types": ["compute-environment"], "arn": "eksConfiguration.eksClusterArn", "apis": ["rest-json/2016-08-10"]}, {"type": "compute-environment", "fill": {"ComputeEnvironmentName": "computeEnvironmentName"}, "apis": ["rest-json/2016-08-10"]}]},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_tag_on_create.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.44.9 (local/aws/botocore)", "retrieved": "2026-11-26", "note": "make iam-tag-on-create-check re-derives every member from botocore; make iam-tag-on-create-verify checks every operation against AWS."},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "appconfig": ["appconfig"], "application-autoscaling": ["application-autoscaling"], "appsync": ["appsync"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codeguru-reviewer": ["codeguru-reviewer"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb", "elb-proxy", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "s3tables": ["s3tables"], "s3vectors": [], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
|
||||
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "CreateComputeEnvironment is checked as batch:TagResource or batch:SetCapacityTags, and nothing says which of its tag members each is for", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "appconfig": ["appconfig"], "application-autoscaling": ["application-autoscaling"], "appsync": ["appsync"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "backup": ["backup"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codeguru-reviewer": ["codeguru-reviewer"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticfilesystem": ["efs"], "elasticloadbalancing": ["elb", "elb-proxy", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "s3tables": ["s3tables"], "s3vectors": [], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
|
||||
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "batch": "CreateComputeEnvironment is checked as batch:TagResource or batch:SetCapacityTags, and nothing says which of its tag members each is for", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
|
||||
"otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "apiportal", "appfabric", "appflow", "application-signals", "applicationinsights", "appmesh", "apprunner", "appstream", "arc-region-switch", "artifact", "auditmanager", "b2bi", "backup-gateway", "backup-search", "bcm-dashboards", "billing", "billingconductor", "braket", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "connect-campaigns", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "directconnect", "docdb-elastic", "drs", "ds", "ebs", "ecr-public", "elemental-inference", "entityresolution", "evs", "fms", "forecast", "frauddetector", "fsx", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "ivs", "ivschat", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "m2", "managedblockchain", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgn", "migrationhub-orchestrator", "mobiletargeting", "mpa", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "notifications", "notifications-contacts", "observabilityadmin", "odb", "omics", "opensearch", "osis", "outposts", "partnercentral", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "profile", "proton", "qbusiness", "rbin", "refactor-spaces", "repostspace", "resiliencehub", "rolesanywhere", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3files", "sagemaker-geospatial", "savingsplans", "schemas", "scn", "security-ir", "securityagent", "securitylake", "shield", "sms-voice", "snow-device-management", "social-messaging", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "voiceid", "vpc-lattice", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workspaces", "workspaces-instances", "workspaces-web"],
|
||||
"resourceArns": {"ec2": {"application-status-check": "arn:${Partition}:ec2:${Region}:${Account}:application-status-check/*", "capacity-block": "arn:${Partition}:ec2:${Region}:${Account}:capacity-block/*", "capacity-manager-data-export": "arn:${Partition}:ec2:${Region}:${Account}:capacity-manager-data-export/*", "capacity-reservation": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/*", "capacity-reservation-cancellation-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-cancellation-quote/*", "capacity-reservation-fleet": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-fleet/*", "capacity-reservation-modification-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-modification-quote/*", "carrier-gateway": "arn:${Partition}:ec2:${Region}:${Account}:carrier-gateway/*", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/*", "client-vpn-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:client-vpn-endpoint/*", "coip-pool": "arn:${Partition}:ec2:${Region}:${Account}:coip-pool/*", "customer-gateway": "arn:${Partition}:ec2:${Region}:${Account}:customer-gateway/*", "declarative-policies-report": "arn:${Partition}:ec2:${Region}:${Account}:declarative-policies-report/*", "dedicated-host": "arn:${Partition}:ec2:${Region}:${Account}:dedicated-host/*", "dhcp-options": "arn:${Partition}:ec2:${Region}:${Account}:dhcp-options/*", "egress-only-internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:egress-only-internet-gateway/*", "elastic-gpu": "arn:${Partition}:ec2:${Region}:${Account}:elastic-gpu/*", "elastic-inference": "arn:${Partition}:elastic-inference:${Region}:${Account}:elastic-inference-accelerator/*", "elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/*", "export-image-task": "arn:${Partition}:ec2:${Region}:${Account}:export-image-task/*", "export-instance-task": "arn:${Partition}:ec2:${Region}:${Account}:export-instance-task/*", "fleet": "arn:${Partition}:ec2:${Region}:${Account}:fleet/*", "fpga-image": "arn:${Partition}:ec2:${Region}:${Account}:fpga-image/*", "group": "arn:${Partition}:resource-groups:${Region}:${Account}:group/*", "host-reservation": "arn:${Partition}:ec2:${Region}:${Account}:host-reservation/*", "image": "arn:${Partition}:ec2:${Region}::image/*", "image-usage-report": "arn:${Partition}:ec2:${Region}:${Account}:image-usage-report/*", "import-image-task": "arn:${Partition}:ec2:${Region}:${Account}:import-image-task/*", "import-snapshot-task": "arn:${Partition}:ec2:${Region}:${Account}:import-snapshot-task/*", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/*", "instance-connect-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:instance-connect-endpoint/*", "instance-event-window": "arn:${Partition}:ec2:${Region}:${Account}:instance-event-window/*", "internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:internet-gateway/*", "ipam": "arn:${Partition}:ec2::${Account}:ipam/*", "ipam-external-resource-verification-token": "arn:${Partition}:ec2::${Account}:ipam-external-resource-verification-token/*", "ipam-internet-registry-association": "arn:${Partition}:ec2::${Account}:ipam-internet-registry-association/*", "ipam-policy": "arn:${Partition}:ec2::${Account}:ipam-policy/*", "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/*", "ipam-pool-allocation": "arn:${Partition}:ec2:${Region}:${Account}:ipam-pool-allocation/*", "ipam-prefix-list-resolver": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver/*", "ipam-prefix-list-resolver-target": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver-target/*", "ipam-resource-discovery": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery/*", "ipam-resource-discovery-association": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery-association/*", "ipam-scope": "arn:${Partition}:ec2::${Account}:ipam-scope/*", "ipv4pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv4pool-ec2/*", "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/*", "key-pair": "arn:${Partition}:ec2:${Region}:${Account}:key-pair/*", "launch-template": "arn:${Partition}:ec2:${Region}:${Account}:launch-template/*", "license-configuration": "arn:${Partition}:license-manager:${Region}:${Account}:license-configuration:*", "local-gateway": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway/*", "local-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table/*", "local-gateway-route-table-virtual-interface-group-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-virtual-interface-group-association/*", "local-gateway-route-table-vpc-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-vpc-association/*", "local-gateway-virtual-interface": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface/*", "local-gateway-virtual-interface-group": "arn:${Partition}:ec2:${Region}:${Account}:Line truncated
|
||||
"operations": {
|
||||
@@ -32,6 +32,16 @@
|
||||
"athena:CreateWorkGroup": {"tagging": ["athena:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"athena:StartSession": {"tagging": ["athena:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"autoscaling:CreateAutoScalingGroup": {"tagging": ["autoscaling:CreateOrUpdateTags"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"backup:CreateBackupAccessPoint": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"backup:CreateBackupPlan": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "BackupPlanTags{}"}]},
|
||||
"backup:CreateBackupVault": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "BackupVaultTags{}"}]},
|
||||
"backup:CreateFramework": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "FrameworkTags{}"}]},
|
||||
"backup:CreateLegalHold": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"backup:CreateLogicallyAirGappedBackupVault": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "BackupVaultTags{}"}]},
|
||||
"backup:CreateReportPlan": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "ReportPlanTags{}"}]},
|
||||
"backup:CreateRestoreAccessBackupVault": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "BackupVaultTags{}"}]},
|
||||
"backup:CreateRestoreTestingPlan": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"backup:CreateTieringConfiguration": {"tagging": ["backup:TagResource"], "requestTags": true, "tags": [{"member": "TieringConfigurationTags{}"}]},
|
||||
"bcm-data-exports:CreateExport": {"tagging": ["bcm-data-exports:TagResource"], "requestTags": true, "tags": [{"member": "ResourceTags[]", "key": "Key", "value": "Value"}]},
|
||||
"bcm-pricing-calculator:CreateBillEstimate": {"tagging": ["bcm-pricing-calculator:TagResource"], "tags": [{"member": "tags{}"}]},
|
||||
"bcm-pricing-calculator:CreateBillScenario": {"tagging": ["bcm-pricing-calculator:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
|
||||
@@ -514,6 +514,127 @@
|
||||
"UpdateType": {"method": "POST", "requestUri": "/v1/apis/{apiId}/types/{typeName}"}
|
||||
}
|
||||
},
|
||||
"backup": {
|
||||
"credentialScope": "backup",
|
||||
"apiVersion": "2018-11-15",
|
||||
"operations": {
|
||||
"AssociateBackupVaultMpaApprovalTeam": {"method": "PUT", "requestUri": "/backup-vaults/{backupVaultName}/mpaApprovalTeam"},
|
||||
"CancelLegalHold": {"method": "DELETE", "requestUri": "/legal-holds/{legalHoldId}"},
|
||||
"CreateBackupAccessPoint": {"method": "PUT", "requestUri": "/backup-access-point/create"},
|
||||
"CreateBackupPlan": {"method": "PUT", "requestUri": "/backup/plans/"},
|
||||
"CreateBackupSelection": {"method": "PUT", "requestUri": "/backup/plans/{backupPlanId}/selections/"},
|
||||
"CreateBackupVault": {"method": "PUT", "requestUri": "/backup-vaults/{backupVaultName}"},
|
||||
"CreateFramework": {"method": "POST", "requestUri": "/audit/frameworks"},
|
||||
"CreateLegalHold": {"method": "POST", "requestUri": "/legal-holds/"},
|
||||
"CreateLogicallyAirGappedBackupVault": {"method": "PUT", "requestUri": "/logically-air-gapped-backup-vaults/{backupVaultName}"},
|
||||
"CreateReportPlan": {"method": "POST", "requestUri": "/audit/report-plans"},
|
||||
"CreateRestoreAccessBackupVault": {"method": "PUT", "requestUri": "/restore-access-backup-vaults"},
|
||||
"CreateRestoreTestingPlan": {"method": "PUT", "requestUri": "/restore-testing/plans"},
|
||||
"CreateRestoreTestingSelection": {"method": "PUT", "requestUri": "/restore-testing/plans/{RestoreTestingPlanName}/selections"},
|
||||
"CreateTieringConfiguration": {"method": "PUT", "requestUri": "/tiering-configurations"},
|
||||
"DeleteBackupAccessPoint": {"method": "DELETE", "requestUri": "/backup-access-point/delete/{AccessPointArn}"},
|
||||
"DeleteBackupPlan": {"method": "DELETE", "requestUri": "/backup/plans/{backupPlanId}"},
|
||||
"DeleteBackupSelection": {"method": "DELETE", "requestUri": "/backup/plans/{backupPlanId}/selections/{selectionId}"},
|
||||
"DeleteBackupVault": {"method": "DELETE", "requestUri": "/backup-vaults/{backupVaultName}"},
|
||||
"DeleteBackupVaultAccessPolicy": {"method": "DELETE", "requestUri": "/backup-vaults/{backupVaultName}/access-policy"},
|
||||
"DeleteBackupVaultLockConfiguration": {"method": "DELETE", "requestUri": "/backup-vaults/{backupVaultName}/vault-lock"},
|
||||
"DeleteBackupVaultNotifications": {"method": "DELETE", "requestUri": "/backup-vaults/{backupVaultName}/notification-configuration"},
|
||||
"DeleteFramework": {"method": "DELETE", "requestUri": "/audit/frameworks/{frameworkName}"},
|
||||
"DeleteRecoveryPoint": {"method": "DELETE", "requestUri": "/backup-vaults/{backupVaultName}/recovery-points/{recoveryPointArn}"},
|
||||
"DeleteReportPlan": {"method": "DELETE", "requestUri": "/audit/report-plans/{reportPlanName}"},
|
||||
"DeleteRestoreTestingPlan": {"method": "DELETE", "requestUri": "/restore-testing/plans/{RestoreTestingPlanName}"},
|
||||
"DeleteRestoreTestingSelection": {"method": "DELETE", "requestUri": "/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}"},
|
||||
"DeleteTieringConfiguration": {"method": "DELETE", "requestUri": "/tiering-configurations/{tieringConfigurationName}"},
|
||||
"DescribeBackupAccessPoint": {"method": "GET", "requestUri": "/backup-access-point/{AccessPointArn}"},
|
||||
"DescribeBackupJob": {"method": "GET", "requestUri": "/backup-jobs/{backupJobId}"},
|
||||
"DescribeBackupVault": {"method": "GET", "requestUri": "/backup-vaults/{backupVaultName}"},
|
||||
"DescribeCopyJob": {"method": "GET", "requestUri": "/copy-jobs/{copyJobId}"},
|
||||
"DescribeFramework": {"method": "GET", "requestUri": "/audit/frameworks/{frameworkName}"},
|
||||
"DescribeGlobalSettings": {"method": "GET", "requestUri": "/global-settings"},
|
||||
"DescribeProtectedResource": {"method": "GET", "requestUri": "/resources/{resourceArn}"},
|
||||
"DescribeRecoveryPoint": {"method": "GET", "requestUri": "/backup-vaults/{backupVaultName}/recovery-points/{recoveryPointArn}"},
|
||||
"DescribeRegionSettings": {"method": "GET", "requestUri": "/account-settings"},
|
||||
"DescribeReportJob": {"method": "GET", "requestUri": "/audit/report-jobs/{reportJobId}"},
|
||||
"DescribeReportPlan": {"method": "GET", "requestUri": "/audit/report-plans/{reportPlanName}"},
|
||||
"DescribeRestoreJob": {"method": "GET", "requestUri": "/restore-jobs/{restoreJobId}"},
|
||||
"DescribeScanJob": {"method": "GET", "requestUri": "/scan/jobs/{ScanJobId}"},
|
||||
"DisassociateBackupVaultMpaApprovalTeam": {"method": "POST", "requestUri": "/backup-vaults/{backupVaultName}/mpaApprovalTeam?delete"},
|
||||
"DisassociateRecoveryPoint": {"method": "POST", "requestUri": "/backup-vaults/{backupVaultName}/recovery-points/{recoveryPointArn}/disassociate"},
|
||||
"DisassociateRecoveryPointFromParent": {"method": "DELETE", "requestUri": "/backup-vaults/{backupVaultName}/recovery-points/{recoveryPointArn}/parentAssociation"},
|
||||
"ExportBackupPlanTemplate": {"method": "GET", "requestUri": "/backup/plans/{backupPlanId}/toTemplate/"},
|
||||
"GetBackupPlan": {"method": "GET", "requestUri": "/backup/plans/{backupPlanId}/"},
|
||||
"GetBackupPlanFromJSON": {"method": "POST", "requestUri": "/backup/template/json/toPlan"},
|
||||
"GetBackupPlanFromTemplate": {"method": "GET", "requestUri": "/backup/template/plans/{templateId}/toPlan"},
|
||||
"GetBackupSelection": {"method": "GET", "requestUri": "/backup/plans/{backupPlanId}/selections/{selectionId}"},
|
||||
"GetBackupVaultAccessPolicy": {"method": "GET", "requestUri": "/backup-vaults/{backupVaultName}/access-policy"},
|
||||
"GetBackupVaultNotifications": {"method": "GET", "requestUri": "/backup-vaults/{backupVaultName}/notification-configuration"},
|
||||
"GetLegalHold": {"method": "GET", "requestUri": "/legal-holds/{legalHoldId}/"},
|
||||
"GetPITRMalwareScanResults": {"method": "GET", "requestUri": "/scan/pitr-malware-scan-results"},
|
||||
"GetRecoveryPointIndexDetails": {"method": "GET", "requestUri": "/backup-vaults/{backupVaultName}/recovery-points/{recoveryPointArn}/index"},
|
||||
"GetRecoveryPointRestoreMetadata": {"method": "GET", "requestUri": "/backup-vaults/{backupVaultName}/recovery-points/{recoveryPointArn}/restore-metadata"},
|
||||
"GetRestoreJobMetadata": {"method": "GET", "requestUri": "/restore-jobs/{restoreJobId}/metadata"},
|
||||
"GetRestoreTestingInferredMetadata": {"method": "GET", "requestUri": "/restore-testing/inferred-metadata"},
|
||||
"GetRestoreTestingPlan": {"method": "GET", "requestUri": "/restore-testing/plans/{RestoreTestingPlanName}"},
|
||||
"GetRestoreTestingSelection": {"method": "GET", "requestUri": "/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}"},
|
||||
"GetSupportedResourceTypes": {"method": "GET", "requestUri": "/supported-resource-types"},
|
||||
"GetTieringConfiguration": {"method": "GET", "requestUri": "/tiering-configurations/{tieringConfigurationName}"},
|
||||
"ListBackupAccessPoints": {"method": "GET", "requestUri": "/backup-access-point"},
|
||||
"ListBackupAccessPointsByRecoveryPoint": {"method": "POST", "requestUri": "/backup-access-point/recovery-point/{RecoveryPointArn}"},
|
||||
"ListBackupAccessPointsByResource": {"method": "POST", "requestUri": "/backup-access-point/resource/{ResourceArn}"},
|
||||
"ListBackupJobSummaries": {"method": "GET", "requestUri": "/audit/backup-job-summaries"},
|
||||
"ListBackupJobs": {"method": "GET", "requestUri": "/backup-jobs/"},
|
||||
"ListBackupPlanTemplates": {"method": "GET", "requestUri": "/backup/template/plans"},
|
||||
"ListBackupPlanVersions": {"method": "GET", "requestUri": "/backup/plans/{backupPlanId}/versions/"},
|
||||
"ListBackupPlans": {"method": "GET", "requestUri": "/backup/plans/"},
|
||||
"ListBackupSelections": {"method": "GET", "requestUri": "/backup/plans/{backupPlanId}/selections/"},
|
||||
"ListBackupVaults": {"method": "GET", "requestUri": "/backup-vaults/"},
|
||||
"ListCopyJobSummaries": {"method": "GET", "requestUri": "/audit/copy-job-summaries"},
|
||||
"ListCopyJobs": {"method": "GET", "requestUri": "/copy-jobs/"},
|
||||
"ListFrameworks": {"method": "GET", "requestUri": "/audit/frameworks"},
|
||||
"ListIndexedRecoveryPoints": {"method": "GET", "requestUri": "/indexes/recovery-point/"},
|
||||
"ListLegalHolds": {"method": "GET", "requestUri": "/legal-holds/"},
|
||||
"ListProtectedResources": {"method": "GET", "requestUri": "/resources/"},
|
||||
"ListProtectedResourcesByBackupVault": {"method": "GET", "requestUri": "/backup-vaults/{backupVaultName}/resources/"},
|
||||
"ListRecoveryPointsByBackupVault": {"method": "GET", "requestUri": "/backup-vaults/{backupVaultName}/recovery-points/"},
|
||||
"ListRecoveryPointsByLegalHold": {"method": "GET", "requestUri": "/legal-holds/{legalHoldId}/recovery-points"},
|
||||
"ListRecoveryPointsByResource": {"method": "GET", "requestUri": "/resources/{resourceArn}/recovery-points/"},
|
||||
"ListReportJobs": {"method": "GET", "requestUri": "/audit/report-jobs"},
|
||||
"ListReportPlans": {"method": "GET", "requestUri": "/audit/report-plans"},
|
||||
"ListRestoreAccessBackupVaults": {"method": "GET", "requestUri": "/logically-air-gapped-backup-vaults/{backupVaultName}/restore-access-backup-vaults/"},
|
||||
"ListRestoreJobSummaries": {"method": "GET", "requestUri": "/audit/restore-job-summaries"},
|
||||
"ListRestoreJobs": {"method": "GET", "requestUri": "/restore-jobs/"},
|
||||
"ListRestoreJobsByProtectedResource": {"method": "GET", "requestUri": "/resources/{resourceArn}/restore-jobs/"},
|
||||
"ListRestoreTestingPlans": {"method": "GET", "requestUri": "/restore-testing/plans"},
|
||||
"ListRestoreTestingSelections": {"method": "GET", "requestUri": "/restore-testing/plans/{RestoreTestingPlanName}/selections"},
|
||||
"ListScanJobSummaries": {"method": "GET", "requestUri": "/audit/scan-job-summaries"},
|
||||
"ListScanJobs": {"method": "GET", "requestUri": "/scan/jobs"},
|
||||
"ListTags": {"method": "GET", "requestUri": "/tags/{resourceArn}/"},
|
||||
"ListTieringConfigurations": {"method": "GET", "requestUri": "/tiering-configurations/"},
|
||||
"PutBackupVaultAccessPolicy": {"method": "PUT", "requestUri": "/backup-vaults/{backupVaultName}/access-policy"},
|
||||
"PutBackupVaultLockConfiguration": {"method": "PUT", "requestUri": "/backup-vaults/{backupVaultName}/vault-lock"},
|
||||
"PutBackupVaultNotifications": {"method": "PUT", "requestUri": "/backup-vaults/{backupVaultName}/notification-configuration"},
|
||||
"PutRestoreValidationResult": {"method": "PUT", "requestUri": "/restore-jobs/{restoreJobId}/validations"},
|
||||
"RevokeRestoreAccessBackupVault": {"method": "DELETE", "requestUri": "/logically-air-gapped-backup-vaults/{backupVaultName}/restore-access-backup-vaults/{restoreAccessBackupVaultArn}"},
|
||||
"StartBackupJob": {"method": "PUT", "requestUri": "/backup-jobs"},
|
||||
"StartCopyJob": {"method": "PUT", "requestUri": "/copy-jobs"},
|
||||
"StartReportJob": {"method": "POST", "requestUri": "/audit/report-jobs/{reportPlanName}"},
|
||||
"StartRestoreJob": {"method": "PUT", "requestUri": "/restore-jobs"},
|
||||
"StartScanJob": {"method": "PUT", "requestUri": "/scan/job"},
|
||||
"StopBackupJob": {"method": "POST", "requestUri": "/backup-jobs/{backupJobId}"},
|
||||
"TagResource": {"method": "POST", "requestUri": "/tags/{resourceArn}"},
|
||||
"UntagResource": {"method": "POST", "requestUri": "/untag/{resourceArn}"},
|
||||
"UpdateBackupPlan": {"method": "POST", "requestUri": "/backup/plans/{backupPlanId}"},
|
||||
"UpdateFramework": {"method": "PUT", "requestUri": "/audit/frameworks/{frameworkName}"},
|
||||
"UpdateGlobalSettings": {"method": "PUT", "requestUri": "/global-settings"},
|
||||
"UpdateRecoveryPointIndexSettings": {"method": "POST", "requestUri": "/backup-vaults/{backupVaultName}/recovery-points/{recoveryPointArn}/index"},
|
||||
"UpdateRecoveryPointLifecycle": {"method": "POST", "requestUri": "/backup-vaults/{backupVaultName}/recovery-points/{recoveryPointArn}"},
|
||||
"UpdateRegionSettings": {"method": "PUT", "requestUri": "/account-settings"},
|
||||
"UpdateReportPlan": {"method": "PUT", "requestUri": "/audit/report-plans/{reportPlanName}"},
|
||||
"UpdateRestoreTestingPlan": {"method": "PUT", "requestUri": "/restore-testing/plans/{RestoreTestingPlanName}"},
|
||||
"UpdateRestoreTestingSelection": {"method": "PUT", "requestUri": "/restore-testing/plans/{RestoreTestingPlanName}/selections/{RestoreTestingSelectionName}"},
|
||||
"UpdateTieringConfiguration": {"method": "PUT", "requestUri": "/tiering-configurations/{tieringConfigurationName}"}
|
||||
}
|
||||
},
|
||||
"batch": {
|
||||
"credentialScope": "batch",
|
||||
"apiVersion": "2016-08-10",
|
||||
|
||||
@@ -42,13 +42,13 @@ class AbstractTagsControllerTest {
|
||||
UriInfo uriInfo = mock(UriInfo.class);
|
||||
String arn = "arn:aws:apigateway:us-east-1::/restapis/123";
|
||||
Response expected = Response.ok().build();
|
||||
when(dispatcher.resolveHandler(arn, uriInfo)).thenReturn(handler);
|
||||
when(dispatcher.resolveHandler(arn, uriInfo, "GET")).thenReturn(handler);
|
||||
when(dispatcher.listTagsForArn(headers, arn)).thenReturn(expected);
|
||||
|
||||
Response actual = controller.listTags(headers, uriInfo, arn);
|
||||
|
||||
assertEquals(expected, actual);
|
||||
verify(dispatcher).resolveHandler(arn, uriInfo);
|
||||
verify(dispatcher).resolveHandler(arn, uriInfo, "GET");
|
||||
verify(dispatcher).listTagsForArn(headers, arn);
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ class AbstractTagsControllerTest {
|
||||
UriInfo uriInfo = mock(UriInfo.class);
|
||||
String arn = "arn:aws:scheduler:us-east-1:000000000000:schedule-group/reports";
|
||||
AwsException refused = new AwsException("BadRequestException", "Invalid resource ARN: " + arn, 400);
|
||||
when(dispatcher.resolveHandler(arn, uriInfo)).thenThrow(refused);
|
||||
when(dispatcher.resolveHandler(arn, uriInfo, "GET")).thenThrow(refused);
|
||||
|
||||
assertSame(refused, assertThrows(AwsException.class, () -> controller.listTags(headers, uriInfo, arn)));
|
||||
verify(dispatcher, never()).listTagsForArn(any(), any());
|
||||
@@ -70,7 +70,7 @@ class AbstractTagsControllerTest {
|
||||
String arn = "arn:aws:kafka:us-east-1:000000000000:cluster/test/id";
|
||||
String body = "{\"tags\":{\"env\":\"test\"}}";
|
||||
UriInfo uriInfo = mock(UriInfo.class);
|
||||
when(dispatcher.resolveHandler(arn, uriInfo)).thenReturn(handler);
|
||||
when(dispatcher.resolveHandler(arn, uriInfo, "POST")).thenReturn(handler);
|
||||
when(handler.tagResourceSuccessStatus()).thenReturn(204);
|
||||
Response expected = Response.noContent().build();
|
||||
when(dispatcher.tagResourcePost(eq(headers), eq(arn), eq(body), any(Response.class))).thenReturn(expected);
|
||||
@@ -87,7 +87,7 @@ class AbstractTagsControllerTest {
|
||||
String arn = "arn:aws:apigateway:us-east-1::/restapis/123";
|
||||
String body = "{\"tags\":{\"env\":\"test\"}}";
|
||||
UriInfo uriInfo = mock(UriInfo.class);
|
||||
when(dispatcher.resolveHandler(arn, uriInfo)).thenReturn(handler);
|
||||
when(dispatcher.resolveHandler(arn, uriInfo, "PUT")).thenReturn(handler);
|
||||
when(handler.tagResourceSuccessStatus()).thenReturn(200);
|
||||
Response expected = Response.ok().build();
|
||||
when(dispatcher.tagResourcePut(eq(headers), eq(arn), eq(body), any(Response.class))).thenReturn(expected);
|
||||
@@ -103,7 +103,7 @@ class AbstractTagsControllerTest {
|
||||
HttpHeaders headers = mock(HttpHeaders.class);
|
||||
UriInfo uriInfo = mock(UriInfo.class);
|
||||
String arn = "arn:aws:apigateway:us-east-1::/restapis/123";
|
||||
when(dispatcher.resolveHandler(arn, uriInfo)).thenReturn(handler);
|
||||
when(dispatcher.resolveHandler(arn, uriInfo, "DELETE")).thenReturn(handler);
|
||||
when(handler.untagResourceSuccessStatus()).thenReturn(204);
|
||||
Response expected = Response.noContent().build();
|
||||
when(dispatcher.untagResourceForArn(eq(headers), eq(uriInfo), eq(arn), any(Response.class), eq(handler)))
|
||||
|
||||
@@ -704,12 +704,13 @@ class RequestResourceMembersTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* The ARNs a resource in another account by its account member names, each followed by the caller's
|
||||
* resource of that name, which the reader names too, as it names an ARN of another account, the test's services
|
||||
* acting on none of them in that account.
|
||||
* The ARNs a resource in another account names, by its account member or by an ARN of a format giving its account
|
||||
* as written (Backup's recovery point, {@code *}), each followed by the caller's resource of that name, which the
|
||||
* reader names too, as it names an ARN of another account, the test's services acting on none of them in that
|
||||
* account; one AWS owns, in the account {@code aws}, is checked in that account alone.
|
||||
*/
|
||||
private static List<String> withTheCallersToo(List<String> arns, Resource resource) {
|
||||
if (resource.account() == null || !resource.find().isEmpty()) {
|
||||
if (resource.account() == null && resource.arn() == null || !resource.find().isEmpty()) {
|
||||
return arns;
|
||||
}
|
||||
List<String> named = new ArrayList<>();
|
||||
@@ -717,7 +718,8 @@ class RequestResourceMembersTest {
|
||||
named.add(arn);
|
||||
if (AwsArnUtils.isArn(arn)) {
|
||||
AwsArnUtils.Arn parsed = AwsArnUtils.parse(arn);
|
||||
if (!parsed.accountId().isEmpty() && !"000000000000".equals(parsed.accountId())) {
|
||||
if (!parsed.accountId().isEmpty() && !"000000000000".equals(parsed.accountId())
|
||||
&& !"aws".equals(parsed.accountId())) {
|
||||
named.add(new AwsArnUtils.Arn(parsed.partition(), parsed.service(), parsed.region(),
|
||||
"000000000000", parsed.resource()).toString());
|
||||
}
|
||||
|
||||
@@ -7,6 +7,7 @@ import jakarta.ws.rs.core.MultivaluedHashMap;
|
||||
import jakarta.ws.rs.core.Response;
|
||||
import jakarta.ws.rs.core.UriInfo;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.function.Executable;
|
||||
import org.junit.jupiter.api.parallel.ResourceLock;
|
||||
import org.junit.jupiter.params.ParameterizedTest;
|
||||
import org.junit.jupiter.params.provider.ValueSource;
|
||||
@@ -33,24 +34,43 @@ class TagDispatcherTest {
|
||||
|
||||
private final TagHandler scheduler = handler("scheduler");
|
||||
private final TagHandler apiGateway = handler("apigateway");
|
||||
private final TagDispatcher dispatcher = new TagDispatcher(List.of(scheduler, apiGateway),
|
||||
private final TagHandler backup = handler("backup");
|
||||
private final TagDispatcher dispatcher = new TagDispatcher(List.of(scheduler, apiGateway, backup),
|
||||
new RegionResolver("us-east-1", "000000000000"), new ObjectMapper());
|
||||
|
||||
/**
|
||||
* Scheduler, which the generated table reads whole, tags on its modeled /tags/{ResourceArn} alone, the ARN sent
|
||||
* as one encoded segment: the bare /tags, or an ARN whose slash is not encoded, is no route of its model and is
|
||||
* refused as an ARN that path does not serve.
|
||||
* refused as an ARN that path does not serve, and a method its model does not give on the path as one the path
|
||||
* does not take, as Backup's DELETE /tags/{arn} is, Backup untagging on POST /untag/{arn}.
|
||||
*/
|
||||
@Test
|
||||
void aServiceTheTableReadsIsServedOnlyOnTheRoutesItsModelGives() {
|
||||
String encoded = "/tags/arn%3Aaws%3Ascheduler%3Aus-east-1%3A000000000000%3Aschedule-group%2Freports";
|
||||
assertSame(scheduler, dispatcher.resolveHandler(GROUP, sent(encoded)));
|
||||
for (String refused : List.of("/tags", "/tags/" + GROUP)) {
|
||||
AwsException error = assertThrows(AwsException.class,
|
||||
() -> dispatcher.resolveHandler(GROUP, sent(refused)));
|
||||
assertEquals(400, error.getHttpStatus());
|
||||
assertEquals("Invalid resource ARN: " + GROUP, error.getMessage());
|
||||
for (String method : List.of("GET", "POST", "DELETE")) {
|
||||
assertSame(scheduler, dispatcher.resolveHandler(GROUP, sent(encoded), method));
|
||||
}
|
||||
for (String refused : List.of("/tags", "/tags/" + GROUP)) {
|
||||
refused(GROUP, () -> dispatcher.resolveHandler(GROUP, sent(refused), "GET"));
|
||||
}
|
||||
notAllowed(() -> dispatcher.resolveHandler(GROUP, sent(encoded), "PUT"));
|
||||
String vault = "arn:aws:backup:us-east-1:000000000000:backup-vault:reports";
|
||||
String path = "/tags/arn%3Aaws%3Abackup%3Aus-east-1%3A000000000000%3Abackup-vault%3Areports";
|
||||
assertSame(backup, dispatcher.resolveHandler(vault, sent(path), "GET"));
|
||||
assertSame(backup, dispatcher.resolveHandler(vault, sent(path), "POST"));
|
||||
notAllowed(() -> dispatcher.resolveHandler(vault, sent(path), "DELETE"));
|
||||
}
|
||||
|
||||
private static void notAllowed(Executable resolve) {
|
||||
AwsException error = assertThrows(AwsException.class, resolve);
|
||||
assertEquals(405, error.getHttpStatus());
|
||||
assertEquals("MethodNotAllowedException", error.getErrorCode());
|
||||
}
|
||||
|
||||
private static void refused(String arn, Executable resolve) {
|
||||
AwsException error = assertThrows(AwsException.class, resolve);
|
||||
assertEquals(400, error.getHttpStatus());
|
||||
assertEquals("Invalid resource ARN: " + arn, error.getMessage());
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -59,8 +79,8 @@ class TagDispatcherTest {
|
||||
*/
|
||||
@Test
|
||||
void aServiceBuiltByHandIsServedOnEveryRoute() {
|
||||
assertSame(apiGateway, dispatcher.resolveHandler(REST_API, sent("/tags")));
|
||||
assertSame(apiGateway, dispatcher.resolveHandler(REST_API, sent("/tags/" + REST_API)));
|
||||
assertSame(apiGateway, dispatcher.resolveHandler(REST_API, sent("/tags"), "GET"));
|
||||
assertSame(apiGateway, dispatcher.resolveHandler(REST_API, sent("/tags/" + REST_API), "PUT"));
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
|
||||
@@ -52,7 +52,7 @@ class IamActionRegistryTest {
|
||||
* {@code lambda:InvokeFunction}), read by the vendored request resources ({@code DescribeRepositories}, and
|
||||
* {@code DescribeDomain} and {@code GetAnalyzer} from their paths), or none, AWS authorizing its action on no
|
||||
* resource type ({@code ListDomainNames}). One AWS checks on a resource Floci does not read stays unmapped
|
||||
* ({@code GetBackupPlan}), as does a request matching no route.
|
||||
* ({@code GetEnvironment}), as does a request matching no route.
|
||||
*/
|
||||
@Test
|
||||
void aRouteIsCheckedAsItsOperationWhenFlociChecksItAsAwsDoes() throws IOException {
|
||||
@@ -65,8 +65,8 @@ class IamActionRegistryTest {
|
||||
"accessanalyzer": {"credentialScope": "access-analyzer", "operations": {
|
||||
"GetAnalyzer": {"method": "GET", "requestUri": "/unmapped/analyzer/{analyzerName}"}
|
||||
}},
|
||||
"backup": {"credentialScope": "backup", "operations": {
|
||||
"GetBackupPlan": {"method": "GET", "requestUri": "/unmapped/backup/plans/{backupPlanId}"}
|
||||
"mwaa": {"credentialScope": "airflow", "operations": {
|
||||
"GetEnvironment": {"method": "GET", "requestUri": "/unmapped/environments/{Name}"}
|
||||
}},
|
||||
"ecr": {"credentialScope": "ecr", "operations": {
|
||||
"DescribeRepositories": {"method": "GET", "requestUri": "/unmapped/repositories"}
|
||||
@@ -81,7 +81,7 @@ class IamActionRegistryTest {
|
||||
assertEquals("es:DescribeDomain", routed.resolveRoute("es", mockCtx("GET", "/unmapped/domain/logs", none, null, "")));
|
||||
assertEquals("access-analyzer:GetAnalyzer", routed.resolveRoute("access-analyzer",
|
||||
mockCtx("GET", "/unmapped/analyzer/a", none, null, "")));
|
||||
assertNull(routed.resolveRoute("backup", mockCtx("GET", "/unmapped/backup/plans/p", none, null, "")));
|
||||
assertNull(routed.resolveRoute("airflow", mockCtx("GET", "/unmapped/environments/e", none, null, "")));
|
||||
assertNull(routed.resolveRoute("es", mockCtx("GET", "/other/domain", none, null, "")));
|
||||
assertNull(routed.resolveRoute("other", mockCtx("GET", "/unmapped/domain", none, null, "")));
|
||||
assertEquals("lambda:InvokeFunction", routed.resolveRoute("lambda",
|
||||
|
||||
@@ -229,6 +229,27 @@ class IamPassRoleEnforcementIntegrationTest {
|
||||
.body("{\"computeEnvironment\":\"" + created + "\"}").post("/v1/deletecomputeenvironment"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void aBackupJobNeedsPassRoleOnItsRoleForBackup() {
|
||||
// The Service Reference passes StartBackupJob's role to Backup alone.
|
||||
String role = role("backup-service");
|
||||
User user = user("passrole-backup");
|
||||
String vault = "passrole-vault-" + suffix();
|
||||
admin("backup").contentType("application/json").body("{}").put("/backup-vaults/" + vault).then()
|
||||
.statusCode(200);
|
||||
cleanup.register(() -> admin("backup").delete("/backup-vaults/" + vault));
|
||||
String job = "{\"BackupVaultName\":\"" + vault + "\",\"ResourceArn\":\"arn:aws:dynamodb:us-east-1:" + ACCOUNT
|
||||
+ ":table/passrole-backup\",\"IamRoleArn\":\"" + role + "\"}";
|
||||
String start = allow("backup:StartBackupJob", "*");
|
||||
|
||||
user.policy(start);
|
||||
denied(user.rest("backup").body(job).put("/backup-jobs").then());
|
||||
user.policy(start + "," + passRole(role, "ec2.amazonaws.com"));
|
||||
denied(user.rest("backup").body(job).put("/backup-jobs").then());
|
||||
user.policy(start + "," + passRole(role, "backup.amazonaws.com"));
|
||||
user.rest("backup").body(job).put("/backup-jobs").then().statusCode(200);
|
||||
}
|
||||
|
||||
@Test
|
||||
void apiGatewayNeedsPassRoleOnTheRolesAnIntegrationAnUpdateOrAnImportNames() {
|
||||
// API Gateway is authorized by HTTP method, and its roles are checked for the operation its route resolves:
|
||||
|
||||
@@ -1895,6 +1895,69 @@ class IamRestRouteEnforcementIntegrationTest {
|
||||
}
|
||||
|
||||
/** A statement with {@code effect} on {@code action} for every resource whose {@code team} tag is the one given. */
|
||||
/**
|
||||
* A Backup route is checked on the backup vault or the backup plan it names, by the name or the id its path gives,
|
||||
* an {@code aws:ResourceTag} condition reads the tags Backup holds on it, and a vault created with tags needs
|
||||
* {@code backup:TagResource}.
|
||||
*/
|
||||
@Test
|
||||
void aBackupRouteIsCheckedOnTheVaultOrPlanItNames() {
|
||||
String user = user("route-backup");
|
||||
String tagged = backupVault("route-vault-" + suffix(), "data");
|
||||
String other = backupVault("route-vault-" + suffix(), "web");
|
||||
String prefix = "arn:aws:backup:us-east-1:" + ACCOUNT + ":";
|
||||
|
||||
policy(user, allow("backup:DescribeBackupVault", prefix + "backup-vault:" + tagged));
|
||||
request(user, "backup", "GET", "/backup-vaults/" + tagged, null).statusCode(200);
|
||||
refused(request(user, "backup", "GET", "/backup-vaults/" + other, null), "backup:DescribeBackupVault");
|
||||
policy(user, onTeam("Allow", "backup:DescribeBackupVault", "data"));
|
||||
request(user, "backup", "GET", "/backup-vaults/" + tagged, null).statusCode(200);
|
||||
refused(request(user, "backup", "GET", "/backup-vaults/" + other, null), "backup:DescribeBackupVault");
|
||||
// Backup untags on POST /untag/{arn}, so the shared DELETE /tags/{arn}, which no Backup operation is and so no
|
||||
// action checks, is refused before it reaches the vault's tags.
|
||||
String vaultTags = "/tags/" + encoded(prefix + "backup-vault:" + tagged);
|
||||
request(user, "backup", "DELETE", vaultTags + "?tagKeys=team", null).statusCode(405)
|
||||
.body(containsString("MethodNotAllowedException"));
|
||||
adminOf("backup").urlEncodingEnabled(false).get(vaultTags).then().statusCode(200)
|
||||
.body("Tags.team", equalTo("data"));
|
||||
|
||||
String plan = backupPlan(tagged, "data");
|
||||
String otherPlan = backupPlan(tagged, "web");
|
||||
policy(user, allow("backup:GetBackupPlan", prefix + "backup-plan:" + plan));
|
||||
request(user, "backup", "GET", "/backup/plans/" + plan + "/", null).statusCode(200);
|
||||
refused(request(user, "backup", "GET", "/backup/plans/" + otherPlan + "/", null), "backup:GetBackupPlan");
|
||||
policy(user, onTeam("Allow", "backup:GetBackupPlan", "data"));
|
||||
request(user, "backup", "GET", "/backup/plans/" + plan + "/", null).statusCode(200);
|
||||
refused(request(user, "backup", "GET", "/backup/plans/" + otherPlan + "/", null), "backup:GetBackupPlan");
|
||||
|
||||
String made = "route-vault-" + suffix();
|
||||
cleanup.register(() -> adminOf("backup").delete("/backup-vaults/" + made));
|
||||
policy(user, allow("backup:CreateBackupVault", "*"));
|
||||
refused(request(user, "backup", "PUT", "/backup-vaults/" + made, "{\"BackupVaultTags\":{\"team\":\"data\"}}"),
|
||||
"backup:TagResource");
|
||||
policy(user, allow("backup:CreateBackupVault", "*") + "," + allow("backup:TagResource", "*"));
|
||||
request(user, "backup", "PUT", "/backup-vaults/" + made, "{\"BackupVaultTags\":{\"team\":\"data\"}}")
|
||||
.statusCode(200);
|
||||
}
|
||||
|
||||
/** A backup vault an administrator creates, tagged with {@code team}; its name. */
|
||||
private String backupVault(String name, String team) {
|
||||
adminOf("backup").body("{\"BackupVaultTags\":{\"team\":\"" + team + "\"}}").put("/backup-vaults/" + name)
|
||||
.then().statusCode(200);
|
||||
cleanup.register(() -> adminOf("backup").delete("/backup-vaults/" + name));
|
||||
return name;
|
||||
}
|
||||
|
||||
/** A backup plan an administrator creates into {@code vault}, tagged with {@code team}; its id. */
|
||||
private String backupPlan(String vault, String team) {
|
||||
String id = adminOf("backup").body("{\"BackupPlan\":{\"BackupPlanName\":\"route-plan-" + suffix()
|
||||
+ "\",\"Rules\":[{\"RuleName\":\"daily\",\"TargetBackupVaultName\":\"" + vault + "\"}]},"
|
||||
+ "\"BackupPlanTags\":{\"team\":\"" + team + "\"}}").put("/backup/plans/").then().statusCode(200)
|
||||
.extract().path("BackupPlanId");
|
||||
cleanup.register(() -> adminOf("backup").delete("/backup/plans/" + id));
|
||||
return id;
|
||||
}
|
||||
|
||||
private static String onTeam(String effect, String action, String team) {
|
||||
return "{\"Effect\":\"" + effect + "\",\"Action\":\"" + action + "\",\"Resource\":\"*\","
|
||||
+ "\"Condition\":{\"StringEquals\":{\"aws:ResourceTag/team\":\"" + team + "\"}}}";
|
||||
|
||||
@@ -0,0 +1,188 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Vendor which role an AWS Backup request member names, and the service that role is for, into
|
||||
tools/aws/sources/backup-roles.json, a source of the passed-roles table.
|
||||
|
||||
AWS's Service Reference passes StartScanJob's roles to `backup.amazonaws.com` and
|
||||
`malware-protection.guardduty.amazonaws.com` without saying which member's role goes where, and botocore does not say
|
||||
it as data either. The AWS Backup developer guide's page on malware protection names the two roles a scan takes, in
|
||||
its Access section:
|
||||
|
||||
First, the AWSBackupServiceRolePolicyForBackup or AWSBackupServiceRolePolicyForScans managed policy must be
|
||||
attached to your existing or new backup role. This is the same role found in the resource assignment for your
|
||||
backup plan in the console, or through the BackupSelection API. ...
|
||||
|
||||
Second, a new scanner role is required with AWSBackupGuardDutyRolePolicyForScans managed policy that trusts
|
||||
malware-protection.guardduty.amazonaws.com. ...
|
||||
|
||||
https://docs.aws.amazon.com/aws-backup/latest/devguide/malware-protection.html
|
||||
|
||||
the first linking the API reference's CreateBackupSelection page. This script copies each member's description on its
|
||||
API reference page as it stands, the guide's item of its role, and from that item the service principal the role
|
||||
trusts, or else the operation whose role the guide says it is (sameRoleAs). Nothing in the output is written by hand;
|
||||
regen_iam_passed_roles.py reads it to choose, among the services the Service Reference passes an operation's roles to,
|
||||
the one each member's role is for: the one the role trusts, or the one the Service Reference passes that operation's
|
||||
role to.
|
||||
|
||||
Run from anywhere in the repo:
|
||||
python3 tools/aws/fetch_backup_roles.py # rewrite the vendored file from the pages
|
||||
python3 tools/aws/fetch_backup_roles.py --verify # online: the file still says what the pages do
|
||||
"""
|
||||
from __future__ import annotations
|
||||
|
||||
import argparse
|
||||
import html
|
||||
import json
|
||||
import re
|
||||
import sys
|
||||
import urllib.parse
|
||||
import urllib.request
|
||||
from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
API_REFERENCE = "https://docs.aws.amazon.com/aws-backup/latest/APIReference/"
|
||||
DEVELOPER_GUIDE = "https://docs.aws.amazon.com/aws-backup/latest/devguide/"
|
||||
MALWARE_PROTECTION = DEVELOPER_GUIDE + "malware-protection.html"
|
||||
REPO_ROOT = Path(__file__).resolve().parents[2]
|
||||
OUTPUT = REPO_ROOT / "tools/aws/sources/backup-roles.json"
|
||||
|
||||
# The members that name a role, each by the API reference page and anchor describing it, with the words the malware
|
||||
# protection page's Access section names its role by (`role`).
|
||||
MEMBERS = (
|
||||
{"operation": "StartScanJob", "member": "IamRoleArn", "role": "backup role"},
|
||||
{"operation": "StartScanJob", "member": "ScannerRoleArn", "role": "scanner role"},
|
||||
)
|
||||
# The section of the malware protection page naming the roles a scan takes.
|
||||
ACCESS_SECTION = "Access"
|
||||
# An item's sentence naming the service principal its role trusts.
|
||||
TRUSTS_RE = re.compile(r"\btrusts (?P<service>[a-z0-9.-]+\.amazonaws\.com)\b")
|
||||
# An item's sentence naming the API reference page of the operation whose role its role is.
|
||||
SAME_ROLE_RE = re.compile(r'This is the same role found in [^<]*(?:<(?!/p)[^>]*>[^<]*)*?<a href="(?P<href>[^"#]+)"')
|
||||
OPERATION_PAGE_RE = re.compile(r"/API_(?P<operation>[A-Za-z0-9]+)\.html$")
|
||||
|
||||
|
||||
def text(fragment: str) -> str:
|
||||
"""A fragment of a page as text, spaces collapsed."""
|
||||
return re.sub(r"\s+", " ", html.unescape(re.sub(r"<[^>]+>", " ", fragment))).strip()
|
||||
|
||||
|
||||
def api_page(member: dict) -> str:
|
||||
"""The API reference page describing the member's operation."""
|
||||
return API_REFERENCE + "API_" + member["operation"] + ".html"
|
||||
|
||||
|
||||
def anchor(member: dict) -> str:
|
||||
"""The id of the member's entry on its API reference page."""
|
||||
return f"Backup-{member['operation']}-request-{member['member']}"
|
||||
|
||||
|
||||
def read_description(page: str, member: dict) -> str:
|
||||
"""The member's description on its API reference page, as text."""
|
||||
match = re.search(r'id="' + re.escape(anchor(member)) + r'"[^>]*>(?P<entry>.*?)</dd>', page, re.S)
|
||||
if match is None:
|
||||
raise ValueError(f"{api_page(member)} has no entry {anchor(member)}: its layout changed")
|
||||
entry = match.group("entry")
|
||||
described = re.search(r"<dd[^>]*>(?P<body>.*?)<p>\s*Type:", entry + "<p>Type:", re.S)
|
||||
return text(described.group("body") if described else entry)
|
||||
|
||||
|
||||
def access_items(page: str) -> list[str]:
|
||||
"""The items of the malware protection page's Access section, as markup."""
|
||||
match = re.search(r"<h2[^>]*>\s*" + re.escape(ACCESS_SECTION) + r"\s*</h2>(?P<body>.*?)(?=<h2|$)", page, re.S)
|
||||
if match is None:
|
||||
raise ValueError(f"{MALWARE_PROTECTION} has no section '{ACCESS_SECTION}': its layout changed")
|
||||
return re.findall(r'<li class="listitem">(.*?)</li>', match.group("body"), re.S)
|
||||
|
||||
|
||||
def read_role(items: list[str], member: dict) -> dict:
|
||||
"""What the Access section's one item naming the member's role says of it: the service principal it trusts, or
|
||||
else the operation whose role the guide says it is."""
|
||||
named = [item for item in items if member["role"] in text(item)]
|
||||
if len(named) != 1:
|
||||
raise ValueError(f"{MALWARE_PROTECTION}'s {ACCESS_SECTION} section names the {member['role']} in "
|
||||
f"{len(named)} items, not one: its layout changed")
|
||||
item = named[0]
|
||||
found: dict = {"rolePage": MALWARE_PROTECTION, "section": ACCESS_SECTION, "roleText": text(item)}
|
||||
trusts = TRUSTS_RE.search(text(item))
|
||||
if trusts:
|
||||
return {**found, "trustedBy": [trusts.group("service")]}
|
||||
same = SAME_ROLE_RE.search(item)
|
||||
operation = OPERATION_PAGE_RE.search(urllib.parse.urljoin(MALWARE_PROTECTION, same.group("href"))) \
|
||||
if same else None
|
||||
if operation is None or not same.group("href").startswith(API_REFERENCE):
|
||||
raise ValueError(f"{MALWARE_PROTECTION} says neither what the {member['role']} trusts nor which operation's "
|
||||
f"role it is: its layout changed")
|
||||
return {**found, "sameRoleAs": {"operation": operation.group("operation")}}
|
||||
|
||||
|
||||
def build(fetch) -> dict:
|
||||
items = access_items(fetch(MALWARE_PROTECTION))
|
||||
members = []
|
||||
pages = []
|
||||
for member in MEMBERS:
|
||||
description = read_description(fetch(api_page(member)), member)
|
||||
members.append({"operation": member["operation"], "member": member["member"], "description": description,
|
||||
**read_role(items, member)})
|
||||
pages.append(api_page(member))
|
||||
return {
|
||||
"_source": {
|
||||
"pages": list(dict.fromkeys(pages + [MALWARE_PROTECTION])),
|
||||
"fetcher": str(Path(__file__).resolve().relative_to(REPO_ROOT)),
|
||||
"retrieved": datetime.now(timezone.utc).strftime("%Y-%m-%d"),
|
||||
"note": "Each member's description on its API reference page, copied as it stands; the malware "
|
||||
"protection page's Access item naming its role (roleText); and from that item the service "
|
||||
"principal the role trusts, or else the operation whose role the guide says it is (sameRoleAs).",
|
||||
},
|
||||
"members": members,
|
||||
}
|
||||
|
||||
|
||||
def fetch_url(url: str) -> str:
|
||||
request = urllib.request.Request(url, headers={"User-Agent": "floci-tools"})
|
||||
with urllib.request.urlopen(request, timeout=60) as response:
|
||||
return response.read().decode("utf-8")
|
||||
|
||||
|
||||
def fetch_all(fetch=fetch_url) -> tuple:
|
||||
"""The pages, each fetched once, as a reader of them."""
|
||||
cache: dict[str, str] = {}
|
||||
|
||||
def cached(url: str) -> str:
|
||||
if url not in cache:
|
||||
cache[url] = fetch(url)
|
||||
return cache[url]
|
||||
|
||||
build(cached)
|
||||
return (cache,)
|
||||
|
||||
|
||||
def stale(vendored: dict, pages: dict[str, str]) -> bool:
|
||||
"""Whether the pages now give something other than the vendored file, its date aside."""
|
||||
return vendored.get("members") != build(lambda url: pages[url])["members"]
|
||||
|
||||
|
||||
def main(argv: list[str] | None = None, fetch=fetch_url) -> int:
|
||||
parser = argparse.ArgumentParser(description=__doc__.splitlines()[0])
|
||||
parser.add_argument("--verify", action="store_true", help="online: the vendored file matches the pages")
|
||||
args = parser.parse_args(argv)
|
||||
try:
|
||||
(pages,) = fetch_all(fetch)
|
||||
except OSError as e:
|
||||
print(f"error: could not read the AWS Backup documentation ({e})", file=sys.stderr)
|
||||
return 2
|
||||
if args.verify:
|
||||
vendored = json.loads(OUTPUT.read_text(encoding="utf-8"))
|
||||
if stale(vendored, pages):
|
||||
print(f"error: {OUTPUT.relative_to(REPO_ROOT)} no longer says what the AWS Backup API reference and "
|
||||
f"developer guide do: run tools/aws/fetch_backup_roles.py and then make iam-passed-roles-sync",
|
||||
file=sys.stderr)
|
||||
return 1
|
||||
print(f"{OUTPUT.relative_to(REPO_ROOT)} matches the AWS Backup API reference and developer guide")
|
||||
return 0
|
||||
built = build(lambda url: pages[url])
|
||||
OUTPUT.write_text(json.dumps(built, indent=2) + "\n", encoding="utf-8")
|
||||
print(f"wrote {OUTPUT.relative_to(REPO_ROOT)} ({len(built['members'])} members' roles)")
|
||||
return 0
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
sys.exit(main())
|
||||
@@ -79,6 +79,7 @@ from datetime import datetime, timezone
|
||||
from pathlib import Path
|
||||
|
||||
import fetch_apigateway_roles
|
||||
import fetch_backup_roles
|
||||
import fetch_batch_roles
|
||||
import fetch_eks_roles
|
||||
import fetch_emr_roles
|
||||
@@ -95,9 +96,8 @@ SERVICE_SUFFIX = ".amazonaws.com"
|
||||
# The IAM namespaces whose operations this file reads: those Floci serves over the JSON and Query
|
||||
# protocols and Smithy RPC v2 CBOR, and the REST ones whose routes Floci authorizes by operation.
|
||||
NAMESPACES = (
|
||||
"apigateway", "application-autoscaling", "aps", "appsync", "athena", "autoscaling", "batch", "budgets",
|
||||
"cloudformation",
|
||||
"cloudtrail",
|
||||
"apigateway", "application-autoscaling", "aps", "appsync", "athena", "autoscaling", "backup", "batch",
|
||||
"budgets", "cloudformation", "cloudtrail",
|
||||
"cloudwatch", "codebuild", "codedeploy", "codepipeline", "cognito-identity", "cognito-idp",
|
||||
"comprehend", "config", "datasync", "dms", "dsql", "ec2", "ecr", "ecs", "eks",
|
||||
"elasticfilesystem", "elasticloadbalancing", "elasticmapreduce",
|
||||
@@ -116,7 +116,6 @@ NOT_COVERED = {
|
||||
"appconfig": "CreateExtension and UpdateExtension pass a role in Actions{}[].RoleArn, a map of lists, which this file "
|
||||
"does not read yet",
|
||||
"aws-marketplace": "REST routes no rule maps yet",
|
||||
"backup": "REST routes no rule maps yet",
|
||||
"bedrock": "REST routes no rule maps yet",
|
||||
"bedrock-agentcore": "REST routes no rule maps yet",
|
||||
"cloudfront": "REST routes no rule maps yet",
|
||||
@@ -430,10 +429,15 @@ MEMBER_SERVICES = {
|
||||
# policies, or the service-linked role's "trusts the following services", name "batch.amazonaws.com",
|
||||
# "ec2.amazonaws.com" and "spotfleet.amazonaws.com", and a managed instances provider's infrastructureRoleArn as needing
|
||||
# "the iam:PassRole permission for this role with the condition iam:PassedToService: ecs.amazonaws.com";
|
||||
# tools/aws/fetch_batch_roles.py vendors those pages and `vendored_service` reads them. Each file is written by its own
|
||||
# tools/aws/fetch_batch_roles.py vendors those pages and `vendored_service` reads them. And granted for Backup: its
|
||||
# developer guide's malware protection page names the two roles StartScanJob takes, the scanner role, which "trusts
|
||||
# malware-protection.guardduty.amazonaws.com", and the backup role, "the same role found in ... the BackupSelection
|
||||
# API", linking CreateBackupSelection, whose role the reference passes to backup alone;
|
||||
# tools/aws/fetch_backup_roles.py vendors that page and `vendored_service` reads it. Each file is written by its own
|
||||
# script from the pages, unchanged, and nothing about an operation is stated here.
|
||||
ROLE_SOURCES: dict[str, Path] = {
|
||||
"apigateway": REPO_ROOT / "tools/aws/sources/apigateway-roles.json",
|
||||
"backup": REPO_ROOT / "tools/aws/sources/backup-roles.json",
|
||||
"batch": REPO_ROOT / "tools/aws/sources/batch-roles.json",
|
||||
"eks": REPO_ROOT / "tools/aws/sources/eks-roles.json",
|
||||
"elasticmapreduce": REPO_ROOT / "tools/aws/sources/emr-roles.json",
|
||||
@@ -441,6 +445,7 @@ ROLE_SOURCES: dict[str, Path] = {
|
||||
# The script that writes each namespace's role source, whose pages `verify_role_sources` reads it against.
|
||||
ROLE_FETCHERS = {
|
||||
"apigateway": fetch_apigateway_roles,
|
||||
"backup": fetch_backup_roles,
|
||||
"batch": fetch_batch_roles,
|
||||
"eks": fetch_eks_roles,
|
||||
"elasticmapreduce": fetch_emr_roles,
|
||||
@@ -739,15 +744,24 @@ def vendored_role(operation: str, path: str, models: dict[str, dict]) -> dict |
|
||||
return None
|
||||
|
||||
|
||||
def vendored_service(operation: str, path: str, passed_to: list[str], models: dict[str, dict]) -> str | None:
|
||||
def vendored_service(operation: str, path: str, passed_to: list[str], models: dict[str, dict],
|
||||
passed: dict[str, list[str]] | None = None) -> str | None:
|
||||
"""The one of `passed_to` the role at `path` is for, by the namespace's vendored role source (`ROLE_SOURCES`):
|
||||
the service its documentation passes the role its member names to, or else the service a trust policy of that
|
||||
role is for. None for a member the source does not give."""
|
||||
role is for, or else, where the source says the role is the one another operation of the namespace takes
|
||||
(`sameRoleAs`), the one service the reference passes that operation's roles to (`passed`, by operation). None for a
|
||||
member the source does not give."""
|
||||
entry = vendored_role(operation, path, models)
|
||||
if entry is None:
|
||||
return None
|
||||
services = [service.removesuffix(SERVICE_SUFFIX)
|
||||
for service in entry.get("passedToService", entry.get("trustedBy", []))]
|
||||
named = entry.get("passedToService", entry.get("trustedBy"))
|
||||
same = f"{namespace_of(operation)}:{entry['sameRoleAs']['operation']}" \
|
||||
if named is None and "operation" in entry.get("sameRoleAs", {}) else None
|
||||
if same is not None and len((passed or {}).get(same, [])) != 1:
|
||||
raise ValueError(f"{operation}: the role at {path} is {same}'s by {entry.get('rolePage')}, which the reference "
|
||||
f"passes to {(passed or {}).get(same)}, not one service")
|
||||
services = (passed or {})[same] if same is not None else [service.removesuffix(SERVICE_SUFFIX)
|
||||
for service in named or []]
|
||||
chosen = [service for service in services if service in passed_to]
|
||||
if len(chosen) != 1:
|
||||
raise ValueError(f"{operation}: the role at {path} is for {services} by {entry.get('rolePage')}, which "
|
||||
@@ -806,8 +820,10 @@ def _overrides_for(table: dict, operation: str) -> dict:
|
||||
return merged
|
||||
|
||||
|
||||
def entry_for(operation: str, passed_to: list[str], models: dict[str, dict]) -> dict:
|
||||
"""What the file says for one operation, from its services and the models of its namespace."""
|
||||
def entry_for(operation: str, passed_to: list[str], models: dict[str, dict],
|
||||
passed: dict[str, list[str]] | None = None) -> dict:
|
||||
"""What the file says for one operation, from its services, the models of its namespace and the services the
|
||||
reference passes each operation's roles to (`passed`)."""
|
||||
if operation in BY_HAND:
|
||||
return {"passedTo": passed_to, "byHand": BY_HAND[operation]}
|
||||
name = operation.split(":", 1)[1]
|
||||
@@ -849,7 +865,7 @@ def entry_for(operation: str, passed_to: list[str], models: dict[str, dict]) ->
|
||||
elif len(passed_to) == 1:
|
||||
role["passedTo"] = passed_to[0]
|
||||
elif passed_to:
|
||||
vendored = vendored_service(operation, path, passed_to, models)
|
||||
vendored = vendored_service(operation, path, passed_to, models, passed)
|
||||
if vendored is None:
|
||||
raise ValueError(f"{operation}: the role at {path} can go to any of {passed_to}; "
|
||||
f"say which in MEMBER_SERVICES or a vendored role source (ROLE_SOURCES)")
|
||||
@@ -876,10 +892,11 @@ def build(documents: list[dict], provenance: str, data: Path, botocore: str) ->
|
||||
namespaces[namespace] = clients
|
||||
operations = {}
|
||||
unread = []
|
||||
passed = {operation: value["passedTo"] for operation, value in covered.items()}
|
||||
for operation, value in covered.items():
|
||||
models = load_models(data, set(namespaces[namespace_of(operation)]))
|
||||
try:
|
||||
operations[operation] = entry_for(operation, value["passedTo"], models)
|
||||
operations[operation] = entry_for(operation, value["passedTo"], models, passed)
|
||||
except ValueError as e:
|
||||
unread.append(str(e))
|
||||
unread += _unmatched_corrections(covered, namespaces, data)
|
||||
@@ -1039,10 +1056,11 @@ def validate(document: dict) -> list[str]:
|
||||
def derive(document: dict, data: Path) -> list[str]:
|
||||
"""Where the members the file gives differ from what botocore gives for the models it names."""
|
||||
problems: list[str] = []
|
||||
passed = {operation: entry["passedTo"] for operation, entry in document["operations"].items()}
|
||||
for operation, entry in document["operations"].items():
|
||||
models = load_models(data, set(document["namespaces"][namespace_of(operation)]))
|
||||
try:
|
||||
expected = entry_for(operation, entry["passedTo"], models)
|
||||
expected = entry_for(operation, entry["passedTo"], models, passed)
|
||||
except ValueError as e:
|
||||
problems.append(str(e))
|
||||
continue
|
||||
|
||||
@@ -390,7 +390,7 @@ NAMESPACES = ("access-analyzer", "account", "acm", "appconfig", "application-aut
|
||||
"sqs", "sns", "kinesis", "pipes", "dsql", "sts", "eks", "resource-groups", "logs", "ses", "cloudwatch",
|
||||
"comprehend", "config", "dms", "elasticache", "identitystore", "memorydb", "route53resolver",
|
||||
"sagemaker", "transcribe", "transfer", "ec2-instance-connect", "s3", "bedrock", "apigateway", "kms",
|
||||
"dynamodb", "iam", "rds-data", "batch", "appsync")
|
||||
"dynamodb", "iam", "rds-data", "batch", "appsync", "backup")
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
# MEASURED: what AWS was measured to check where neither botocore nor the Service Reference says it.
|
||||
@@ -655,7 +655,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"`autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, "
|
||||
"which other services (ECS capacity providers) read back; the mint is fixed first",
|
||||
"aws-marketplace": _LATER,
|
||||
"backup": _REST,
|
||||
"bedrock-agentcore": _REST,
|
||||
"cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and "
|
||||
"${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the "
|
||||
|
||||
@@ -108,6 +108,7 @@ OUTPUT = REPO_ROOT / "src/main/resources/aws/iam-tag-on-create.json"
|
||||
# protocols and Smithy RPC v2 CBOR, and the REST ones whose routes Floci authorizes by operation.
|
||||
NAMESPACES = (
|
||||
"access-analyzer", "acm", "appconfig", "application-autoscaling", "aps", "appsync", "athena", "autoscaling",
|
||||
"backup",
|
||||
"bcm-data-exports", "bcm-pricing-calculator", "bedrock", "budgets", "ce", "cloudformation", "cloudhsm",
|
||||
"cloudtrail", "cloudwatch", "codedeploy", "codeguru-reviewer", "codepipeline", "cognito-identity", "cognito-idp",
|
||||
"comprehend", "config", "controltower", "cur",
|
||||
@@ -128,7 +129,7 @@ _NO_ROUTES = "REST routes no rule maps yet"
|
||||
# why. `TagOnCreateNamespacesIntegrationTest` fails for a namespace Floci serves that is in neither list.
|
||||
NOT_COVERED = {
|
||||
"airflow": _NO_ROUTES, "app-integrations": _NO_ROUTES,
|
||||
"aws-marketplace": _NO_ROUTES, "backup": _NO_ROUTES,
|
||||
"aws-marketplace": _NO_ROUTES,
|
||||
"batch": "CreateComputeEnvironment is checked as batch:TagResource or batch:SetCapacityTags, and nothing says "
|
||||
"which of its tag members each is for",
|
||||
"bedrock-agentcore": _NO_ROUTES,
|
||||
|
||||
@@ -68,6 +68,7 @@ MODELS: dict[str, str] = {
|
||||
"appconfig": "appconfig",
|
||||
"appconfigdata": "appconfig",
|
||||
"appsync": "appsync",
|
||||
"backup": "backup",
|
||||
"batch": "batch",
|
||||
"bedrock": "bedrock",
|
||||
"bedrock-agent": "bedrock",
|
||||
|
||||
@@ -0,0 +1,35 @@
|
||||
{
|
||||
"_source": {
|
||||
"pages": [
|
||||
"https://docs.aws.amazon.com/aws-backup/latest/APIReference/API_StartScanJob.html",
|
||||
"https://docs.aws.amazon.com/aws-backup/latest/devguide/malware-protection.html"
|
||||
],
|
||||
"fetcher": "tools/aws/fetch_backup_roles.py",
|
||||
"retrieved": "2026-11-28",
|
||||
"note": "Each member's description on its API reference page, copied as it stands; the malware protection page's Access item naming its role (roleText); and from that item the service principal the role trusts, or else the operation whose role the guide says it is (sameRoleAs)."
|
||||
},
|
||||
"members": [
|
||||
{
|
||||
"operation": "StartScanJob",
|
||||
"member": "IamRoleArn",
|
||||
"description": "Specifies the IAM role ARN used to create the target recovery point; for example, arn:aws:iam::123456789012:role/S3Access .",
|
||||
"rolePage": "https://docs.aws.amazon.com/aws-backup/latest/devguide/malware-protection.html",
|
||||
"section": "Access",
|
||||
"roleText": "First, the AWSBackupServiceRolePolicyForBackup or AWSBackupServiceRolePolicyForScans managed policy must be attached to your existing or new backup role. This is the same role found in the resource assignment for your backup plan in the console, or through the BackupSelection API . This managed policy allows AWS Backup to initiate malware scans with Amazon GuardDuty.",
|
||||
"sameRoleAs": {
|
||||
"operation": "CreateBackupSelection"
|
||||
}
|
||||
},
|
||||
{
|
||||
"operation": "StartScanJob",
|
||||
"member": "ScannerRoleArn",
|
||||
"description": "Specified the IAM scanner role ARN.",
|
||||
"rolePage": "https://docs.aws.amazon.com/aws-backup/latest/devguide/malware-protection.html",
|
||||
"section": "Access",
|
||||
"roleText": "Second, a new scanner role is required with AWSBackupGuardDutyRolePolicyForScans managed policy that trusts malware-protection.guardduty.amazonaws.com . To create this role, you can specify a custom trust policy and attach the required managed policy. This is the same role found in the malware protection portion of your backup plan in the console or through the scan settings in your BackupPlan API . This role is passed by AWS Backup to Amazon GuardDuty when a scan is initiated, providing access to backups.",
|
||||
"trustedBy": [
|
||||
"malware-protection.guardduty.amazonaws.com"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,68 @@
|
||||
#!/usr/bin/env python3
|
||||
"""Tests for fetch_backup_roles.py, on pages in the AWS Backup API reference's and developer guide's markup."""
|
||||
from __future__ import annotations
|
||||
|
||||
import pytest
|
||||
|
||||
import fetch_backup_roles as f
|
||||
|
||||
API = f.API_REFERENCE
|
||||
|
||||
|
||||
def entry(member: str, description: str) -> str:
|
||||
return (f'<dl><dt id="Backup-StartScanJob-request-{member}"><b><code class="code">{member}</code></b></dt>'
|
||||
f'<dd><p>{description}</p><p>Type: String</p></dd></dl>')
|
||||
|
||||
|
||||
BACKUP_ROLE = ('<li class="listitem"><p>First, the <a href="https://docs.aws.amazon.com/aws-managed-policy/latest/'
|
||||
'reference/AWSBackupServiceRolePolicyForScans.html">AWSBackupServiceRolePolicyForScans</a> managed '
|
||||
'policy must be attached to your existing or new backup role. This is the same role found in the '
|
||||
'resource assignment for your backup plan in the console, or through the <a href="' + API
|
||||
+ 'API_CreateBackupSelection.html">BackupSelection API</a>.</p></li>')
|
||||
SCANNER_ROLE = ('<li class="listitem"><p>Second, a new scanner role is required that trusts <code class="code">'
|
||||
'malware-protection.guardduty.amazonaws.com</code>. This is the same role found in the scan settings '
|
||||
'in your <a href="' + API + 'API_CreateBackupPlan.html">BackupPlan API</a>.</p></li>')
|
||||
|
||||
|
||||
def malware(items: str) -> str:
|
||||
return ('<div id="main-col-body"><h2 id="malware-access">Access</h2><p>AWS Backup malware scanning requires two '
|
||||
f'IAM roles:</p><ul class="itemizedlist">{items}</ul><h2 id="next">Incremental vs full scans</h2></div>')
|
||||
|
||||
|
||||
PAGES = {
|
||||
API + "API_StartScanJob.html": (
|
||||
entry("IamRoleArn", "Specifies the IAM role ARN used to create the target recovery point.")
|
||||
+ entry("ScannerRoleArn", "Specified the IAM scanner role ARN.")),
|
||||
f.MALWARE_PROTECTION: malware(BACKUP_ROLE + SCANNER_ROLE),
|
||||
}
|
||||
|
||||
|
||||
def test_each_member_is_read_with_what_the_guide_says_of_its_role():
|
||||
built = f.build(lambda url: PAGES[url])
|
||||
by_member = {m["member"]: m for m in built["members"]}
|
||||
# The scanner role trusts its service; the backup role is CreateBackupSelection's, the operation its item links.
|
||||
assert by_member["ScannerRoleArn"]["trustedBy"] == ["malware-protection.guardduty.amazonaws.com"]
|
||||
assert "sameRoleAs" not in by_member["ScannerRoleArn"]
|
||||
assert by_member["IamRoleArn"]["sameRoleAs"] == {"operation": "CreateBackupSelection"}
|
||||
assert "trustedBy" not in by_member["IamRoleArn"]
|
||||
assert by_member["IamRoleArn"]["description"].startswith("Specifies the IAM role ARN used to create")
|
||||
assert by_member["IamRoleArn"]["roleText"].startswith("First, the AWSBackupServiceRolePolicyForScans")
|
||||
|
||||
|
||||
def test_a_page_whose_layout_changed_is_refused():
|
||||
for url, page, message in (
|
||||
(API + "API_StartScanJob.html", entry("ScannerRoleArn", "A role."), "has no entry"),
|
||||
(f.MALWARE_PROTECTION, "<div id=\"main-col-body\"></div>", "has no section"),
|
||||
(f.MALWARE_PROTECTION, malware(SCANNER_ROLE), "names the backup role in 0 items"),
|
||||
(f.MALWARE_PROTECTION, malware(BACKUP_ROLE.replace("This is the same role found in", "It is like")
|
||||
+ SCANNER_ROLE), "neither what the backup role trusts")):
|
||||
changed = dict(PAGES, **{url: page})
|
||||
with pytest.raises(ValueError, match=message):
|
||||
f.build(lambda u: changed[u])
|
||||
|
||||
|
||||
def test_the_file_is_stale_when_a_page_says_something_else():
|
||||
vendored = f.build(lambda url: PAGES[url])
|
||||
assert not f.stale(vendored, PAGES)
|
||||
assert f.stale(vendored, dict(PAGES, **{f.MALWARE_PROTECTION: malware(
|
||||
BACKUP_ROLE + SCANNER_ROLE.replace("malware-protection.guardduty", "guardduty"))}))
|
||||
@@ -237,6 +237,22 @@ def test_a_vendored_role_for_a_service_the_reference_does_not_name_fails(correct
|
||||
r.entry_for("svc:CreateCluster", ["other", "svc"], CLUSTER)
|
||||
|
||||
|
||||
def test_a_vendored_role_another_operation_takes_goes_where_the_reference_passes_that_ones(corrections, tmp_path):
|
||||
# Backup's StartScanJob: the guide says its backup role is "the same role found in ... the BackupSelection API",
|
||||
# whose role the reference passes to one service, and its scanner role trusts the other.
|
||||
role_source(corrections, tmp_path, [
|
||||
{"operation": "CreateCluster", "member": "roleArn", "rolePage": "scan", "sameRoleAs": {"operation": "Select"}},
|
||||
{"type": "Compute", "member": "nodeRoleArn", "rolePage": "scan", "trustedBy": ["other.amazonaws.com"]}])
|
||||
passed = {"svc:CreateCluster": ["other", "svc"], "svc:Select": ["svc"]}
|
||||
assert r.entry_for("svc:CreateCluster", ["other", "svc"], CLUSTER, passed)["roles"] == [
|
||||
{"member": "computeConfig.nodeRoleArn", "passedTo": "other"}, {"member": "roleArn", "passedTo": "svc"}]
|
||||
# Not where the reference passes that operation's roles to several services, or to none.
|
||||
with pytest.raises(ValueError, match="not one service"):
|
||||
r.entry_for("svc:CreateCluster", ["other", "svc"], CLUSTER, {**passed, "svc:Select": ["other", "svc"]})
|
||||
with pytest.raises(ValueError, match="not one service"):
|
||||
r.entry_for("svc:CreateCluster", ["other", "svc"], CLUSTER, {"svc:CreateCluster": ["other", "svc"]})
|
||||
|
||||
|
||||
JOB_FLOW = {"svc": model({"RunJobFlow": "In"}, {"In": structure(ServiceRole="String", JobFlowRole="String",
|
||||
StepExecutionRoleArn="String")})}
|
||||
|
||||
|
||||
Reference in new issue
Block a user