diff --git a/docs/services/iam.md b/docs/services/iam.md index 8c82797b21..2fa10370b6 100644 --- a/docs/services/iam.md +++ b/docs/services/iam.md @@ -1825,8 +1825,9 @@ Map, ACM, CodePipeline, CodeBuild, Amazon Managed Service for Apache Flink (Kine Application Auto Scaling, AWS Budgets, Cost and Usage Reports, Service Quotas, Amazon Textract, Amazon Translate, Amazon Athena, AWS Data Exports, AWS Pricing Calculator, Cost Explorer, CloudTrail, Global Accelerator, Amazon 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, Amazon OpenSearch Service, IAM Access Analyzer, -AWS Security Hub and Amazon GuardDuty they come from a table generated from AWS's Service Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each +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 and Amazon GuardDuty 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. A member holding @@ -1948,6 +1949,18 @@ drops it, so `POST /clusters/` is checked as `POST /clusters`. An S3 path keeps may end in a slash, as a folder marker's does, and S3's rules already take a bucket's one trailing slash. +Every route Floci serves of AWS Fault Injection Service, AWS Resource Access Manager, CloudWatch +Observability Access Manager, AWS Resource Explorer, AWS Account Management and AWS Control Catalog is +checked as its operation's action, on the resource its request names. An Account Management request +naming an `AccountId` is checked on that member account of the caller's organization, +`arn:aws:account:::account//`, or on +`arn:aws:account::*:account/o-*/` for an account the caller's organization does not hold, which +Account Management refuses; one naming none is checked on the caller's own account. The Fault Injection +Service and Resource Explorer tag routes are checked on `/tags/` and on the bare `/tags` Floci also +serves, and OAM's on `/tags/` whether the ARN's slash is encoded or not. A `CreateLink` that carries +tags needs `oam:TagResource` on the sink it names, where the operation is checked, since it acts on no +link. + The REST routes mapped to an action are those of S3, Lambda, API Gateway, SES v2, RDS Data, Kinesis, EKS, EventBridge Scheduler, EventBridge Pipes and Aurora DSQL. In EKS that is every route, including those Floci does not serve yet, each checked as the action of its own name, except an @@ -2374,7 +2387,7 @@ its namespace's `CreateAction` key, as `ec2:CreateTags`, `ecs:TagResource`, Clou `TagResource` and Elastic Load Balancing's `AddTags` do, the key is the operation's name: `ec2:CreateAction` is `RunInstances` for an instance launched with tags. The operation's own action is checked with the same `aws:RequestTag/` and `aws:TagKeys`, once for each resource's tags, -wherever the Service Reference lists those keys for it or for a resource it acts on, which it does for 558 of the operations read, so +wherever the Service Reference lists those keys for it or for a resource it acts on, which it does for 589 of the operations read, so "allow `sqs:CreateQueue` only with `aws:RequestTag/team`" and "deny it when `aws:RequestTag/team` is null" hold as on AWS; keys a service's own condition keys already give, as EC2's `RunInstances` does, are kept. It is checked once for each reading of the tags and refused if any is denied: the diff --git a/src/main/java/io/floci/aws/core/common/RequestResources.java b/src/main/java/io/floci/aws/core/common/RequestResources.java index c9413ea298..06006f6996 100644 --- a/src/main/java/io/floci/aws/core/common/RequestResources.java +++ b/src/main/java/io/floci/aws/core/common/RequestResources.java @@ -8,6 +8,7 @@ import jakarta.ws.rs.container.ContainerRequestContext; import jakarta.ws.rs.core.MultivaluedMap; import java.util.ArrayList; +import java.util.Comparator; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedHashSet; @@ -184,8 +185,10 @@ public final class RequestResources { if (resource.arn() != null) { for (String value : values(form, body, resource.arn())) { String named = before(value, resource.before()); + // An ARN fitting a customer's format and one AWS owns is AWS's: the account `aws` tells them apart. resource.types().stream().map(formats::get).filter(format -> format.pattern().matcher(named).matches()) - .findFirst().ifPresent(format -> addNamed(arns, format.checked(named), format.awsOwned(), + .min(Comparator.comparing(format -> !format.awsOwned())) + .ifPresent(format -> addNamed(arns, format.checked(named), format.awsOwned(), partition, region, accountId)); } } else if (resource.through() != null) { diff --git a/src/main/java/io/floci/aws/services/account/AccountService.java b/src/main/java/io/floci/aws/services/account/AccountService.java index a3289aba4c..826cf021c3 100644 --- a/src/main/java/io/floci/aws/services/account/AccountService.java +++ b/src/main/java/io/floci/aws/services/account/AccountService.java @@ -2,9 +2,11 @@ package io.floci.aws.services.account; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.JsonNode; +import io.floci.aws.core.common.AwsArnUtils; import io.floci.aws.core.common.AwsException; import io.floci.aws.core.common.Resettable; import io.floci.aws.core.common.ServicePrincipals; +import io.floci.aws.core.common.StoredResourceArns; import io.floci.aws.core.storage.AccountAwareStorageBackend; import io.floci.aws.core.storage.StorageFactory; import io.floci.aws.services.account.model.AlternateContact; @@ -14,12 +16,14 @@ import io.floci.aws.services.organizations.model.OrganizationAccount; import jakarta.enterprise.context.ApplicationScoped; import jakarta.inject.Inject; +import java.util.List; import java.util.Map; +import java.util.Optional; import java.util.Set; import java.util.regex.Pattern; @ApplicationScoped -public class AccountService implements Resettable { +public class AccountService implements Resettable, StoredResourceArns { private static final String ACCOUNT_MANAGEMENT_SERVICE_PRINCIPAL = ServicePrincipals.of("account"); private static final Pattern ACCOUNT_ID = Pattern.compile("\\d{12}"); private static final Pattern EMAIL = Pattern.compile("\\s*[\\w+=.#|!&-]+@[\\w.-]+\\.[\\w]+\\s*"); @@ -116,6 +120,36 @@ public class AccountService implements Resettable { contacts.clear(); } + /** The namespace of the resource types this service finds, as the request-resources table names it. */ + @Override + public String namespace() { + return "account"; + } + + /** + * The ARN of the member account of the caller's organization a request names by its {@code AccountId}, which + * Account Management acts on: {@code arn:aws:account:::account//}, its + * organization and management account being ones no request gives. Empty for a caller in no organization or an + * account its organization does not hold, which the handler refuses. + */ + @Override + public Optional find(String type, List names, String region) { + if (!"accountInOrganization".equals(type) || names.size() != 1 || names.getFirst() == null) { + return Optional.empty(); + } + String callerAccountId = contacts.accountId(); + Organization organization; + try { + organization = organizationsService.describeOrganization(callerAccountId); + organizationsService.describeAccount(callerAccountId, names.getFirst()); + } catch (AwsException e) { + return Optional.empty(); + } + return Optional.of(AwsArnUtils.Arn.global(AwsArnUtils.parse(organization.getArn()).partition(), "account", + organization.getMasterAccountId(), "account/" + organization.getId() + "/" + names.getFirst()) + .toString()); + } + private static String requireContactType(JsonNode request) { String value = requireLength(request, "AlternateContactType", 1, 32); if (!CONTACT_TYPES.contains(value)) { diff --git a/src/main/resources/aws/iam-authorized-actions.json b/src/main/resources/aws/iam-authorized-actions.json index 63df57bfaa..8c653b952e 100644 --- a/src/main/resources/aws/iam-authorized-actions.json +++ b/src/main/resources/aws/iam-authorized-actions.json @@ -354,6 +354,7 @@ "StartPolicyGeneration", "ValidatePolicy" ], + "account": [], "apigateway": [], "cloudfront": [ "CreateAnycastIpList", @@ -430,6 +431,12 @@ "UpdateSavingsPlan" ], "cloudfront-keyvaluestore": [], + "controlcatalog": [ + "ListCommonControls", + "ListControlMappings", + "ListDomains", + "ListObjectives" + ], "controltower": [ "CreateLandingZone", "CreateManagedAccount", @@ -547,6 +554,13 @@ "UpdatePackageScope", "UpdateVpcEndpoint" ], + "fis": [ + "GetTargetResourceType", + "ListActions", + "ListExperimentTemplates", + "ListExperiments", + "ListTargetResourceTypes" + ], "guardduty": [ "AcceptAdministratorInvitation", "AcceptInvitation", @@ -841,6 +855,11 @@ "UpdateRevealConfiguration", "UpdateSensitivityInspectionTemplate" ], + "oam": [ + "CreateSink", + "ListLinks", + "ListSinks" + ], "payment-cryptography": [ "CreateKey", "DisableDefaultKeyReplicationRegions", @@ -952,6 +971,46 @@ "UpdateSPICECapacityConfiguration", "UpdateSelfUpgradeConfiguration" ], + "ram": [ + "EnableSharingWithAwsOrganization", + "GetResourcePolicies", + "GetResourceShareAssociations", + "GetResourceShareInvitations", + "GetResourceShares", + "ListPermissionAssociations", + "ListPermissions", + "ListPrincipals", + "ListReplacePermissionAssociationsWork", + "ListResourceTypes", + "ListResources", + "ListSourceAssociations" + ], + "resource-explorer-2": [ + "AssociateDefaultView", + "BatchGetView", + "CreateIndex", + "CreateManagedView", + "CreateResourceExplorerSetup", + "CreateStreamingAccessForService", + "CreateView", + "DeleteResourceExplorerSetup", + "DeleteStreamingAccessForService", + "DisassociateDefaultView", + "GetAccountLevelServiceConfiguration", + "GetDefaultView", + "GetIndex", + "GetResourceExplorerSetup", + "GetServiceIndex", + "GetServiceView", + "ListIndexes", + "ListIndexesForMembers", + "ListManagedViews", + "ListServiceIndexes", + "ListServiceViews", + "ListStreamingAccessForServices", + "ListSupportedResourceTypes", + "ListViews" + ], "scheduler": [ "ListScheduleGroups", "ListSchedules", diff --git a/src/main/resources/aws/iam-request-resources.json b/src/main/resources/aws/iam-request-resources.json index a38ae30d68..0bcbe51b58 100644 --- a/src/main/resources/aws/iam-request-resources.json +++ b/src/main/resources/aws/iam-request-resources.json @@ -1,11 +1,11 @@ { "_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-12", "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"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalyticsv2"], "logs": ["logs"], "macie2": ["macie2"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]}, + "namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalyticsv2"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "ram": ["ram"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]}, "clientsNotRead": {"kinesisanalytics": "Kinesis Data Analytics v1, SQL applications on the KinesisAnalytics_20150814 target, which Floci does not serve (it serves v2, kinesisanalyticsv2); its operations share v2's names and name their resources by other members"}, "handBuilt": ["apigateway", "bedrock", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "lambda", "logs", "pipes", "resource-groups", "s3", "scheduler", "secretsmanager", "sns", "sqs", "ssm", "sts"], - "notCovered": {"account": "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", "airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup::autoScalingGroupName/`, while Floci mints `autoScalingGroup:`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudformation": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rule does not fill a name from, so nearly every operation needs a correction", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/_, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "controlcatalog": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ec2-instance-connect": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ecs": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment//`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "execute-api": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "fis": "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", "glue": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "identitystore": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "iot": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "kafka": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "lightsail": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "memorydb": "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", "oam": "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", "organizations": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ram": "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", "rds": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "rds-data": "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", "resource-explorer-2": "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", "route53": "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", "route53resolver": "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", "s3tables": "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", "s3vectors": "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", "sagemaker": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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", "ses": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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", "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:::/domain/`, while the SWF Developer Guide gives it as arn:aws:swf:Region:AccountID:/domain/DomainName, as Floci mints it; reading it needs that format corrected", "transcribe": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "transfer": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "verifiedpermissions": "not read yet: a policyStoreId may name its store by an alias, `policy-store-alias/`, which AWS authorizes as the action on the store the alias points to and GetPolicyStoreAlias on the alias, and an aliasName carries the `policy-store-alias/` its format already gives; reading it needs both", "wafv2": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint"}, + "notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup::autoScalingGroupName/`, while Floci mints `autoScalingGroup:`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudformation": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rule does not fill a name from, so nearly every operation needs a correction", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/_, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ec2-instance-connect": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ecs": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment//`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "execute-api": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "glue": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "identitystore": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "iot": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "kafka": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "lightsail": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "memorydb": "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", "rds": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "rds-data": "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", "route53": "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", "route53resolver": "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", "s3tables": "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", "s3vectors": "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", "sagemaker": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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", "ses": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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", "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:::/domain/`, while the SWF Developer Guide gives it as arn:aws:swf:Region:AccountID:/domain/DomainName, as Floci mints it; reading it needs that format corrected", "transcribe": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "transfer": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "verifiedpermissions": "not read yet: a policyStoreId may name its store by an alias, `policy-store-alias/`, which AWS authorizes as the action on the store the alias points to and GetPolicyStoreAlias on the alias, and an aliasName carries the `policy-store-alias/` its format already gives; reading it needs both", "wafv2": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint"}, "otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "application-signals-mcp", "appmesh", "appmesh-preview", "apprunner", "appstream", "apptest", "arc-region-switch", "arc-zonal-shift", "artifact", "assurance", "auditmanager", "aws-external-anthropic", "b2bi", "backup-gateway", "backup-search", "bedrock-mantle", "bedrock-websearch", "billing", "billingconductor", "braket", "bugbust", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "clouddirectory", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "emr-containers", "end-user-messaging", "entityresolution", "evs", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "ssmmessages", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web"], - "arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudfront": {"anycast-ip-list": "arn:${Partition}:cloudfront::${Account}:anycast-ip-list/${Id}", "cache-policy": "arn:${Partition}:cloudfront::${Account}:cache-policy/${Id}", "connection-function": "arn:${Partition}:cloudfront::${Account}:connection-function/${Id}", "connection-group": "arn:${Partition}:cloudfront::${Account}:connection-group/${Id}", "continuous-deployment-policy": "arn:${Partition}:cloudfront::${Account}:continuous-deployment-policy/${Id}", "distribution": "arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}", "distribution-tenant": "arn:${Partition}:cloudfront::${Account}:distribution-tenant/${Id}", "field-level-encryption-config": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-config/${Id}", "field-level-encryption-profile": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-profile/${Id}", "function": "arn:${Partition}:cloudfront::${Account}:function/${Name}", "key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}", "origin-access-control": "arn:${Partition}:cloudfront::${Account}:origin-access-control/${Id}", "origin-access-identity": "arn:${Partition}:cloudfront::${Account}:origin-access-identity/${Id}", "origin-request-policy": "arn:${Partition}:cloudfront::${Account}:origin-request-policy/${Id}", "realtime-log-config": "arn:${Partition}:cloudfront::${Account}:realtime-log-config/${Name}", "response-headers-policy": "arn:${Partition}:cloudfront::${Account}:response-headers-policy/${Id}", "streaming-distribution": "arn:${Partition}:cloudfront::${Account}:streaming-distribution/${DistributionId}", "trust-store": "arn:${Partition}:cloudfront::${Account}:trust-store/${Id}", "vpcorigin": "arn:${Partition}:cloudfront::${Account}:vpcorigin/${Id}"}, "cloudfront-keyvaluestore": {"key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${ResourceId}"}, "cloudtrail": {"channel": "arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId}", "dashboard": "arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName}", "eventdatastore": "arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId}", "trail": "arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName}"}, "codebuild": {"build": "arn:${Partition}:codebuild:${Region}:${Account}:build/${BuildId}", "build-batch": "arn:${Partition}:codebuild:${Region}:${Account}:build-batch/${BuildBatchId}", "fleet": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}", "project": "arn:${Partition}:codebuild:${Region}:${Account}:project/${ProjectName}", "report": "arn:${Partition}:codebuild:${Region}:${Account}:report/${ReportGroupName}:${ReportId}", "report-group": "arn:${Partition}:codebuild:${Region}:${Account}:report-group/${ReportGroupName}", "sandbox": "arn:${Partition}:codebuild:${Region}:${Account}:sandbox/${SandboxId}"}, "codepipeline": {"action": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}/${ActionName}", "actiontype": "arn:${Partition}:codepipeline:${Region}:${Account}:actiontype:${Owner}/${Category}/${Provider}/${Version}", "pipeline": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}", "stage": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}", "webhook": "arn:${Partition}:codepipeline:${Region}:${Account}:webhook:${WebhookName}"}, "cognito-identity": {"identitypool": "arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}"}, "cognito-idp": {"userpool": "arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}", "webacl": "arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id}"}, "controltower": {"Baseline": "arn:${Partition}:controltower:${Region}::baseline/${BaselineId}", "EnabledBaseline": "arn:${Partition}:controltower:${Region}:${Account}:enabledbaseline/${EnabledBaselineId}", "EnabledControl": "arn:${Partition}:controltower:${Region}:${Account}:enabledcontrol/${EnabledControlId}", "LandingZone": "arn:${Partition}:controltower:${Region}:${Account}:landingzone/${LandingZoneId}"}, "cur": {"cur": "arn:${Partition}:cur:${Region}:${Account}:definition/${ReportName}"}, "datasync": {"agent": "arn:${Partition}:datasync:${Region}:${Account}:agent/${AgentId}", "discoveryjob": "arn:${Partition}:datasync:${Region}:${Account}:system/${StorageSystemId}/job/${DiscoveryJobId}", "location": "arn:${Partition}:datasync:${Region}:${Account}:location/${LocationId}", "storagesystem": "arn:${Partition}:datasync:${Region}:${Account}:system/${StorageSystemId}", "task": "arn:${Partition}:datasync:${Region}:${Account}:task/${TaskId}", "taskexecution": "arn:${Partition}:datasync:${Region}:${Account}:task/${TaskId}/execution/${ExecutionId}"}, "dynamodb": {"backup": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/backup/${BackupName}", "bulk-operation": "arn:${Partition}:dynamodb:${Region}:${Account}:bulk-operation/${BulkOperationId}", "export": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/export/${ExportName}", "global-table": "arn:${Partition}:dynamodb::${Account}:global-table/${GlobalTableName}", "import": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/import/${ImportName}", "index": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/index/${IndexName}", "stream": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/stream/${StreamLabel}", "table": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}"}, "ec2": {"application-status-check": "arn:${Partition}:ec2:${Region}:${Account}:application-status-check/${ApplicationStatusCheckId}", "capacity-block": "arn:${Partition}:ec2:${Region}:${Account}:capacity-block/${CapacityBlockId}", "capacity-manager-data-export": "arn:${Partition}:ec2:${Region}:${Account}:capacity-manager-data-export/${CapacityManagerDataExportId}", "capacity-reservation": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/${CapacityReservationId}", "capacity-reservation-cancellation-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-cancellation-quote/${CapacityReservationCancellationQuoteId}", "capacity-reservation-fleet": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-fleet/${CapacityReservationFleetId}", "capacity-reservation-modification-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-modification-quote/${CapacityReservationModificationQuoteId}", "carrier-gateway": "arn:${Partition}:ec2:${Region}:${Account}:carrier-gateway/${CarrierGatewayId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}", "client-vpn-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:client-vpn-endpoint/${ClientVpnEndpointId}", "coip-pool": "arn:${Partition}:ec2:${Region}:${Account}:coip-pool/${Ipv4PoolCoipId}", "customer-gateway": "arn:${Partition}:ec2:${Region}:${Account}:customer-gateway/${CustomerGatewayId}", "declarative-policies-report": "arn:${Partition}:ec2:${Region}:${Account}:declarative-policies-report/${DeclarativePoliciesReportId}", "dedicated-host": "arn:${Partition}:ec2:${Region}:${Account}:dedicated-host/${DedicatedHostId}", "dhcp-options": "arn:${Partition}:ec2:${Region}:${Account}:dhcp-options/${DhcpOptionsId}", "egress-only-internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:egress-only-internet-gateway/${EgressOnlyInternetGatewayId}", "elastic-gpu": "arn:${Partition}:ec2:${Region}:${Account}:elastic-gpu/${ElasticGpuId}", "elastic-inference": "arn:${Partition}:elastic-inference:${Region}:${Account}:elastic-inference-accelerator/${AcceleratorId}", "elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/${AllocationId}", "export-image-task": "arn:${Partition}:ec2:${Region}:${Account}:export-image-task/${ExportImageTaskId}", "export-instance-task": "arn:${Partition}:ec2:${Region}:${Account}:export-instance-task/${ExportTaskId}", "fleet": "arn:${Partition}:ec2:${Region}:${Account}:fleet/${FleetId}", "fpga-image": "arn:${Partition}:ec2:${Region}:${Account}:fpga-image/${FpgaImageId}", "group": "arn:${Partition}:resource-groups:${Region}:${Account}:group/${GroupName}", "host-reservation": "arn:${Partition}:ec2:${Region}:${Account}:host-reservation/${HostReservationId}", "image": "arn:${Partition}:ec2:${Region}::image/${ImageId}", "image-usage-report": "arn:${Partition}:ec2:${Region}:${Account}:image-usage-report/${ImageUsageReportId}", "import-image-task": "arn:${Partition}:ec2:${Region}:${Account}:import-image-task/${ImportImageTaskId}", "import-snapshot-task": "arn:${Partition}:ec2:${Region}:${Account}:import-snapshot-task/${ImportSnapshotTaskId}", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/${InstanceId}", "instance-connect-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:instance-connect-endpoint/${InstanceConnectEndpointId}", "instance-event-window": "arn:${Partition}:ec2:${Region}:${Account}:instance-event-window/${InstanceEventWindowId}", "internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:internet-gateway/${InternetGatewayId}", "ipam": "arn:${Partition}:ec2::${Account}:ipam/${IpamId}", "ipam-external-resource-verification-token": "arn:${Partition}:ec2::${Account}:ipam-external-resource-verification-token/${IpamExternalResourceVerificationTokenId}", "ipam-internet-registry-association": "arn:${Partition}:ec2::${Account}:ipam-internet-registry-association/${IpamInternetRegistryAssociationId}", "ipam-policy": "arn:${Partition}:ec2::${Account}:ipam-policy/${IpamPolicyId}", "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/${IpamPoolId}", "ipam-pool-allocation": "arn:${Partition}:ec2:${Region}:${Account}:ipam-pool-allocation/${IpamPoolAllocationId}", "ipam-prefix-list-resolver": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver/${IpamPrefixListResolverId}", "ipam-prefix-list-resolver-target": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver-target/${IpamPrefixListResolverTargetId}", "ipam-resource-discovery": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery/${IpamResourceDiscoveryId}", "ipam-resource-discovery-association": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery-association/${IpamResourceDiscoveryAssociationId}", "ipam-scope": "arn:${Partition}:ec2::${Account}:ipam-scope/${IpamScopeId}", "ipv4pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv4pool-ec2/${Ipv4PoolEc2Id}", "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/${Ipv6PoolEc2Id}", "key-pair": "arn:${Partition}:ec2:${Region}:${Account}:key-pair/${KeyPairName}", "launch-template": "arn:${Partition}:ec2:${Region}:${Account}:launch-template/${LaunchTemplateId}", "license-configuration": "arn:${Partition}:license-manager:${Region}:${Account}:license-configuration:${LicenseConfigurationId}", "local-gateway": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway/${LocalGatewayId}", "local-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table/${LocalGatewayRoutetableId}", "local-gateway-route-table-virtual-interface-group-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-virtual-interface-group-association/${LocalGatewayRouteTableVirtualInterfaceGroupAssociationId}", "local-gateway-route-table-vpc-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-vpc-association/${LocalGatewayRouteTableVpcAssociationId}", "local-gateway-virtual-interface": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface/${LocalGatewayVirtualInterfaceId}", "local-gateway-virtual-interface-group": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface-group/${LocalGatewayVirtualInterfaceGroupId}", "mac-modification-task": "arn:${Partition}:ec2:${Region}:${Account}:mac-modification-task/${MacModificationTaskId}", "natgateway": "arn:${Partition}:ec2:${Region}:${Account}:natgateway/${NatGatewayId}", "network-acl": "arn:${Partition}:ec2:${Region}:${Account}:network-acl/${NaclId}", "network-insights-access-scope": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-access-scope/${NetworkInsightsAccessScopeId}", "network-insights-access-scope-analysis": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-access-scope-analysis/${NetworkInsightsAccessScopeAnalysisId}", "network-insights-analysis": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-analysis/${NetworkInsightsAnalysisId}", "network-insights-path": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-path/${NetworkInsightsPathId}", "network-interface": "arn:${Partition}:ec2:${Region}:${Account}:network-interface/${NetworkInterfaceId}", "outpost-lag": "arn:${Partition}:ec2:${Region}:${Account}:outpost-lag/${OutpostLagId}", "placement-group": "arn:${Partition}:ec2:${Region}:${Account}:placement-group/${PlacementGroupName}", "prefix-list": "arn:${Partition}:ec2:${Region}:${Account}:prefix-list/${PrefixListId}", "replace-root-volume-task": "arn:${Partition}:ec2:${Region}:${Account}:replace-root-volume-task/${ReplaceRootVolumeTaskId}", "reserved-instances": "arn:${Partition}:ec2:${Region}:${Account}:reserved-instances/${ReservationId}", "role": "arn:${Partition}:iam::${Account}:role/${RoleNameWithPath}", "route-server": "arn:${Partition}:ec2:${Region}:${Account}:route-server/${RouteServerId}", "route-server-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:route-server-endpoint/${RouteServerEndpointId}", "route-server-peer": "arn:${Partition}:ec2:${Region}:${Account}:route-server-peer/${RouteServerPeerId}", "route-table": "arn:${Partition}:ec2:${Region}:${Account}:route-table/${RouteTableId}", "secondary-interface": "arn:${Partition}:ec2:${Region}:${Account}:secondary-interface/${SecondaryInterfaceId}", "secondary-network": "arn:${Partition}:ec2:${Region}:${Account}:secondary-network/${SecondaryNetworkId}", "secondary-subnet": "arn:${Partition}:ec2:${Region}:${Account}:secondary-subnet/${SecondarySubnetId}", "security-group": "arn:${Partition}:ec2:${Region}:${Account}:security-group/${SecurityGroupId}", "security-group-rule": "arn:${Partition}:ec2:${Region}:${Account}:security-group-rule/${SecurityGroupRuleId}", "snapshot": "arn:${Partition}:ec2:${Region}::snapshot/${SnapshotId}", "spot-fleet-request": "arn:${Partition}:ec2:${Region}:${Account}:spot-fleet-request/${SpotFleetRequestId}", "spot-instances-request": "arn:${Partition}:ec2:${Region}:${Account}:spot-instances-request/${SpotInstanceRequestId}", "subnet": "arn:${Partition}:ec2:${Region}:${Account}:subnet/${SubnetId}", "subnet-cidr-reservation": "arn:${Partition}:ec2:${Region}:${Account}:subnet-cidr-reservation/${SubnetCidrReservationId}", "traffic-mirror-filter": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-filter/${TrafficMirrorFilterId}", "traffic-mirror-filter-rule": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-filter-rule/${TrafficMirrorFilterRuleId}", "traffic-mirror-session": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-session/${TrafficMirrorSessionId}", "traffic-mirror-target": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-target/${TrafficMirrorTargetId}", "transit-gateway": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway/${TransitGatewayId}", "transit-gateway-attachment": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-attachment/${TransitGatewayAttachmentId}", "transit-gateway-connect-peer": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-connect-peer/${TransitGatewayConnectPeerId}", "transit-gateway-metering-policy": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-metering-policy/${TransitGatewayMeteringPolicyId}", "transit-gateway-multicast-domain": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-multicast-domain/${TransitGatewayMulticastDomainId}", "transit-gateway-policy-table": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-policy-table/${TransitGatewayPolicyTableId}", "transit-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-route-table/${TransitGatewayRouteTableId}", "transit-gateway-route-table-announcement": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-route-table-announcement/${TransitGatewayRouteTableAnnouncementId}", "verified-access-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-endpoint/${VerifiedAccessEndpointId}", "verified-access-endpoint-target": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-endpoint-target/${VerifiedAccessEndpointTargetId}", "verified-access-group": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-group/${VerifiedAccessGroupId}", "verified-access-instance": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-instance/${VerifiedAccessInstanceId}", "verified-access-policy": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-policy/${VerifiedAccessPolicyId}", "verified-access-trust-provider": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-trust-provider/${VerifiedAccessTrustProviderId}", "volume": "arn:${Partition}:ec2:${Region}:${Account}:volume/${VolumeId}", "vpc": "arn:${Partition}:ec2:${Region}:${Account}:vpc/${VpcId}", "vpc-block-public-access-exclusion": "arn:${Partition}:ec2:${Region}:${Account}:vpc-block-public-access-exclusion/${VpcBlockPublicAccessExclusionId}", "vpc-encryption-control": "arn:${Partition}:ec2:${Region}:${Account}:vpc-encryption-control/${VpcEncryptionControlId}", "vpc-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint/${VpcEndpointId}", "vpc-endpoint-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-connection/${VpcEndpointConnectionId}", "vpc-endpoint-service": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-service/${VpcEndpointServiceId}", "vpc-endpoint-service-permission": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-service-permission/${VpcEndpointServicePermissionId}", "vpc-flow-log": "arn:${Partition}:ec2:${Region}:${Account}:vpc-flow-log/${VpcFlowLogId}", "vpc-peering-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpc-peering-connection/${VpcPeeringConnectionId}", "vpn-concentrator": "arn:${Partition}:ec2:${Region}:${Account}:vpn-concentrator/${VpnConcentratorId}", "vpn-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpn-connection/${VpnConnectionId}", "vpn-connection-device-type": "arn:${Partition}:ec2:${Region}:${Account}:vpn-connection-device-type/${VpnConnectionDeviceTypeId}", "vpn-gateway": "arn:${Partition}:ec2:${Region}:${Account}:vpn-gateway/${VpnGatewayId}"}, "ecr": {"repository": "arn:${Partition}:ecr:${Region}:${Account}:repository/${RepositoryName}"}, "elasticloadbalancing": {"listener-rule/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener-rule/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/gwy": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/gwy/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "loadbalancer": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/${LoadBalancerName}", "loadbalancer/app/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/app/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/gwy/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/gwy/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/net/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/net/${LoadBalancerName}/${LoadBalancerId}", "targetgroup": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:targetgroup/${TargetGroupName}/${TargetGroupId}", "truststore": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:truststore/${TrustStoreName}/${TrustStoreId}"}, "elasticmapreduce": {"cluster": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId}", "editor": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:editor/${EditorId}", "notebook-execution": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:notebook-execution/${NotebookExecutionId}", "session": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId}/session/${SessionId}", "studio": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:studio/${StudioId}"}, "emr-serverless": {"application": "arn:${Partition}:emr-serverless:${Region}:${Account}:/applications/${ApplicationId}", "jobRun": "arn:${Partition}:emr-serverless:${Region}:${Account}:/applications/${ApplicationId}/jobruns/${JobRunId}", "session": "arn:${Partition}:emr-serverless:${Region}:${Account}:/applications/${ApplicationId}/sessions/${SessionId}"}, "es": {"application": "arn:${Partition}:opensearch:${Region}:${Account}:application/${AppId}", "datasource": "arn:${Partition}:opensearch:${Region}:${Account}:datasource/${DataSourceName}", "domain": "arn:${Partition}:es:${Region}:${Account}:domain/${DomainName}", "es_role": "arn:${Partition}:iam::${Account}:role/aws-service-role/es.amazonaws.com/AWSServiceRoleForAmazonOpenSearchService", "opensearchservice_role": "arn:${Partition}:iam::${Account}:role/aws-service-role/opensearchservice.amazonaws.com/AWSServiceRoleForAmazonOpenSearchService"}, "events": {"alias": "arn:${Partition}:kms:${Region}:${Account}:alias/${Alias}", "api-destination": "arn:${Partition}:events:${Region}:${Account}:api-destination/${ApiDestinationName}", "archive": "arn:${Partition}:events:${Region}:${Account}:archive/${ArchiveName}", "connection": "arn:${Partition}:events:${Region}:${Account}:connection/${ConnectionName}", "create-snapshot": "arn:${Partition}:events:${Region}:${Account}:target/create-snapshot", "endpoint": "arn:${Partition}:events:${Region}:${Account}:endpoint/${EndpointName}", "event-bus": "arn:${Partition}:events:${Region}:${Account}:event-bus/${EventBusName}", "event-busv2": "arn:${Partition}:events:${Region}:${Account}:event-busv2/${EventBusName}/${OpaqueId}", "event-source": "arn:${Partition}:events:${Region}::event-source/${EventSourceName}", "event-sourcev2": "arn:${Partition}:events:${Region}:${Account}:event-sourcev2/${SourceType}/${EventSourceName}/${OpaqueId}", "key": "arn:${Partition}:kms:${Region}:${Account}:key/${KeyId}", "reboot-instance": "arn:${Partition}:events:${Region}:${Account}:target/reboot-instance", "replay": "arn:${Partition}:events:${Region}:${Account}:replay/${ReplayName}", "rule-on-custom-event-bus": "arn:${Partition}:events:${Region}:${Account}:rule/${EventBusName}/${RuleName}", "rule-on-default-event-bus": "arn:${Partition}:events:${Region}:${Account}:rule/${RuleName}", "stop-instance": "arn:${Partition}:events:${Region}:${Account}:target/stop-instance", "subscriber": "arn:${Partition}:events:${Region}:${Account}:subscriber/${SubscriberName}/${OpaqueId}", "terminate-instance": "arn:${Partition}:events:${Region}:${Account}:target/terminate-instance"}, "firehose": {"deliverystream": "arn:${Partition}:firehose:${Region}:${Account}:deliverystream/${DeliveryStreamName}"}, "globalaccelerator": {"accelerator": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}", "attachment": "arn:${Partition}:globalaccelerator::${Account}:attachment/${ResourceId}", "endpointgroup": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}/listener/${ListenerId}/endpoint-group/${EndpointGroupId}", "listener": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}/listener/${ListenerId}"}, "guardduty": {"customdetectionrule": "arn:${Partition}:guardduty::aws:detection-rule/custom/${RuleId}", "customdetectionruleassociation": "arn:${Partition}:guardduty:${Region}:${Account}:detection-rule/custom/${RuleId}/association/${AssociationId}", "detector": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}", "filter": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/filter/${FilterName}", "ipset": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/ipset/${IPSetId}", "malwareprotectionplan": "arn:${Partition}:guardduty:${Region}:${Account}:malware-protection-plan/${MalwareProtectionPlanId}", "publishingDestination": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/publishingdestination/${PublishingDestinationId}", "threatentityset": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/threatentityset/${ThreatEntitySetId}", "threatintelset": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/threatintelset/${ThreatIntelSetId}", "trustedentityset": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/trustedentityset/${TrustedEntitySetId}"}, "inspector2": {"CIS Scan Configuration": "arn:${Partition}:inspector2:${Region}:${Account}:owner/${OwnerId}/cis-configuration/${CISScanConfigurationId}", "Code Security Integration": "arn:${Partition}:inspector2:${Region}:${Account}:codesecurity-integration/${CodeSecurityIntegrationId}", "Code Security Scan Configuration": "arn:${Partition}:inspector2:${Region}:${Account}:owner/${OwnerId}/codesecurity-configuration/${CodeSecurityScanConfigurationId}", "Connector": "arn:${Partition}:inspector2:${Region}:${Account}:connector/${ConnectorId}", "Filter": "arn:${Partition}:inspector2:${Region}:${Account}:owner/${OwnerId}/filter/${FilterId}", "Finding": "arn:${Partition}:inspector2:${Region}:${Account}:finding/${FindingId}"}, "kinesisanalytics": {"application": "arn:${Partition}:kinesisanalytics:${Region}:${Account}:application/${ApplicationName}"}, "logs": {"anomaly-detector": "arn:${Partition}:logs:${Region}:${Account}:anomaly-detector:${DetectorId}", "delivery": "arn:${Partition}:logs:${Region}:${Account}:delivery:${DeliveryName}", "delivery-destination": "arn:${Partition}:logs:${Region}:${Account}:delivery-destination:${DeliveryDestinationName}", "delivery-source": "arn:${Partition}:logs:${Region}:${Account}:delivery-source:${DeliverySourceName}", "destination": "arn:${Partition}:logs:${Region}:${Account}:destination:${DestinationName}", "log-group": "arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}", "log-stream": "arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}", "lookup-table": "arn:${Partition}:logs:${Region}:${Account}:lookup-table:${LookupTableName}", "scheduled-query": "arn:${Partition}:logs:${Region}:${Account}:scheduled-query:${ScheduledQueryId}"}, "macie2": {"AllowList": "arn:${Partition}:macie2:${Region}:${Account}:allow-list/${ResourceId}", "ClassificationJob": "arn:${Partition}:macie2:${Region}:${Account}:classification-job/${ResourceId}", "CustomDataIdentifier": "arn:${Partition}:macie2:${Region}:${Account}:custom-data-identifier/${ResourceId}", "FindingsFilter": "arn:${Partition}:macie2:${Region}:${Account}:findings-filter/${ResourceId}", "Member": "arn:${Partition}:macie2:${Region}:${Account}:member/${ResourceId}"}, "payment-cryptography": {"alias": "arn:${Partition}:payment-cryptography:${Region}:${Account}:alias/${Alias}", "approval-team": "arn:${Partition}:mpa:${Region}:${Account}:approval-team/${ApprovalTeamId}", "key": "arn:${Partition}:payment-cryptography:${Region}:${Account}:key/${KeyId}"}, "quicksight": {"accessControlApplication": "arn:${Partition}:quicksight:${Region}:${Account}:access-control-application/${ResourceId}", "account": "arn:${Partition}:quicksight:${Region}:${Account}:account/${ResourceId}", "actionconnector": "arn:${Partition}:quicksight:${Region}:${Account}:action-connector/${ResourceId}", "agent": "arn:${Partition}:quicksight:${Region}:${Account}:agent/${ResourceId}", "analysis": "arn:${Partition}:quicksight:${Region}:${Account}:analysis/${ResourceId}", "app": "arn:${Partition}:quicksight:${Region}:${Account}:app/${ResourceId}", "approvalPolicy": "arn:${Partition}:quicksight:${Region}:${Account}:approval-policy/${ResourceId}", "assetBundleExportJob": "arn:${Partition}:quicksight:${Region}:${Account}:asset-bundle-export-job/${ResourceId}", "assetBundleImportJob": "arn:${Partition}:quicksight:${Region}:${Account}:asset-bundle-import-job/${ResourceId}", "assignment": "arn:${Partition}:quicksight::${Account}:assignment/${ResourceId}", "automation": "arn:${Partition}:quicksight:${Region}:${Account}:automation-group/${AutomationGroupId}/automation/${ResourceId}", "automationGroup": "arn:${Partition}:quicksight:${Region}:${Account}:automation-group/${ResourceId}", "automationJob": "arn:${Partition}:quicksight:${Region}:${Account}:automation-group/${AutomationGroupId}/automation/${AutomationId}/job/${ResourceId}", "brand": "arn:${Partition}:quicksight:${Region}:${Account}:brand/${ResourceId}", "customization": "arn:${Partition}:quicksight:${Region}:${Account}:customization/${ResourceId}", "custompermissions": "arn:${Partition}:quicksight:${Region}:${Account}:custompermissions/${ResourceId}", "dashboard": "arn:${Partition}:quicksight:${Region}:${Account}:dashboard/${ResourceId}", "dashboardSnapshotJob": "arn:${Partition}:quicksight:${Region}:${Account}:dashboard/${DashboardId}/snapshot-job/${ResourceId}", "dataset": "arn:${Partition}:quicksight:${Region}:${Account}:dataset/${ResourceId}", "datasource": "arn:${Partition}:quicksight:${Region}:${Account}:datasource/${ResourceId}", "dlpSetting": "arn:${Partition}:quicksight:${Region}:${Account}:dlpsetting/${ResourceId}", "emailCustomizationTemplate": "arn:${Partition}:quicksight:${Region}:${Account}:email-customization-template/${ResourceId}", "extension": "arn:${Partition}:quicksight:${Region}:${Account}:extension/${ResourceId}", "extensionaccess": "arn:${Partition}:quicksight:${Region}:${Account}:extension-access/${ResourceId}", "flow": "arn:${Partition}:quicksight:${Region}:${Account}:flow/${ResourceId}", "folder": "arn:${Partition}:quicksight:${Region}:${Account}:folder/${ResourceId}", "group": "arn:${Partition}:quicksight:${Region}:${Account}:group/${ResourceId}", "inboundConnector": "arn:${Partition}:quicksight:${Region}:${Account}:inbound-connector/${ResourceId}", "ingestion": "arn:${Partition}:quicksight:${Region}:${Account}:dataset/${DatasetId}/ingestion/${ResourceId}", "knowledgeBase": "arn:${Partition}:quicksight:${Region}:${Account}:knowledge-base/${ResourceId}", "limitsProfile": "arn:${Partition}:quicksight:${Region}:${Account}:limits-profile/${ResourceId}", "namespace": "arn:${Partition}:quicksight:${Region}:${Account}:namespace/${ResourceId}", "oauthClientApplication": "arn:${Partition}:quicksight:${Region}:${Account}:oauthClientApplication/${ResourceId}", "refreshschedule": "arn:${Partition}:quicksight:${Region}:${Account}:dataset/${DatasetId}/refresh-schedule/${ResourceId}", "space": "arn:${Partition}:quicksight:${Region}:${Account}:space/${ResourceId}", "template": "arn:${Partition}:quicksight:${Region}:${Account}:template/${ResourceId}", "theme": "arn:${Partition}:quicksight:${Region}:${Account}:theme/${ResourceId}", "topic": "arn:${Partition}:quicksight:${Region}:${Account}:topic/${ResourceId}", "user": "arn:${Partition}:quicksight:${Region}:${Account}:user/${ResourceId}", "vpcconnection": "arn:${Partition}:quicksight:${Region}:${Account}:vpcConnection/${ResourceId}"}, "redshift": {"cluster": "arn:${Partition}:redshift:${Region}:${Account}:cluster:${ClusterName}", "datashare": "arn:${Partition}:redshift:${Region}:${Account}:datashare:${ProducerClusterNamespace}/${DataShareName}", "dbgroup": "arn:${Partition}:redshift:${Region}:${Account}:dbgroup:${ClusterName}/${DbGroup}", "dbname": "arn:${Partition}:redshift:${Region}:${Account}:dbname:${ClusterName}/${DbName}", "dbuser": "arn:${Partition}:redshift:${Region}:${Account}:dbuser:${ClusterName}/${DbUser}", "eventsubscription": "arn:${Partition}:redshift:${Region}:${Account}:eventsubscription:${EventSubscriptionName}", "hsmclientcertificate": "arn:${Partition}:redshift:${Region}:${Account}:hsmclientcertificate:${HSMClientCertificateId}", "hsmconfiguration": "arn:${Partition}:redshift:${Region}:${Account}:hsmconfiguration:${HSMConfigurationId}", "integration": "arn:${Partition}:redshift:${Region}:${Account}:integration:${IntegrationIdentifier}", "namespace": "arn:${Partition}:redshift:${Region}:${Account}:namespace:${ClusterNamespace}", "parametergroup": "arn:${Partition}:redshift:${Region}:${Account}:parametergroup:${ParameterGroupName}", "qev2idcapplication": "arn:${Partition}:redshift:${Region}:${Account}:qev2idcapplication:${Qev2IdcApplicationId}", "redshiftidcapplication": "arn:${Partition}:redshift:${Region}:${Account}:redshiftidcapplication:${RedshiftIdcApplicationId}", "securitygroup": "arn:${Partition}:redshift:${Region}:${Account}:securitygroup:${SecurityGroupName}/ec2securitygroup/${Owner}/${Ec2SecurityGroupId}", "securitygroupingress-cidr": "arn:${Partition}:redshift:${Region}:${Account}:securitygroupingress:${SecurityGroupName}/cidrip/${IpRange}", "securitygroupingress-ec2securitygroup": "arn:${Partition}:redshift:${Region}:${Account}:securitygroupingress:${SecurityGroupName}/ec2securitygroup/${Owner}/${Ece2SecuritygroupId}", "snapshot": "arn:${Partition}:redshift:${Region}:${Account}:snapshot:${ClusterName}/${SnapshotName}", "snapshotcopygrant": "arn:${Partition}:redshift:${Region}:${Account}:snapshotcopygrant:${SnapshotCopyGrantName}", "snapshotschedule": "arn:${Partition}:redshift:${Region}:${Account}:snapshotschedule:${ScheduleIdentifier}", "subnetgroup": "arn:${Partition}:redshift:${Region}:${Account}:subnetgroup:${SubnetGroupName}", "usagelimit": "arn:${Partition}:redshift:${Region}:${Account}:usagelimit:${UsageLimitId}"}, "redshift-data": {"cluster": "arn:${Partition}:redshift:${Region}:${Account}:cluster:${ClusterName}", "managed-workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:managed-workgroup/${ManagedWorkgroupId}", "workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:workgroup/${WorkgroupId}"}, "redshift-serverless": {"endpointAccess": "arn:${Partition}:redshift-serverless:${Region}:${Account}:managedvpcendpoint/${EndpointAccessId}", "managed-workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:managed-workgroup/${ManagedWorkgroupName}", "namespace": "arn:${Partition}:redshift-serverless:${Region}:${Account}:namespace/${NamespaceId}", "recoveryPoint": "arn:${Partition}:redshift-serverless:${Region}:${Account}:recoverypoint/${RecoveryPointId}", "snapshot": "arn:${Partition}:redshift-serverless:${Region}:${Account}:snapshot/${SnapshotId}", "workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:workgroup/${WorkgroupId}"}, "rekognition": {"collection": "arn:${Partition}:rekognition:${Region}:${Account}:collection/${CollectionId}", "dataset": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/dataset/${DatasetType}/${CreationTimestamp}", "project": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/${CreationTimestamp}", "projectversion": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/version/${VersionName}/${CreationTimestamp}", "streamprocessor": "arn:${Partition}:rekognition:${Region}:${Account}:streamprocessor/${StreamprocessorId}"}, "securityhub": {"aggregatorv2": "arn:${Partition}:securityhub:${Region}:${Account}:aggregatorv2/${AggregatorV2Id}", "automation-rule": "arn:${Partition}:securityhub:${Region}:${Account}:automation-rule/${AutomationRuleId}", "automation-rulev2": "arn:${Partition}:securityhub:${Region}:${Account}:automation-rulev2/${AutomationRuleV2Id}", "configuration-policy": "arn:${Partition}:securityhub:${Region}:${Account}:configuration-policy/${ConfigurationPolicyId}", "connector": "arn:${Partition}:securityhub:${Region}:${Account}:connector/${ConnectorId}", "connectorv2": "arn:${Partition}:securityhub:${Region}:${Account}:connectorv2/${ConnectorV2Id}", "finding-aggregator": "arn:${Partition}:securityhub:${Region}:${Account}:finding-aggregator/${FindingAggregatorId}", "hub": "arn:${Partition}:securityhub:${Region}:${Account}:hub/default", "hubv2": "arn:${Partition}:securityhub:${Region}:${Account}:hubv2/${HubV2Id}", "product": "arn:${Partition}:securityhub:${Region}:${Account}:product/${Company}/${ProductId}"}, "servicediscovery": {"namespace": "arn:${Partition}:servicediscovery:${Region}:${Account}:namespace/${NamespaceId}", "service": "arn:${Partition}:servicediscovery:${Region}:${Account}:service/${ServiceId}"}, "servicequotas": {"quota": "arn:${Partition}:servicequotas:${Region}:${Account}:${ServiceCode}/${QuotaCode}"}, "signer": {"signing-job": "arn:${Partition}:signer:${Region}:${Account}:/signing-jobs/${JobId}", "signing-profile": "arn:${Partition}:signer:${Region}:${Account}:/signing-profiles/${ProfileName}"}, "sso": {"Account": "arn:${Partition}:sso:::account/${AccountId}", "Application": "arn:${Partition}:sso::${Account}:application/${InstanceId}/${ApplicationId}", "ApplicationProvider": "arn:${Partition}:sso::aws:applicationProvider/${ApplicationProviderId}", "Instance": "arn:${Partition}:sso:::instance/${InstanceId}", "PermissionSet": "arn:${Partition}:sso:::permissionSet/${InstanceId}/${PermissionSetId}", "TrustedTokenIssuer": "arn:${Partition}:sso::${Account}:trustedTokenIssuer/${InstanceId}/${TrustedTokenIssuerId}"}, "states": {"activity": "arn:${Partition}:states:${Region}:${Account}:activity:${ActivityName}", "execution": "arn:${Partition}:states:${Region}:${Account}:execution:${StateMachineName}:${ExecutionId}", "express": "arn:${Partition}:states:${Region}:${Account}:express:${StateMachineName}:${ExecutionId}:${ExpressId}", "labelled execution": "arn:${Partition}:states:${Region}:${Account}:execution:${StateMachineName}/${MapRunLabel}:${ExecutionId}", "labelled express": "arn:${Partition}:states:${Region}:${Account}:express:${StateMachineName}/${MapRunLabel}:${ExecutionId}:${ExpressId}", "maprun": "arn:${Partition}:states:${Region}:${Account}:mapRun:${StateMachineName}/${MapRunLabel}:${MapRunId}", "statemachine": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}", "statemachinealias": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineAliasName}", "statemachineversion": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineVersionId}"}, "textract": {"adapter": "arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId}", "adapterversion": "arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId}/versions/${AdapterVersion}"}, "timestream-influxdb": {"db-backup": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-backup/${DbBackupId}", "db-cluster": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-cluster/${DbClusterId}", "db-instance": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-instance/${DbInstanceIdentifier}", "db-parameter-group": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-parameter-group/${DbParameterGroupIdentifier}"}, "translate": {"parallel-data": "arn:${Partition}:translate:${Region}:${Account}:parallel-data/${ResourceName}", "terminology": "arn:${Partition}:translate:${Region}:${Account}:terminology/${ResourceName}"}, "xray": {"group": "arn:${Partition}:xray:${Region}:${Account}:group/${GroupName}/${Id}", "sampling-rule": "arn:${Partition}:xray:${Region}:${Account}:sampling-rule/${SamplingRuleName}"}}, + "arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudfront": {"anycast-ip-list": "arn:${Partition}:cloudfront::${Account}:anycast-ip-list/${Id}", "cache-policy": "arn:${Partition}:cloudfront::${Account}:cache-policy/${Id}", "connection-function": "arn:${Partition}:cloudfront::${Account}:connection-function/${Id}", "connection-group": "arn:${Partition}:cloudfront::${Account}:connection-group/${Id}", "continuous-deployment-policy": "arn:${Partition}:cloudfront::${Account}:continuous-deployment-policy/${Id}", "distribution": "arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}", "distribution-tenant": "arn:${Partition}:cloudfront::${Account}:distribution-tenant/${Id}", "field-level-encryption-config": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-config/${Id}", "field-level-encryption-profile": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-profile/${Id}", "function": "arn:${Partition}:cloudfront::${Account}:function/${Name}", "key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}", "origin-access-control": "arn:${Partition}:cloudfront::${Account}:origin-access-control/${Id}", "origin-access-identity": "arn:${Partition}:cloudfront::${Account}:origin-access-identity/${Id}", "origin-request-policy": "arn:${Partition}:cloudfront::${Account}:origin-request-policy/${Id}", "realtime-log-config": "arn:${Partition}:cloudfront::${Account}:realtime-log-config/${Name}", "response-headers-policy": "arn:${Partition}:cloudfront::${Account}:response-headers-policy/${Id}", "streaming-distribution": "arn:${Partition}:cloudfront::${Account}:streaming-distribution/${DistributionId}", "trust-store": "arn:${Partition}:cloudfront::${Account}:trust-store/${Id}", "vpcorigin": "arn:${Partition}:cloudfront::${Account}:vpcorigin/${Id}"}, "cloudfront-keyvaluestore": {"key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${ResourceId}"}, "cloudtrail": {"channel": "arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId}", "dashboard": "arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName}", "eventdatastore": "arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId}", "trail": "arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName}"}, "codebuild": {"build": "arn:${Partition}:codebuild:${Region}:${Account}:build/${BuildId}", "build-batch": "arn:${Partition}:codebuild:${Region}:${Account}:build-batch/${BuildBatchId}", "fleet": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}", "project": "arn:${Partition}:codebuild:${Region}:${Account}:project/${ProjectName}", "report": "arn:${Partition}:codebuild:${Region}:${Account}:report/${ReportGroupName}:${ReportId}", "report-group": "arn:${Partition}:codebuild:${Region}:${Account}:report-group/${ReportGroupName}", "sandbox": "arn:${Partition}:codebuild:${Region}:${Account}:sandbox/${SandboxId}"}, "codepipeline": {"action": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}/${ActionName}", "actiontype": "arn:${Partition}:codepipeline:${Region}:${Account}:actiontype:${Owner}/${Category}/${Provider}/${Version}", "pipeline": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}", "stage": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}", "webhook": "arn:${Partition}:codepipeline:${Region}:${Account}:webhook:${WebhookName}"}, "cognito-identity": {"identitypool": "arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}"}, "cognito-idp": {"userpool": "arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}", "webacl": "arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id}"}, "controlcatalog": {"common-control": "arn:${Partition}:controlcatalog:::common-control/${CommonControlId}", "control": "arn:${Partition}:controlcatalog:::control/${ControlId}", "domain": "arn:${Partition}:controlcatalog:::domain/${DomainId}", "objective": "arn:${Partition}:controlcatalog:::objective/${ObjectiveId}"}, "controltower": {"Baseline": "arn:${Partition}:controltower:${Region}::baseline/${BaselineId}", "EnabledBaseline": "arn:${Partition}:controltower:${Region}:${Account}:enabledbaseline/${EnabledBaselineId}", "EnabledControl": "arn:${Partition}:controltower:${Region}:${Account}:enabledcontrol/${EnabledControlId}", "LandingZone": "arn:${Partition}:controltower:${Region}:${Account}:landingzone/${LandingZoneId}"}, "cur": {"cur": "arn:${Partition}:cur:${Region}:${Account}:definition/${ReportName}"}, "datasync": {"agent": "arn:${Partition}:datasync:${Region}:${Account}:agent/${AgentId}", "discoveryjob": "arn:${Partition}:datasync:${Region}:${Account}:system/${StorageSystemId}/job/${DiscoveryJobId}", "location": "arn:${Partition}:datasync:${Region}:${Account}:location/${LocationId}", "storagesystem": "arn:${Partition}:datasync:${Region}:${Account}:system/${StorageSystemId}", "task": "arn:${Partition}:datasync:${Region}:${Account}:task/${TaskId}", "taskexecution": "arn:${Partition}:datasync:${Region}:${Account}:task/${TaskId}/execution/${ExecutionId}"}, "dynamodb": {"backup": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/backup/${BackupName}", "bulk-operation": "arn:${Partition}:dynamodb:${Region}:${Account}:bulk-operation/${BulkOperationId}", "export": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/export/${ExportName}", "global-table": "arn:${Partition}:dynamodb::${Account}:global-table/${GlobalTableName}", "import": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/import/${ImportName}", "index": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/index/${IndexName}", "stream": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/stream/${StreamLabel}", "table": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}"}, "ec2": {"application-status-check": "arn:${Partition}:ec2:${Region}:${Account}:application-status-check/${ApplicationStatusCheckId}", "capacity-block": "arn:${Partition}:ec2:${Region}:${Account}:capacity-block/${CapacityBlockId}", "capacity-manager-data-export": "arn:${Partition}:ec2:${Region}:${Account}:capacity-manager-data-export/${CapacityManagerDataExportId}", "capacity-reservation": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/${CapacityReservationId}", "capacity-reservation-cancellation-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-cancellation-quote/${CapacityReservationCancellationQuoteId}", "capacity-reservation-fleet": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-fleet/${CapacityReservationFleetId}", "capacity-reservation-modification-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-modification-quote/${CapacityReservationModificationQuoteId}", "carrier-gateway": "arn:${Partition}:ec2:${Region}:${Account}:carrier-gateway/${CarrierGatewayId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}", "client-vpn-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:client-vpn-endpoint/${ClientVpnEndpointId}", "coip-pool": "arn:${Partition}:ec2:${Region}:${Account}:coip-pool/${Ipv4PoolCoipId}", "customer-gateway": "arn:${Partition}:ec2:${Region}:${Account}:customer-gateway/${CustomerGatewayId}", "declarative-policies-report": "arn:${Partition}:ec2:${Region}:${Account}:declarative-policies-report/${DeclarativePoliciesReportId}", "dedicated-host": "arn:${Partition}:ec2:${Region}:${Account}:dedicated-host/${DedicatedHostId}", "dhcp-options": "arn:${Partition}:ec2:${Region}:${Account}:dhcp-options/${DhcpOptionsId}", "egress-only-internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:egress-only-internet-gateway/${EgressOnlyInternetGatewayId}", "elastic-gpu": "arn:${Partition}:ec2:${Region}:${Account}:elastic-gpu/${ElasticGpuId}", "elastic-inference": "arn:${Partition}:elastic-inference:${Region}:${Account}:elastic-inference-accelerator/${AcceleratorId}", "elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/${AllocationId}", "export-image-task": "arn:${Partition}:ec2:${Region}:${Account}:export-image-task/${ExportImageTaskId}", "export-instance-task": "arn:${Partition}:ec2:${Region}:${Account}:export-instance-task/${ExportTaskId}", "fleet": "arn:${Partition}:ec2:${Region}:${Account}:fleet/${FleetId}", "fpga-image": "arn:${Partition}:ec2:${Region}:${Account}:fpga-image/${FpgaImageId}", "group": "arn:${Partition}:resource-groups:${Region}:${Account}:group/${GroupName}", "host-reservation": "arn:${Partition}:ec2:${Region}:${Account}:host-reservation/${HostReservationId}", "image": "arn:${Partition}:ec2:${Region}::image/${ImageId}", "image-usage-report": "arn:${Partition}:ec2:${Region}:${Account}:image-usage-report/${ImageUsageReportId}", "import-image-task": "arn:${Partition}:ec2:${Region}:${Account}:import-image-task/${ImportImageTaskId}", "import-snapshot-task": "arn:${Partition}:ec2:${Region}:${Account}:import-snapshot-task/${ImportSnapshotTaskId}", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/${InstanceId}", "instance-connect-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:instance-connect-endpoint/${InstanceConnectEndpointId}", "instance-event-window": "arn:${Partition}:ec2:${Region}:${Account}:instance-event-window/${InstanceEventWindowId}", "internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:internet-gateway/${InternetGatewayId}", "ipam": "arn:${Partition}:ec2::${Account}:ipam/${IpamId}", "ipam-external-resource-verification-token": "arn:${Partition}:ec2::${Account}:ipam-external-resource-verification-token/${IpamExternalResourceVerificationTokenId}", "ipam-internet-registry-association": "arn:${Partition}:ec2::${Account}:ipam-internet-registry-association/${IpamInternetRegistryAssociationId}", "ipam-policy": "arn:${Partition}:ec2::${Account}:ipam-policy/${IpamPolicyId}", "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/${IpamPoolId}", "ipam-pool-allocation": "arn:${Partition}:ec2:${Region}:${Account}:ipam-pool-allocation/${IpamPoolAllocationId}", "ipam-prefix-list-resolver": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver/${IpamPrefixListResolverId}", "ipam-prefix-list-resolver-target": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver-target/${IpamPrefixListResolverTargetId}", "ipam-resource-discovery": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery/${IpamResourceDiscoveryId}", "ipam-resource-discovery-association": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery-association/${IpamResourceDiscoveryAssociationId}", "ipam-scope": "arn:${Partition}:ec2::${Account}:ipam-scope/${IpamScopeId}", "ipv4pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv4pool-ec2/${Ipv4PoolEc2Id}", "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/${Ipv6PoolEc2Id}", "key-pair": "arn:${Partition}:ec2:${Region}:${Account}:key-pair/${KeyPairName}", "launch-template": "arn:${Partition}:ec2:${Region}:${Account}:launch-template/${LaunchTemplateId}", "license-configuration": "arn:${Partition}:license-manager:${Region}:${Account}:license-configuration:${LicenseConfigurationId}", "local-gateway": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway/${LocalGatewayId}", "local-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table/${LocalGatewayRoutetableId}", "local-gateway-route-table-virtual-interface-group-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-virtual-interface-group-association/${LocalGatewayRouteTableVirtualInterfaceGroupAssociationId}", "local-gateway-route-table-vpc-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-vpc-association/${LocalGatewayRouteTableVpcAssociationId}", "local-gateway-virtual-interface": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface/${LocalGatewayVirtualInterfaceId}", "local-gateway-virtual-interface-group": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface-group/${LocalGatewayVirtualInterfaceGroupId}", "mac-modification-task": "arn:${Partition}:ec2:${Region}:${Account}:mac-modification-task/${MacModificationTaskId}", "natgateway": "arn:${Partition}:ec2:${Region}:${Account}:natgateway/${NatGatewayId}", "network-acl": "arn:${Partition}:ec2:${Region}:${Account}:network-acl/${NaclId}", "network-insights-access-scope": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-access-scope/${NetworkInsightsAccessScopeId}", "network-insights-access-scope-analysis": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-access-scope-analysis/${NetworkInsightsAccessScopeAnalysisId}", "network-insights-analysis": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-analysis/${NetworkInsightsAnalysisId}", "network-insights-path": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-path/${NetworkInsightsPathId}", "network-interface": "arn:${Partition}:ec2:${Region}:${Account}:network-interface/${NetworkInterfaceId}", "outpost-lag": "arn:${Partition}:ec2:${Region}:${Account}:outpost-lag/${OutpostLagId}", "placement-group": "arn:${Partition}:ec2:${Region}:${Account}:placement-group/${PlacementGroupName}", "prefix-list": "arn:${Partition}:ec2:${Region}:${Account}:prefix-list/${PrefixListId}", "replace-root-volume-task": "arn:${Partition}:ec2:${Region}:${Account}:replace-root-volume-task/${ReplaceRootVolumeTaskId}", "reserved-instances": "arn:${Partition}:ec2:${Region}:${Account}:reserved-instances/${ReservationId}", "role": "arn:${Partition}:iam::${Account}:role/${RoleNameWithPath}", "route-server": "arn:${Partition}:ec2:${Region}:${Account}:route-server/${RouteServerId}", "route-server-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:route-server-endpoint/${RouteServerEndpointId}", "route-server-peer": "arn:${Partition}:ec2:${Region}:${Account}:route-server-peer/${RouteServerPeerId}", "route-table": "arn:${Partition}:ec2:${Region}:${Account}:route-table/${RouteTableId}", "secondary-interface": "arn:${Partition}:ec2:${Region}:${Account}:secondary-interface/${SecondaryInterfaceId}", "secondary-network": "arn:${Partition}:ec2:${Region}:${Account}:secondary-network/${SecondaryNetworkId}", "secondary-subnet": "arn:${Partition}:ec2:${Region}:${Account}:secondary-subnet/${SecondarySubnetId}", "security-group": "arn:${Partition}:ec2:${Region}:${Account}:security-group/${SecurityGroupId}", "security-group-rule": "arn:${Partition}:ec2:${Region}:${Account}:security-group-rule/${SecurityGroupRuleId}", "snapshot": "arn:${Partition}:ec2:${Region}::snapshot/${SnapshotId}", "spot-fleet-request": "arn:${Partition}:ec2:${Region}:${Account}:spot-fleet-request/${SpotFleetRequestId}", "spot-instances-request": "arn:${Partition}:ec2:${Region}:${Account}:spot-instances-request/${SpotInstanceRequestId}", "subnet": "arn:${Partition}:ec2:${Region}:${Account}:subnet/${SubnetId}", "subnet-cidr-reservation": "arn:${Partition}:ec2:${Region}:${Account}:subnet-cidr-reservation/${SubnetCidrReservationId}", "traffic-mirror-filter": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-filter/${TrafficMirrorFilterId}", "traffic-mirror-filter-rule": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-filter-rule/${TrafficMirrorFilterRuleId}", "traffic-mirror-session": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-session/${TrafficMirrorSessionId}", "traffic-mirror-target": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-target/${TrafficMirrorTargetId}", "transit-gateway": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway/${TransitGatewayId}", "transit-gateway-attachment": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-attachment/${TransitGatewayAttachmentId}", "transit-gateway-connect-peer": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-connect-peer/${TransitGatewayConnectPeerId}", "transit-gateway-metering-policy": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-metering-policy/${TransitGatewayMeteringPolicyId}", "transit-gateway-multicast-domain": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-multicast-domain/${TransitGatewayMulticastDomainId}", "transit-gateway-policy-table": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-policy-table/${TransitGatewayPolicyTableId}", "transit-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-route-table/${TransitGatewayRouteTableId}", "transit-gateway-route-table-announcement": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-route-table-announcement/${TransitGatewayRouteTableAnnouncementId}", "verified-access-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-endpoint/${VerifiedAccessEndpointId}", "verified-access-endpoint-target": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-endpoint-target/${VerifiedAccessEndpointTargetId}", "verified-access-group": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-group/${VerifiedAccessGroupId}", "verified-access-instance": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-instance/${VerifiedAccessInstanceId}", "verified-access-policy": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-policy/${VerifiedAccessPolicyId}", "verified-access-trust-provider": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-trust-provider/${VerifiedAccessTrustProviderId}", "volume": "arn:${Partition}:ec2:${Region}:${Account}:volume/${VolumeId}", "vpc": "arn:${Partition}:ec2:${Region}:${Account}:vpc/${VpcId}", "vpc-block-public-access-exclusion": "arn:${Partition}:ec2:${Region}:${Account}:vpc-block-public-access-exclusion/${VpcBlockPublicAccessExclusionId}", "vpc-encryption-control": "arn:${Partition}:ec2:${Region}:${Account}:vpc-encryption-control/${VpcEncryptionControlId}", "vpc-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint/${VpcEndpointId}", "vpc-endpoint-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-connection/${VpcEndpointConnectionId}", "vpc-endpoint-service": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-service/${VpcEndpointServiceId}", "vpc-endpoint-service-permission": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-service-permission/${VpcEndpointServicePermissionId}", "vpc-flow-log": "arn:${Partition}:ec2:${Region}:${Account}:vpc-flow-log/${VpcFlowLogId}", "vpc-peering-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpc-peering-connection/${VpcPeeringConnectionId}", "vpn-concentrator": "arn:${Partition}:ec2:${Region}:${Account}:vpn-concentrator/${VpnConcentratorId}", "vpn-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpn-connection/${VpnConnectionId}", "vpn-connection-device-type": "arn:${Partition}:ec2:${Region}:${Account}:vpn-connection-device-type/${VpnConnectionDeviceTypeId}", "vpn-gateway": "arn:${Partition}:ec2:${Region}:${Account}:vpn-gateway/${VpnGatewayId}"}, "ecr": {"repository": "arn:${Partition}:ecr:${Region}:${Account}:repository/${RepositoryName}"}, "elasticloadbalancing": {"listener-rule/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener-rule/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/gwy": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/gwy/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "loadbalancer": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/${LoadBalancerName}", "loadbalancer/app/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/app/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/gwy/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/gwy/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/net/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/net/${LoadBalancerName}/${LoadBalancerId}", "targetgroup": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:targetgroup/${TargetGroupName}/${TargetGroupId}", "truststore": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:truststore/${TrustStoreName}/${TrustStoreId}"}, "elasticmapreduce": {"cluster": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId}", "editor": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:editor/${EditorId}", "notebook-execution": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:notebook-execution/${NotebookExecutionId}", "session": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId}/session/${SessionId}", "studio": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:studio/${StudioId}"}, "emr-serverless": {"application": "arn:${Partition}:emr-serverless:${Region}:${Account}:/applications/${ApplicationId}", "jobRun": "arn:${Partition}:emr-serverless:${Region}:${Account}:/applications/${ApplicationId}/jobruns/${JobRunId}", "session": "arn:${Partition}:emr-serverless:${Region}:${Account}:/applications/${ApplicationId}/sessions/${SessionId}"}, "es": {"application": "arn:${Partition}:opensearch:${Region}:${Account}:application/${AppId}", "datasource": "arn:${Partition}:opensearch:${Region}:${Account}:datasource/${DataSourceName}", "domain": "arn:${Partition}:es:${Region}:${Account}:domain/${DomainName}", "es_role": "arn:${Partition}:iam::${Account}:role/aws-service-role/es.amazonaws.com/AWSServiceRoleForAmazonOpenSearchService", "opensearchservice_role": "arn:${Partition}:iam::${Account}:role/aws-service-role/opensearchservice.amazonaws.com/AWSServiceRoleForAmazonOpenSearchService"}, "events": {"alias": "arn:${Partition}:kms:${Region}:${Account}:alias/${Alias}", "api-destination": "arn:${Partition}:events:${Region}:${Account}:api-destination/${ApiDestinationName}", "archive": "arn:${Partition}:events:${Region}:${Account}:archive/${ArchiveName}", "connection": "arn:${Partition}:events:${Region}:${Account}:connection/${ConnectionName}", "create-snapshot": "arn:${Partition}:events:${Region}:${Account}:target/create-snapshot", "endpoint": "arn:${Partition}:events:${Region}:${Account}:endpoint/${EndpointName}", "event-bus": "arn:${Partition}:events:${Region}:${Account}:event-bus/${EventBusName}", "event-busv2": "arn:${Partition}:events:${Region}:${Account}:event-busv2/${EventBusName}/${OpaqueId}", "event-source": "arn:${Partition}:events:${Region}::event-source/${EventSourceName}", "event-sourcev2": "arn:${Partition}:events:${Region}:${Account}:event-sourcev2/${SourceType}/${EventSourceName}/${OpaqueId}", "key": "arn:${Partition}:kms:${Region}:${Account}:key/${KeyId}", "reboot-instance": "arn:${Partition}:events:${Region}:${Account}:target/reboot-instance", "replay": "arn:${Partition}:events:${Region}:${Account}:replay/${ReplayName}", "rule-on-custom-event-bus": "arn:${Partition}:events:${Region}:${Account}:rule/${EventBusName}/${RuleName}", "rule-on-default-event-bus": "arn:${Partition}:events:${Region}:${Account}:rule/${RuleName}", "stop-instance": "arn:${Partition}:events:${Region}:${Account}:target/stop-instance", "subscriber": "arn:${Partition}:events:${Region}:${Account}:subscriber/${SubscriberName}/${OpaqueId}", "terminate-instance": "arn:${Partition}:events:${Region}:${Account}:target/terminate-instance"}, "firehose": {"deliverystream": "arn:${Partition}:firehose:${Region}:${Account}:deliverystream/${DeliveryStreamName}"}, "fis": {"action": "arn:${Partition}:fis:${Region}:${Account}:action/${Id}", "experiment": "arn:${Partition}:fis:${Region}:${Account}:experiment/${Id}", "experiment-template": "arn:${Partition}:fis:${Region}:${Account}:experiment-template/${Id}", "safety-lever": "arn:${Partition}:fis:${Region}:${Account}:safety-lever/${Id}"}, "globalaccelerator": {"accelerator": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}", "attachment": "arn:${Partition}:globalaccelerator::${Account}:attachment/${ResourceId}", "endpointgroup": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}/listener/${ListenerId}/endpoint-group/${EndpointGroupId}", "listener": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}/listener/${ListenerId}"}, "guardduty": {"customdetectionrule": "arn:${Partition}:guardduty::aws:detection-rule/custom/${RuleId}", "customdetectionruleassociation": "arn:${Partition}:guardduty:${Region}:${Account}:detection-rule/custom/${RuleId}/association/${AssociationId}", "detector": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}", "filter": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/filter/${FilterName}", "ipset": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/ipset/${IPSetId}", "malwareprotectionplan": "arn:${Partition}:guardduty:${Region}:${Account}:malware-protection-plan/${MalwareProtectionPlanId}", "publishingDestination": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/publishingdestination/${PublishingDestinationId}", "threatentityset": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/threatentityset/${ThreatEntitySetId}", "threatintelset": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/threatintelset/${ThreatIntelSetId}", "trustedentityset": "arn:${Partition}:guardduty:${Region}:${Account}:detector/${DetectorId}/trustedentityset/${TrustedEntitySetId}"}, "inspector2": {"CIS Scan Configuration": "arn:${Partition}:inspector2:${Region}:${Account}:owner/${OwnerId}/cis-configuration/${CISScanConfigurationId}", "Code Security Integration": "arn:${Partition}:inspector2:${Region}:${Account}:codesecurity-integration/${CodeSecurityIntegrationId}", "Code Security Scan Configuration": "arn:${Partition}:inspector2:${Region}:${Account}:owner/${OwnerId}/codesecurity-configuration/${CodeSecurityScanConfigurationId}", "Connector": "arn:${Partition}:inspector2:${Region}:${Account}:connector/${ConnectorId}", "Filter": "arn:${Partition}:inspector2:${Region}:${Account}:owner/${OwnerId}/filter/${FilterId}", "Finding": "arn:${Partition}:inspector2:${Region}:${Account}:finding/${FindingId}"}, "kinesisanalytics": {"application": "arn:${Partition}:kinesisanalytics:${Region}:${Account}:application/${ApplicationName}"}, "logs": {"anomaly-detector": "arn:${Partition}:logs:${Region}:${Account}:anomaly-detector:${DetectorId}", "delivery": "arn:${Partition}:logs:${Region}:${Account}:delivery:${DeliveryName}", "delivery-destination": "arn:${Partition}:logs:${Region}:${Account}:delivery-destination:${DeliveryDestinationName}", "delivery-source": "arn:${Partition}:logs:${Region}:${Account}:delivery-source:${DeliverySourceName}", "destination": "arn:${Partition}:logs:${Region}:${Account}:destination:${DestinationName}", "log-group": "arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}", "log-stream": "arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}", "lookup-table": "arn:${Partition}:logs:${Region}:${Account}:lookup-table:${LookupTableName}", "scheduled-query": "arn:${Partition}:logs:${Region}:${Account}:scheduled-query:${ScheduledQueryId}"}, "macie2": {"AllowList": "arn:${Partition}:macie2:${Region}:${Account}:allow-list/${ResourceId}", "ClassificationJob": "arn:${Partition}:macie2:${Region}:${Account}:classification-job/${ResourceId}", "CustomDataIdentifier": "arn:${Partition}:macie2:${Region}:${Account}:custom-data-identifier/${ResourceId}", "FindingsFilter": "arn:${Partition}:macie2:${Region}:${Account}:findings-filter/${ResourceId}", "Member": "arn:${Partition}:macie2:${Region}:${Account}:member/${ResourceId}"}, "oam": {"Link": "arn:${Partition}:oam:${Region}:${Account}:link/${ResourceId}", "Sink": "arn:${Partition}:oam:${Region}:${Account}:sink/${ResourceId}"}, "payment-cryptography": {"alias": "arn:${Partition}:payment-cryptography:${Region}:${Account}:alias/${Alias}", "approval-team": "arn:${Partition}:mpa:${Region}:${Account}:approval-team/${ApprovalTeamId}", "key": "arn:${Partition}:payment-cryptography:${Region}:${Account}:key/${KeyId}"}, "quicksight": {"accessControlApplication": "arn:${Partition}:quicksight:${Region}:${Account}:access-control-application/${ResourceId}", "account": "arn:${Partition}:quicksight:${Region}:${Account}:account/${ResourceId}", "actionconnector": "arn:${Partition}:quicksight:${Region}:${Account}:action-connector/${ResourceId}", "agent": "arn:${Partition}:quicksight:${Region}:${Account}:agent/${ResourceId}", "analysis": "arn:${Partition}:quicksight:${Region}:${Account}:analysis/${ResourceId}", "app": "arn:${Partition}:quicksight:${Region}:${Account}:app/${ResourceId}", "approvalPolicy": "arn:${Partition}:quicksight:${Region}:${Account}:approval-policy/${ResourceId}", "assetBundleExportJob": "arn:${Partition}:quicksight:${Region}:${Account}:asset-bundle-export-job/${ResourceId}", "assetBundleImportJob": "arn:${Partition}:quicksight:${Region}:${Account}:asset-bundle-import-job/${ResourceId}", "assignment": "arn:${Partition}:quicksight::${Account}:assignment/${ResourceId}", "automation": "arn:${Partition}:quicksight:${Region}:${Account}:automation-group/${AutomationGroupId}/automation/${ResourceId}", "automationGroup": "arn:${Partition}:quicksight:${Region}:${Account}:automation-group/${ResourceId}", "automationJob": "arn:${Partition}:quicksight:${Region}:${Account}:automation-group/${AutomationGroupId}/automation/${AutomationId}/job/${ResourceId}", "brand": "arn:${Partition}:quicksight:${Region}:${Account}:brand/${ResourceId}", "customization": "arn:${Partition}:quicksight:${Region}:${Account}:customization/${ResourceId}", "custompermissions": "arn:${Partition}:quicksight:${Region}:${Account}:custompermissions/${ResourceId}", "dashboard": "arn:${Partition}:quicksight:${Region}:${Account}:dashboard/${ResourceId}", "dashboardSnapshotJob": "arn:${Partition}:quicksight:${Region}:${Account}:dashboard/${DashboardId}/snapshot-job/${ResourceId}", "dataset": "arn:${Partition}:quicksight:${Region}:${Account}:dataset/${ResourceId}", "datasource": "arn:${Partition}:quicksight:${Region}:${Account}:datasource/${ResourceId}", "dlpSetting": "arn:${Partition}:quicksight:${Region}:${Account}:dlpsetting/${ResourceId}", "emailCustomizationTemplate": "arn:${Partition}:quicksight:${Region}:${Account}:email-customization-template/${ResourceId}", "extension": "arn:${Partition}:quicksight:${Region}:${Account}:extension/${ResourceId}", "extensionaccess": "arn:${Partition}:quicksight:${Region}:${Account}:extension-access/${ResourceId}", "flow": "arn:${Partition}:quicksight:${Region}:${Account}:flow/${ResourceId}", "folder": "arn:${Partition}:quicksight:${Region}:${Account}:folder/${ResourceId}", "group": "arn:${Partition}:quicksight:${Region}:${Account}:group/${ResourceId}", "inboundConnector": "arn:${Partition}:quicksight:${Region}:${Account}:inbound-connector/${ResourceId}", "ingestion": "arn:${Partition}:quicksight:${Region}:${Account}:dataset/${DatasetId}/ingestion/${ResourceId}", "knowledgeBase": "arn:${Partition}:quicksight:${Region}:${Account}:knowledge-base/${ResourceId}", "limitsProfile": "arn:${Partition}:quicksight:${Region}:${Account}:limits-profile/${ResourceId}", "namespace": "arn:${Partition}:quicksight:${Region}:${Account}:namespace/${ResourceId}", "oauthClientApplication": "arn:${Partition}:quicksight:${Region}:${Account}:oauthClientApplication/${ResourceId}", "refreshschedule": "arn:${Partition}:quicksight:${Region}:${Account}:dataset/${DatasetId}/refresh-schedule/${ResourceId}", "space": "arn:${Partition}:quicksight:${Region}:${Account}:space/${ResourceId}", "template": "arn:${Partition}:quicksight:${Region}:${Account}:template/${ResourceId}", "theme": "arn:${Partition}:quicksight:${Region}:${Account}:theme/${ResourceId}", "topic": "arn:${Partition}:quicksight:${Region}:${Account}:topic/${ResourceId}", "user": "arn:${Partition}:quicksight:${Region}:${Account}:user/${ResourceId}", "vpcconnection": "arn:${Partition}:quicksight:${Region}:${Account}:vpcConnection/${ResourceId}"}, "ram": {"customer-managed-permission": "arn:${Partition}:ram:${Region}:${Account}:permission/${ResourcePath}", "permission": "arn:${Partition}:ram::aws:permission/${ResourcePath}", "resource-share": "arn:${Partition}:ram:${Region}:${Account}:resource-share/${ResourcePath}", "resource-share-invitation": "arn:${Partition}:ram:${Region}:${Account}:resource-share-invitation/${ResourcePath}"}, "redshift": {"cluster": "arn:${Partition}:redshift:${Region}:${Account}:cluster:${ClusterName}", "datashare": "arn:${Partition}:redshift:${Region}:${Account}:datashare:${ProducerClusterNamespace}/${DataShareName}", "dbgroup": "arn:${Partition}:redshift:${Region}:${Account}:dbgroup:${ClusterName}/${DbGroup}", "dbname": "arn:${Partition}:redshift:${Region}:${Account}:dbname:${ClusterName}/${DbName}", "dbuser": "arn:${Partition}:redshift:${Region}:${Account}:dbuser:${ClusterName}/${DbUser}", "eventsubscription": "arn:${Partition}:redshift:${Region}:${Account}:eventsubscription:${EventSubscriptionName}", "hsmclientcertificate": "arn:${Partition}:redshift:${Region}:${Account}:hsmclientcertificate:${HSMClientCertificateId}", "hsmconfiguration": "arn:${Partition}:redshift:${Region}:${Account}:hsmconfiguration:${HSMConfigurationId}", "integration": "arn:${Partition}:redshift:${Region}:${Account}:integration:${IntegrationIdentifier}", "namespace": "arn:${Partition}:redshift:${Region}:${Account}:namespace:${ClusterNamespace}", "parametergroup": "arn:${Partition}:redshift:${Region}:${Account}:parametergroup:${ParameterGroupName}", "qev2idcapplication": "arn:${Partition}:redshift:${Region}:${Account}:qev2idcapplication:${Qev2IdcApplicationId}", "redshiftidcapplication": "arn:${Partition}:redshift:${Region}:${Account}:redshiftidcapplication:${RedshiftIdcApplicationId}", "securitygroup": "arn:${Partition}:redshift:${Region}:${Account}:securitygroup:${SecurityGroupName}/ec2securitygroup/${Owner}/${Ec2SecurityGroupId}", "securitygroupingress-cidr": "arn:${Partition}:redshift:${Region}:${Account}:securitygroupingress:${SecurityGroupName}/cidrip/${IpRange}", "securitygroupingress-ec2securitygroup": "arn:${Partition}:redshift:${Region}:${Account}:securitygroupingress:${SecurityGroupName}/ec2securitygroup/${Owner}/${Ece2SecuritygroupId}", "snapshot": "arn:${Partition}:redshift:${Region}:${Account}:snapshot:${ClusterName}/${SnapshotName}", "snapshotcopygrant": "arn:${Partition}:redshift:${Region}:${Account}:snapshotcopygrant:${SnapshotCopyGrantName}", "snapshotschedule": "arn:${Partition}:redshift:${Region}:${Account}:snapshotschedule:${ScheduleIdentifier}", "subnetgroup": "arn:${Partition}:redshift:${Region}:${Account}:subnetgroup:${SubnetGroupName}", "usagelimit": "arn:${Partition}:redshift:${Region}:${Account}:usagelimit:${UsageLimitId}"}, "redshift-data": {"cluster": "arn:${Partition}:redshift:${Region}:${Account}:cluster:${ClusterName}", "managed-workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:managed-workgroup/${ManagedWorkgroupId}", "workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:workgroup/${WorkgroupId}"}, "redshift-serverless": {"endpointAccess": "arn:${Partition}:redshift-serverless:${Region}:${Account}:managedvpcendpoint/${EndpointAccessId}", "managed-workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:managed-workgroup/${ManagedWorkgroupName}", "namespace": "arn:${Partition}:redshift-serverless:${Region}:${Account}:namespace/${NamespaceId}", "recoveryPoint": "arn:${Partition}:redshift-serverless:${Region}:${Account}:recoverypoint/${RecoveryPointId}", "snapshot": "arn:${Partition}:redshift-serverless:${Region}:${Account}:snapshot/${SnapshotId}", "workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:workgroup/${WorkgroupId}"}, "rekognition": {"collection": "arn:${Partition}:rekognition:${Region}:${Account}:collection/${CollectionId}", "dataset": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/dataset/${DatasetType}/${CreationTimestamp}", "project": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/${CreationTimestamp}", "projectversion": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/version/${VersionName}/${CreationTimestamp}", "streamprocessor": "arn:${Partition}:rekognition:${Region}:${Account}:streamprocessor/${StreamprocessorId}"}, "resource-explorer-2": {"index": "arn:${Partition}:resource-explorer-2:${Region}:${Account}:index/${IndexUuid}", "managed-view": "arn:${Partition}:resource-explorer-2:${Region}:${Account}:managed-view/${ManagedViewName}/${ManagedViewUuid}", "view": "arn:${Partition}:resource-explorer-2:${Region}:${Account}:view/${ViewName}/${ViewUuid}"}, "securityhub": {"aggregatorv2": "arn:${Partition}:securityhub:${Region}:${Account}:aggregatorv2/${AggregatorV2Id}", "automation-rule": "arn:${Partition}:securityhub:${Region}:${Account}:automation-rule/${AutomationRuleId}", "automation-rulev2": "arn:${Partition}:securityhub:${Region}:${Account}:automation-rulev2/${AutomationRuleV2Id}", "configuration-policy": "arn:${Partition}:securityhub:${Region}:${Account}:configuration-policy/${ConfigurationPolicyId}", "connector": "arn:${Partition}:securityhub:${Region}:${Account}:connector/${ConnectorId}", "connectorv2": "arn:${Partition}:securityhub:${Region}:${Account}:connectorv2/${ConnectorV2Id}", "finding-aggregator": "arn:${Partition}:securityhub:${Region}:${Account}:finding-aggregator/${FindingAggregatorId}", "hub": "arn:${Partition}:securityhub:${Region}:${Account}:hub/default", "hubv2": "arn:${Partition}:securityhub:${Region}:${Account}:hubv2/${HubV2Id}", "product": "arn:${Partition}:securityhub:${Region}:${Account}:product/${Company}/${ProductId}"}, "servicediscovery": {"namespace": "arn:${Partition}:servicediscovery:${Region}:${Account}:namespace/${NamespaceId}", "service": "arn:${Partition}:servicediscovery:${Region}:${Account}:service/${ServiceId}"}, "servicequotas": {"quota": "arn:${Partition}:servicequotas:${Region}:${Account}:${ServiceCode}/${QuotaCode}"}, "signer": {"signing-job": "arn:${Partition}:signer:${Region}:${Account}:/signing-jobs/${JobId}", "signing-profile": "arn:${Partition}:signer:${Region}:${Account}:/signing-profiles/${ProfileName}"}, "sso": {"Account": "arn:${Partition}:sso:::account/${AccountId}", "Application": "arn:${Partition}:sso::${Account}:application/${InstanceId}/${ApplicationId}", "ApplicationProvider": "arn:${Partition}:sso::aws:applicationProvider/${ApplicationProviderId}", "Instance": "arn:${Partition}:sso:::instance/${InstanceId}", "PermissionSet": "arn:${Partition}:sso:::permissionSet/${InstanceId}/${PermissionSetId}", "TrustedTokenIssuer": "arn:${Partition}:sso::${Account}:trustedTokenIssuer/${InstanceId}/${TrustedTokenIssuerId}"}, "states": {"activity": "arn:${Partition}:states:${Region}:${Account}:activity:${ActivityName}", "execution": "arn:${Partition}:states:${Region}:${Account}:execution:${StateMachineName}:${ExecutionId}", "express": "arn:${Partition}:states:${Region}:${Account}:express:${StateMachineName}:${ExecutionId}:${ExpressId}", "labelled execution": "arn:${Partition}:states:${Region}:${Account}:execution:${StateMachineName}/${MapRunLabel}:${ExecutionId}", "labelled express": "arn:${Partition}:states:${Region}:${Account}:express:${StateMachineName}/${MapRunLabel}:${ExecutionId}:${ExpressId}", "maprun": "arn:${Partition}:states:${Region}:${Account}:mapRun:${StateMachineName}/${MapRunLabel}:${MapRunId}", "statemachine": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}", "statemachinealias": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineAliasName}", "statemachineversion": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineVersionId}"}, "textract": {"adapter": "arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId}", "adapterversion": "arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId}/versions/${AdapterVersion}"}, "timestream-influxdb": {"db-backup": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-backup/${DbBackupId}", "db-cluster": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-cluster/${DbClusterId}", "db-instance": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-instance/${DbInstanceIdentifier}", "db-parameter-group": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-parameter-group/${DbParameterGroupIdentifier}"}, "translate": {"parallel-data": "arn:${Partition}:translate:${Region}:${Account}:parallel-data/${ResourceName}", "terminology": "arn:${Partition}:translate:${Region}:${Account}:terminology/${ResourceName}"}, "xray": {"group": "arn:${Partition}:xray:${Region}:${Account}:group/${GroupName}/${Id}", "sampling-rule": "arn:${Partition}:xray:${Region}:${Account}:sampling-rule/${SamplingRuleName}"}}, "unqualified": {"states": ["statemachine"]}, "mintedIds": {"events": ["api-destination", "connection"]}, "operations": { @@ -48,6 +48,24 @@ "access-analyzer:UpdateArchiveRule": {"action": "access-analyzer:UpdateArchiveRule", "types": ["ArchiveRule"], "resources": [{"type": "ArchiveRule", "fill": {"AnalyzerName": "analyzerName", "RuleName": "ruleName"}}], "located": {"analyzerName": "{analyzerName}", "ruleName": "{ruleName}"}}, "access-analyzer:UpdateFindings": {"action": "access-analyzer:UpdateFindings", "types": ["Analyzer"], "resources": [{"types": ["Analyzer"], "arn": "analyzerArn"}, {"types": ["Analyzer"], "arn": "resourceArn"}]}, "access-analyzer:ValidatePolicy": {"action": "access-analyzer:ValidatePolicy", "types": [], "resources": []}, + "account:AcceptPrimaryEmailUpdate": {"action": "account:AcceptPrimaryEmailUpdate", "types": ["accountInOrganization"], "resources": [{"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:DeleteAlternateContact": {"action": "account:DeleteAlternateContact", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:DisableRegion": {"action": "account:DisableRegion", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:EnableRegion": {"action": "account:EnableRegion", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:GetAccountInformation": {"action": "account:GetAccountInformation", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:GetAlternateContact": {"action": "account:GetAlternateContact", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:GetContactInformation": {"action": "account:GetContactInformation", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:GetGovCloudAccountInformation": {"action": "account:GetGovCloudAccountInformation", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "account": "StandardAccountId"}]}, + "account:GetPrimaryEmail": {"action": "account:GetPrimaryEmail", "types": ["accountInOrganization"], "resources": [{"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:GetPrimaryEmailUpdateStatus": {"action": "account:GetPrimaryEmailUpdateStatus", "types": ["accountInOrganization"], "resources": [{"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:GetRegionOptStatus": {"action": "account:GetRegionOptStatus", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:ListRegions": {"action": "account:ListRegions", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:PutAccountName": {"action": "account:PutAccountName", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:PutAlternateContact": {"action": "account:PutAlternateContact", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:PutContactInformation": {"action": "account:PutContactInformation", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:SendPhoneNumberVerification": {"action": "account:SendPhoneNumberVerification", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:StartPrimaryEmailUpdate": {"action": "account:StartPrimaryEmailUpdate", "types": ["accountInOrganization"], "resources": [{"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, + "account:VerifyPhoneNumber": {"action": "account:VerifyPhoneNumber", "types": ["account", "accountInOrganization"], "resources": [{"type": "account", "fill": {}, "when": {"AccountId": [null]}}, {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}]}, "acm:AddTagsToCertificate": {"action": "acm:AddTagsToCertificate", "types": ["certificate"], "resources": [{"types": ["certificate"], "arn": "CertificateArn"}]}, "acm:CreateAcmeDomainValidation": {"action": "acm:CreateAcmeDomainValidation", "types": ["acme-endpoint"], "resources": [{"types": ["acme-endpoint"], "arn": "AcmeEndpointArn"}]}, "acm:CreateAcmeEndpoint": {"action": "acm:CreateAcmeEndpoint", "types": [], "resources": []}, @@ -305,8 +323,8 @@ "cloudfront-keyvaluestore:PutKey": {"action": "cloudfront-keyvaluestore:PutKey", "types": ["key-value-store"], "resources": [{"types": ["key-value-store"], "arn": "KvsARN"}], "located": {"KvsARN": "{KvsARN}"}}, "cloudfront-keyvaluestore:UpdateKeys": {"action": "cloudfront-keyvaluestore:UpdateKeys", "types": ["key-value-store"], "resources": [{"types": ["key-value-store"], "arn": "KvsARN"}], "located": {"KvsARN": "{KvsARN}"}}, "cloudfront:AssociateAlias": {"action": "cloudfront:AssociateAlias", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "TargetDistributionId"}}], "located": {"TargetDistributionId": "{TargetDistributionId}"}}, - "cloudfront:AssociateDistributionTenantWebACL": {"action": "cloudfront:AssociateDistributionTenantWebACL", "types": ["distribution-tenant"], "resources": []}, - "cloudfront:AssociateDistributionWebACL": {"action": "cloudfront:AssociateDistributionWebACL", "types": ["distribution"], "resources": []}, + "cloudfront:AssociateDistributionTenantWebACL": {"action": "cloudfront:AssociateDistributionTenantWebACL", "types": ["distribution-tenant"], "resources": [{"type": "distribution-tenant", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}}, + "cloudfront:AssociateDistributionWebACL": {"action": "cloudfront:AssociateDistributionWebACL", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}}, "cloudfront:CopyDistribution": {"action": "cloudfront:CopyDistribution", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "PrimaryDistributionId"}}], "located": {"PrimaryDistributionId": "{PrimaryDistributionId}"}}, "cloudfront:CreateAnycastIpList": {"action": "cloudfront:CreateAnycastIpList", "types": [], "resources": []}, "cloudfront:CreateCachePolicy": {"action": "cloudfront:CreateCachePolicy", "types": [], "resources": []}, @@ -361,8 +379,8 @@ "cloudfront:DescribeConnectionFunction": {"action": "cloudfront:DescribeConnectionFunction", "types": ["connection-function"], "resources": [{"type": "connection-function", "fill": {"Id": "Identifier"}}], "located": {"Identifier": "{Identifier}"}}, "cloudfront:DescribeFunction": {"action": "cloudfront:DescribeFunction", "types": ["function"], "resources": [{"type": "function", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}}, "cloudfront:DescribeKeyValueStore": {"action": "cloudfront:DescribeKeyValueStore", "types": ["key-value-store"], "resources": [{"type": "key-value-store", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}}, - "cloudfront:DisassociateDistributionTenantWebACL": {"action": "cloudfront:DisassociateDistributionTenantWebACL", "types": ["distribution-tenant"], "resources": []}, - "cloudfront:DisassociateDistributionWebACL": {"action": "cloudfront:DisassociateDistributionWebACL", "types": ["distribution"], "resources": []}, + "cloudfront:DisassociateDistributionTenantWebACL": {"action": "cloudfront:DisassociateDistributionTenantWebACL", "types": ["distribution-tenant"], "resources": [{"type": "distribution-tenant", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}}, + "cloudfront:DisassociateDistributionWebACL": {"action": "cloudfront:DisassociateDistributionWebACL", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}}, "cloudfront:GetAnycastIpList": {"action": "cloudfront:GetAnycastIpList", "types": ["anycast-ip-list"], "resources": [{"type": "anycast-ip-list", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}}, "cloudfront:GetCachePolicy": {"action": "cloudfront:GetCachePolicy", "types": ["cache-policy"], "resources": [{"type": "cache-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}}, "cloudfront:GetCachePolicyConfig": {"action": "cloudfront:GetCachePolicyConfig", "types": ["cache-policy"], "resources": [{"type": "cache-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}}, @@ -678,9 +696,11 @@ "cognito-idp:AdminListDevices": {"action": "cognito-idp:AdminListDevices", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:AdminListGroupsForUser": {"action": "cognito-idp:AdminListGroupsForUser", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:AdminListUserAuthEvents": {"action": "cognito-idp:AdminListUserAuthEvents", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, + "cognito-idp:AdminListUserSessions": {"action": "cognito-idp:AdminListUserSessions", "types": ["userpool"], "resources": []}, "cognito-idp:AdminRemoveUserFromGroup": {"action": "cognito-idp:AdminRemoveUserFromGroup", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:AdminResetUserPassword": {"action": "cognito-idp:AdminResetUserPassword", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:AdminRespondToAuthChallenge": {"action": "cognito-idp:AdminRespondToAuthChallenge", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, + "cognito-idp:AdminRevokeUserSession": {"action": "cognito-idp:AdminRevokeUserSession", "types": ["userpool"], "resources": []}, "cognito-idp:AdminSetUserMFAPreference": {"action": "cognito-idp:AdminSetUserMFAPreference", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:AdminSetUserPassword": {"action": "cognito-idp:AdminSetUserPassword", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:AdminSetUserSettings": {"action": "cognito-idp:AdminSetUserSettings", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, @@ -743,7 +763,9 @@ "cognito-idp:GetUser": {"action": "cognito-idp:GetUser", "types": [], "resources": []}, "cognito-idp:GetUserAttributeVerificationCode": {"action": "cognito-idp:GetUserAttributeVerificationCode", "types": [], "resources": []}, "cognito-idp:GetUserAuthFactors": {"action": "cognito-idp:GetUserAuthFactors", "types": [], "resources": []}, + "cognito-idp:GetUserPoolClientSessionConfiguration": {"action": "cognito-idp:GetUserPoolClientSessionConfiguration", "types": ["userpool"], "resources": []}, "cognito-idp:GetUserPoolMfaConfig": {"action": "cognito-idp:GetUserPoolMfaConfig", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, + "cognito-idp:GetUserPoolSessionConfiguration": {"action": "cognito-idp:GetUserPoolSessionConfiguration", "types": ["userpool"], "resources": []}, "cognito-idp:GlobalSignOut": {"action": "cognito-idp:GlobalSignOut", "types": [], "resources": []}, "cognito-idp:InitiateAuth": {"action": "cognito-idp:InitiateAuth", "types": [], "resources": []}, "cognito-idp:ListDevices": {"action": "cognito-idp:ListDevices", "types": [], "resources": []}, @@ -757,17 +779,21 @@ "cognito-idp:ListUserPoolClients": {"action": "cognito-idp:ListUserPoolClients", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:ListUserPoolReplicas": {"action": "cognito-idp:ListUserPoolReplicas", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:ListUserPools": {"action": "cognito-idp:ListUserPools", "types": [], "resources": []}, + "cognito-idp:ListUserSessions": {"action": "cognito-idp:ListUserSessions", "types": [], "resources": []}, "cognito-idp:ListUsers": {"action": "cognito-idp:ListUsers", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:ListUsersInGroup": {"action": "cognito-idp:ListUsersInGroup", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:ListWebAuthnCredentials": {"action": "cognito-idp:ListWebAuthnCredentials", "types": [], "resources": []}, "cognito-idp:ResendConfirmationCode": {"action": "cognito-idp:ResendConfirmationCode", "types": [], "resources": []}, "cognito-idp:RespondToAuthChallenge": {"action": "cognito-idp:RespondToAuthChallenge", "types": [], "resources": []}, "cognito-idp:RevokeToken": {"action": "cognito-idp:RevokeToken", "types": [], "resources": []}, + "cognito-idp:RevokeUserSession": {"action": "cognito-idp:RevokeUserSession", "types": [], "resources": []}, "cognito-idp:SetLogDeliveryConfiguration": {"action": "cognito-idp:SetLogDeliveryConfiguration", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:SetRiskConfiguration": {"action": "cognito-idp:SetRiskConfiguration", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:SetUICustomization": {"action": "cognito-idp:SetUICustomization", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:SetUserMFAPreference": {"action": "cognito-idp:SetUserMFAPreference", "types": [], "resources": []}, + "cognito-idp:SetUserPoolClientSessionConfiguration": {"action": "cognito-idp:SetUserPoolClientSessionConfiguration", "types": ["userpool"], "resources": []}, "cognito-idp:SetUserPoolMfaConfig": {"action": "cognito-idp:SetUserPoolMfaConfig", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, + "cognito-idp:SetUserPoolSessionConfiguration": {"action": "cognito-idp:SetUserPoolSessionConfiguration", "types": ["userpool"], "resources": []}, "cognito-idp:SetUserSettings": {"action": "cognito-idp:SetUserSettings", "types": [], "resources": []}, "cognito-idp:SignUp": {"action": "cognito-idp:SignUp", "types": [], "resources": []}, "cognito-idp:StartUserImportJob": {"action": "cognito-idp:StartUserImportJob", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, @@ -790,6 +816,12 @@ "cognito-idp:UpdateUserPoolReplica": {"action": "cognito-idp:UpdateUserPoolReplica", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]}, "cognito-idp:VerifySoftwareToken": {"action": "cognito-idp:VerifySoftwareToken", "types": [], "resources": []}, "cognito-idp:VerifyUserAttribute": {"action": "cognito-idp:VerifyUserAttribute", "types": [], "resources": []}, + "controlcatalog:GetControl": {"action": "controlcatalog:GetControl", "types": ["control"], "resources": [{"types": ["control"], "arn": "ControlArn"}]}, + "controlcatalog:ListCommonControls": {"action": "controlcatalog:ListCommonControls", "types": [], "resources": []}, + "controlcatalog:ListControlMappings": {"action": "controlcatalog:ListControlMappings", "types": [], "resources": []}, + "controlcatalog:ListControls": {"action": "controlcatalog:ListControls", "types": ["control"], "resources": []}, + "controlcatalog:ListDomains": {"action": "controlcatalog:ListDomains", "types": [], "resources": []}, + "controlcatalog:ListObjectives": {"action": "controlcatalog:ListObjectives", "types": [], "resources": []}, "controltower:CreateLandingZone": {"action": "controltower:CreateLandingZone", "types": [], "resources": []}, "controltower:DeleteLandingZone": {"action": "controltower:DeleteLandingZone", "types": ["LandingZone"], "resources": [{"type": "LandingZone", "fill": {"LandingZoneId": "landingZoneIdentifier"}}]}, "controltower:DisableBaseline": {"action": "controltower:DisableBaseline", "types": ["EnabledBaseline"], "resources": [{"types": ["EnabledBaseline"], "arn": "enabledBaselineIdentifier"}]}, @@ -1917,7 +1949,7 @@ "es:AddTags": {"action": "es:AddTags", "types": ["application", "datasource", "domain"], "resources": [{"types": ["application", "datasource", "domain"], "arn": "ARN"}]}, "es:AssociatePackage": {"action": "es:AssociatePackage", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{DomainName}"}}, "es:AssociatePackages": {"action": "es:AssociatePackages", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}]}, - "es:AttachDataSource": {"action": "es:AttachDataSource", "types": ["application"], "resources": [{"types": ["application"], "arn": "dataSourceArn"}]}, + "es:AttachDataSource": {"action": "es:AttachDataSource", "types": ["application"], "resources": [{"types": ["application"], "arn": "dataSourceArn"}, {"type": "application", "fill": {"AppId": "id"}}], "located": {"id": "{id}"}}, "es:AuthorizeVpcEndpointAccess": {"action": "es:AuthorizeVpcEndpointAccess", "types": [], "resources": []}, "es:CancelDomainConfigChange": {"action": "es:CancelDomainConfigChange", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{DomainName}"}}, "es:CancelElasticsearchServiceSoftwareUpdate": {"action": "es:CancelElasticsearchServiceSoftwareUpdate", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}]}, @@ -1944,7 +1976,7 @@ "es:DeletePackage": {"action": "es:DeletePackage", "types": [], "resources": []}, "es:DeleteVpcEndpoint": {"action": "es:DeleteVpcEndpoint", "types": [], "resources": []}, "es:DeregisterCapability": {"action": "es:DeregisterCapability", "types": ["application"], "resources": [{"type": "application", "fill": {"AppId": "applicationId"}}], "located": {"applicationId": "{ApplicationId}"}}, - "es:DescribeDataSourceAttachment": {"action": "es:DescribeDataSourceAttachment", "types": ["application"], "resources": [{"types": ["application"], "arn": "dataSourceArn"}]}, + "es:DescribeDataSourceAttachment": {"action": "es:DescribeDataSourceAttachment", "types": ["application"], "resources": [{"types": ["application"], "arn": "dataSourceArn"}, {"type": "application", "fill": {"AppId": "id"}}], "located": {"id": "{id}"}}, "es:DescribeDomain": {"action": "es:DescribeDomain", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{DomainName}"}}, "es:DescribeDomainAutoTunes": {"action": "es:DescribeDomainAutoTunes", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{DomainName}"}}, "es:DescribeDomainChangeProgress": {"action": "es:DescribeDomainChangeProgress", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{DomainName}"}}, @@ -1969,7 +2001,7 @@ "es:DescribeReservedInstanceOfferings": {"action": "es:DescribeReservedInstanceOfferings", "types": [], "resources": []}, "es:DescribeReservedInstances": {"action": "es:DescribeReservedInstances", "types": [], "resources": []}, "es:DescribeVpcEndpoints": {"action": "es:DescribeVpcEndpoints", "types": [], "resources": []}, - "es:DetachDataSource": {"action": "es:DetachDataSource", "types": ["application"], "resources": [{"types": ["application"], "arn": "dataSourceArn"}]}, + "es:DetachDataSource": {"action": "es:DetachDataSource", "types": ["application"], "resources": [{"types": ["application"], "arn": "dataSourceArn"}, {"type": "application", "fill": {"AppId": "id"}}], "located": {"id": "{id}"}}, "es:DissociatePackage": {"action": "es:DissociatePackage", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{DomainName}"}}, "es:DissociatePackages": {"action": "es:DissociatePackages", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}]}, "es:GetApplication": {"action": "es:GetApplication", "types": ["application"], "resources": [{"type": "application", "fill": {"AppId": "id"}}], "located": {"id": "{id}"}}, @@ -1987,7 +2019,7 @@ "es:GetUpgradeStatus": {"action": "es:GetUpgradeStatus", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{DomainName}"}}, "es:InsightFeedback": {"action": "es:InsightFeedback", "types": ["domain"], "resources": []}, "es:ListApplications": {"action": "es:ListApplications", "types": ["application"], "resources": []}, - "es:ListDataSourceAttachments": {"action": "es:ListDataSourceAttachments", "types": ["application"], "resources": []}, + "es:ListDataSourceAttachments": {"action": "es:ListDataSourceAttachments", "types": ["application"], "resources": [{"type": "application", "fill": {"AppId": "id"}}], "located": {"id": "{id}"}}, "es:ListDataSources": {"action": "es:ListDataSources", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{DomainName}"}}, "es:ListDirectQueryDataSources": {"action": "es:ListDirectQueryDataSources", "types": ["datasource"], "resources": []}, "es:ListDomainMaintenances": {"action": "es:ListDomainMaintenances", "types": ["domain"], "resources": [{"type": "domain", "fill": {"DomainName": "DomainName"}}], "located": {"DomainName": "{DomainName}"}}, @@ -2114,6 +2146,32 @@ "firehose:TagDeliveryStream": {"action": "firehose:TagDeliveryStream", "types": ["deliverystream"], "resources": [{"type": "deliverystream", "fill": {"DeliveryStreamName": "DeliveryStreamName"}}]}, "firehose:UntagDeliveryStream": {"action": "firehose:UntagDeliveryStream", "types": ["deliverystream"], "resources": [{"type": "deliverystream", "fill": {"DeliveryStreamName": "DeliveryStreamName"}}]}, "firehose:UpdateDestination": {"action": "firehose:UpdateDestination", "types": ["deliverystream"], "resources": [{"types": ["deliverystream"], "arn": "AmazonOpenSearchServerlessDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "AmazonopensearchserviceDestinationUpdate.DomainARN"}, {"types": ["deliverystream"], "arn": "AmazonopensearchserviceDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "ElasticsearchDestinationUpdate.DomainARN"}, {"types": ["deliverystream"], "arn": "ElasticsearchDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "ExtendedS3DestinationUpdate.BucketARN"}, {"types": ["deliverystream"], "arn": "ExtendedS3DestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "HttpEndpointDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "IcebergDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "RedshiftDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "S3DestinationUpdate.BucketARN"}, {"types": ["deliverystream"], "arn": "S3DestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "SnowflakeDestinationUpdate.RoleARN"}, {"type": "deliverystream", "fill": {"DeliveryStreamName": "DeliveryStreamName"}}]}, + "fis:CreateExperimentTemplate": {"action": "fis:CreateExperimentTemplate", "types": ["action", "experiment-template"], "resources": [{"types": ["action", "experiment-template"], "arn": "roleArn"}, {"type": "experiment-template", "fill": {}, "made": true}]}, + "fis:CreateTargetAccountConfiguration": {"action": "fis:CreateTargetAccountConfiguration", "types": ["experiment-template"], "resources": [{"types": ["experiment-template"], "arn": "roleArn"}, {"type": "experiment-template", "fill": {"Id": "experimentTemplateId"}}], "located": {"experimentTemplateId": "{id}"}}, + "fis:DeleteExperimentTemplate": {"action": "fis:DeleteExperimentTemplate", "types": ["experiment-template"], "resources": [{"type": "experiment-template", "fill": {"Id": "id"}}], "located": {"id": "{id}"}}, + "fis:DeleteTargetAccountConfiguration": {"action": "fis:DeleteTargetAccountConfiguration", "types": ["experiment-template"], "resources": [{"type": "experiment-template", "fill": {"Id": "experimentTemplateId"}}], "located": {"experimentTemplateId": "{id}"}}, + "fis:GetAction": {"action": "fis:GetAction", "types": ["action"], "resources": [{"type": "action", "fill": {"Id": "id"}}], "located": {"id": "{id}"}}, + "fis:GetExperiment": {"action": "fis:GetExperiment", "types": ["experiment"], "resources": [{"type": "experiment", "fill": {"Id": "id"}}], "located": {"id": "{id}"}}, + "fis:GetExperimentTargetAccountConfiguration": {"action": "fis:GetExperimentTargetAccountConfiguration", "types": ["experiment"], "resources": [{"type": "experiment", "fill": {"Id": "experimentId"}}], "located": {"experimentId": "{id}"}}, + "fis:GetExperimentTemplate": {"action": "fis:GetExperimentTemplate", "types": ["experiment-template"], "resources": [{"type": "experiment-template", "fill": {"Id": "id"}}], "located": {"id": "{id}"}}, + "fis:GetSafetyLever": {"action": "fis:GetSafetyLever", "types": ["safety-lever"], "resources": [{"type": "safety-lever", "fill": {"Id": "id"}}], "located": {"id": "{id}"}}, + "fis:GetTargetAccountConfiguration": {"action": "fis:GetTargetAccountConfiguration", "types": ["experiment-template"], "resources": [{"type": "experiment-template", "fill": {"Id": "experimentTemplateId"}}], "located": {"experimentTemplateId": "{id}"}}, + "fis:GetTargetResourceType": {"action": "fis:GetTargetResourceType", "types": [], "resources": []}, + "fis:ListActions": {"action": "fis:ListActions", "types": [], "resources": []}, + "fis:ListExperimentResolvedTargets": {"action": "fis:ListExperimentResolvedTargets", "types": ["experiment"], "resources": [{"type": "experiment", "fill": {"Id": "experimentId"}}], "located": {"experimentId": "{id}"}}, + "fis:ListExperimentTargetAccountConfigurations": {"action": "fis:ListExperimentTargetAccountConfigurations", "types": ["experiment"], "resources": [{"type": "experiment", "fill": {"Id": "experimentId"}}], "located": {"experimentId": "{id}"}}, + "fis:ListExperimentTemplates": {"action": "fis:ListExperimentTemplates", "types": [], "resources": []}, + "fis:ListExperiments": {"action": "fis:ListExperiments", "types": [], "resources": []}, + "fis:ListTagsForResource": {"action": "fis:ListTagsForResource", "types": ["action", "experiment", "experiment-template"], "resources": [{"types": ["action", "experiment", "experiment-template"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}}, + "fis:ListTargetAccountConfigurations": {"action": "fis:ListTargetAccountConfigurations", "types": ["experiment-template"], "resources": [{"type": "experiment-template", "fill": {"Id": "experimentTemplateId"}}], "located": {"experimentTemplateId": "{id}"}}, + "fis:ListTargetResourceTypes": {"action": "fis:ListTargetResourceTypes", "types": [], "resources": []}, + "fis:StartExperiment": {"action": "fis:StartExperiment", "types": ["experiment", "experiment-template"], "resources": [{"type": "experiment", "fill": {}, "made": true}, {"type": "experiment-template", "fill": {"Id": "experimentTemplateId"}}]}, + "fis:StopExperiment": {"action": "fis:StopExperiment", "types": ["experiment"], "resources": [{"type": "experiment", "fill": {"Id": "id"}}], "located": {"id": "{id}"}}, + "fis:TagResource": {"action": "fis:TagResource", "types": ["action", "experiment", "experiment-template"], "resources": [{"types": ["action", "experiment", "experiment-template"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}}, + "fis:UntagResource": {"action": "fis:UntagResource", "types": ["action", "experiment", "experiment-template"], "resources": [{"types": ["action", "experiment", "experiment-template"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}}, + "fis:UpdateExperimentTemplate": {"action": "fis:UpdateExperimentTemplate", "types": ["action", "experiment-template"], "resources": [{"types": ["action", "experiment-template"], "arn": "roleArn"}, {"type": "experiment-template", "fill": {"Id": "id"}}], "located": {"id": "{id}"}}, + "fis:UpdateSafetyLeverState": {"action": "fis:UpdateSafetyLeverState", "types": ["safety-lever"], "resources": [{"type": "safety-lever", "fill": {"Id": "id"}}], "located": {"id": "{id}"}}, + "fis:UpdateTargetAccountConfiguration": {"action": "fis:UpdateTargetAccountConfiguration", "types": ["experiment-template"], "resources": [{"types": ["experiment-template"], "arn": "roleArn"}, {"type": "experiment-template", "fill": {"Id": "experimentTemplateId"}}], "located": {"experimentTemplateId": "{id}"}}, "globalaccelerator:AddCustomRoutingEndpoints": {"action": "globalaccelerator:AddCustomRoutingEndpoints", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointConfigurations[].AttachmentArn"}, {"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]}, "globalaccelerator:AddEndpoints": {"action": "globalaccelerator:AddEndpoints", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointConfigurations[].AttachmentArn"}, {"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]}, "globalaccelerator:AdvertiseByoipCidr": {"action": "globalaccelerator:AdvertiseByoipCidr", "types": [], "resources": []}, @@ -2365,6 +2423,7 @@ "kinesisanalytics:CreateApplication": {"action": "kinesisanalytics:CreateApplication", "types": [], "resources": []}, "kinesisanalytics:CreateApplicationPresignedUrl": {"action": "kinesisanalytics:CreateApplicationPresignedUrl", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:CreateApplicationSnapshot": {"action": "kinesisanalytics:CreateApplicationSnapshot", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, + "kinesisanalytics:CreateSnapshot": {"action": "kinesisanalytics:CreateSnapshot", "types": [], "resources": []}, "kinesisanalytics:DeleteApplication": {"action": "kinesisanalytics:DeleteApplication", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:DeleteApplicationCloudWatchLoggingOption": {"action": "kinesisanalytics:DeleteApplicationCloudWatchLoggingOption", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:DeleteApplicationInputProcessingConfiguration": {"action": "kinesisanalytics:DeleteApplicationInputProcessingConfiguration", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, @@ -2372,15 +2431,22 @@ "kinesisanalytics:DeleteApplicationReferenceDataSource": {"action": "kinesisanalytics:DeleteApplicationReferenceDataSource", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:DeleteApplicationSnapshot": {"action": "kinesisanalytics:DeleteApplicationSnapshot", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:DeleteApplicationVpcConfiguration": {"action": "kinesisanalytics:DeleteApplicationVpcConfiguration", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, + "kinesisanalytics:DeleteSnapshot": {"action": "kinesisanalytics:DeleteSnapshot", "types": [], "resources": []}, "kinesisanalytics:DescribeApplication": {"action": "kinesisanalytics:DescribeApplication", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:DescribeApplicationOperation": {"action": "kinesisanalytics:DescribeApplicationOperation", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:DescribeApplicationSnapshot": {"action": "kinesisanalytics:DescribeApplicationSnapshot", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:DescribeApplicationVersion": {"action": "kinesisanalytics:DescribeApplicationVersion", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, + "kinesisanalytics:DescribeSnapshot": {"action": "kinesisanalytics:DescribeSnapshot", "types": [], "resources": []}, + "kinesisanalytics:DescribeSnapshotOperation": {"action": "kinesisanalytics:DescribeSnapshotOperation", "types": [], "resources": []}, "kinesisanalytics:DiscoverInputSchema": {"action": "kinesisanalytics:DiscoverInputSchema", "types": [], "resources": []}, + "kinesisanalytics:ExportSnapshot": {"action": "kinesisanalytics:ExportSnapshot", "types": [], "resources": []}, + "kinesisanalytics:ImportSnapshot": {"action": "kinesisanalytics:ImportSnapshot", "types": [], "resources": []}, "kinesisanalytics:ListApplicationOperations": {"action": "kinesisanalytics:ListApplicationOperations", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:ListApplicationSnapshots": {"action": "kinesisanalytics:ListApplicationSnapshots", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:ListApplicationVersions": {"action": "kinesisanalytics:ListApplicationVersions", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:ListApplications": {"action": "kinesisanalytics:ListApplications", "types": [], "resources": []}, + "kinesisanalytics:ListSnapshotOperations": {"action": "kinesisanalytics:ListSnapshotOperations", "types": [], "resources": []}, + "kinesisanalytics:ListSnapshots": {"action": "kinesisanalytics:ListSnapshots", "types": [], "resources": []}, "kinesisanalytics:ListTagsForResource": {"action": "kinesisanalytics:ListTagsForResource", "types": ["application"], "resources": [{"types": ["application"], "arn": "ResourceARN"}]}, "kinesisanalytics:RollbackApplication": {"action": "kinesisanalytics:RollbackApplication", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, "kinesisanalytics:StartApplication": {"action": "kinesisanalytics:StartApplication", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]}, @@ -2484,6 +2550,21 @@ "macie2:UpdateResourceProfileDetections": {"action": "macie2:UpdateResourceProfileDetections", "types": [], "resources": []}, "macie2:UpdateRevealConfiguration": {"action": "macie2:UpdateRevealConfiguration", "types": [], "resources": []}, "macie2:UpdateSensitivityInspectionTemplate": {"action": "macie2:UpdateSensitivityInspectionTemplate", "types": [], "resources": []}, + "oam:CreateLink": {"action": "oam:CreateLink", "types": ["Sink"], "resources": [{"type": "Sink", "fill": {"ResourceId": "SinkIdentifier"}}]}, + "oam:CreateSink": {"action": "oam:CreateSink", "types": [], "resources": []}, + "oam:DeleteLink": {"action": "oam:DeleteLink", "types": ["Link"], "resources": [{"type": "Link", "fill": {"ResourceId": "Identifier"}}]}, + "oam:DeleteSink": {"action": "oam:DeleteSink", "types": ["Sink"], "resources": [{"type": "Sink", "fill": {"ResourceId": "Identifier"}}]}, + "oam:GetLink": {"action": "oam:GetLink", "types": ["Link"], "resources": [{"type": "Link", "fill": {"ResourceId": "Identifier"}}]}, + "oam:GetSink": {"action": "oam:GetSink", "types": ["Sink"], "resources": [{"type": "Sink", "fill": {"ResourceId": "Identifier"}}]}, + "oam:GetSinkPolicy": {"action": "oam:GetSinkPolicy", "types": ["Sink"], "resources": [{"type": "Sink", "fill": {"ResourceId": "SinkIdentifier"}}]}, + "oam:ListAttachedLinks": {"action": "oam:ListAttachedLinks", "types": ["Sink"], "resources": [{"type": "Sink", "fill": {"ResourceId": "SinkIdentifier"}}]}, + "oam:ListLinks": {"action": "oam:ListLinks", "types": [], "resources": []}, + "oam:ListSinks": {"action": "oam:ListSinks", "types": [], "resources": []}, + "oam:ListTagsForResource": {"action": "oam:ListTagsForResource", "types": ["Link", "Sink"], "resources": [{"types": ["Link", "Sink"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}}, + "oam:PutSinkPolicy": {"action": "oam:PutSinkPolicy", "types": ["Sink"], "resources": [{"type": "Sink", "fill": {"ResourceId": "SinkIdentifier"}}]}, + "oam:TagResource": {"action": "oam:TagResource", "types": ["Link", "Sink"], "resources": [{"types": ["Link", "Sink"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}}, + "oam:UntagResource": {"action": "oam:UntagResource", "types": ["Link", "Sink"], "resources": [{"types": ["Link", "Sink"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}}, + "oam:UpdateLink": {"action": "oam:UpdateLink", "types": ["Link"], "resources": [{"type": "Link", "fill": {"ResourceId": "Identifier"}}]}, "payment-cryptography:AddKeyReplicationRegions": {"action": "payment-cryptography:AddKeyReplicationRegions", "types": ["alias", "key"], "resources": [{"type": "key", "fill": {"KeyId": "KeyIdentifier"}}]}, "payment-cryptography:AssociateMpaTeam": {"action": "payment-cryptography:AssociateMpaTeam", "types": ["approval-team"], "resources": [{"types": ["approval-team"], "arn": "MpaTeamArn"}]}, "payment-cryptography:CreateAlias": {"action": "payment-cryptography:CreateAlias", "types": ["alias", "key"], "resources": [{"types": ["alias", "key"], "arn": "KeyArn"}, {"type": "alias", "fill": {"Alias": "AliasName"}, "made": true}]}, @@ -2832,6 +2913,42 @@ "quicksight:UpdateUser": {"action": "quicksight:UpdateUser", "types": ["user"], "resources": []}, "quicksight:UpdateUserCustomPermission": {"action": "quicksight:UpdateUserCustomPermission", "types": ["user"], "resources": []}, "quicksight:UpdateVPCConnection": {"action": "quicksight:UpdateVPCConnection", "types": ["vpcconnection"], "resources": [{"types": ["vpcconnection"], "arn": "RoleArn"}, {"type": "vpcconnection", "fill": {"ResourceId": "VPCConnectionId"}}], "located": {"VPCConnectionId": "{VPCConnectionId}"}}, + "ram:AcceptResourceShareInvitation": {"action": "ram:AcceptResourceShareInvitation", "types": ["resource-share-invitation"], "resources": [{"types": ["resource-share-invitation"], "arn": "resourceShareInvitationArn"}]}, + "ram:AssociateResourceShare": {"action": "ram:AssociateResourceShare", "types": ["resource-share"], "resources": [{"types": ["resource-share"], "arn": "resourceArns[]"}, {"types": ["resource-share"], "arn": "resourceShareArn"}]}, + "ram:AssociateResourceSharePermission": {"action": "ram:AssociateResourceSharePermission", "types": ["customer-managed-permission", "permission", "resource-share"], "resources": [{"types": ["customer-managed-permission", "permission", "resource-share"], "arn": "permissionArn"}, {"types": ["customer-managed-permission", "permission", "resource-share"], "arn": "resourceShareArn"}]}, + "ram:CreatePermission": {"action": "ram:CreatePermission", "types": ["customer-managed-permission"], "resources": [{"type": "customer-managed-permission", "fill": {"ResourcePath": "name"}}]}, + "ram:CreatePermissionVersion": {"action": "ram:CreatePermissionVersion", "types": ["customer-managed-permission"], "resources": [{"types": ["customer-managed-permission"], "arn": "permissionArn"}]}, + "ram:CreateResourceShare": {"action": "ram:CreateResourceShare", "types": ["customer-managed-permission", "permission", "resource-share"], "resources": [{"types": ["customer-managed-permission", "permission", "resource-share"], "arn": "permissionArns[]"}, {"types": ["customer-managed-permission", "permission", "resource-share"], "arn": "resourceArns[]"}, {"type": "resource-share", "fill": {}, "made": true}]}, + "ram:DeletePermission": {"action": "ram:DeletePermission", "types": ["customer-managed-permission"], "resources": [{"types": ["customer-managed-permission"], "arn": "permissionArn"}], "located": {"permissionArn": "?permissionArn"}}, + "ram:DeletePermissionVersion": {"action": "ram:DeletePermissionVersion", "types": ["customer-managed-permission"], "resources": [{"types": ["customer-managed-permission"], "arn": "permissionArn"}], "located": {"permissionArn": "?permissionArn"}}, + "ram:DeleteResourceShare": {"action": "ram:DeleteResourceShare", "types": ["resource-share"], "resources": [{"types": ["resource-share"], "arn": "resourceShareArn"}], "located": {"resourceShareArn": "?resourceShareArn"}}, + "ram:DisassociateResourceShare": {"action": "ram:DisassociateResourceShare", "types": ["resource-share"], "resources": [{"types": ["resource-share"], "arn": "resourceArns[]"}, {"types": ["resource-share"], "arn": "resourceShareArn"}]}, + "ram:DisassociateResourceSharePermission": {"action": "ram:DisassociateResourceSharePermission", "types": ["customer-managed-permission", "permission", "resource-share"], "resources": [{"types": ["customer-managed-permission", "permission", "resource-share"], "arn": "permissionArn"}, {"types": ["customer-managed-permission", "permission", "resource-share"], "arn": "resourceShareArn"}]}, + "ram:EnableSharingWithAwsOrganization": {"action": "ram:EnableSharingWithAwsOrganization", "types": [], "resources": []}, + "ram:GetPermission": {"action": "ram:GetPermission", "types": ["customer-managed-permission", "permission"], "resources": [{"types": ["customer-managed-permission", "permission"], "arn": "permissionArn"}]}, + "ram:GetResourcePolicies": {"action": "ram:GetResourcePolicies", "types": [], "resources": []}, + "ram:GetResourceShareAssociations": {"action": "ram:GetResourceShareAssociations", "types": [], "resources": []}, + "ram:GetResourceShareInvitations": {"action": "ram:GetResourceShareInvitations", "types": [], "resources": []}, + "ram:GetResourceShares": {"action": "ram:GetResourceShares", "types": [], "resources": []}, + "ram:ListPendingInvitationResources": {"action": "ram:ListPendingInvitationResources", "types": ["resource-share-invitation"], "resources": [{"types": ["resource-share-invitation"], "arn": "resourceShareInvitationArn"}]}, + "ram:ListPermissionAssociations": {"action": "ram:ListPermissionAssociations", "types": [], "resources": []}, + "ram:ListPermissionVersions": {"action": "ram:ListPermissionVersions", "types": ["customer-managed-permission", "permission"], "resources": [{"types": ["customer-managed-permission", "permission"], "arn": "permissionArn"}]}, + "ram:ListPermissions": {"action": "ram:ListPermissions", "types": [], "resources": []}, + "ram:ListPrincipals": {"action": "ram:ListPrincipals", "types": [], "resources": []}, + "ram:ListReplacePermissionAssociationsWork": {"action": "ram:ListReplacePermissionAssociationsWork", "types": [], "resources": []}, + "ram:ListResourceSharePermissions": {"action": "ram:ListResourceSharePermissions", "types": ["resource-share"], "resources": [{"types": ["resource-share"], "arn": "resourceShareArn"}]}, + "ram:ListResourceTypes": {"action": "ram:ListResourceTypes", "types": [], "resources": []}, + "ram:ListResources": {"action": "ram:ListResources", "types": [], "resources": []}, + "ram:ListSourceAssociations": {"action": "ram:ListSourceAssociations", "types": [], "resources": []}, + "ram:PromotePermissionCreatedFromPolicy": {"action": "ram:PromotePermissionCreatedFromPolicy", "types": ["customer-managed-permission"], "resources": [{"types": ["customer-managed-permission"], "arn": "permissionArn"}]}, + "ram:PromoteResourceShareCreatedFromPolicy": {"action": "ram:PromoteResourceShareCreatedFromPolicy", "types": ["resource-share"], "resources": [{"types": ["resource-share"], "arn": "resourceShareArn"}], "located": {"resourceShareArn": "?resourceShareArn"}}, + "ram:RejectResourceShareInvitation": {"action": "ram:RejectResourceShareInvitation", "types": ["resource-share-invitation"], "resources": [{"types": ["resource-share-invitation"], "arn": "resourceShareInvitationArn"}]}, + "ram:ReplacePermissionAssociations": {"action": "ram:ReplacePermissionAssociations", "types": ["customer-managed-permission", "permission"], "resources": [{"types": ["customer-managed-permission", "permission"], "arn": "fromPermissionArn"}, {"types": ["customer-managed-permission", "permission"], "arn": "toPermissionArn"}]}, + "ram:SetDefaultPermissionVersion": {"action": "ram:SetDefaultPermissionVersion", "types": ["customer-managed-permission"], "resources": [{"types": ["customer-managed-permission"], "arn": "permissionArn"}]}, + "ram:TagResource": {"action": "ram:TagResource", "types": ["customer-managed-permission", "resource-share"], "resources": [{"types": ["customer-managed-permission", "resource-share"], "arn": "resourceArn"}, {"types": ["customer-managed-permission", "resource-share"], "arn": "resourceShareArn"}]}, + "ram:UntagResource": {"action": "ram:UntagResource", "types": ["customer-managed-permission", "resource-share"], "resources": [{"types": ["customer-managed-permission", "resource-share"], "arn": "resourceArn"}, {"types": ["customer-managed-permission", "resource-share"], "arn": "resourceShareArn"}]}, + "ram:UpdatePermission": {"action": "ram:UpdatePermission", "types": ["customer-managed-permission"], "resources": []}, + "ram:UpdateResourceShare": {"action": "ram:UpdateResourceShare", "types": ["resource-share"], "resources": [{"types": ["resource-share"], "arn": "resourceShareArn"}]}, "redshift-data:BatchExecuteStatement": {"action": "redshift-data:BatchExecuteStatement", "types": ["cluster", "workgroup"], "resources": [{"types": ["cluster", "workgroup"], "arn": "SecretArn"}, {"type": "cluster", "fill": {"ClusterName": "ClusterIdentifier"}}, {"type": "workgroup", "fill": {}, "find": ["WorkgroupName"]}, {"types": ["cluster", "workgroup"], "through": "SessionId"}]}, "redshift-data:CancelStatement": {"action": "redshift-data:CancelStatement", "types": [], "resources": []}, "redshift-data:DescribeStatement": {"action": "redshift-data:DescribeStatement", "types": [], "resources": []}, @@ -3129,6 +3246,38 @@ "rekognition:UntagResource": {"action": "rekognition:UntagResource", "types": ["collection", "dataset", "project", "projectversion", "streamprocessor"], "resources": [{"types": ["collection", "dataset", "project", "projectversion", "streamprocessor"], "arn": "ResourceArn"}]}, "rekognition:UpdateDatasetEntries": {"action": "rekognition:UpdateDatasetEntries", "types": ["dataset"], "resources": [{"types": ["dataset"], "arn": "DatasetArn"}]}, "rekognition:UpdateStreamProcessor": {"action": "rekognition:UpdateStreamProcessor", "types": ["streamprocessor"], "resources": [{"type": "streamprocessor", "fill": {"StreamprocessorId": "Name"}}]}, + "resource-explorer-2:AssociateDefaultView": {"action": "resource-explorer-2:AssociateDefaultView", "types": [], "resources": []}, + "resource-explorer-2:BatchGetView": {"action": "resource-explorer-2:BatchGetView", "types": [], "resources": []}, + "resource-explorer-2:CreateIndex": {"action": "resource-explorer-2:CreateIndex", "types": [], "resources": []}, + "resource-explorer-2:CreateResourceExplorerSetup": {"action": "resource-explorer-2:CreateResourceExplorerSetup", "types": [], "resources": []}, + "resource-explorer-2:CreateView": {"action": "resource-explorer-2:CreateView", "types": [], "resources": []}, + "resource-explorer-2:DeleteIndex": {"action": "resource-explorer-2:DeleteIndex", "types": ["index"], "resources": [{"types": ["index"], "arn": "Arn"}]}, + "resource-explorer-2:DeleteResourceExplorerSetup": {"action": "resource-explorer-2:DeleteResourceExplorerSetup", "types": [], "resources": []}, + "resource-explorer-2:DeleteView": {"action": "resource-explorer-2:DeleteView", "types": ["view"], "resources": [{"types": ["view"], "arn": "ViewArn"}]}, + "resource-explorer-2:DisassociateDefaultView": {"action": "resource-explorer-2:DisassociateDefaultView", "types": [], "resources": []}, + "resource-explorer-2:GetAccountLevelServiceConfiguration": {"action": "resource-explorer-2:GetAccountLevelServiceConfiguration", "types": [], "resources": []}, + "resource-explorer-2:GetDefaultView": {"action": "resource-explorer-2:GetDefaultView", "types": [], "resources": []}, + "resource-explorer-2:GetIndex": {"action": "resource-explorer-2:GetIndex", "types": [], "resources": []}, + "resource-explorer-2:GetManagedView": {"action": "resource-explorer-2:GetManagedView", "types": ["managed-view"], "resources": [{"types": ["managed-view"], "arn": "ManagedViewArn"}]}, + "resource-explorer-2:GetResourceExplorerSetup": {"action": "resource-explorer-2:GetResourceExplorerSetup", "types": [], "resources": []}, + "resource-explorer-2:GetServiceIndex": {"action": "resource-explorer-2:GetServiceIndex", "types": [], "resources": []}, + "resource-explorer-2:GetServiceView": {"action": "resource-explorer-2:GetServiceView", "types": [], "resources": []}, + "resource-explorer-2:GetView": {"action": "resource-explorer-2:GetView", "types": ["view"], "resources": [{"types": ["view"], "arn": "ViewArn"}]}, + "resource-explorer-2:ListIndexes": {"action": "resource-explorer-2:ListIndexes", "types": [], "resources": []}, + "resource-explorer-2:ListIndexesForMembers": {"action": "resource-explorer-2:ListIndexesForMembers", "types": [], "resources": []}, + "resource-explorer-2:ListManagedViews": {"action": "resource-explorer-2:ListManagedViews", "types": [], "resources": []}, + "resource-explorer-2:ListResources": {"action": "resource-explorer-2:Search", "types": ["view"], "resources": [{"types": ["view"], "arn": "ViewArn"}]}, + "resource-explorer-2:ListServiceIndexes": {"action": "resource-explorer-2:ListServiceIndexes", "types": [], "resources": []}, + "resource-explorer-2:ListServiceViews": {"action": "resource-explorer-2:ListServiceViews", "types": [], "resources": []}, + "resource-explorer-2:ListStreamingAccessForServices": {"action": "resource-explorer-2:ListStreamingAccessForServices", "types": [], "resources": []}, + "resource-explorer-2:ListSupportedResourceTypes": {"action": "resource-explorer-2:ListSupportedResourceTypes", "types": [], "resources": []}, + "resource-explorer-2:ListTagsForResource": {"action": "resource-explorer-2:ListTagsForResource", "types": ["index", "view"], "resources": [{"types": ["index", "view"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}}, + "resource-explorer-2:ListViews": {"action": "resource-explorer-2:ListViews", "types": [], "resources": []}, + "resource-explorer-2:Search": {"action": "resource-explorer-2:Search", "types": ["view"], "resources": [{"types": ["view"], "arn": "ViewArn"}]}, + "resource-explorer-2:TagResource": {"action": "resource-explorer-2:TagResource", "types": ["index", "view"], "resources": [{"types": ["index", "view"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}}, + "resource-explorer-2:UntagResource": {"action": "resource-explorer-2:UntagResource", "types": ["index", "view"], "resources": [{"types": ["index", "view"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}}, + "resource-explorer-2:UpdateIndexType": {"action": "resource-explorer-2:UpdateIndexType", "types": ["index"], "resources": [{"types": ["index"], "arn": "Arn"}]}, + "resource-explorer-2:UpdateView": {"action": "resource-explorer-2:UpdateView", "types": ["view"], "resources": [{"types": ["view"], "arn": "ViewArn"}]}, "securityhub:AcceptAdministratorInvitation": {"action": "securityhub:AcceptAdministratorInvitation", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]}, "securityhub:AcceptInvitation": {"action": "securityhub:AcceptInvitation", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]}, "securityhub:BatchDeleteAutomationRules": {"action": "securityhub:BatchDeleteAutomationRules", "types": ["automation-rule"], "resources": [{"types": ["automation-rule"], "arn": "AutomationRulesArns[]"}]}, diff --git a/src/main/resources/aws/iam-tag-on-create.json b/src/main/resources/aws/iam-tag-on-create.json index 93cbf571e2..e6015c0a34 100644 --- a/src/main/resources/aws/iam-tag-on-create.json +++ b/src/main/resources/aws/iam-tag-on-create.json @@ -1,7 +1,7 @@ { "_source": {"generator": "tools/aws/regen_iam_tag_on_create.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-12", "note": "make iam-tag-on-create-check re-derives every member from botocore; make iam-tag-on-create-verify checks every operation against AWS."}, - "namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "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"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]}, - "notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "fis": "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", "oam": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "ram": "REST routes no rule maps yet", "resource-explorer-2": "REST routes no rule maps yet", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "s3tables": "REST routes no rule maps yet", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"}, + "namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]}, + "notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "s3tables": "REST routes no rule maps yet", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"}, "otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "applicationinsights", "appmesh", "apprunner", "appstream", "arc-region-switch", "artifact", "auditmanager", "b2bi", "backup-gateway", "backup-search", "bcm-dashboards", "billing", "billingconductor", "braket", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "connect-campaigns", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "directconnect", "docdb-elastic", "drs", "ds", "ebs", "ecr-public", "elemental-inference", "emr-containers", "entityresolution", "evs", "fms", "forecast", "frauddetector", "fsx", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "ivs", "ivschat", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "m2", "managedblockchain", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgn", "migrationhub-orchestrator", "mobiletargeting", "mpa", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "notifications", "notifications-contacts", "observabilityadmin", "odb", "omics", "opensearch", "osis", "outposts", "partnercentral", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "profile", "proton", "qbusiness", "rbin", "refactor-spaces", "repostspace", "resiliencehub", "rolesanywhere", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3files", "sagemaker-geospatial", "savingsplans", "schemas", "scn", "security-ir", "securityagent", "securitylake", "shield", "sms-voice", "snow-device-management", "social-messaging", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "voiceid", "vpc-lattice", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workspaces", "workspaces-instances", "workspaces-web"], "resourceArns": {"ec2": {"application-status-check": "arn:${Partition}:ec2:${Region}:${Account}:application-status-check/*", "capacity-block": "arn:${Partition}:ec2:${Region}:${Account}:capacity-block/*", "capacity-manager-data-export": "arn:${Partition}:ec2:${Region}:${Account}:capacity-manager-data-export/*", "capacity-reservation": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/*", "capacity-reservation-cancellation-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-cancellation-quote/*", "capacity-reservation-fleet": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-fleet/*", "capacity-reservation-modification-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-modification-quote/*", "carrier-gateway": "arn:${Partition}:ec2:${Region}:${Account}:carrier-gateway/*", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/*", "client-vpn-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:client-vpn-endpoint/*", "coip-pool": "arn:${Partition}:ec2:${Region}:${Account}:coip-pool/*", "customer-gateway": "arn:${Partition}:ec2:${Region}:${Account}:customer-gateway/*", "declarative-policies-report": "arn:${Partition}:ec2:${Region}:${Account}:declarative-policies-report/*", "dedicated-host": "arn:${Partition}:ec2:${Region}:${Account}:dedicated-host/*", "dhcp-options": "arn:${Partition}:ec2:${Region}:${Account}:dhcp-options/*", "egress-only-internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:egress-only-internet-gateway/*", "elastic-gpu": "arn:${Partition}:ec2:${Region}:${Account}:elastic-gpu/*", "elastic-inference": "arn:${Partition}:elastic-inference:${Region}:${Account}:elastic-inference-accelerator/*", "elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/*", "export-image-task": "arn:${Partition}:ec2:${Region}:${Account}:export-image-task/*", "export-instance-task": "arn:${Partition}:ec2:${Region}:${Account}:export-instance-task/*", "fleet": "arn:${Partition}:ec2:${Region}:${Account}:fleet/*", "fpga-image": "arn:${Partition}:ec2:${Region}:${Account}:fpga-image/*", "group": "arn:${Partition}:resource-groups:${Region}:${Account}:group/*", "host-reservation": "arn:${Partition}:ec2:${Region}:${Account}:host-reservation/*", "image": "arn:${Partition}:ec2:${Region}::image/*", "image-usage-report": "arn:${Partition}:ec2:${Region}:${Account}:image-usage-report/*", "import-image-task": "arn:${Partition}:ec2:${Region}:${Account}:import-image-task/*", "import-snapshot-task": "arn:${Partition}:ec2:${Region}:${Account}:import-snapshot-task/*", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/*", "instance-connect-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:instance-connect-endpoint/*", "instance-event-window": "arn:${Partition}:ec2:${Region}:${Account}:instance-event-window/*", "internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:internet-gateway/*", "ipam": "arn:${Partition}:ec2::${Account}:ipam/*", "ipam-external-resource-verification-token": "arn:${Partition}:ec2::${Account}:ipam-external-resource-verification-token/*", "ipam-internet-registry-association": "arn:${Partition}:ec2::${Account}:ipam-internet-registry-association/*", "ipam-policy": "arn:${Partition}:ec2::${Account}:ipam-policy/*", "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/*", "ipam-pool-allocation": "arn:${Partition}:ec2:${Region}:${Account}:ipam-pool-allocation/*", "ipam-prefix-list-resolver": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver/*", "ipam-prefix-list-resolver-target": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver-target/*", "ipam-resource-discovery": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery/*", "ipam-resource-discovery-association": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery-association/*", "ipam-scope": "arn:${Partition}:ec2::${Account}:ipam-scope/*", "ipv4pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv4pool-ec2/*", "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/*", "key-pair": "arn:${Partition}:ec2:${Region}:${Account}:key-pair/*", "launch-template": "arn:${Partition}:ec2:${Region}:${Account}:launch-template/*", "license-configuration": "arn:${Partition}:license-manager:${Region}:${Account}:license-configuration:*", "local-gateway": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway/*", "local-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table/*", "local-gateway-route-table-virtual-interface-group-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-virtual-interface-group-association/*", "local-gateway-route-table-vpc-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-vpc-association/*", "local-gateway-virtual-interface": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface/*", "local-gateway-virtual-interface-group": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface-group/*", "mac-modification-task": "arn:${Partition}:ec2:${Region}:${Account}:mac-modification-task/*", "natgateway": "arn:${Partition}:ec2:${Region}:${Account}:natgateway/*", "network-acl": "arn:${Partition}:ec2:${Region}:${Account}:network-acl/*", "network-insights-access-scope": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-access-scope/*", "network-insights-access-scope-analysis": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-access-scope-analysis/*", "network-insights-analysis": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-analysis/*", "network-insights-path": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-path/*", "network-interface": "arn:${Partition}:ec2:${Region}:${Account}:network-interface/*", "outpost-lag": "arn:${Partition}:ec2:${Region}:${Account}:outpost-lag/*", "placement-group": "arn:${Partition}:ec2:${Region}:${Account}:placement-group/*", "prefix-list": "arn:${Partition}:ec2:${Region}:${Account}:prefix-list/*", "replace-root-volume-task": "arn:${Partition}:ec2:${Region}:${Account}:replace-root-volume-task/*", "reserved-instances": "arn:${Partition}:ec2:${Region}:${Account}:reserved-instances/*", "role": "arn:${Partition}:iam::${Account}:role/*", "route-server": "arn:${Partition}:ec2:${Region}:${Account}:route-server/*", "route-server-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:route-server-endpoint/*", "route-server-peer": "arn:${Partition}:ec2:${Region}:${Account}:route-server-peer/*", "route-table": "arn:${Partition}:ec2:${Region}:${Account}:route-table/*", "secondary-interface": "arn:${Partition}:ec2:${Region}:${Account}:secondary-interface/*", "secondary-network": "arn:${Partition}:ec2:${Region}:${Account}:secondary-network/*", "secondary-subnet": "arn:${Partition}:ec2:${Region}:${Account}:secondary-subnet/*", "security-group": "arn:${Partition}:ec2:${Region}:${Account}:security-group/*", "security-group-rule": "arn:${Partition}:ec2:${Region}:${Account}:security-group-rule/*", "snapshot": "arn:${Partition}:ec2:${Region}::snapshot/*", "spot-fleet-request": "arn:${Partition}:ec2:${Region}:${Account}:spot-fleet-request/*", "spot-instances-request": "arn:${Partition}:ec2:${Region}:${Account}:spot-instances-request/*", "subnet": "arn:${Partition}:ec2:${Region}:${Account}:subnet/*", "subnet-cidr-reservation": "arn:${Partition}:ec2:${Region}:${Account}:subnet-cidr-reservation/*", "traffic-mirror-filter": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-filter/*", "traffic-mirror-filter-rule": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-filter-rule/*", "traffic-mirror-session": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-session/*", "traffic-mirror-target": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-target/*", "transit-gateway": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway/*", "transit-gateway-attachment": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-attachment/*", "transit-gateway-connect-peer": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-connect-peer/*", "transit-gateway-metering-policy": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-metering-policy/*", "transit-gateway-multicast-domain": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-multicast-domain/*", "transit-gateway-policy-table": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-policy-table/*", "transit-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-route-table/*", "transit-gateway-route-table-announcement": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-route-table-announcement/*", "verified-access-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-endpoint/*", "verified-access-endpoint-target": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-endpoint-target/*", "verified-access-group": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-group/*", "verified-access-instance": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-instance/*", "verified-access-policy": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-policy/*", "verified-access-trust-provider": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-trust-provider/*", "volume": "arn:${Partition}:ec2:${Region}:${Account}:volume/*", "vpc": "arn:${Partition}:ec2:${Region}:${Account}:vpc/*", "vpc-block-public-access-exclusion": "arn:${Partition}:ec2:${Region}:${Account}:vpc-block-public-access-exclusion/*", "vpc-encryption-control": "arn:${Partition}:ec2:${Region}:${Account}:vpc-encryption-control/*", "vpc-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint/*", "vpc-endpoint-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-connection/*", "vpc-endpoint-service": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-service/*", "vpc-endpoint-service-permission": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-service-permission/*", "vpc-flow-log": "arn:${Partition}:ec2:${Region}:${Account}:vpc-flow-log/*", "vpc-peering-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpc-peering-connection/*", "vpn-concentrator": "arn:${Partition}:ec2:${Region}:${Account}:vpn-concentrator/*", "vpn-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpn-connection/*", "vpn-connection-device-type": "arn:${Partition}:ec2:${Region}:${Account}:vpn-connection-device-type/*", "vpn-gateway": "arn:${Partition}:ec2:${Region}:${Account}:vpn-gateway/*"}, "rds": {"auto-backup": "arn:${Partition}:rds:${Region}:${Account}:auto-backup:*", "cev": "arn:${Partition}:rds:${Region}:${Account}:cev:*/*/*", "cluster": "arn:${Partition}:rds:${Region}:${Account}:cluster:*", "cluster-auto-backup": "arn:${Partition}:rds:${Region}:${Account}:cluster-auto-backup:*", "cluster-endpoint": "arn:${Partition}:rds:${Region}:${Account}:cluster-endpoint:*", "cluster-pg": "arn:${Partition}:rds:${Region}:${Account}:cluster-pg:*", "cluster-snapshot": "arn:${Partition}:rds:${Region}:${Account}:cluster-snapshot:*", "db": "arn:${Partition}:rds:${Region}:${Account}:db:*", "db-capacity-reservation": "arn:${Partition}:rds:${Region}:${Account}:db-capacity-reservation:*", "deployment": "arn:${Partition}:rds:${Region}:${Account}:deployment:*", "es": "arn:${Partition}:rds:${Region}:${Account}:es:*", "global-cluster": "arn:${Partition}:rds::${Account}:global-cluster:*", "integration": "arn:${Partition}:rds:${Region}:${Account}:integration:*", "og": "arn:${Partition}:rds:${Region}:${Account}:og:*", "pg": "arn:${Partition}:rds:${Region}:${Account}:pg:*", "proxy": "arn:${Partition}:rds:${Region}:${Account}:db-proxy:*", "proxy-endpoint": "arn:${Partition}:rds:${Region}:${Account}:db-proxy-endpoint:*", "ri": "arn:${Partition}:rds:${Region}:${Account}:ri:*", "secgrp": "arn:${Partition}:rds:${Region}:${Account}:secgrp:*", "shardgrp": "arn:${Partition}:rds:${Region}:${Account}:shard-group:*", "snapshot": "arn:${Partition}:rds:${Region}:${Account}:snapshot:*", "snapshot-tenant-database": "arn:${Partition}:rds:${Region}:${Account}:snapshot-tenant-database:*:*", "subgrp": "arn:${Partition}:rds:${Region}:${Account}:subgrp:*", "target-group": "arn:${Partition}:rds:${Region}:${Account}:target-group:*", "tenant-database": "arn:${Partition}:rds:${Region}:${Account}:tenant-database:*"}}, "operations": { @@ -292,6 +292,8 @@ "events:PutRule": {"tagging": ["events:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "events:StartReplay": {"tagging": ["events:TagResource"], "notRead": "no member of the request carries tags"}, "firehose:CreateDeliveryStream": {"tagging": ["firehose:TagDeliveryStream"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, + "fis:CreateExperimentTemplate": {"tagging": ["fis:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]}, + "fis:StartExperiment": {"tagging": ["fis:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]}, "globalaccelerator:CreateAccelerator": {"tagging": ["globalaccelerator:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "globalaccelerator:CreateCrossAccountAttachment": {"tagging": ["globalaccelerator:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "globalaccelerator:CreateCustomRoutingAccelerator": {"tagging": ["globalaccelerator:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, @@ -335,6 +337,7 @@ "kinesis:CreateStream": {"tagging": ["kinesis:AddTagsToStream"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, "kinesis:RegisterStreamConsumer": {"tagging": ["kinesis:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, "kinesisanalytics:CreateApplication": {"tagging": ["kinesisanalytics:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, + "kinesisanalytics:CreateSnapshot": {"tagging": ["kinesisanalytics:TagResource"], "notRead": "the pinned botocore does not have the operation yet, so its request cannot be read"}, "kms:CreateKey": {"tagging": ["kms:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "TagKey", "value": "TagValue"}]}, "lambda:CreateCapacityProvider": {"tagging": ["lambda:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, "lambda:CreateCodeSigningConfig": {"tagging": ["lambda:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, @@ -393,6 +396,8 @@ "network-firewall:CreateRuleGroup": {"tagging": ["network-firewall:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "network-firewall:CreateTLSInspectionConfiguration": {"tagging": ["network-firewall:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "network-firewall:CreateVpcEndpointAssociation": {"tagging": ["network-firewall:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, + "oam:CreateLink": {"tagging": ["oam:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, + "oam:CreateSink": {"tagging": ["oam:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, "organizations:CreateAccount": {"tagging": ["organizations:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "organizations:CreateGovCloudAccount": {"tagging": ["organizations:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "organizations:CreateOrganizationalUnit": {"tagging": ["organizations:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, @@ -403,6 +408,8 @@ "payment-cryptography:CreateKey": {"tagging": ["payment-cryptography:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "payment-cryptography:ImportKey": {"tagging": ["payment-cryptography:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "pipes:CreatePipe": {"tagging": ["pipes:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, + "ram:CreatePermission": {"tagging": ["ram:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]}, + "ram:CreateResourceShare": {"tagging": ["ram:TagResource"], "requestTags": true, "tags": [{"member": "tags[]", "key": "key", "value": "value"}]}, "rds:CopyDBClusterParameterGroup": {"tagging": ["rds:AddTagsToResource"], "requestTags": true, "tags": [{"member": "Tags[Tag]", "key": "Key", "value": "Value"}]}, "rds:CopyDBClusterSnapshot": {"tagging": ["rds:AddTagsToResource"], "requestTags": true, "tags": [{"member": "Tags[Tag]", "key": "Key", "value": "Value"}]}, "rds:CopyDBParameterGroup": {"tagging": ["rds:AddTagsToResource"], "requestTags": true, "tags": [{"member": "Tags[Tag]", "key": "Key", "value": "Value"}]}, @@ -467,6 +474,8 @@ "rekognition:CreateProject": {"tagging": ["rekognition:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, "rekognition:CreateProjectVersion": {"tagging": ["rekognition:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, "rekognition:CreateStreamProcessor": {"tagging": ["rekognition:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, + "resource-explorer-2:CreateIndex": {"tagging": ["resource-explorer-2:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, + "resource-explorer-2:CreateView": {"tagging": ["resource-explorer-2:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, "resource-groups:CreateGroup": {"tagging": ["resource-groups:Tag"], "requestTags": true, "tags": [{"member": "Tags{}"}]}, "route53resolver:AssociateFirewallRuleGroup": {"tagging": ["route53resolver:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, "route53resolver:CreateFirewallDomainList": {"tagging": ["route53resolver:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]}, diff --git a/src/main/resources/aws/rest-routes.json b/src/main/resources/aws/rest-routes.json index 09b9d55394..e8678145c2 100644 --- a/src/main/resources/aws/rest-routes.json +++ b/src/main/resources/aws/rest-routes.json @@ -50,6 +50,31 @@ "ValidatePolicy": {"method": "POST", "requestUri": "/policy/validation"} } }, + "account": { + "credentialScope": "account", + "apiVersion": "2021-02-01", + "accessDeniedStatus": 403, + "operations": { + "AcceptPrimaryEmailUpdate": {"method": "POST", "requestUri": "/acceptPrimaryEmailUpdate"}, + "DeleteAlternateContact": {"method": "POST", "requestUri": "/deleteAlternateContact"}, + "DisableRegion": {"method": "POST", "requestUri": "/disableRegion"}, + "EnableRegion": {"method": "POST", "requestUri": "/enableRegion"}, + "GetAccountInformation": {"method": "POST", "requestUri": "/getAccountInformation"}, + "GetAlternateContact": {"method": "POST", "requestUri": "/getAlternateContact"}, + "GetContactInformation": {"method": "POST", "requestUri": "/getContactInformation"}, + "GetGovCloudAccountInformation": {"method": "POST", "requestUri": "/getGovCloudAccountInformation"}, + "GetPrimaryEmail": {"method": "POST", "requestUri": "/getPrimaryEmail"}, + "GetPrimaryEmailUpdateStatus": {"method": "POST", "requestUri": "/getPrimaryEmailUpdateStatus"}, + "GetRegionOptStatus": {"method": "POST", "requestUri": "/getRegionOptStatus"}, + "ListRegions": {"method": "POST", "requestUri": "/listRegions"}, + "PutAccountName": {"method": "POST", "requestUri": "/putAccountName"}, + "PutAlternateContact": {"method": "POST", "requestUri": "/putAlternateContact"}, + "PutContactInformation": {"method": "POST", "requestUri": "/putContactInformation"}, + "SendPhoneNumberVerification": {"method": "POST", "requestUri": "/sendPhoneNumberVerification"}, + "StartPrimaryEmailUpdate": {"method": "POST", "requestUri": "/startPrimaryEmailUpdate"}, + "VerifyPhoneNumber": {"method": "POST", "requestUri": "/verifyPhoneNumber"} + } + }, "apigateway": { "credentialScope": "apigateway", "apiVersion": "2015-07-09", @@ -477,6 +502,19 @@ "UpdateKeys": {"method": "POST", "requestUri": "/key-value-stores/{KvsARN}/keys"} } }, + "controlcatalog": { + "credentialScope": "controlcatalog", + "apiVersion": "2018-05-10", + "accessDeniedStatus": 403, + "operations": { + "GetControl": {"method": "POST", "requestUri": "/get-control"}, + "ListCommonControls": {"method": "POST", "requestUri": "/common-controls"}, + "ListControlMappings": {"method": "POST", "requestUri": "/list-control-mappings"}, + "ListControls": {"method": "POST", "requestUri": "/list-controls"}, + "ListDomains": {"method": "POST", "requestUri": "/domains"}, + "ListObjectives": {"method": "POST", "requestUri": "/objectives"} + } + }, "controltower": { "credentialScope": "controltower", "apiVersion": "2018-05-10", @@ -698,6 +736,38 @@ "UpgradeElasticsearchDomain": {"method": "POST", "requestUri": "/2015-01-01/es/upgradeDomain"} } }, + "fis": { + "credentialScope": "fis", + "apiVersion": "2020-12-01", + "operations": { + "CreateExperimentTemplate": {"method": "POST", "requestUri": "/experimentTemplates"}, + "CreateTargetAccountConfiguration": {"method": "POST", "requestUri": "/experimentTemplates/{id}/targetAccountConfigurations/{accountId}"}, + "DeleteExperimentTemplate": {"method": "DELETE", "requestUri": "/experimentTemplates/{id}"}, + "DeleteTargetAccountConfiguration": {"method": "DELETE", "requestUri": "/experimentTemplates/{id}/targetAccountConfigurations/{accountId}"}, + "GetAction": {"method": "GET", "requestUri": "/actions/{id}"}, + "GetExperiment": {"method": "GET", "requestUri": "/experiments/{id}"}, + "GetExperimentTargetAccountConfiguration": {"method": "GET", "requestUri": "/experiments/{id}/targetAccountConfigurations/{accountId}"}, + "GetExperimentTemplate": {"method": "GET", "requestUri": "/experimentTemplates/{id}"}, + "GetSafetyLever": {"method": "GET", "requestUri": "/safetyLevers/{id}"}, + "GetTargetAccountConfiguration": {"method": "GET", "requestUri": "/experimentTemplates/{id}/targetAccountConfigurations/{accountId}"}, + "GetTargetResourceType": {"method": "GET", "requestUri": "/targetResourceTypes/{resourceType}"}, + "ListActions": {"method": "GET", "requestUri": "/actions"}, + "ListExperimentResolvedTargets": {"method": "GET", "requestUri": "/experiments/{id}/resolvedTargets"}, + "ListExperimentTargetAccountConfigurations": {"method": "GET", "requestUri": "/experiments/{id}/targetAccountConfigurations"}, + "ListExperimentTemplates": {"method": "GET", "requestUri": "/experimentTemplates"}, + "ListExperiments": {"method": "GET", "requestUri": "/experiments"}, + "ListTagsForResource": {"method": "GET", "requestUri": "/tags/{resourceArn+}", "alternatives": [{"requestUri": "/tags", "located": {"resourceArn": "?resourceArn"}}]}, + "ListTargetAccountConfigurations": {"method": "GET", "requestUri": "/experimentTemplates/{id}/targetAccountConfigurations"}, + "ListTargetResourceTypes": {"method": "GET", "requestUri": "/targetResourceTypes"}, + "StartExperiment": {"method": "POST", "requestUri": "/experiments"}, + "StopExperiment": {"method": "DELETE", "requestUri": "/experiments/{id}"}, + "TagResource": {"method": "POST", "requestUri": "/tags/{resourceArn+}", "alternatives": [{"requestUri": "/tags", "located": {"resourceArn": "body"}}]}, + "UntagResource": {"method": "DELETE", "requestUri": "/tags/{resourceArn+}", "alternatives": [{"requestUri": "/tags", "located": {"resourceArn": "?resourceArn"}}]}, + "UpdateExperimentTemplate": {"method": "PATCH", "requestUri": "/experimentTemplates/{id}"}, + "UpdateSafetyLeverState": {"method": "PATCH", "requestUri": "/safetyLevers/{id}/state"}, + "UpdateTargetAccountConfiguration": {"method": "PATCH", "requestUri": "/experimentTemplates/{id}/targetAccountConfigurations/{accountId}"} + } + }, "guardduty": { "credentialScope": "guardduty", "apiVersion": "2017-11-28", @@ -1196,6 +1266,27 @@ "UpdateSensitivityInspectionTemplate": {"method": "PUT", "requestUri": "/templates/sensitivity-inspections/{id}"} } }, + "oam": { + "credentialScope": "oam", + "apiVersion": "2022-06-10", + "operations": { + "CreateLink": {"method": "POST", "requestUri": "/CreateLink"}, + "CreateSink": {"method": "POST", "requestUri": "/CreateSink"}, + "DeleteLink": {"method": "POST", "requestUri": "/DeleteLink"}, + "DeleteSink": {"method": "POST", "requestUri": "/DeleteSink"}, + "GetLink": {"method": "POST", "requestUri": "/GetLink"}, + "GetSink": {"method": "POST", "requestUri": "/GetSink"}, + "GetSinkPolicy": {"method": "POST", "requestUri": "/GetSinkPolicy"}, + "ListAttachedLinks": {"method": "POST", "requestUri": "/ListAttachedLinks"}, + "ListLinks": {"method": "POST", "requestUri": "/ListLinks"}, + "ListSinks": {"method": "POST", "requestUri": "/ListSinks"}, + "ListTagsForResource": {"method": "GET", "requestUri": "/tags/{ResourceArn+}"}, + "PutSinkPolicy": {"method": "POST", "requestUri": "/PutSinkPolicy"}, + "TagResource": {"method": "PUT", "requestUri": "/tags/{ResourceArn+}"}, + "UntagResource": {"method": "DELETE", "requestUri": "/tags/{ResourceArn+}"}, + "UpdateLink": {"method": "POST", "requestUri": "/UpdateLink"} + } + }, "opensearch": { "credentialScope": "es", "apiVersion": "2021-01-01", @@ -1643,6 +1734,86 @@ "UpdateVPCConnection": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"} } }, + "ram": { + "credentialScope": "ram", + "apiVersion": "2018-01-04", + "operations": { + "AcceptResourceShareInvitation": {"method": "POST", "requestUri": "/acceptresourceshareinvitation"}, + "AssociateResourceShare": {"method": "POST", "requestUri": "/associateresourceshare"}, + "AssociateResourceSharePermission": {"method": "POST", "requestUri": "/associateresourcesharepermission"}, + "CreatePermission": {"method": "POST", "requestUri": "/createpermission"}, + "CreatePermissionVersion": {"method": "POST", "requestUri": "/createpermissionversion"}, + "CreateResourceShare": {"method": "POST", "requestUri": "/createresourceshare"}, + "DeletePermission": {"method": "DELETE", "requestUri": "/deletepermission"}, + "DeletePermissionVersion": {"method": "DELETE", "requestUri": "/deletepermissionversion"}, + "DeleteResourceShare": {"method": "DELETE", "requestUri": "/deleteresourceshare"}, + "DisassociateResourceShare": {"method": "POST", "requestUri": "/disassociateresourceshare"}, + "DisassociateResourceSharePermission": {"method": "POST", "requestUri": "/disassociateresourcesharepermission"}, + "EnableSharingWithAwsOrganization": {"method": "POST", "requestUri": "/enablesharingwithawsorganization"}, + "GetPermission": {"method": "POST", "requestUri": "/getpermission"}, + "GetResourcePolicies": {"method": "POST", "requestUri": "/getresourcepolicies"}, + "GetResourceShareAssociations": {"method": "POST", "requestUri": "/getresourceshareassociations"}, + "GetResourceShareInvitations": {"method": "POST", "requestUri": "/getresourceshareinvitations"}, + "GetResourceShares": {"method": "POST", "requestUri": "/getresourceshares"}, + "ListPendingInvitationResources": {"method": "POST", "requestUri": "/listpendinginvitationresources"}, + "ListPermissionAssociations": {"method": "POST", "requestUri": "/listpermissionassociations"}, + "ListPermissionVersions": {"method": "POST", "requestUri": "/listpermissionversions"}, + "ListPermissions": {"method": "POST", "requestUri": "/listpermissions"}, + "ListPrincipals": {"method": "POST", "requestUri": "/listprincipals"}, + "ListReplacePermissionAssociationsWork": {"method": "POST", "requestUri": "/listreplacepermissionassociationswork"}, + "ListResourceSharePermissions": {"method": "POST", "requestUri": "/listresourcesharepermissions"}, + "ListResourceTypes": {"method": "POST", "requestUri": "/listresourcetypes"}, + "ListResources": {"method": "POST", "requestUri": "/listresources"}, + "ListSourceAssociations": {"method": "POST", "requestUri": "/listsourceassociations"}, + "PromotePermissionCreatedFromPolicy": {"method": "POST", "requestUri": "/promotepermissioncreatedfrompolicy"}, + "PromoteResourceShareCreatedFromPolicy": {"method": "POST", "requestUri": "/promoteresourcesharecreatedfrompolicy"}, + "RejectResourceShareInvitation": {"method": "POST", "requestUri": "/rejectresourceshareinvitation"}, + "ReplacePermissionAssociations": {"method": "POST", "requestUri": "/replacepermissionassociations"}, + "SetDefaultPermissionVersion": {"method": "POST", "requestUri": "/setdefaultpermissionversion"}, + "TagResource": {"method": "POST", "requestUri": "/tagresource"}, + "UntagResource": {"method": "POST", "requestUri": "/untagresource"}, + "UpdateResourceShare": {"method": "POST", "requestUri": "/updateresourceshare"} + } + }, + "resource-explorer-2": { + "credentialScope": "resource-explorer-2", + "apiVersion": "2022-07-28", + "accessDeniedStatus": 403, + "operations": { + "AssociateDefaultView": {"method": "POST", "requestUri": "/AssociateDefaultView"}, + "BatchGetView": {"method": "POST", "requestUri": "/BatchGetView"}, + "CreateIndex": {"method": "POST", "requestUri": "/CreateIndex"}, + "CreateResourceExplorerSetup": {"method": "POST", "requestUri": "/CreateResourceExplorerSetup"}, + "CreateView": {"method": "POST", "requestUri": "/CreateView"}, + "DeleteIndex": {"method": "POST", "requestUri": "/DeleteIndex"}, + "DeleteResourceExplorerSetup": {"method": "POST", "requestUri": "/DeleteResourceExplorerSetup"}, + "DeleteView": {"method": "POST", "requestUri": "/DeleteView"}, + "DisassociateDefaultView": {"method": "POST", "requestUri": "/DisassociateDefaultView"}, + "GetAccountLevelServiceConfiguration": {"method": "POST", "requestUri": "/GetAccountLevelServiceConfiguration"}, + "GetDefaultView": {"method": "POST", "requestUri": "/GetDefaultView"}, + "GetIndex": {"method": "POST", "requestUri": "/GetIndex"}, + "GetManagedView": {"method": "POST", "requestUri": "/GetManagedView"}, + "GetResourceExplorerSetup": {"method": "POST", "requestUri": "/GetResourceExplorerSetup"}, + "GetServiceIndex": {"method": "POST", "requestUri": "/GetServiceIndex"}, + "GetServiceView": {"method": "POST", "requestUri": "/GetServiceView"}, + "GetView": {"method": "POST", "requestUri": "/GetView"}, + "ListIndexes": {"method": "POST", "requestUri": "/ListIndexes"}, + "ListIndexesForMembers": {"method": "POST", "requestUri": "/ListIndexesForMembers"}, + "ListManagedViews": {"method": "POST", "requestUri": "/ListManagedViews"}, + "ListResources": {"method": "POST", "requestUri": "/ListResources"}, + "ListServiceIndexes": {"method": "POST", "requestUri": "/ListServiceIndexes"}, + "ListServiceViews": {"method": "POST", "requestUri": "/ListServiceViews"}, + "ListStreamingAccessForServices": {"method": "POST", "requestUri": "/ListStreamingAccessForServices"}, + "ListSupportedResourceTypes": {"method": "POST", "requestUri": "/ListSupportedResourceTypes"}, + "ListTagsForResource": {"method": "GET", "requestUri": "/tags/{resourceArn+}", "alternatives": [{"requestUri": "/tags", "located": {"resourceArn": "?resourceArn"}}]}, + "ListViews": {"method": "POST", "requestUri": "/ListViews"}, + "Search": {"method": "POST", "requestUri": "/Search"}, + "TagResource": {"method": "POST", "requestUri": "/tags/{resourceArn+}", "alternatives": [{"requestUri": "/tags", "located": {"resourceArn": "body"}}]}, + "UntagResource": {"method": "DELETE", "requestUri": "/tags/{resourceArn+}", "alternatives": [{"requestUri": "/tags", "located": {"resourceArn": "?resourceArn"}}]}, + "UpdateIndexType": {"method": "POST", "requestUri": "/UpdateIndexType"}, + "UpdateView": {"method": "POST", "requestUri": "/UpdateView"} + } + }, "s3": { "credentialScope": "s3", "apiVersion": "2006-03-01", diff --git a/src/test/java/io/floci/aws/services/account/AccountServiceTest.java b/src/test/java/io/floci/aws/services/account/AccountServiceTest.java index 57c539a928..17e662f260 100644 --- a/src/test/java/io/floci/aws/services/account/AccountServiceTest.java +++ b/src/test/java/io/floci/aws/services/account/AccountServiceTest.java @@ -8,10 +8,13 @@ import io.floci.aws.core.storage.AccountAwareStorageBackend; import io.floci.aws.core.storage.StorageFactory; import io.floci.aws.services.account.model.AlternateContact; import io.floci.aws.services.organizations.OrganizationsService; +import io.floci.aws.services.organizations.model.Organization; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import java.util.List; import java.util.Map; +import java.util.Optional; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertThrows; @@ -25,6 +28,7 @@ class AccountServiceTest { private static final String ACCOUNT_ID = "123456789012"; private final ObjectMapper mapper = new ObjectMapper(); private AccountService service; + private OrganizationsService organizations; @BeforeEach @SuppressWarnings({"unchecked", "rawtypes"}) @@ -33,7 +37,8 @@ class AccountServiceTest { AccountAwareStorageBackend store = AccountAwareStorageBackend.inMemory(ACCOUNT_ID); when(storageFactory.create(eq("account"), eq("account-alternate-contacts.json"), any(TypeReference.class))) .thenReturn((AccountAwareStorageBackend) store); - service = new AccountService(storageFactory, mock(OrganizationsService.class)); + organizations = mock(OrganizationsService.class); + service = new AccountService(storageFactory, organizations); } @Test @@ -77,6 +82,30 @@ class AccountServiceTest { assertEquals("ResourceNotFoundException", deleteError.getErrorCode()); } + @Test + void findsTheMemberAccountOfTheCallersOrganizationARequestNames() { + Organization organization = new Organization(); + organization.setId("o-abcdefghij"); + organization.setArn("arn:aws:organizations::" + ACCOUNT_ID + ":organization/o-abcdefghij"); + organization.setMasterAccountId(ACCOUNT_ID); + when(organizations.describeOrganization(ACCOUNT_ID)).thenReturn(organization); + when(organizations.describeAccount(ACCOUNT_ID, "999988887777")) + .thenThrow(new AwsException("AccountNotFoundException", "not a member", 400)); + + assertEquals(Optional.of("arn:aws:account::" + ACCOUNT_ID + ":account/o-abcdefghij/111122223333"), + service.find("accountInOrganization", List.of("111122223333"), "us-east-1")); + // An account the organization does not hold, and another type, find nothing. + assertEquals(Optional.empty(), service.find("accountInOrganization", List.of("999988887777"), "us-east-1")); + assertEquals(Optional.empty(), service.find("account", List.of("111122223333"), "us-east-1")); + } + + @Test + void findsNoMemberAccountForACallerInNoOrganization() { + when(organizations.describeOrganization(ACCOUNT_ID)) + .thenThrow(new AwsException("AWSOrganizationsNotInUseException", "no organization", 400)); + assertEquals(Optional.empty(), service.find("accountInOrganization", List.of("111122223333"), "us-east-1")); + } + private ObjectNode contactRequest() { ObjectNode request = mapper.createObjectNode(); request.put("AlternateContactType", "SECURITY"); diff --git a/src/test/java/io/floci/aws/services/iam/IamRestRouteEnforcementIntegrationTest.java b/src/test/java/io/floci/aws/services/iam/IamRestRouteEnforcementIntegrationTest.java index ba3d9eff66..b4c3ed7e88 100644 --- a/src/test/java/io/floci/aws/services/iam/IamRestRouteEnforcementIntegrationTest.java +++ b/src/test/java/io/floci/aws/services/iam/IamRestRouteEnforcementIntegrationTest.java @@ -3,13 +3,16 @@ package io.floci.aws.services.iam; import io.floci.aws.core.common.XmlParser; import io.floci.aws.testing.EnforcementFixtures; import io.floci.aws.testing.IamEnforcementProfile; +import io.floci.aws.testing.OrganizationsRequests; import io.floci.aws.testing.PartitionCleanup; +import io.floci.aws.testing.RestAssuredJsonUtils; import io.quarkus.test.common.http.TestHTTPResource; import io.quarkus.test.junit.QuarkusTest; import io.quarkus.test.junit.TestProfile; import io.restassured.response.Response; import io.restassured.response.ValidatableResponse; import io.restassured.specification.RequestSpecification; +import org.junit.jupiter.api.BeforeAll; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.RegisterExtension; @@ -17,8 +20,11 @@ import java.net.URI; import java.net.URLEncoder; import java.nio.charset.StandardCharsets; import java.util.HashMap; +import java.util.List; import java.util.Map; import java.util.UUID; +import java.util.function.Consumer; +import java.util.function.UnaryOperator; import static io.floci.aws.testing.EnforcementFixtures.auth; import static io.restassured.RestAssured.given; @@ -36,6 +42,8 @@ class IamRestRouteEnforcementIntegrationTest { private static final String ADMIN = "test"; private static final String ACCOUNT = "000000000000"; + /** The management account of an organization of this class's own, which no other test uses. */ + private static final String MANAGEMENT = "731000000154"; @TestHTTPResource("/") static URI baseUri; @@ -46,6 +54,11 @@ class IamRestRouteEnforcementIntegrationTest { /** Each user's access key ID, by user name. */ private final Map keys = new HashMap<>(); + @BeforeAll + static void configureRestAssured() { + RestAssuredJsonUtils.configureAwsContentTypes(); + } + @Test void apiGatewayManagementRoutesBeyondRestApisAreCheckedByMethod() { String user = user("route-apigateway"); @@ -821,6 +834,299 @@ class IamRestRouteEnforcementIntegrationTest { } } + @Test + void fisRamOamResourceExplorerAccountAndControlCatalogAreCheckedByTheirRoutes() { + String user = user("route-governance"); + + checkedAs(user, "account", "POST", "/getAlternateContact", "{\"AlternateContactType\":\"BILLING\"}", + "account:GetAlternateContact"); + checkedAs(user, "controlcatalog", "POST", "/list-controls", "{}", "controlcatalog:ListControls"); + checkedAs(user, "fis", "GET", "/experimentTemplates", null, "fis:ListExperimentTemplates"); + checkedAs(user, "oam", "POST", "/ListSinks", "{}", "oam:ListSinks"); + checkedAs(user, "ram", "POST", "/getresourceshares", "{\"resourceOwner\":\"SELF\"}", "ram:GetResourceShares"); + checkedAs(user, "resource-explorer-2", "POST", "/ListViews", "{}", "resource-explorer-2:ListViews"); + } + + @Test + void resourceExplorerRoutesItsFilterMovesOffSharedPathsAreChecked() { + String user = user("route-re2-moved"); + + checkedAs(user, "resource-explorer-2", "POST", "/ListIndexes", "{}", "resource-explorer-2:ListIndexes"); + // AWS authorizes ListResources as Search. + checkedAs(user, "resource-explorer-2", "POST", "/ListResources", "{}", "resource-explorer-2:Search"); + } + + @Test + void sharedTagRoutesAreCheckedForFisAndResourceExplorerOnBothPaths() { + String user = user("route-shared-tags"); + String template = encoded("arn:aws:fis:us-east-1:" + ACCOUNT + ":experiment-template/EXTabsent"); + String view = encoded("arn:aws:resource-explorer-2:us-east-1:" + ACCOUNT + ":view/absent/1"); + + checkedAs(user, "fis", "GET", "/tags/" + template, null, "fis:ListTagsForResource"); + policy(user, allow("sts:GetCallerIdentity", "*")); + checkedAs(user, "fis", "GET", "/tags?resourceArn=" + template, null, "fis:ListTagsForResource"); + checkedAs(user, "resource-explorer-2", "GET", "/tags/" + view, null, "resource-explorer-2:ListTagsForResource"); + policy(user, allow("sts:GetCallerIdentity", "*")); + checkedAs(user, "resource-explorer-2", "GET", "/tags?resourceArn=" + view, null, + "resource-explorer-2:ListTagsForResource"); + } + + @Test + void accountIsCheckedOnTheAccountARequestActsOn() { + String user = user("route-account"); + String own = "{\"AlternateContactType\":\"BILLING\"}"; + String member = "{\"AccountId\":\"111122223333\",\"AlternateContactType\":\"BILLING\"}"; + String action = "account:GetAlternateContact"; + + policy(user, allow(action, "arn:aws:account::" + ACCOUNT + ":account")); + request(user, "account", "POST", "/getAlternateContact", own).statusCode(404); + refused(request(user, "account", "POST", "/getAlternateContact", member), action); + + policy(user, allow(action, "arn:aws:account::*:account/o-*/111122223333")); + // Past the check: the caller is in no organization, which Account Management refuses itself. + request(user, "account", "POST", "/getAlternateContact", member) + .statusCode(403).body(containsString("The specified account")); + refused(request(user, "account", "POST", "/getAlternateContact", own), action); + } + + @Test + void accountIsCheckedOnTheMemberAccountOfTheCallersOrganization() { + OrganizationsRequests.request(MANAGEMENT, "CreateOrganization", "{\"FeatureSet\":\"ALL\"}") + .when().post("/").then().statusCode(200); + String organization = OrganizationsRequests.request(MANAGEMENT, "DescribeOrganization", "{}") + .when().post("/").then().statusCode(200).extract().path("Organization.Id"); + String member = OrganizationsRequests.request(MANAGEMENT, "CreateAccount", + "{\"Email\":\"route-contact@example.com\",\"AccountName\":\"RouteContact\"}") + .when().post("/").then().statusCode(200).extract().path("CreateAccountStatus.AccountId"); + OrganizationsRequests.request(MANAGEMENT, "EnableAWSServiceAccess", + "{\"ServicePrincipal\":\"account.amazonaws.com\"}") + .when().post("/").then().statusCode(200); + String userName = "route-account-member-" + suffix(); + String accessKeyId = EnforcementFixtures.createUser(cleanup, baseUri.getPort(), auth(MANAGEMENT, "iam"), + userName).accessKeyId(); + String action = "account:GetAlternateContact"; + String memberArn = "arn:aws:account::" + MANAGEMENT + ":account/" + organization + "/" + member; + String body = "{\"AccountId\":\"" + member + "\",\"AlternateContactType\":\"BILLING\"}"; + Consumer policy = statements -> EnforcementFixtures.putUserPolicy(baseUri.getPort(), + auth(MANAGEMENT, "iam"), userName, "p", + "{\"Version\":\"2012-10-17\",\"Statement\":[" + statements + "]}"); + + // The member account's own ARN, its organization and management account the ones the caller's organization has. + policy.accept(allow(action, memberArn)); + given().header("Authorization", auth(accessKeyId, "account")).contentType("application/json").body(body) + .post("/getAlternateContact").then().statusCode(404); + policy.accept(allow(action, "arn:aws:account::" + MANAGEMENT + ":account/o-other00000/" + member)); + refused(given().header("Authorization", auth(accessKeyId, "account")).contentType("application/json") + .body(body).post("/getAlternateContact").then(), action); + policy.accept(allow(action, "*") + "," + deny(action, memberArn)); + refused(given().header("Authorization", auth(accessKeyId, "account")).contentType("application/json") + .body(body).post("/getAlternateContact").then(), action); + } + + @Test + void controlCatalogIsCheckedOnTheControlItNames() { + String user = user("route-control"); + String control = "arn:aws:controlcatalog:::control/" + "a".repeat(34); + String other = "arn:aws:controlcatalog:::control/" + "b".repeat(34); + + policy(user, allow("controlcatalog:GetControl", control)); + request(user, "controlcatalog", "POST", "/get-control", "{\"ControlArn\":\"" + control + "\"}").statusCode(404); + refused(request(user, "controlcatalog", "POST", "/get-control", "{\"ControlArn\":\"" + other + "\"}"), + "controlcatalog:GetControl"); + } + + @Test + void fisIsCheckedOnTheTemplateItsPathNames() { + String template = "{\"clientToken\":\"" + suffix() + "\",\"description\":\"d\",\"roleArn\":\"arn:aws:iam::" + + ACCOUNT + ":role/fis\",\"stopConditions\":[{\"source\":\"none\"}],\"targets\":{},\"actions\":" + + "{\"wait\":{\"actionId\":\"aws:fis:wait\",\"parameters\":{\"duration\":\"PT1M\"}}}}"; + String id = adminOf("fis").body(template).post("/experimentTemplates") + .then().statusCode(200).extract().path("experimentTemplate.id"); + cleanup.register(() -> adminOf("fis").delete("/experimentTemplates/" + id)); + String arn = "arn:aws:fis:us-east-1:" + ACCOUNT + ":experiment-template/" + id; + String user = user("route-fis"); + + policy(user, allow("fis:GetExperimentTemplate", arn)); + request(user, "fis", "GET", "/experimentTemplates/" + id, null) + .statusCode(200).body("experimentTemplate.arn", equalTo(arn)); + refused(request(user, "fis", "GET", "/experimentTemplates/EXTother", null), "fis:GetExperimentTemplate"); + } + + @Test + void fisSafetyLeverUpdateIsCheckedOnTheLever() { + String user = user("route-lever"); + String action = "fis:UpdateSafetyLeverState"; + String body = "{\"state\":{\"status\":\"disengaged\",\"reason\":\"route test\"}}"; + + policy(user, allow(action, "arn:aws:fis:us-east-1:" + ACCOUNT + ":safety-lever/default")); + request(user, "fis", "PATCH", "/safetyLevers/default/state", body).statusCode(200); + policy(user, allow(action, "arn:aws:fis:us-east-1:" + ACCOUNT + ":safety-lever/other")); + refused(request(user, "fis", "PATCH", "/safetyLevers/default/state", body), action); + } + + @Test + void oamIsCheckedOnTheArnItsIdentifiersHold() { + String sink = adminOf("oam").body("{\"Name\":\"route-sink-" + suffix() + "\"}").post("/CreateSink") + .then().statusCode(200).extract().path("Arn"); + cleanup.register(() -> adminOf("oam").body("{\"Identifier\":\"" + sink + "\"}").post("/DeleteSink")); + String link = "arn:aws:oam:us-east-1:" + ACCOUNT + ":link/absent"; + String other = "arn:aws:oam:us-east-1:" + ACCOUNT + ":sink/other"; + String user = user("route-oam"); + + policy(user, allow("oam:GetSink", sink)); + request(user, "oam", "POST", "/GetSink", "{\"Identifier\":\"" + sink + "\"}") + .statusCode(200).body("Arn", equalTo(sink)); + refused(request(user, "oam", "POST", "/GetSink", "{\"Identifier\":\"" + other + "\"}"), "oam:GetSink"); + + policy(user, allow("oam:GetSinkPolicy", sink)); + request(user, "oam", "POST", "/GetSinkPolicy", "{\"SinkIdentifier\":\"" + sink + "\"}").statusCode(not(403)); + refused(request(user, "oam", "POST", "/GetSinkPolicy", "{\"SinkIdentifier\":\"" + other + "\"}"), + "oam:GetSinkPolicy"); + + policy(user, allow("oam:GetLink", link)); + request(user, "oam", "POST", "/GetLink", "{\"Identifier\":\"" + link + "\"}").statusCode(404); + refused(request(user, "oam", "POST", "/GetLink", "{\"Identifier\":\"" + link + "x\"}"), "oam:GetLink"); + } + + @Test + void oamTagRoutesAreCheckedOnTheArnWhetherItsSlashIsEncodedOrNot() { + String sink = "arn:aws:oam:us-east-1:" + ACCOUNT + ":sink/allowed"; + String other = "arn:aws:oam:us-east-1:" + ACCOUNT + ":sink/other"; + String user = user("route-oam-tags"); + String tags = "{\"Tags\":{\"team\":\"red\"}}"; + + // The tag routes take the ARN as the rest of the path, so a sink's slash may come unencoded too. + policy(user, allow("oam:TagResource", sink) + "," + allow("oam:ListTagsForResource", sink) + "," + + allow("oam:UntagResource", sink)); + for (String arn : List.of(sink, encoded(sink))) { + request(user, "oam", "PUT", "/tags/" + arn, tags).statusCode(not(403)); + request(user, "oam", "GET", "/tags/" + arn, null).statusCode(not(403)); + request(user, "oam", "DELETE", "/tags/" + arn + "?tagKeys=team", null).statusCode(not(403)); + } + for (String arn : List.of(other, encoded(other))) { + refused(request(user, "oam", "PUT", "/tags/" + arn, tags), "oam:TagResource"); + refused(request(user, "oam", "GET", "/tags/" + arn, null), "oam:ListTagsForResource"); + refused(request(user, "oam", "DELETE", "/tags/" + arn + "?tagKeys=team", null), "oam:UntagResource"); + } + } + + @Test + void ramIsCheckedOnTheResourceShareItNamesInItsBodyAndQuery() { + String share = adminOf("ram").body("{\"name\":\"route-share-" + suffix() + "\"}").post("/createresourceshare") + .then().statusCode(200).extract().path("resourceShare.resourceShareArn"); + String other = "arn:aws:ram:us-east-1:" + ACCOUNT + ":resource-share/other"; + String user = user("route-ram"); + + policy(user, allow("ram:UpdateResourceShare", share)); + request(user, "ram", "POST", "/updateresourceshare", + "{\"resourceShareArn\":\"" + share + "\",\"name\":\"route-renamed-" + suffix() + "\"}").statusCode(200); + refused(request(user, "ram", "POST", "/updateresourceshare", "{\"resourceShareArn\":\"" + other + "\"}"), + "ram:UpdateResourceShare"); + + policy(user, allow("ram:DeleteResourceShare", share)); + refused(request(user, "ram", "DELETE", "/deleteresourceshare?resourceShareArn=" + encoded(other), null), + "ram:DeleteResourceShare"); + request(user, "ram", "DELETE", "/deleteresourceshare?resourceShareArn=" + encoded(share), null).statusCode(200); + } + + @Test + void ramCreateIsCheckedOnTheShareItMakesAndThePermissionsItNames() { + String user = user("route-ram-create"); + String action = "ram:CreateResourceShare"; + String shares = "arn:aws:ram:us-east-1:" + ACCOUNT + ":resource-share/*"; + String permission = "arn:aws:ram::aws:permission/AWSRAMDefaultPermissionSubnet"; + String named = "{\"permissionArns\":[\"" + permission + "\"]}"; + + policy(user, allow(action, shares)); + madeShare(request(user, "ram", "POST", "/createresourceshare", "{}")); + refused(request(user, "ram", "POST", "/createresourceshare", named), action); + + policy(user, allow(action, shares) + "," + allow(action, permission)); + madeShare(request(user, "ram", "POST", "/createresourceshare", named)); + + policy(user, allow(action, permission)); + refused(request(user, "ram", "POST", "/createresourceshare", named), action); + + // Its tags go on the share it makes. + policy(user, allow(action, shares) + "," + allow("ram:TagResource", shares)); + madeShare(request(user, "ram", "POST", "/createresourceshare", + "{\"tags\":[{\"key\":\"team\",\"value\":\"red\"}]}")); + } + + @Test + void resourceExplorerIsCheckedOnTheViewItsMembersName() { + String service = "resource-explorer-2"; + String view = adminOf(service).body("{\"ViewName\":\"route-view-" + suffix() + "\"}").post("/CreateView") + .then().statusCode(200).extract().path("View.ViewArn"); + cleanup.register(() -> adminOf(service).body("{\"ViewArn\":\"" + view + "\"}").post("/DeleteView")); + String other = "arn:aws:resource-explorer-2:us-east-1:" + ACCOUNT + ":view/other/1"; + String user = user("route-re2-view"); + + policy(user, allow("resource-explorer-2:GetView", view)); + request(user, service, "POST", "/GetView", "{\"ViewArn\":\"" + view + "\"}") + .statusCode(200).body("View.ViewArn", equalTo(view)); + refused(request(user, service, "POST", "/GetView", "{\"ViewArn\":\"" + other + "\"}"), + "resource-explorer-2:GetView"); + } + + @Test + void createsAreCheckedWithTheTagsTheyCarry() { + // These three name too little to be created, so past the check the service refuses them; RAM makes the share. + Consumer refusedByTheService = response -> response.statusCode(400); + createIsCheckedWithItsTags("fis", "/experimentTemplates", "fis:CreateExperimentTemplate", "fis:TagResource", + team -> "{\"tags\":{\"team\":\"" + team + "\"}}", refusedByTheService); + createIsCheckedWithItsTags("oam", "/CreateSink", "oam:CreateSink", "oam:TagResource", + team -> "{\"Tags\":{\"team\":\"" + team + "\"}}", refusedByTheService); + createIsCheckedWithItsTags("resource-explorer-2", "/CreateView", "resource-explorer-2:CreateView", + "resource-explorer-2:TagResource", team -> "{\"Tags\":{\"team\":\"" + team + "\"}}", + refusedByTheService); + createIsCheckedWithItsTags("ram", "/createresourceshare", "ram:CreateResourceShare", "ram:TagResource", + team -> "{\"tags\":[{\"key\":\"team\",\"value\":\"" + team + "\"}]}", this::madeShare); + } + + /** + * An untagged request needs only the create, one with tags the tagging action too, and a deny on a tag refuses + * that tag and no other. {@code passed} takes a response that got past the check. + */ + private void createIsCheckedWithItsTags(String service, String path, String action, String tagging, + UnaryOperator body, Consumer passed) { + String user = user("route-tags-" + service); + + policy(user, allow(action, "*")); + passed.accept(request(user, service, "POST", path, "{}")); + refused(request(user, service, "POST", path, body.apply("red")), tagging); + + policy(user, allow(action, "*") + "," + allow(tagging, "*") + ",{\"Effect\":\"Deny\",\"Action\":\"" + action + + "\",\"Resource\":\"*\",\"Condition\":{\"StringEquals\":{\"aws:RequestTag/team\":\"red\"}}}"); + passed.accept(request(user, service, "POST", path, body.apply("blue"))); + refused(request(user, service, "POST", path, body.apply("red")), action); + } + + /** A create that got past the check and made a resource share, removed afterwards. */ + private void madeShare(ValidatableResponse response) { + String share = response.statusCode(200).extract().path("resourceShare.resourceShareArn"); + cleanup.register(() -> adminOf("ram").queryParam("resourceShareArn", share).delete("/deleteresourceshare")); + } + + /** Refuses a request until the caller holds the action, then lets it past the check. */ + private void checkedAs(String user, String service, String method, String path, String body, String action) { + refused(request(user, service, method, path, body), action); + policy(user, allow(action, "*")); + request(user, service, method, path, body).statusCode(not(403)); + } + + private ValidatableResponse request(String user, String service, String method, String path, String body) { + RequestSpecification request = as(user, service).urlEncodingEnabled(false); + if (body != null) { + request.body(body); + } + return request.request(method, path).then(); + } + + private static RequestSpecification adminOf(String service) { + return given().header("Authorization", auth(ADMIN, service)).contentType("application/json"); + } + /** Creates a MicroVM image as the account's admin, removed afterwards, and returns its ARN. */ private String microvmImage(String name) { admin().body(""" @@ -842,7 +1148,7 @@ class IamRestRouteEnforcementIntegrationTest { } private static RequestSpecification admin() { - return given().header("Authorization", auth(ADMIN, "lambda")).contentType("application/json"); + return adminOf("lambda"); } /** Macie's {@code CreateMember} for {@code accountId}, with a {@code team} tag unless {@code team} is null. */ diff --git a/src/test/resources/partition/smoke-exemptions.tsv b/src/test/resources/partition/smoke-exemptions.tsv index d822f27c9a..afdbf655a5 100644 --- a/src/test/resources/partition/smoke-exemptions.tsv +++ b/src/test/resources/partition/smoke-exemptions.tsv @@ -2,6 +2,7 @@ # packagereason. PartitionSmokeInventoryTest fails on a minting package missing from both, # and on a row whose package no longer mints or is now covered. Shrink this file, never grow it # without a reason. +account the one ARN it builds is the member account an IAM check names, in the partition of the caller's organization's own ARN, and it never reaches the wire, so a case has nothing to assert appintegrations no non-commercial partition publishes the service, so a case would be skipped in every partition cloudformation covered by PartitionArnMintingIntegrationTest (all partitions) cloudhsmv2 the only ARN on the wire is the automatic backup's, and a backup is never removed (DeleteBackup only marks it), so a case would leak state into the shared emulator diff --git a/tools/aws/regen_iam_request_resources.py b/tools/aws/regen_iam_request_resources.py index 285be97d40..75ef108433 100644 --- a/tools/aws/regen_iam_request_resources.py +++ b/tools/aws/regen_iam_request_resources.py @@ -170,13 +170,14 @@ OUTPUT = REPO_ROOT / "src/main/resources/aws/iam-request-resources.json" # The namespaces read, in batches: each moves here from NOT_COVERED with the tests that show its ARNs # are the ones its handlers mint. -NAMESPACES = ("access-analyzer", "acm", "application-autoscaling", "athena", "bcm-data-exports", - "bcm-pricing-calculator", "budgets", "ce", "cloudfront", "cloudfront-keyvaluestore", "cloudtrail", "codebuild", "codepipeline", "cognito-identity", - "cognito-idp", "controltower", "cur", "datasync", "ec2", "ecr", "elasticloadbalancing", "elasticmapreduce", "emr-serverless", "es", "events", - "firehose", "globalaccelerator", "inspector2", "kinesisanalytics", "macie2", "payment-cryptography", - "quicksight", "redshift", "redshift-data", "redshift-serverless", "rekognition", "servicediscovery", - "servicequotas", "sso", "states", "textract", "timestream-influxdb", "translate", "signer", "xray", - "securityhub", "guardduty") +NAMESPACES = ("access-analyzer", "account", "acm", "application-autoscaling", "athena", "bcm-data-exports", + "bcm-pricing-calculator", "budgets", "ce", "cloudfront", "cloudfront-keyvaluestore", "cloudtrail", + "codebuild", "codepipeline", "cognito-identity", "cognito-idp", "controlcatalog", "controltower", "cur", + "datasync", "ec2", "ecr", "elasticloadbalancing", "elasticmapreduce", "emr-serverless", "es", "events", + "firehose", "fis", "globalaccelerator", "inspector2", "kinesisanalytics", "macie2", "oam", + "payment-cryptography", "quicksight", "ram", "redshift", "redshift-data", "redshift-serverless", + "rekognition", "resource-explorer-2", "servicediscovery", "servicequotas", "sso", "states", "textract", + "timestream-influxdb", "translate", "signer", "xray", "securityhub", "guardduty") # SDK clients the reference lists for a namespace's operations whose requests Floci does not serve, and why: their # members are not read. @@ -217,7 +218,6 @@ _REST = ("REST: its requests name their resources in the path, which RequestReso # Namespaces Floci serves whose resources are not read yet, and why. NOT_COVERED: dict[str, str] = { - "account": _REST, "airflow": _REST, "app-integrations": _REST, "appconfig": _REST, @@ -245,7 +245,6 @@ NOT_COVERED: dict[str, str] = { "comprehend": _LATER, "config": _LATER, "connect": _REST, - "controlcatalog": _REST, "detective": _REST, "dlm": _REST, "dms": _LATER, @@ -257,7 +256,6 @@ NOT_COVERED: dict[str, str] = { "or EnvironmentId alone, so reading it needs the stored environment those find", "elasticfilesystem": _REST, "execute-api": _REST, - "fis": _REST, "glue": _LATER, "identitystore": _LATER, "iot": _LATER, @@ -266,12 +264,9 @@ NOT_COVERED: dict[str, str] = { "memorydb": _LATER, "mq": _REST, "network-firewall": _LATER, - "oam": _REST, "organizations": _LATER, - "ram": _REST, "rds": _LATER, "rds-data": _REST, - "resource-explorer-2": _REST, "route53": _REST, "route53resolver": _LATER, "rum": _REST, @@ -754,6 +749,43 @@ def with_absent_arn(resources: list[dict], formats: dict[str, str], optional: se return resources + added +def with_absent_account(resources: list[dict], formats: dict[str, str], accounts: list[str], + optional: set[str]) -> list[dict]: + """The resources, a type whose format has no variable of its own applying only to a request that leaves out its + one account id member, when that member is optional and fills a variable of another type: a request naming an + account acts on that resource, and one naming none on the caller's own account. Account Management's `AccountId` + names a member account of the caller's organization (`accountInOrganization`), and a request without it acts on + the caller's `account`.""" + if len(accounts) != 1 or accounts[0] not in optional: + return resources + member = accounts[0] + if not any(member in {path.removesuffix("[]") for path in resource.get("fill", {}).values()} + for resource in resources): + return resources + return [dict(resource, when={member: [None]}) if resource.get("fill") == {} and "when" not in resource + and not [v for v in VARIABLE_RE.findall(formats.get(resource["type"], "")) if v not in KNOWN_VARIABLES] + else resource for resource in resources] + + +def path_labels(models: dict[str, dict], operation: str) -> dict[str, str]: + """The bare members (`BARE`) the operation's REST request carries as a path label after a segment naming + something, each with that segment stemmed: FIS's `id` in `/safetyLevers/{id}/state` is `safetylever`.""" + found: dict[str, str] = {} + for model in models.values(): + spec = model["operations"].get(operation) + if spec is None or "input" not in spec or "http" not in spec: + continue + segments = spec["http"]["requestUri"].split("?", 1)[0].strip("/").split("/") + labelled = {match.group(1): stem(segments[index - 1]) for index, segment in enumerate(segments) + if index and "{" not in segments[index - 1] + and (match := re.fullmatch(r"\{(\w+)\+?}", segment))} + for name, member in model["shapes"][spec["input"]["shape"]].get("members", {}).items(): + label = member.get("locationName", name) + if member.get("location") == "uri" and name.lower() in BARE and label in labelled: + found[name] = labelled[label] + return found + + def optional_members(models: dict[str, dict], operation: str) -> set[str]: """The top-level members of the operation's request that hold a string and that it may leave out.""" found: set[str] = set() @@ -1004,11 +1036,13 @@ def with_parent_ids(resources: list[dict], formats: dict[str, str], types: list[ def with_account(resources: list[dict], formats: dict[str, str], accounts: list[str]) -> list[dict]: """The resources, each a type named by its variables taking its account from the request's one account id - member, when it has exactly one and the type's format has an account.""" + member, when it has exactly one and the type's format has an account, unless the resource applies only when that + member is absent.""" if len(accounts) != 1: return resources return [dict(resource, account=accounts[0]) if "fill" in resource - and "${Account}" in formats.get(resource["type"], "") else resource for resource in resources] + and "${Account}" in formats.get(resource["type"], "") + and resource.get("when", {}).get(accounts[0]) != [None] else resource for resource in resources] def _kinds(resource: dict) -> list[str]: @@ -1036,8 +1070,9 @@ def compatible(member: str, variable: str) -> bool: def resources_for(operation: str, types: list[str], formats: dict[str, str], members: dict[str, str], - arn_members: set[str] | None = None) -> list[dict]: - """The resources the rule finds the operation's request naming, as vendored entries.""" + arn_members: set[str] | None = None, labels: dict[str, str] | None = None) -> list[dict]: + """The resources the rule finds the operation's request naming, as vendored entries. `labels` gives the path + segment before each bare member a REST request carries as a path label, stemmed (`path_labels`).""" name = operation.split(":", 1)[1] created = stem(CREATING_RE.sub("", name)) if CREATING_RE.match(name) else None subject = stem(SUBJECT_RE.sub("", name)) @@ -1060,18 +1095,30 @@ def resources_for(operation: str, types: list[str], formats: dict[str, str], mem or (stem(member) == kind_stem if member in (arn_members or set()) else related(stem(member), kind_stem) or kind_stem.startswith(stem(member))))] variables = [v for v in VARIABLE_RE.findall(formats[kind]) if v not in KNOWN_VARIABLES] + # A bare `Name` or `Id` names the type the operation is about, or the one the path segment before it + # names: `UpdateSafetyLeverState`'s `id`, in `/safetyLevers/{id}/state`, is the lever's. + bare = set() if held else set(names) if related(subject, kind_stem) \ + else {member for member, segment in (labels or {}).items() if related(segment, kind_stem)} + # A member fills the resource's own variables before the account its ARN is in, which a request gives + # through an account member alone: Account Management's `AccountId` is the member account an + # `account/o-${OrganizationId}/${MemberAccountId}` names, not its management account. + slot = ACCOUNT_SLOT_RE.match(formats[kind]) + in_slot = slot.group(1) if slot else None fill: dict[str, str] = {} - for variable in sorted(variables, key=lambda v: (kind_of(v) == "", v)): + for variable in sorted(variables, key=lambda v: (v == in_slot, kind_of(v) == "", v)): choice = _filling(variable, kind_stem, len(variables), {m: p for m, p in names.items() if m not in fill.values()}, - bare=not held and related(subject, kind_stem), - qualified=namespace_of(operation) in QUALIFIED_MEMBERS) + bare=bare, qualified=namespace_of(operation) in QUALIFIED_MEMBERS) if choice is not None: fill[variable] = choice used[kind] = choice fill = {variable: names[member] for variable, member in fill.items()} if len([path for path in fill.values() if path.endswith("[]")]) > 1: fill = {variable: path for variable, path in fill.items() if not path.endswith("[]")} - if fill or (not held and (not variables or (created is not None and related(created, kind_stem)))): + # A create makes its own type, so a member holding whatever the action acts on does not hold that one: + # `CreateResourceShare`'s `resourceArns` are what the share it makes holds. + creates_it = created is not None and related(created, kind_stem) + holding = [member for member in held if not (creates_it and stem(member) in ("", "resource"))] + if fill or (not holding and (not variables or creates_it)): filled[kind] = fill complete[kind] = len(fill) == len(variables) # Types named only through the same members are alternatives the request picks one of: the one it names in @@ -1091,6 +1138,8 @@ def resources_for(operation: str, types: list[str], formats: dict[str, str], mem RESOURCE_PART_RE = re.compile(r"^arn:\$\{Partition}:[^:]*:[^:]*:[^:]*:([A-Za-z][A-Za-z0-9-]*)(.*)$") +# An ARN format whose account is a variable of its own, captured: `arn:${Partition}:account::${ManagementAccountId}:`. +ACCOUNT_SLOT_RE = re.compile(r"^arn:\$\{Partition}:[^:]*:[^:]*:\$\{(\w+)}:") def with_made(resources: list[dict], operation: str, formats: dict[str, str]) -> list[dict]: @@ -1156,18 +1205,18 @@ def by_members_key_is_empty(kinds: list[str], filled: dict[str, dict[str, str]]) return all(not filled[kind] for kind in kinds) -def _filling(variable: str, kind_stem: str, variables: int, names: dict[str, str], bare: bool, +def _filling(variable: str, kind_stem: str, variables: int, names: dict[str, str], bare: set[str], qualified: bool = False) -> str | None: """The member that fills the variable: one of a compatible kind whose stem relates to the variable's, - or, for the variable named after the type or a type's only one, a member named after the type, or, - when `bare`, a bare `Name` or `Id`, of a compatible kind; the closest of them, and a string before a - list.""" + or, for the variable named after the type or a type's only one, a member named after the type, or a + bare `Name` or `Id` among those `bare` gives, of a compatible kind; the closest of them, and a string + before a list.""" variable_stem = stem(variable) candidates = [member for member in names if stem(member) and related(stem(member), variable_stem) and compatible(member, variable)] if not candidates and (related(variable_stem, kind_stem) or variables == 1): candidates = [member for member in names if compatible(member, variable) - and ((bare and member.lower() in BARE) + and ((member in bare and member.lower() in BARE) or (stem(member) and (related(stem(member), kind_stem) or (qualified and names_type(member, kind_stem)))))] if not candidates: @@ -1266,11 +1315,16 @@ def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: d raise ValueError(f"CORRECTIONS serves {operation} on {sorted(unknown)}, no endpoint prefix of the clients " f"it reads ({sorted(endpoints)})") else: - resources = with_through(with_found(with_parent_ids(resources_for(operation, types, formats, members, arn_members), + labels = path_labels(models, operation.split(":", 1)[1]) + resources = with_through(with_found(with_parent_ids(resources_for(operation, types, formats, members, arn_members, + labels), formats, types, members), namespace_of(operation), types, members), namespace_of(operation), types, members) - resources = with_absent_arn(resources, formats, optional_members(models, operation.split(":", 1)[1])) + optional = optional_members(models, operation.split(":", 1)[1]) + resources = with_absent_arn(resources, formats, optional) + resources = with_absent_account(resources, formats, account_members(models, operation.split(":", 1)[1]), + optional) resources = with_account(resources, formats, account_members(models, operation.split(":", 1)[1])) resources = with_arn_of(resources, formats, name_or_arn_members(models, operation.split(":", 1)[1])) resources = with_made(resources, operation, formats) diff --git a/tools/aws/regen_iam_tag_on_create.py b/tools/aws/regen_iam_tag_on_create.py index 708421468f..2440aa792d 100644 --- a/tools/aws/regen_iam_tag_on_create.py +++ b/tools/aws/regen_iam_tag_on_create.py @@ -109,12 +109,13 @@ NAMESPACES = ( "bcm-pricing-calculator", "budgets", "ce", "cloudformation", "cloudhsm", "cloudtrail", "cloudwatch", "codedeploy", "codepipeline", "cognito-identity", "cognito-idp", "comprehend", "config", "controltower", "cur", "datasync", "dms", "dsql", "dynamodb", "ec2", "ecr", "ecs", "eks", "elasticache", "elasticloadbalancing", - "elasticmapreduce", "emr-serverless", "es", "events", "firehose", "globalaccelerator", "glue", "guardduty", "iam", "kinesis", - "kinesisanalytics", "kms", "lambda", "lightsail", "logs", "macie2", "memorydb", "network-firewall", - "organizations", "payment-cryptography", "pipes", "rds", "redshift", "redshift-serverless", "rekognition", - "resource-groups", "route53resolver", "sagemaker", "scheduler", "secretsmanager", "securityhub", - "servicediscovery", "ses", "signer", "sns", "sqs", "ssm", "sso", "states", "sts", "swf", "textract", - "timestream-influxdb", "transcribe", "transfer", "translate", "wafv2", "xray", + "elasticmapreduce", "emr-serverless", "es", "events", "firehose", "fis", "globalaccelerator", "glue", + "guardduty", "iam", "kinesis", "kinesisanalytics", "kms", "lambda", "lightsail", "logs", "macie2", "memorydb", + "network-firewall", "oam", "organizations", "payment-cryptography", "pipes", "ram", "rds", "redshift", + "redshift-serverless", "rekognition", "resource-explorer-2", "resource-groups", "route53resolver", "sagemaker", + "scheduler", "secretsmanager", "securityhub", "servicediscovery", "ses", "signer", "sns", "sqs", "ssm", "sso", + "states", "sts", "swf", "textract", "timestream-influxdb", "transcribe", "transfer", "translate", "wafv2", + "xray", ) _NO_ROUTES = "REST routes no rule maps yet" @@ -127,12 +128,11 @@ NOT_COVERED = { "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": _NO_ROUTES, "connect": _NO_ROUTES, "detective": _NO_ROUTES, "dlm": _NO_ROUTES, - "elasticfilesystem": _NO_ROUTES, "fis": _NO_ROUTES, + "elasticfilesystem": _NO_ROUTES, "inspector2": _NO_ROUTES, "iot": _NO_ROUTES, "kafka": _NO_ROUTES, - "mq": _NO_ROUTES, "oam": _NO_ROUTES, + "mq": _NO_ROUTES, "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", - "ram": _NO_ROUTES, - "resource-explorer-2": _NO_ROUTES, "rum": _NO_ROUTES, "s3tables": _NO_ROUTES, + "rum": _NO_ROUTES, "s3tables": _NO_ROUTES, "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet", } diff --git a/tools/aws/regen_rest_routes.py b/tools/aws/regen_rest_routes.py index aa258f1e63..ddf38d82a6 100644 --- a/tools/aws/regen_rest_routes.py +++ b/tools/aws/regen_rest_routes.py @@ -49,27 +49,33 @@ HAND_ROUTED: dict[str, str] = { # botocore model -> the credential scope Floci authorizes its requests under. MODELS: dict[str, str] = { "accessanalyzer": "access-analyzer", + "account": "account", "apigateway": "apigateway", "apigatewayv2": "apigateway", "cloudfront": "cloudfront", "cloudfront-keyvaluestore": "cloudfront-keyvaluestore", + "controlcatalog": "controlcatalog", "controltower": "controltower", "dsql": "dsql", "eks": "eks", "emr-serverless": "emr-serverless", "guardduty": "guardduty", "es": "es", + "fis": "fis", "inspector2": "inspector2", "lakeformation": "lakeformation", "lambda": "lambda", "lambda-core": "lambda", "lambda-microvms": "lambda", "macie2": "macie2", + "oam": "oam", "opensearch": "es", # The data plane is signed for the service, which is one scope for both of its planes. "payment-cryptography-data": "payment-cryptography", "pipes": "pipes", "quicksight": "quicksight", + "ram": "ram", + "resource-explorer-2": "resource-explorer-2", "s3": "s3", "s3control": "s3", "scheduler": "scheduler", @@ -86,15 +92,19 @@ MODELS: dict[str, str] = { SHARED_ROUTES: dict[str, frozenset[str]] = { "apigateway": frozenset({"TagResource", "UntagResource", "GetTags"}), "controltower": frozenset({"TagResource", "UntagResource", "ListTagsForResource"}), + "fis": frozenset({"TagResource", "UntagResource", "ListTagsForResource"}), + "resource-explorer-2": frozenset({"TagResource", "UntagResource", "ListTagsForResource"}), "signer": frozenset({"TagResource", "UntagResource", "ListTagsForResource"}), } # Operations whose ARN label a model gives one segment, where the controller serving them lets it span # the slashes the ARN holds: a request may send the ARN unencoded and still reach the operation, so its # route has to take that request too or it would go unchecked. API Gateway v2's tag routes are -# `/v2/tags/{resourceArn: .+}` in its controller. +# `/v2/tags/{resourceArn: .+}` in its controller, and OAM's `/tags/{resourceArn:.+}` in its own and in the +# shared tags controller, which takes every `/tags/{arn}` request. ARN_SPANNING_ROUTES: dict[str, frozenset[str]] = { "apigatewayv2": frozenset({"TagResource", "UntagResource", "GetTags"}), + "oam": frozenset({"TagResource", "UntagResource", "ListTagsForResource"}), } diff --git a/tools/aws/test_regen_iam_request_resources.py b/tools/aws/test_regen_iam_request_resources.py index 754c780c24..fcbee6af56 100644 --- a/tools/aws/test_regen_iam_request_resources.py +++ b/tools/aws/test_regen_iam_request_resources.py @@ -62,6 +62,17 @@ def test_a_fixed_format_and_a_creates_own_type_are_named_without_members(): {"type": "pool", "fill": {}}] +def test_a_create_makes_its_own_type_whatever_a_member_holding_the_resources_it_acts_on_names(): + # CreateResourceShare's resourceArns are what the share it makes holds, never the share itself. + assert r.resources_for("svc:CreatePool", ["pool", "thing"], FORMATS, members("resourceArns[]")) == [ + {"types": ["pool", "thing"], "arn": "resourceArns[]"}, {"type": "pool", "fill": {}}] + # A member named after the type it makes still holds it, and a non-create makes nothing. + assert r.resources_for("svc:CreatePool", ["pool"], FORMATS, members("PoolArn")) == [ + {"types": ["pool"], "arn": "PoolArn"}] + assert r.resources_for("svc:UpdatePool", ["pool"], FORMATS, members("resourceArns[]")) == [ + {"types": ["pool"], "arn": "resourceArns[]"}] + + def test_an_optional_arn_member_of_a_type_without_variables_names_it_when_absent(): named = [{"types": ["catalog", "thing"], "arn": "CatalogArn"}] assert r.with_absent_arn(named, FORMATS, {"CatalogArn"}) == named + [ @@ -209,6 +220,34 @@ def test_a_bare_id_names_the_resource_whose_config_an_operation_reads(): {"type": "distribution", "fill": {"DistributionId": "Id"}}] +def lever_model(request_uri: str, label: str = "id") -> dict: + """A rest-json model whose UpdateSafetyLeverState takes `id` from the path label given, and a `state`.""" + return {"metadata": {"protocol": "rest-json"}, + "operations": {"UpdateSafetyLeverState": {"http": {"method": "PATCH", "requestUri": request_uri}, + "input": {"shape": "In"}}}, + "shapes": {"In": {"type": "structure", "members": { + "id": {"shape": "String", "location": "uri", "locationName": label}, + "state": {"shape": "String"}}}, + "String": {"type": "string"}}} + + +def test_a_bare_path_label_names_the_type_the_segment_before_it_names(): + formats = {"safety-lever": "arn:${Partition}:fis:${Region}:${Account}:safety-lever/${Id}", + "experiment": "arn:${Partition}:fis:${Region}:${Account}:experiment/${Id}"} + labels = r.path_labels({"fis": lever_model("/safetyLevers/{id}/state")}, "UpdateSafetyLeverState") + assert labels == {"id": "safetylever"} + # The lever's state is the lever's: its path says so where the operation's name goes on past the type. + assert r.resources_for("fis:UpdateSafetyLeverState", ["safety-lever"], formats, members("id"), labels=labels) == [ + {"type": "safety-lever", "fill": {"Id": "id"}}] + assert r.resources_for("fis:UpdateSafetyLeverState", ["safety-lever"], formats, members("id")) == [] + # A segment naming another type, a label after another label and a member that is no bare name name nothing. + assert r.resources_for("fis:UpdateSafetyLeverState", ["experiment"], formats, members("id"), labels=labels) == [] + assert r.path_labels({"fis": lever_model("/{other}/{id}/state")}, "UpdateSafetyLeverState") == {} + named = lever_model("/safetyLevers/{leverId}", label="leverId") + named["shapes"]["In"]["members"]["leverId"] = named["shapes"]["In"]["members"].pop("id") + assert r.path_labels({"fis": named}, "UpdateSafetyLeverState") == {} + + def test_a_resource_member_taking_only_an_arn_holds_the_resource_the_action_acts_on(): model = { "metadata": {"protocol": "rest-xml", "endpointPrefix": "svc"}, @@ -300,6 +339,34 @@ def test_a_member_holding_an_account_id_gives_the_account_of_the_types_named_by_ assert r.with_account([{"type": "thing", "fill": {}}], FORMATS, ["a", "b"]) == [{"type": "thing", "fill": {}}] +ACCOUNTS = {"account": "arn:${Partition}:account::${Account}:account", + "accountInOrganization": + "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"} + + +def test_an_account_member_names_the_account_an_arn_names_before_the_one_it_is_in(): + # AccountId is the member account; the management account, the ARN's own, and the organization stay open. + assert r.resources_for("account:GetAlternateContact", ["accountInOrganization"], ACCOUNTS, + members("AccountId")) == [ + {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}] + + +def test_an_account_alone_applies_to_a_request_leaving_out_the_optional_account_member_naming_another(): + named = r.resources_for("account:GetAlternateContact", ["account", "accountInOrganization"], ACCOUNTS, + members("AccountId")) + assert named == [{"type": "account", "fill": {}}, + {"type": "accountInOrganization", "fill": {"MemberAccountId": "AccountId"}}] + absent = r.with_absent_account(named, ACCOUNTS, ["AccountId"], {"AccountId"}) + assert absent == [{"type": "account", "fill": {}, "when": {"AccountId": [None]}}, named[1]] + # The account member then gives the account of neither: the caller's own, or the one the member fills. + assert r.with_account(absent, ACCOUNTS, ["AccountId"]) == absent + # A required member is always there; one naming nothing else gives the account its account. + assert r.with_absent_account(named, ACCOUNTS, ["AccountId"], set()) == named + alone = [{"type": "account", "fill": {}}] + assert r.with_absent_account(alone, ACCOUNTS, ["AccountId"], {"AccountId"}) == alone + assert r.with_account(alone, ACCOUNTS, ["AccountId"]) == [{"type": "account", "fill": {}, "account": "AccountId"}] + + @pytest.mark.parametrize("member", ["ownerAccount", "resourceAccount"]) @pytest.mark.parametrize("pattern", ["[0-9]{12}", r"(\d{12})"]) def test_an_account_member_typed_elsewhere_in_the_service_is_inferred_only_for_non_creates(tmp_path, member, pattern): diff --git a/tools/aws/test_regen_rest_routes.py b/tools/aws/test_regen_rest_routes.py index 7e32ae0321..f9606bc9ba 100644 --- a/tools/aws/test_regen_rest_routes.py +++ b/tools/aws/test_regen_rest_routes.py @@ -127,7 +127,7 @@ def test_models_sharing_a_scope_must_agree_on_the_denial_status(): r.build({"lambda": first, "lambda-microvms": second}, "botocore test") -@pytest.mark.parametrize("name", ["controltower", "signer"]) +@pytest.mark.parametrize("name", ["controltower", "fis", "resource-explorer-2", "signer"]) @pytest.mark.parametrize("operation,method,source", [ ("TagResource", "POST", "body"), ("UntagResource", "DELETE", "?resourceArn"), @@ -147,7 +147,8 @@ def test_shared_tag_alternative_collision_is_rejected(): TagResource=("POST", "/tags/{resourceArn}"), OtherOperation=("POST", "/tags"))}, "test") -@pytest.mark.parametrize("name", ["payment-cryptography-data", "signer", "xray", "guardduty"]) +@pytest.mark.parametrize("name", ["payment-cryptography-data", "signer", "xray", "guardduty", + "resource-explorer-2"]) def test_a_model_a_route_filter_moves_under_a_prefix_keeps_its_own_paths(name): # IAM matches a moved request on its path without the prefix its filter records, so the routes are the model's. doc = r.build({name: model("rest-json", "2020-01-01", GetThing=("GET", "/things/{ThingId}"))}, "test") @@ -186,3 +187,7 @@ def test_an_arn_label_the_controller_lets_span_slashes_is_greedy(): operations = doc["models"]["apigatewayv2"]["operations"] assert operations["TagResource"] == {"method": "POST", "requestUri": "/v2/tags/{resource-arn+}"} assert operations["GetApi"] == {"method": "GET", "requestUri": "/v2/apis/{apiId}"} + # OAM's tag routes are served the same way, its sink and link ARNs holding a slash. + doc = r.build({"oam": model("rest-json", "2022-06-10", TagResource=("PUT", "/tags/{ResourceArn}"), + GetSink=("POST", "/GetSink"))}, "test") + assert doc["models"]["oam"]["operations"]["TagResource"] == {"method": "PUT", "requestUri": "/tags/{ResourceArn+}"}