diff --git a/docs/services/ec2.md b/docs/services/ec2.md index 42b4f8b50f..25cbd01d0f 100644 --- a/docs/services/ec2.md +++ b/docs/services/ec2.md @@ -6,12 +6,23 @@ With IAM enforcement enabled, modeled instance-list operations, including `StartInstances`, `StopInstances`, `TerminateInstances`, and `RebootInstances`, authorize each requested instance ARN before changing any instance state. Policies can scope access to an exact instance ARN or use stored tags through `ec2:ResourceTag/` and `aws:ResourceTag/`. +Creation-time `CreateNetworkInterface` tags also populate the regional IAM tag index. +Later `CreateTags` and `DeleteTags` keep the ENI response and authorization tags in sync, +and deleting the interface removes its indexed tags. A batch containing an unauthorized instance is denied in full, including when another instance in that batch is allowed. These checks also apply in EC2 mock mode. Target members and resource-tag condition keys come from generated AWS model and Service Reference data. Malformed percent escapes in a form body are rejected with a client error before authorization uses any partially decoded parameters. See the [AWS EC2 authorization reference](https://docs.aws.amazon.com/service-authorization/latest/reference/list_ec2.html) for supported resource types and condition keys. +## Elastic IP IAM authorization + +With IAM enforcement enabled, `AssociateAddress` authorizes the requested allocation and +instance or network interface against their individual ARNs and stored ownership tags. +Every supplied target needs a grant, and an explicit deny on any target rejects the request +before association. `ReleaseAddress` also resolves the allocation named by `AllocationId`, +so policies can scope release to that allocation or its stored tags. + ## Instance Execution Model `RunInstances` launches a **real Docker container** for each instance. By default, the container is kept alive with `tail -f /dev/null` so any base image works regardless of its default CMD. Catalog entries that opt into the `systemd` guest runtime start `/sbin/init` instead, with the Docker mounts needed for a systemd-based cloud-image guest. Those guests also get the Docker host's `/lib/modules/` (the running kernel's directory only, so the guest's own package manager keeps a writable `/lib/modules`) read-only, so `modprobe` finds modules the shared kernel already has (for example `br_netfilter`, which Kubernetes node setup loads). The mount is read-only, but it is not a boundary for a privileged guest: one can remount that directory read-write and load any module built for the shared kernel (see the warning below). On Docker Desktop or OrbStack, that directory is the Linux VM's, which may not hold modules matching the kernel that VM is running. If `/lib/modules/` does not exist on the Docker daemon's host, Docker creates an empty root-owned directory there and `modprobe` still fails. The bind is read-only, so a guest that installs the `linux-modules` package for the host's exact kernel version cannot write into it. diff --git a/docs/services/iam.md b/docs/services/iam.md index c330134651..270d751a33 100644 --- a/docs/services/iam.md +++ b/docs/services/iam.md @@ -2730,19 +2730,55 @@ also applies to other role operations such as `DeleteRole` and `ListRolePolicies `Path` cannot change this ARN. Once the role exists, its stored path and partition apply; creation still uses the path the request asks for. +`ec2:CreateVpc` is evaluated against `vpc/*` in the caller's partition, Region and account, +so a VPC-scoped grant can authorize creation with `aws:RequestTag` conditions. When supplied, +IPv4 and IPv6 IPAM pools and an IPv6 address pool are checked as additional resources. Tags +at creation additionally require `ec2:CreateTags` on the new VPC, with `ec2:CreateAction` +set to `CreateVpc`. Explicit denies on these resources still apply. The resource mapping +is generated from the Service Reference and botocore, as it is for every EC2 operation: +a request is checked on the resources its members name, each EC2 Query list read under the +wire name botocore serializes it with, and an operation whose request names none stays on `*`. + +`ec2:CreateSubnet`, `ec2:CreateRouteTable`, `ec2:CreateSecurityGroup`, and +`ec2:CreateVpcEndpoint` authorize +both the new resource ARN and the existing parent VPC. `ec2:CreateInternetGateway` +authorizes the new gateway ARN. Tag-on-create checks apply to the new resource only; +the parent VPC uses its own stored ownership tags. + +`ec2:CreateNetworkInterface` checks the new interface, its subnet and every supplied +security group separately. The generated EC2 Query names preserve SDK list serialization +(for example, `Groups` is sent as `SecurityGroupId.N`). `ec2:AllocateAddress` checks +the new elastic IP and any supplied address pool; its created resource type is derived +from botocore's operation description and returned allocation ID. `ec2:CreateNatGateway` +checks the new gateway and each supplied subnet, elastic IP and VPC separately, including +stored ownership tags on its existing parents. + +The network mutation operations include subnet attribute updates, route +creation/replacement/deletion and association, gateway attachment/detachment, +security-group ingress/egress changes, and VPC, subnet, route table, gateway, and +security-group deletion. Each generated ARN is checked with that resource's own +stored tags; allowing an owned VPC does not authorize an unowned gateway or subnet. + +`ec2:ModifyVpcAttribute` resolves the supplied `VpcId` to its ARN and checks the target's +current stored tags under `aws:ResourceTag/` and `ec2:ResourceTag/`. Tags are read for each +resolved ARN independently; request tags do not replace ownership tags on an existing VPC. +The prefixes come from the generated `resourceTagKeys` table in `iam-request-resources.json`, +derived from the Service Reference; new keys belong in the generator rather than Java branches. + EC2 tagging targets come from `regen_iam_request_resources.py`, with EC2 among its namespaces. The Service Reference supplies the resource types and ARN formats, botocore supplies the -`Resources` list and its EC2 Query spelling (`ResourceId.N`), and a documented generator -mapping identifies instance IDs. The generated entries select `CreateTags` and `DeleteTags` -from their input shapes and resource types, without an operation-name branch in Java. -Each instance ARN is evaluated with that target's existing tags; every target must be authorized -before the handler changes any tags. Other EC2 resource types retain wildcard authorization -against every target context, including when mixed with instances. Only instance ARNs narrow -the context to their own stored tags. Resource resolution reuses the decoded form parameters -rather than reparsing the body for each target. The readers preserve the handler's parameter -ordering, first duplicate value and stop at the first missing list index. This staged EC2 read -covers only instances in heterogeneous target lists; other EC2 operations retain their existing -wildcard resource resolution. +`Resources` list and its EC2 Query spelling (`ResourceId.N`), and the id prefix botocore gives +each type, in its documentation or its request and response examples (`"GroupId": "sg-903004f8"`), +identifies instance, security-group, network-acl, route-table and network-interface IDs. +The generated entries select `CreateTags` and `DeleteTags` from their input shapes and resource +types, without an operation-name branch in Java. Each ARN is evaluated with that target's own +stored tags; every target must be authorized before the handler changes any tags. Other EC2 +resource types retain wildcard authorization against every target context, including mixed +batches. Resource resolution reuses the decoded form parameters rather than reparsing the body +for each target. The readers preserve the handler's parameter ordering, first duplicate value +and stop at the first missing list index. A list a type's ARN variable names, such as +`InstanceIds`, is the request's targets only when the request names nothing else the action acts +on: a launch's `SecurityGroupIds` are read beside its image and subnet, each on its own ARN. Which type each action takes is vendored, not written out in Java: `src/main/resources/aws/iam-action-resources.json` is generated by diff --git a/src/main/java/io/floci/aws/core/common/IamConditionContextResolver.java b/src/main/java/io/floci/aws/core/common/IamConditionContextResolver.java index 51420d265e..cd35eb0407 100644 --- a/src/main/java/io/floci/aws/core/common/IamConditionContextResolver.java +++ b/src/main/java/io/floci/aws/core/common/IamConditionContextResolver.java @@ -889,6 +889,33 @@ public class IamConditionContextResolver { } } + /** Stored tags for one generated EC2 ARN, never borrowed from another target in the same request. */ + public Map> withEc2ResourceTags(String scope, String action, String resource, + String region, String accountId, + Map> context) { + if (!"ec2".equals(scope) || RequestResources.hasIndividualTargets(action) + || !AwsArnUtils.isArn(resource) || !ec2Service.isResolvable()) { + return context; + } + AwsArnUtils.Arn arn = AwsArnUtils.parse(resource); + if (!"ec2".equals(arn.service()) || !region.equals(arn.region()) || !accountId.equals(arn.accountId())) { + return context; + } + String[] parts = arn.resource().split("/", 2); + if (parts.length != 2 || parts[1].contains("*") || parts[1].contains("?")) { + return context; + } + List prefixes = RequestResourceMembers.table().resourceTagKeys() + .getOrDefault("ec2", Map.of()).getOrDefault(parts[0], List.of()); + if (prefixes.isEmpty()) { + return context; + } + Map> result = context == null ? new LinkedHashMap<>() : new LinkedHashMap<>(context); + result.keySet().removeIf(key -> prefixes.stream().anyMatch(key::startsWith)); + putStoredTags(result, region, parts[1], prefixes); + return result; + } + private void addResourceTags(Map> conditions, String resourceId, RequestResourceMembers.Targets targets) { if (resourceId == null || resourceId.isBlank() || !ec2Service.isResolvable()) { @@ -903,6 +930,11 @@ public class IamConditionContextResolver { break; } } + putStoredTags(conditions, region, resourceId, prefixes); + } + + private void putStoredTags(Map> conditions, String region, String resourceId, + List prefixes) { for (Tag tag : ec2Service.get().resourceTags(region, resourceId)) { for (String prefix : prefixes) { conditions.put(prefix + tag.getKey(), List.of(tag.getValue() == null ? "" : tag.getValue())); diff --git a/src/main/java/io/floci/aws/core/common/IamEnforcementFilter.java b/src/main/java/io/floci/aws/core/common/IamEnforcementFilter.java index 6c2bd5fb56..4e49c5108e 100644 --- a/src/main/java/io/floci/aws/core/common/IamEnforcementFilter.java +++ b/src/main/java/io/floci/aws/core/common/IamEnforcementFilter.java @@ -1332,8 +1332,14 @@ public class IamEnforcementFilter implements ContainerRequestFilter { } } for (Map> targetContext : resourceContexts) { + Map> taggedContext = targetContext; + if ("ec2".equals(credentialScope) && !RequestResources.hasIndividualTargets(operationAction) + && AwsArnUtils.isArn(resource)) { + taggedContext = conditionContextResolver.withEc2ResourceTags( + credentialScope, operationAction, resource, region, accountId, targetContext); + } Map> effectiveContext = IamConditionContextResolver.withGlobalContext( - targetContext, resource, region, accountId, resourceOwnerAccountId, action); + taggedContext, resource, region, accountId, resourceOwnerAccountId, action); ResourcePolicyDecision resourcePolicyDecision = evaluator.evaluateResourcePolicyFor( effectiveResourcePolicies, principal, action, resource, effectiveContext); Decision decision = evaluator.evaluateResolvedResourcePolicy( diff --git a/src/main/java/io/floci/aws/core/common/RequestResourceMembers.java b/src/main/java/io/floci/aws/core/common/RequestResourceMembers.java index e6c4222153..7873470e06 100644 --- a/src/main/java/io/floci/aws/core/common/RequestResourceMembers.java +++ b/src/main/java/io/floci/aws/core/common/RequestResourceMembers.java @@ -224,6 +224,7 @@ final class RequestResourceMembers { record Table(Map> operations, Map> types, Map> creates, Map> makes, Map targets, + Map> ec2Query, Map> located, Map> formats, Map>> resourceTagKeys, Set namespaces, Set handBuilt, Set notCovered, Set otherNamespaces, @@ -311,6 +312,7 @@ final class RequestResourceMembers { Map> creates = new LinkedHashMap<>(); Map> makes = new LinkedHashMap<>(); Map targets = new LinkedHashMap<>(); + Map> ec2Query = new LinkedHashMap<>(); Map> located = new LinkedHashMap<>(); Map> forwarded = new LinkedHashMap<>(); JsonNode forwardedActions = document.path("forwardedActions"); @@ -373,6 +375,20 @@ final class RequestResourceMembers { if (!under.isEmpty()) { creates.put(operation.getKey(), List.copyOf(under)); } + Map queryMembers = new LinkedHashMap<>(); + operation.getValue().path("ec2Query").properties().forEach(member -> { + String path = member.getKey(); + String wire = member.getValue().asText(""); + if (!namespace.equals("ec2") || !path.matches("[A-Za-z][A-Za-z0-9_]*(\\[\\])?") + || !LOCATED_MEMBER.matcher(wire).matches()) { + throw new IllegalStateException(RESOURCE_NAME + " has invalid EC2 Query member: " + path); + } + boolean list = path.endsWith("[]"); + queryMembers.put(new Member(list ? path.substring(0, path.length() - 2) : path, list), wire); + }); + if (!queryMembers.isEmpty()) { + ec2Query.put(operation.getKey(), Map.copyOf(queryMembers)); + } Map where = new LinkedHashMap<>(); operation.getValue().path("located").properties().forEach(member -> { if (!LOCATED_MEMBER.matcher(member.getKey()).matches() @@ -395,7 +411,8 @@ final class RequestResourceMembers { } }); return new Table(Map.copyOf(entries), Map.copyOf(actsOn), Map.copyOf(creates), Map.copyOf(makes), - Map.copyOf(targets), Map.copyOf(located), Map.copyOf(formats), Map.copyOf(resourceTagKeys), namespaces, + Map.copyOf(targets), Map.copyOf(ec2Query), Map.copyOf(located), Map.copyOf(formats), + Map.copyOf(resourceTagKeys), namespaces, names(document.path("handBuilt")), Set.copyOf(document.path("notCovered").propertyStream().map(Map.Entry::getKey).toList()), names(document.path("otherNamespaces")), Map.copyOf(forwarded)); 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 ac8c2048b2..9000715d93 100644 --- a/src/main/java/io/floci/aws/core/common/RequestResources.java +++ b/src/main/java/io/floci/aws/core/common/RequestResources.java @@ -115,7 +115,7 @@ public final class RequestResources { } Map sent = IamConditionContextResolver.formParameters(ctx); JsonNode body = sent.isEmpty() ? located(table, operation, PassedRoles.jsonBody(ctx), ctx, labels) : null; - Map form = located(table, operation, sent, ctx, labels); + Map form = ec2Query(table, operation, located(table, operation, sent, ctx, labels)); return resources.isEmpty() ? List.of() : named(operation, resources, formats(table, operation), form, body, partition, region, accountId, stored); } @@ -309,7 +309,8 @@ public final class RequestResources { String region, String accountId, Map labels) { RequestResourceMembers.Table table = RequestResourceMembers.table(); return created(table, operation, tagging, resources -> served(resources, ctx), - () -> located(table, operation, IamConditionContextResolver.formParameters(ctx), ctx, labels), + () -> ec2Query(table, operation, + located(table, operation, IamConditionContextResolver.formParameters(ctx), ctx, labels)), () -> IamConditionContextResolver.formParameters(ctx).isEmpty() ? located(table, operation, PassedRoles.jsonBody(ctx), ctx, labels) : null, partition, region, accountId); @@ -857,6 +858,28 @@ public final class RequestResources { } } + /** Normalize only generated EC2 wire members; JSON task inputs keep their SDK names. */ + private static Map ec2Query(RequestResourceMembers.Table table, String operation, + Map sent) { + Map members = table.ec2Query().get(operation); + if (sent.isEmpty() || members == null) { + return sent; + } + Map form = new HashMap<>(sent); + members.forEach((member, wire) -> { + // Ignore forged SDK/Query spellings the EC2 handler itself does not read. + form.keySet().removeIf(key -> key.equals(member.name()) || key.startsWith(member.name() + ".")); + if (member.list()) { + for (int index = 1; sent.containsKey(wire + "." + index); index++) { + form.put(member.name() + ".member." + index, sent.get(wire + "." + index)); + } + } else if (sent.containsKey(wire)) { + form.put(member.name(), sent.get(wire)); + } + }); + return form; + } + /** * The non-empty strings a request gives a member, read as its handler reads them: a form's parameter, or its * list numbered under {@code member} from 1 to the first missing, or a body's value, as text whether a string, diff --git a/src/main/java/io/floci/aws/services/ec2/Ec2Service.java b/src/main/java/io/floci/aws/services/ec2/Ec2Service.java index 5e1969ecd3..d601b40139 100644 --- a/src/main/java/io/floci/aws/services/ec2/Ec2Service.java +++ b/src/main/java/io/floci/aws/services/ec2/Ec2Service.java @@ -11012,6 +11012,13 @@ public class Ec2Service implements ContainerTeardown, ResourceProvider, Resettab } RouteTable rt = routeTables.get(storeKey).orElse(null); if (rt != null) { rt.setTags(new ArrayList<>(tagList)); routeTables.put(storeKey, rt); return; } + NetworkInterface networkInterface = networkInterfaces.get(storeKey).orElse(null); + if (networkInterface != null) { + networkInterface.getTagSet().clear(); + networkInterface.getTagSet().addAll(tagList); + networkInterfaces.put(storeKey, networkInterface); + return; + } KeyPair kp = keyPairs.get(storeKey).orElse(null); if (kp != null) { kp.setTags(new ArrayList<>(tagList)); keyPairs.put(storeKey, kp); return; } LaunchTemplate lt = launchTemplates.get(storeKey).orElse(null); @@ -15945,6 +15952,7 @@ public class Ec2Service implements ContainerTeardown, ResourceProvider, Resettab ni.setPrivateIpAddresses(ipList); networkInterfaces.put(key(region, eniId), ni); + putTags(region, eniId, new ArrayList<>(ni.getTagSet())); return ni; } } @@ -15966,6 +15974,7 @@ public class Ec2Service implements ContainerTeardown, ResourceProvider, Resettab } releaseInterfaceAddresses(region, networkInterfaceId, true); networkInterfaces.delete(key(region, networkInterfaceId)); + removeTags(region, networkInterfaceId); releasePrivateIps(region, ni.getSubnetId(), List.of(ni.getPrivateIpAddress())); } } diff --git a/src/main/resources/aws/iam-request-resources.json b/src/main/resources/aws/iam-request-resources.json index e7f6d1261e..857091f9ff 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-14", "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."}, + "_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "--source-dir /tmp/claude-1000/-home-depende-eclipse-workspace-floci-priamo-w/255d427b-2dfb-49a4-9919-91df9eb6dd39/scratchpad/f8288-refdocs", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-14", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."}, "namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "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": ["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"], "route53": ["route53"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]}, "handBuilt": ["apigateway", "bedrock", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "lambda", "logs", "pipes", "resource-groups", "s3", "scheduler", "secretsmanager", "sns", "sqs", "sts"], "notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup::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 rules do not fill a name from, so nearly every operation's resource would be left open", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/_, 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", "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}"}, "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}"}, "route53": {"change": "arn:${Partition}:route53:::change/${Id}", "cidrcollection": "arn:${Partition}:route53:::cidrcollection/${Id}", "delegationset": "arn:${Partition}:route53:::delegationset/${Id}", "healthcheck": "arn:${Partition}:route53:::healthcheck/${Id}", "hostedzone": "arn:${Partition}:route53:::hostedzone/${Id}", "queryloggingconfig": "arn:${Partition}:route53:::queryloggingconfig/${Id}", "trafficpolicy": "arn:${Partition}:route53:::trafficpolicy/${Id}", "trafficpolicyinstance": "arn:${Partition}:route53:::trafficpolicyinstance/${Id}", "vpc": "arn:${Partition}:ec2:${Region}:${Account}:vpc/${VpcId}"}, "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}"}, "ssm": {"association": "arn:${Partition}:ssm:${Region}:${Account}:association/${AssociationId}", "automation-definition": "arn:${Partition}:ssm:${Region}:${Account}:automation-definition/${AutomationDefinitionName}:${VersionId}", "automation-execution": "arn:${Partition}:ssm:${Region}:${Account}:automation-execution/${AutomationExecutionId}", "bucket": "arn:${Partition}:s3:::${BucketName}", "cloud-connector": "arn:${Partition}:ssm:${Region}:${Account}:cloud-connector/${CloudConnectorId}", "document": "arn:${Partition}:ssm:${Region}:${Account}:document/${DocumentName}", "iam-role": "arn:${Partition}:iam::${Account}:role/${RoleName}", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/${InstanceId}", "maintenancewindow": "arn:${Partition}:ssm:${Region}:${Account}:maintenancewindow/${ResourceId}", "managed-instance": "arn:${Partition}:ssm:${Region}:${Account}:managed-instance/${InstanceId}", "managed-instance-inventory": "arn:${Partition}:ssm:${Region}:${Account}:managed-instance-inventory/${InstanceId}", "opsitem": "arn:${Partition}:ssm:${Region}:${Account}:opsitem/${ResourceId}", "opsitemgroup": "arn:${Partition}:ssm:${Region}:${Account}:opsitemgroup/default", "opsmetadata": "arn:${Partition}:ssm:${Region}:${Account}:opsmetadata/${ResourceId}", "parameter": "arn:${Partition}:ssm:${Region}:${Account}:parameter/${ParameterNameWithoutLeadingSlash}", "patchbaseline": "arn:${Partition}:ssm:${Region}:${Account}:patchbaseline/${PatchBaselineIdResourceId}", "resourcedatasync": "arn:${Partition}:ssm:${Region}:${Account}:resource-data-sync/${SyncName}", "servicesetting": "arn:${Partition}:ssm:${Region}:${Account}:servicesetting/${ResourceId}", "session": "arn:${Partition}:ssm:${Region}:${Account}:session/${SessionId}", "task": "arn:${Partition}:ecs:${Region}:${Account}:task/${TaskId}", "windowtarget": "arn:${Partition}:ssm:${Region}:${Account}:windowtarget/${WindowTargetId}", "windowtask": "arn:${Partition}:ssm:${Region}:${Account}:windowtask/${WindowTaskId}"}, "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}"}}, - "resourceTagKeys": {"ec2": {"instance": ["aws:ResourceTag/", "ec2:ResourceTag/"]}}, + "resourceTagKeys": {"ec2": {"application-status-check": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-block": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-manager-data-export": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-cancellation-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-modification-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "carrier-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "client-vpn-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "coip-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "customer-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "declarative-policies-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dedicated-host": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dhcp-options": ["aws:ResourceTag/", "ec2:ResourceTag/"], "egress-only-internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-gpu": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-ip": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-instance-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fpga-image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "host-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image-usage-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-snapshot-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-connect-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-event-window": ["aws:ResourceTag/", "ec2:ResourceTag/"], "internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-external-resource-verification-token": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-internet-registry-association": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-policy": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool-allocation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver-target": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-resource-discovery": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-resource-discovery-association": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-scope": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipv4pool-ec2": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipv6pool-ec2": ["aws:ResourceTag/", "ec2:ResourceTag/"], "key-pair": ["aws:ResourceTag/", "ec2:ResourceTag/"], "launch-template": ["aws:ResourceTag/", "ec2:ResourceTag/"], "local-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "local-gateway-route-table": ["aws:ResourceTag/", "ec2:ResourceTag/"], "local-gateway-route-table-virtual-interface-group-association": ["aws:ResourceTag/", "ec2:ResourceTag/"], "local-gateway-route-table-vpc-association": ["aws:ResourceTag/", "ec2:ResourceTag/"], "local-gateway-virtual-interface": ["aws:ResourceTag/", "ec2:ResourceTag/"], "local-gateway-virtual-interface-group": ["aws:ResourceTag/", "ec2:ResourceTag/"], "mac-modification-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "natgateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "network-acl": ["aws:ResourceTag/", "ec2:ResourceTag/"], "network-insights-access-scope": ["aws:ResourceTag/", "ec2:ResourceTag/"], "network-insights-access-scope-analysis": ["aws:ResourceTag/", "ec2:ResourceTag/"], "network-insights-analysis": ["aws:ResourceTag/", "ec2:ResourceTag/"], "network-insights-path": ["aws:ResourceTag/", "ec2:ResourceTag/"], "network-interface": ["aws:ResourceTag/", "ec2:ResourceTag/"], "outpost-lag": ["aws:ResourceTag/", "ec2:ResourceTag/"], "placement-group": ["aws:ResourceTag/", "ec2:ResourceTag/"], "prefix-list": ["aws:ResourceTag/", "ec2:ResourceTag/"], "replace-root-volume-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "reserved-instances": ["aws:ResourceTag/", "ec2:ResourceTag/"], "route-server": ["aws:ResourceTag/", "ec2:ResourceTag/"], "route-server-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "route-server-peer": ["aws:ResourceTag/", "ec2:ResourceTag/"], "route-table": ["aws:ResourceTag/", "ec2:ResourceTag/"], "secondary-interface": ["aws:ResourceTag/", "ec2:ResourceTag/"], "secondary-network": ["aws:ResourceTag/", "ec2:ResourceTag/"], "secondary-subnet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "security-group": ["aws:ResourceTag/", "ec2:ResourceTag/"], "security-group-rule": ["aws:ResourceTag/", "ec2:ResourceTag/"], "snapshot": ["aws:ResourceTag/", "ec2:ResourceTag/"], "spot-fleet-request": ["aws:ResourceTag/", "ec2:ResourceTag/"], "spot-instances-request": ["aws:ResourceTag/", "ec2:ResourceTag/"], "subnet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "subnet-cidr-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "traffic-mirror-filter": ["aws:ResourceTag/", "ec2:ResourceTag/"], "traffic-mirror-filter-rule": ["aws:ResourceTag/", "ec2:ResourceTag/"], "traffic-mirror-session": ["aws:ResourceTag/", "ec2:ResourceTag/"], "traffic-mirror-target": ["aws:ResourceTag/", "ec2:ResourceTag/"], "transit-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "transit-gateway-attachment": ["aws:ResourceTag/", "ec2:ResourceTag/"], "transit-gateway-connect-peer": ["aws:ResourceTag/", "ec2:ResourceTag/"], "transit-gateway-metering-policy": ["aws:ResourceTag/", "ec2:ResourceTag/"], "transit-gateway-multicast-domain": ["aws:ResourceTag/", "ec2:ResourceTag/"], "transit-gateway-policy-table": ["aws:ResourceTag/", "ec2:ResourceTag/"], "transit-gateway-route-table": ["aws:ResourceTag/", "ec2:ResourceTag/"], "transit-gateway-route-table-announcement": ["aws:ResourceTag/", "ec2:ResourceTag/"], "verified-access-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "verified-access-endpoint-target": ["aws:ResourceTag/", "ec2:ResourceTag/"], "verified-access-group": ["aws:ResourceTag/", "ec2:ResourceTag/"], "verified-access-instance": ["aws:ResourceTag/", "ec2:ResourceTag/"], "verified-access-policy": ["aws:ResourceTag/", "ec2:ResourceTag/"], "verified-access-trust-provider": ["aws:ResourceTag/", "ec2:ResourceTag/"], "volume": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpc": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpc-block-public-access-exclusion": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpc-encryption-control": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpc-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpc-endpoint-connection": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpc-endpoint-service": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpc-endpoint-service-permission": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpc-flow-log": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpc-peering-connection": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpn-concentrator": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpn-connection": ["aws:ResourceTag/", "ec2:ResourceTag/"], "vpn-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"]}}, "unqualified": {"ssm": ["parameter"], "states": ["statemachine"]}, "mintedIds": {"events": ["api-destination", "connection"]}, "forwardedActions": {"kms:Decrypt": {"type": "key", "format": "arn:${Partition}:kms:${Region}:${Account}:key/${KeyId}", "viaService": "kms:ViaService"}}, @@ -913,291 +913,291 @@ "datasync:UpdateTaskExecution": {"action": "datasync:UpdateTaskExecution", "types": ["taskexecution"], "resources": [{"types": ["taskexecution"], "arn": "TaskExecutionArn"}]}, "dynamodb:ListTables": {"action": "dynamodb:ListTables", "types": [], "resources": [{"type": "table", "fill": {}}]}, "ec2:AcceptAddressTransfer": {"action": "ec2:AcceptAddressTransfer", "types": ["elastic-ip"], "resources": []}, - "ec2:AcceptCapacityReservationBillingOwnership": {"action": "ec2:AcceptCapacityReservationBillingOwnership", "types": ["capacity-reservation"], "resources": []}, - "ec2:AcceptReservedInstancesExchangeQuote": {"action": "ec2:AcceptReservedInstancesExchangeQuote", "types": ["reserved-instances"], "resources": []}, - "ec2:AcceptTransitGatewayClientVpnAttachment": {"action": "ec2:AcceptTransitGatewayClientVpnAttachment", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:AcceptTransitGatewayMulticastDomainAssociations": {"action": "ec2:AcceptTransitGatewayMulticastDomainAssociations", "types": ["transit-gateway-attachment", "transit-gateway-multicast-domain"], "resources": []}, - "ec2:AcceptTransitGatewayPeeringAttachment": {"action": "ec2:AcceptTransitGatewayPeeringAttachment", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:AcceptTransitGatewayVpcAttachment": {"action": "ec2:AcceptTransitGatewayVpcAttachment", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:AcceptVpcEndpointConnections": {"action": "ec2:AcceptVpcEndpointConnections", "types": ["vpc-endpoint-service"], "resources": []}, - "ec2:AcceptVpcPeeringConnection": {"action": "ec2:AcceptVpcPeeringConnection", "types": ["vpc", "vpc-peering-connection"], "resources": []}, + "ec2:AcceptCapacityReservationBillingOwnership": {"action": "ec2:AcceptCapacityReservationBillingOwnership", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}]}, + "ec2:AcceptReservedInstancesExchangeQuote": {"action": "ec2:AcceptReservedInstancesExchangeQuote", "types": ["reserved-instances"], "resources": [{"type": "reserved-instances", "fill": {"ReservationId": "ReservedInstanceIds[]"}}], "ec2Query": {"ReservedInstanceIds[]": "ReservedInstanceId"}}, + "ec2:AcceptTransitGatewayClientVpnAttachment": {"action": "ec2:AcceptTransitGatewayClientVpnAttachment", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:AcceptTransitGatewayMulticastDomainAssociations": {"action": "ec2:AcceptTransitGatewayMulticastDomainAssociations", "types": ["transit-gateway-attachment", "transit-gateway-multicast-domain"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}]}, + "ec2:AcceptTransitGatewayPeeringAttachment": {"action": "ec2:AcceptTransitGatewayPeeringAttachment", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:AcceptTransitGatewayVpcAttachment": {"action": "ec2:AcceptTransitGatewayVpcAttachment", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:AcceptVpcEndpointConnections": {"action": "ec2:AcceptVpcEndpointConnections", "types": ["vpc-endpoint-service"], "resources": [{"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceId"}}]}, + "ec2:AcceptVpcPeeringConnection": {"action": "ec2:AcceptVpcPeeringConnection", "types": ["vpc", "vpc-peering-connection"], "resources": [{"type": "vpc-peering-connection", "fill": {"VpcPeeringConnectionId": "VpcPeeringConnectionId"}}]}, "ec2:AdvertiseByoipCidr": {"action": "ec2:AdvertiseByoipCidr", "types": [], "resources": []}, - "ec2:AllocateAddress": {"action": "ec2:AllocateAddress", "types": ["elastic-ip", "ipam-pool", "ipv4pool-ec2"], "resources": []}, - "ec2:AllocateHosts": {"action": "ec2:AllocateHosts", "types": ["dedicated-host"], "resources": []}, - "ec2:AllocateIpamPoolCidr": {"action": "ec2:AllocateIpamPoolCidr", "types": ["ipam-pool", "ipam-pool-allocation"], "resources": []}, - "ec2:ApplySecurityGroupsToClientVpnTargetNetwork": {"action": "ec2:ApplySecurityGroupsToClientVpnTargetNetwork", "types": ["client-vpn-endpoint", "security-group", "vpc"], "resources": []}, - "ec2:AssignIpv6Addresses": {"action": "ec2:AssignIpv6Addresses", "types": ["network-interface"], "resources": []}, - "ec2:AssignPrivateIpAddresses": {"action": "ec2:AssignPrivateIpAddresses", "types": ["network-interface"], "resources": []}, - "ec2:AssignPrivateNatGatewayAddress": {"action": "ec2:AssignPrivateNatGatewayAddress", "types": ["natgateway"], "resources": []}, - "ec2:AssociateAddress": {"action": "ec2:AssociateAddress", "types": ["elastic-ip", "instance", "network-interface"], "resources": []}, - "ec2:AssociateApplicationStatusCheck": {"action": "ec2:AssociateApplicationStatusCheck", "types": ["application-status-check", "instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, - "ec2:AssociateCapacityReservationBillingOwner": {"action": "ec2:AssociateCapacityReservationBillingOwner", "types": ["capacity-reservation"], "resources": []}, - "ec2:AssociateClientVpnTargetNetwork": {"action": "ec2:AssociateClientVpnTargetNetwork", "types": ["client-vpn-endpoint", "subnet"], "resources": []}, - "ec2:AssociateDhcpOptions": {"action": "ec2:AssociateDhcpOptions", "types": ["dhcp-options", "vpc"], "resources": []}, - "ec2:AssociateEnclaveCertificateIamRole": {"action": "ec2:AssociateEnclaveCertificateIamRole", "types": ["certificate", "role"], "resources": []}, - "ec2:AssociateIamInstanceProfile": {"action": "ec2:AssociateIamInstanceProfile", "types": ["instance"], "resources": []}, - "ec2:AssociateInstanceEventWindow": {"action": "ec2:AssociateInstanceEventWindow", "types": ["instance-event-window"], "resources": []}, + "ec2:AllocateAddress": {"action": "ec2:AllocateAddress", "types": ["elastic-ip", "ipam-pool", "ipv4pool-ec2"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}, {"type": "ipv4pool-ec2", "fill": {"Ipv4PoolEc2Id": "PublicIpv4Pool"}}, {"type": "elastic-ip", "fill": {}, "made": true}]}, + "ec2:AllocateHosts": {"action": "ec2:AllocateHosts", "types": ["dedicated-host"], "resources": [{"types": ["dedicated-host"], "arn": "OutpostArn"}, {"type": "dedicated-host", "fill": {}}]}, + "ec2:AllocateIpamPoolCidr": {"action": "ec2:AllocateIpamPoolCidr", "types": ["ipam-pool", "ipam-pool-allocation"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}]}, + "ec2:ApplySecurityGroupsToClientVpnTargetNetwork": {"action": "ec2:ApplySecurityGroupsToClientVpnTargetNetwork", "types": ["client-vpn-endpoint", "security-group", "vpc"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}, {"type": "security-group", "fill": {"SecurityGroupId": "SecurityGroupIds[]"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}], "ec2Query": {"SecurityGroupIds[]": "SecurityGroupId"}}, + "ec2:AssignIpv6Addresses": {"action": "ec2:AssignIpv6Addresses", "types": ["network-interface"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, + "ec2:AssignPrivateIpAddresses": {"action": "ec2:AssignPrivateIpAddresses", "types": ["network-interface"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, + "ec2:AssignPrivateNatGatewayAddress": {"action": "ec2:AssignPrivateNatGatewayAddress", "types": ["natgateway"], "resources": [{"type": "natgateway", "fill": {"NatGatewayId": "NatGatewayId"}}]}, + "ec2:AssociateAddress": {"action": "ec2:AssociateAddress", "types": ["elastic-ip", "instance", "network-interface"], "resources": [{"type": "elastic-ip", "fill": {"AllocationId": "AllocationId"}}, {"type": "instance", "fill": {"InstanceId": "InstanceId"}}, {"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, + "ec2:AssociateApplicationStatusCheck": {"action": "ec2:AssociateApplicationStatusCheck", "types": ["application-status-check", "instance"], "resources": [{"type": "application-status-check", "fill": {"ApplicationStatusCheckId": "ApplicationStatusCheckId"}}, {"type": "instance", "fill": {"InstanceId": "InstanceIds[]"}}], "ec2Query": {"InstanceIds[]": "InstanceId"}}, + "ec2:AssociateCapacityReservationBillingOwner": {"action": "ec2:AssociateCapacityReservationBillingOwner", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}, "account": "UnusedReservationBillingOwnerId"}]}, + "ec2:AssociateClientVpnTargetNetwork": {"action": "ec2:AssociateClientVpnTargetNetwork", "types": ["client-vpn-endpoint", "subnet"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}, {"type": "subnet", "fill": {"SubnetId": "SubnetId"}}]}, + "ec2:AssociateDhcpOptions": {"action": "ec2:AssociateDhcpOptions", "types": ["dhcp-options", "vpc"], "resources": [{"type": "dhcp-options", "fill": {"DhcpOptionsId": "DhcpOptionsId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:AssociateEnclaveCertificateIamRole": {"action": "ec2:AssociateEnclaveCertificateIamRole", "types": ["certificate", "role"], "resources": [{"types": ["certificate", "role"], "arn": "CertificateArn"}, {"types": ["certificate", "role"], "arn": "RoleArn"}]}, + "ec2:AssociateIamInstanceProfile": {"action": "ec2:AssociateIamInstanceProfile", "types": ["instance"], "resources": [{"types": ["instance"], "arn": "IamInstanceProfile.Arn"}, {"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:AssociateInstanceEventWindow": {"action": "ec2:AssociateInstanceEventWindow", "types": ["instance-event-window"], "resources": [{"type": "instance-event-window", "fill": {"InstanceEventWindowId": "InstanceEventWindowId"}}]}, "ec2:AssociateIpamByoasn": {"action": "ec2:AssociateIpamByoasn", "types": [], "resources": []}, - "ec2:AssociateIpamResourceDiscovery": {"action": "ec2:AssociateIpamResourceDiscovery", "types": ["ipam", "ipam-resource-discovery", "ipam-resource-discovery-association"], "resources": []}, - "ec2:AssociateNatGatewayAddress": {"action": "ec2:AssociateNatGatewayAddress", "types": ["elastic-ip", "natgateway"], "resources": []}, + "ec2:AssociateIpamResourceDiscovery": {"action": "ec2:AssociateIpamResourceDiscovery", "types": ["ipam", "ipam-resource-discovery", "ipam-resource-discovery-association"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}, {"type": "ipam-resource-discovery", "fill": {"IpamResourceDiscoveryId": "IpamResourceDiscoveryId"}}]}, + "ec2:AssociateNatGatewayAddress": {"action": "ec2:AssociateNatGatewayAddress", "types": ["elastic-ip", "natgateway"], "resources": [{"type": "elastic-ip", "fill": {"AllocationId": "AllocationIds[]"}}, {"type": "natgateway", "fill": {"NatGatewayId": "NatGatewayId"}}], "ec2Query": {"AllocationIds[]": "AllocationId"}}, "ec2:AssociateNetworkingFlexCostAllocationPolicy": {"action": "ec2:AssociateNetworkingFlexCostAllocationPolicy", "types": [], "resources": []}, - "ec2:AssociateRouteServer": {"action": "ec2:AssociateRouteServer", "types": ["route-server", "vpc"], "resources": []}, - "ec2:AssociateRouteTable": {"action": "ec2:AssociateRouteTable", "types": ["internet-gateway", "ipv4pool-ec2", "route-table", "subnet", "vpn-gateway"], "resources": []}, - "ec2:AssociateSecurityGroupVpc": {"action": "ec2:AssociateSecurityGroupVpc", "types": ["security-group", "vpc"], "resources": []}, - "ec2:AssociateSubnetCidrBlock": {"action": "ec2:AssociateSubnetCidrBlock", "types": ["ipam-pool", "subnet"], "resources": []}, - "ec2:AssociateTransitGatewayMulticastDomain": {"action": "ec2:AssociateTransitGatewayMulticastDomain", "types": ["subnet", "transit-gateway-attachment", "transit-gateway-multicast-domain"], "resources": []}, - "ec2:AssociateTransitGatewayPolicyTable": {"action": "ec2:AssociateTransitGatewayPolicyTable", "types": ["transit-gateway-attachment", "transit-gateway-policy-table"], "resources": []}, - "ec2:AssociateTransitGatewayRouteTable": {"action": "ec2:AssociateTransitGatewayRouteTable", "types": ["transit-gateway-attachment", "transit-gateway-route-table"], "resources": []}, + "ec2:AssociateRouteServer": {"action": "ec2:AssociateRouteServer", "types": ["route-server", "vpc"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:AssociateRouteTable": {"action": "ec2:AssociateRouteTable", "types": ["internet-gateway", "ipv4pool-ec2", "route-table", "subnet", "vpn-gateway"], "resources": [{"type": "ipv4pool-ec2", "fill": {"Ipv4PoolEc2Id": "PublicIpv4Pool"}}, {"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}, {"type": "subnet", "fill": {"SubnetId": "SubnetId"}}, {"type": "internet-gateway", "fill": {"InternetGatewayId": "GatewayId"}}]}, + "ec2:AssociateSecurityGroupVpc": {"action": "ec2:AssociateSecurityGroupVpc", "types": ["security-group", "vpc"], "resources": [{"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:AssociateSubnetCidrBlock": {"action": "ec2:AssociateSubnetCidrBlock", "types": ["ipam-pool", "subnet"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "Ipv6IpamPoolId"}}, {"type": "subnet", "fill": {"SubnetId": "SubnetId"}}]}, + "ec2:AssociateTransitGatewayMulticastDomain": {"action": "ec2:AssociateTransitGatewayMulticastDomain", "types": ["subnet", "transit-gateway-attachment", "transit-gateway-multicast-domain"], "resources": [{"type": "subnet", "fill": {"SubnetId": "SubnetIds[]"}}, {"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}], "ec2Query": {"SubnetIds[]": "SubnetIds"}}, + "ec2:AssociateTransitGatewayPolicyTable": {"action": "ec2:AssociateTransitGatewayPolicyTable", "types": ["transit-gateway-attachment", "transit-gateway-policy-table"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-policy-table", "fill": {"TransitGatewayPolicyTableId": "TransitGatewayPolicyTableId"}}]}, + "ec2:AssociateTransitGatewayRouteTable": {"action": "ec2:AssociateTransitGatewayRouteTable", "types": ["transit-gateway-attachment", "transit-gateway-route-table"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, "ec2:AssociateTrunkInterface": {"action": "ec2:AssociateTrunkInterface", "types": [], "resources": []}, - "ec2:AssociateVpcCidrBlock": {"action": "ec2:AssociateVpcCidrBlock", "types": ["ipam-pool", "ipv6pool-ec2", "vpc"], "resources": []}, - "ec2:AttachClassicLinkVpc": {"action": "ec2:AttachClassicLinkVpc", "types": ["instance", "security-group", "vpc"], "resources": []}, - "ec2:AttachImageWatermark": {"action": "ec2:AttachImageWatermark", "types": ["image"], "resources": []}, - "ec2:AttachInternetGateway": {"action": "ec2:AttachInternetGateway", "types": ["internet-gateway", "vpc"], "resources": []}, - "ec2:AttachNetworkInterface": {"action": "ec2:AttachNetworkInterface", "types": ["instance", "network-interface"], "resources": []}, - "ec2:AttachVerifiedAccessTrustProvider": {"action": "ec2:AttachVerifiedAccessTrustProvider", "types": ["verified-access-instance", "verified-access-trust-provider"], "resources": []}, - "ec2:AttachVolume": {"action": "ec2:AttachVolume", "types": ["instance", "volume"], "resources": []}, - "ec2:AttachVpnGateway": {"action": "ec2:AttachVpnGateway", "types": ["vpc", "vpn-gateway"], "resources": []}, - "ec2:AuthorizeClientVpnIngress": {"action": "ec2:AuthorizeClientVpnIngress", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:AuthorizeSecurityGroupEgress": {"action": "ec2:AuthorizeSecurityGroupEgress", "types": ["security-group", "security-group-rule"], "resources": []}, - "ec2:AuthorizeSecurityGroupIngress": {"action": "ec2:AuthorizeSecurityGroupIngress", "types": ["security-group", "security-group-rule"], "resources": []}, - "ec2:BatchModifyIpamRoutingPolicyRegistrations": {"action": "ec2:BatchModifyIpamRoutingPolicyRegistrations", "types": ["ipam-internet-registry-association"], "resources": []}, + "ec2:AssociateVpcCidrBlock": {"action": "ec2:AssociateVpcCidrBlock", "types": ["ipam-pool", "ipv6pool-ec2", "vpc"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "Ipv4IpamPoolId"}}, {"type": "ipv6pool-ec2", "fill": {"Ipv6PoolEc2Id": "Ipv6Pool"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "ipam-pool", "fill": {"IpamPoolId": "Ipv6IpamPoolId"}}]}, + "ec2:AttachClassicLinkVpc": {"action": "ec2:AttachClassicLinkVpc", "types": ["instance", "security-group", "vpc"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}, {"type": "security-group", "fill": {"SecurityGroupId": "Groups[]"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}], "ec2Query": {"Groups[]": "SecurityGroupId"}}, + "ec2:AttachImageWatermark": {"action": "ec2:AttachImageWatermark", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, + "ec2:AttachInternetGateway": {"action": "ec2:AttachInternetGateway", "types": ["internet-gateway", "vpc"], "resources": [{"type": "internet-gateway", "fill": {"InternetGatewayId": "InternetGatewayId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:AttachNetworkInterface": {"action": "ec2:AttachNetworkInterface", "types": ["instance", "network-interface"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}, {"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, + "ec2:AttachVerifiedAccessTrustProvider": {"action": "ec2:AttachVerifiedAccessTrustProvider", "types": ["verified-access-instance", "verified-access-trust-provider"], "resources": [{"type": "verified-access-instance", "fill": {"VerifiedAccessInstanceId": "VerifiedAccessInstanceId"}}, {"type": "verified-access-trust-provider", "fill": {"VerifiedAccessTrustProviderId": "VerifiedAccessTrustProviderId"}}]}, + "ec2:AttachVolume": {"action": "ec2:AttachVolume", "types": ["instance", "volume"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}, {"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, + "ec2:AttachVpnGateway": {"action": "ec2:AttachVpnGateway", "types": ["vpc", "vpn-gateway"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "vpn-gateway", "fill": {"VpnGatewayId": "VpnGatewayId"}}]}, + "ec2:AuthorizeClientVpnIngress": {"action": "ec2:AuthorizeClientVpnIngress", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:AuthorizeSecurityGroupEgress": {"action": "ec2:AuthorizeSecurityGroupEgress", "types": ["security-group", "security-group-rule"], "resources": [{"type": "security-group", "fill": {}, "find": ["SourceSecurityGroupName"]}, {"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}]}, + "ec2:AuthorizeSecurityGroupIngress": {"action": "ec2:AuthorizeSecurityGroupIngress", "types": ["security-group", "security-group-rule"], "resources": [{"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}]}, + "ec2:BatchModifyIpamRoutingPolicyRegistrations": {"action": "ec2:BatchModifyIpamRoutingPolicyRegistrations", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, "ec2:BundleInstance": {"action": "ec2:BundleInstance", "types": [], "resources": []}, "ec2:CancelBundleTask": {"action": "ec2:CancelBundleTask", "types": [], "resources": []}, - "ec2:CancelCapacityReservation": {"action": "ec2:CancelCapacityReservation", "types": ["capacity-reservation", "capacity-reservation-cancellation-quote"], "resources": []}, - "ec2:CancelCapacityReservationFleets": {"action": "ec2:CancelCapacityReservationFleets", "types": ["capacity-reservation-fleet"], "resources": []}, + "ec2:CancelCapacityReservation": {"action": "ec2:CancelCapacityReservation", "types": ["capacity-reservation", "capacity-reservation-cancellation-quote"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}, {"type": "capacity-reservation-cancellation-quote", "fill": {"CapacityReservationCancellationQuoteId": "QuoteId"}}]}, + "ec2:CancelCapacityReservationFleets": {"action": "ec2:CancelCapacityReservationFleets", "types": ["capacity-reservation-fleet"], "resources": [{"type": "capacity-reservation-fleet", "fill": {"CapacityReservationFleetId": "CapacityReservationFleetIds[]"}}], "ec2Query": {"CapacityReservationFleetIds[]": "CapacityReservationFleetId"}}, "ec2:CancelConversionTask": {"action": "ec2:CancelConversionTask", "types": [], "resources": []}, - "ec2:CancelDeclarativePoliciesReport": {"action": "ec2:CancelDeclarativePoliciesReport", "types": ["declarative-policies-report"], "resources": []}, - "ec2:CancelExportTask": {"action": "ec2:CancelExportTask", "types": ["export-image-task", "export-instance-task"], "resources": []}, - "ec2:CancelImageLaunchPermission": {"action": "ec2:CancelImageLaunchPermission", "types": ["image"], "resources": []}, + "ec2:CancelDeclarativePoliciesReport": {"action": "ec2:CancelDeclarativePoliciesReport", "types": ["declarative-policies-report"], "resources": [{"type": "declarative-policies-report", "fill": {"DeclarativePoliciesReportId": "ReportId"}}]}, + "ec2:CancelExportTask": {"action": "ec2:CancelExportTask", "types": ["export-image-task", "export-instance-task"], "resources": [{"type": "export-instance-task", "fill": {"ExportTaskId": "ExportTaskId"}}]}, + "ec2:CancelImageLaunchPermission": {"action": "ec2:CancelImageLaunchPermission", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, "ec2:CancelImportTask": {"action": "ec2:CancelImportTask", "types": ["import-image-task", "import-snapshot-task"], "resources": []}, "ec2:CancelReservedInstancesListing": {"action": "ec2:CancelReservedInstancesListing", "types": [], "resources": []}, - "ec2:CancelSpotFleetRequests": {"action": "ec2:CancelSpotFleetRequests", "types": ["spot-fleet-request"], "resources": []}, - "ec2:CancelSpotInstanceRequests": {"action": "ec2:CancelSpotInstanceRequests", "types": ["spot-instances-request"], "resources": []}, + "ec2:CancelSpotFleetRequests": {"action": "ec2:CancelSpotFleetRequests", "types": ["spot-fleet-request"], "resources": [{"type": "spot-fleet-request", "fill": {"SpotFleetRequestId": "SpotFleetRequestIds[]"}}], "ec2Query": {"SpotFleetRequestIds[]": "SpotFleetRequestId"}}, + "ec2:CancelSpotInstanceRequests": {"action": "ec2:CancelSpotInstanceRequests", "types": ["spot-instances-request"], "resources": [{"type": "spot-instances-request", "fill": {"SpotInstanceRequestId": "SpotInstanceRequestIds[]"}}], "ec2Query": {"SpotInstanceRequestIds[]": "SpotInstanceRequestId"}}, "ec2:ConfirmProductInstance": {"action": "ec2:ConfirmProductInstance", "types": [], "resources": []}, - "ec2:CopyFpgaImage": {"action": "ec2:CopyFpgaImage", "types": ["fpga-image"], "resources": []}, - "ec2:CopyImage": {"action": "ec2:CopyImage", "types": ["image", "snapshot"], "resources": []}, - "ec2:CopySnapshot": {"action": "ec2:CopySnapshot", "types": ["snapshot"], "resources": []}, - "ec2:CopyVolumes": {"action": "ec2:CopyVolumes", "types": ["volume"], "resources": []}, - "ec2:CreateApplicationStatusCheck": {"action": "ec2:CreateApplicationStatusCheck", "types": ["application-status-check", "security-group", "subnet"], "resources": []}, - "ec2:CreateCapacityManagerDataExport": {"action": "ec2:CreateCapacityManagerDataExport", "types": ["capacity-manager-data-export"], "resources": []}, - "ec2:CreateCapacityReservation": {"action": "ec2:CreateCapacityReservation", "types": ["capacity-reservation"], "resources": []}, - "ec2:CreateCapacityReservationBySplitting": {"action": "ec2:CreateCapacityReservationBySplitting", "types": ["capacity-reservation"], "resources": []}, - "ec2:CreateCapacityReservationCancellationQuote": {"action": "ec2:CreateCapacityReservationCancellationQuote", "types": ["capacity-reservation", "capacity-reservation-cancellation-quote"], "resources": []}, - "ec2:CreateCapacityReservationDateChangeQuote": {"action": "ec2:CreateCapacityReservationDateChangeQuote", "types": ["capacity-reservation", "capacity-reservation-modification-quote"], "resources": []}, - "ec2:CreateCapacityReservationFleet": {"action": "ec2:CreateCapacityReservationFleet", "types": ["capacity-reservation-fleet"], "resources": []}, - "ec2:CreateCarrierGateway": {"action": "ec2:CreateCarrierGateway", "types": ["carrier-gateway", "vpc"], "resources": []}, - "ec2:CreateClientVpnEndpoint": {"action": "ec2:CreateClientVpnEndpoint", "types": ["client-vpn-endpoint", "security-group", "transit-gateway", "vpc"], "resources": []}, - "ec2:CreateClientVpnRoute": {"action": "ec2:CreateClientVpnRoute", "types": ["client-vpn-endpoint", "subnet"], "resources": []}, - "ec2:CreateCoipCidr": {"action": "ec2:CreateCoipCidr", "types": ["coip-pool"], "resources": []}, - "ec2:CreateCoipPool": {"action": "ec2:CreateCoipPool", "types": ["coip-pool", "local-gateway-route-table"], "resources": []}, - "ec2:CreateCustomerGateway": {"action": "ec2:CreateCustomerGateway", "types": ["customer-gateway"], "resources": []}, - "ec2:CreateDefaultSubnet": {"action": "ec2:CreateDefaultSubnet", "types": [], "resources": []}, + "ec2:CopyFpgaImage": {"action": "ec2:CopyFpgaImage", "types": ["fpga-image"], "resources": [{"type": "fpga-image", "fill": {"FpgaImageId": "SourceFpgaImageId"}}]}, + "ec2:CopyImage": {"action": "ec2:CopyImage", "types": ["image", "snapshot"], "resources": [{"types": ["image", "snapshot"], "arn": "DestinationOutpostArn"}, {"type": "image", "fill": {"ImageId": "SourceImageId"}, "made": true}]}, + "ec2:CopySnapshot": {"action": "ec2:CopySnapshot", "types": ["snapshot"], "resources": [{"types": ["snapshot"], "arn": "DestinationOutpostArn"}, {"type": "snapshot", "fill": {"SnapshotId": "SourceSnapshotId"}}]}, + "ec2:CopyVolumes": {"action": "ec2:CopyVolumes", "types": ["volume"], "resources": [{"type": "volume", "fill": {"VolumeId": "SourceVolumeId"}}]}, + "ec2:CreateApplicationStatusCheck": {"action": "ec2:CreateApplicationStatusCheck", "types": ["application-status-check", "security-group", "subnet"], "resources": [{"type": "application-status-check", "fill": {}}]}, + "ec2:CreateCapacityManagerDataExport": {"action": "ec2:CreateCapacityManagerDataExport", "types": ["capacity-manager-data-export"], "resources": [{"type": "capacity-manager-data-export", "fill": {}}]}, + "ec2:CreateCapacityReservation": {"action": "ec2:CreateCapacityReservation", "types": ["capacity-reservation"], "resources": [{"types": ["capacity-reservation"], "arn": "PlacementGroupArn"}, {"type": "capacity-reservation", "fill": {}}]}, + "ec2:CreateCapacityReservationBySplitting": {"action": "ec2:CreateCapacityReservationBySplitting", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "SourceCapacityReservationId"}}]}, + "ec2:CreateCapacityReservationCancellationQuote": {"action": "ec2:CreateCapacityReservationCancellationQuote", "types": ["capacity-reservation", "capacity-reservation-cancellation-quote"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}, {"type": "capacity-reservation-cancellation-quote", "fill": {}, "made": true}]}, + "ec2:CreateCapacityReservationDateChangeQuote": {"action": "ec2:CreateCapacityReservationDateChangeQuote", "types": ["capacity-reservation", "capacity-reservation-modification-quote"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}]}, + "ec2:CreateCapacityReservationFleet": {"action": "ec2:CreateCapacityReservationFleet", "types": ["capacity-reservation-fleet"], "resources": [{"type": "capacity-reservation-fleet", "fill": {}}]}, + "ec2:CreateCarrierGateway": {"action": "ec2:CreateCarrierGateway", "types": ["carrier-gateway", "vpc"], "resources": [{"type": "carrier-gateway", "fill": {}, "made": true}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:CreateClientVpnEndpoint": {"action": "ec2:CreateClientVpnEndpoint", "types": ["client-vpn-endpoint", "security-group", "transit-gateway", "vpc"], "resources": [{"types": ["client-vpn-endpoint", "security-group", "transit-gateway", "vpc"], "arn": "ClientConnectOptions.LambdaFunctionArn"}, {"types": ["client-vpn-endpoint", "security-group", "transit-gateway", "vpc"], "arn": "ServerCertificateArn"}, {"type": "client-vpn-endpoint", "fill": {}, "made": true}, {"type": "security-group", "fill": {"SecurityGroupId": "SecurityGroupIds[]"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayConfiguration.TransitGatewayId"}}], "ec2Query": {"SecurityGroupIds[]": "SecurityGroupId"}}, + "ec2:CreateClientVpnRoute": {"action": "ec2:CreateClientVpnRoute", "types": ["client-vpn-endpoint", "subnet"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}, {"type": "subnet", "fill": {"SubnetId": "TargetVpcSubnetId"}}]}, + "ec2:CreateCoipCidr": {"action": "ec2:CreateCoipCidr", "types": ["coip-pool"], "resources": [{"type": "coip-pool", "fill": {"Ipv4PoolCoipId": "CoipPoolId"}}]}, + "ec2:CreateCoipPool": {"action": "ec2:CreateCoipPool", "types": ["coip-pool", "local-gateway-route-table"], "resources": [{"type": "coip-pool", "fill": {}, "made": true}, {"type": "local-gateway-route-table", "fill": {"LocalGatewayRoutetableId": "LocalGatewayRouteTableId"}}]}, + "ec2:CreateCustomerGateway": {"action": "ec2:CreateCustomerGateway", "types": ["customer-gateway"], "resources": [{"types": ["customer-gateway"], "arn": "CertificateArn"}, {"type": "customer-gateway", "fill": {}}]}, + "ec2:CreateDefaultSubnet": {"action": "ec2:CreateDefaultSubnet", "types": [], "resources": [], "makes": [{"type": "subnet", "fill": {}}]}, "ec2:CreateDefaultVpc": {"action": "ec2:CreateDefaultVpc", "types": [], "resources": []}, - "ec2:CreateDelegateMacVolumeOwnershipTask": {"action": "ec2:CreateDelegateMacVolumeOwnershipTask", "types": ["instance", "mac-modification-task"], "resources": []}, - "ec2:CreateDhcpOptions": {"action": "ec2:CreateDhcpOptions", "types": ["dhcp-options"], "resources": []}, - "ec2:CreateEgressOnlyInternetGateway": {"action": "ec2:CreateEgressOnlyInternetGateway", "types": ["egress-only-internet-gateway", "vpc"], "resources": []}, - "ec2:CreateFleet": {"action": "ec2:CreateFleet", "types": ["capacity-reservation", "fleet", "image", "instance", "launch-template", "placement-group", "subnet", "volume"], "resources": []}, - "ec2:CreateFlowLogs": {"action": "ec2:CreateFlowLogs", "types": ["natgateway", "network-interface", "subnet", "transit-gateway", "transit-gateway-attachment", "vpc", "vpc-flow-log"], "resources": []}, - "ec2:CreateFpgaImage": {"action": "ec2:CreateFpgaImage", "types": ["fpga-image"], "resources": []}, - "ec2:CreateImage": {"action": "ec2:CreateImage", "types": ["image", "instance", "snapshot"], "resources": []}, - "ec2:CreateImageUsageReport": {"action": "ec2:CreateImageUsageReport", "types": ["image", "image-usage-report"], "resources": []}, - "ec2:CreateInstanceConnectEndpoint": {"action": "ec2:CreateInstanceConnectEndpoint", "types": ["instance-connect-endpoint", "security-group", "subnet"], "resources": []}, - "ec2:CreateInstanceEventWindow": {"action": "ec2:CreateInstanceEventWindow", "types": ["instance-event-window"], "resources": []}, - "ec2:CreateInstanceExportTask": {"action": "ec2:CreateInstanceExportTask", "types": ["export-instance-task", "instance"], "resources": []}, - "ec2:CreateInternetGateway": {"action": "ec2:CreateInternetGateway", "types": ["internet-gateway"], "resources": []}, - "ec2:CreateInterruptibleCapacityReservationAllocation": {"action": "ec2:CreateInterruptibleCapacityReservationAllocation", "types": ["capacity-reservation"], "resources": []}, - "ec2:CreateIpam": {"action": "ec2:CreateIpam", "types": ["ipam"], "resources": []}, - "ec2:CreateIpamExternalResourceVerificationToken": {"action": "ec2:CreateIpamExternalResourceVerificationToken", "types": ["ipam", "ipam-external-resource-verification-token"], "resources": []}, - "ec2:CreateIpamInternetRegistryAssociation": {"action": "ec2:CreateIpamInternetRegistryAssociation", "types": ["ipam", "ipam-internet-registry-association"], "resources": []}, - "ec2:CreateIpamPolicy": {"action": "ec2:CreateIpamPolicy", "types": ["ipam", "ipam-policy"], "resources": []}, - "ec2:CreateIpamPool": {"action": "ec2:CreateIpamPool", "types": ["ipam-pool", "ipam-scope"], "resources": []}, - "ec2:CreateIpamPrefixListResolver": {"action": "ec2:CreateIpamPrefixListResolver", "types": ["ipam", "ipam-prefix-list-resolver", "ipam-scope"], "resources": []}, - "ec2:CreateIpamPrefixListResolverTarget": {"action": "ec2:CreateIpamPrefixListResolverTarget", "types": ["ipam-prefix-list-resolver", "ipam-prefix-list-resolver-target"], "resources": []}, - "ec2:CreateIpamResourceDiscovery": {"action": "ec2:CreateIpamResourceDiscovery", "types": ["ipam-resource-discovery"], "resources": []}, - "ec2:CreateIpamRoutingPolicyRegistration": {"action": "ec2:CreateIpamRoutingPolicyRegistration", "types": ["ipam-internet-registry-association"], "resources": []}, - "ec2:CreateIpamScope": {"action": "ec2:CreateIpamScope", "types": ["ipam", "ipam-scope"], "resources": []}, - "ec2:CreateKeyPair": {"action": "ec2:CreateKeyPair", "types": ["key-pair"], "resources": []}, - "ec2:CreateLaunchTemplate": {"action": "ec2:CreateLaunchTemplate", "types": ["launch-template"], "resources": []}, - "ec2:CreateLaunchTemplateVersion": {"action": "ec2:CreateLaunchTemplateVersion", "types": ["launch-template"], "resources": []}, - "ec2:CreateLocalGatewayRoute": {"action": "ec2:CreateLocalGatewayRoute", "types": ["local-gateway-route-table", "local-gateway-virtual-interface-group", "network-interface", "prefix-list"], "resources": []}, - "ec2:CreateLocalGatewayRouteTable": {"action": "ec2:CreateLocalGatewayRouteTable", "types": ["local-gateway", "local-gateway-route-table"], "resources": []}, - "ec2:CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation": {"action": "ec2:CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", "types": ["local-gateway-route-table", "local-gateway-route-table-virtual-interface-group-association", "local-gateway-virtual-interface-group"], "resources": []}, - "ec2:CreateLocalGatewayRouteTableVpcAssociation": {"action": "ec2:CreateLocalGatewayRouteTableVpcAssociation", "types": ["local-gateway-route-table", "local-gateway-route-table-vpc-association", "vpc"], "resources": []}, - "ec2:CreateLocalGatewayVirtualInterface": {"action": "ec2:CreateLocalGatewayVirtualInterface", "types": ["local-gateway-virtual-interface", "local-gateway-virtual-interface-group", "outpost-lag"], "resources": []}, - "ec2:CreateLocalGatewayVirtualInterfaceGroup": {"action": "ec2:CreateLocalGatewayVirtualInterfaceGroup", "types": ["local-gateway", "local-gateway-virtual-interface-group"], "resources": []}, - "ec2:CreateMacSystemIntegrityProtectionModificationTask": {"action": "ec2:CreateMacSystemIntegrityProtectionModificationTask", "types": ["instance", "mac-modification-task"], "resources": []}, - "ec2:CreateManagedPrefixList": {"action": "ec2:CreateManagedPrefixList", "types": ["prefix-list"], "resources": []}, + "ec2:CreateDelegateMacVolumeOwnershipTask": {"action": "ec2:CreateDelegateMacVolumeOwnershipTask", "types": ["instance", "mac-modification-task"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:CreateDhcpOptions": {"action": "ec2:CreateDhcpOptions", "types": ["dhcp-options"], "resources": [{"type": "dhcp-options", "fill": {}}]}, + "ec2:CreateEgressOnlyInternetGateway": {"action": "ec2:CreateEgressOnlyInternetGateway", "types": ["egress-only-internet-gateway", "vpc"], "resources": [{"type": "egress-only-internet-gateway", "fill": {}, "made": true}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:CreateFleet": {"action": "ec2:CreateFleet", "types": ["capacity-reservation", "fleet", "image", "instance", "launch-template", "placement-group", "subnet", "volume"], "resources": [{"type": "fleet", "fill": {}}]}, + "ec2:CreateFlowLogs": {"action": "ec2:CreateFlowLogs", "types": ["natgateway", "network-interface", "subnet", "transit-gateway", "transit-gateway-attachment", "vpc", "vpc-flow-log"], "resources": [], "targets": {"member": "ResourceIds[]", "query": "ResourceId", "prefixes": {"network-interface": "eni-"}}}, + "ec2:CreateFpgaImage": {"action": "ec2:CreateFpgaImage", "types": ["fpga-image"], "resources": [{"type": "fpga-image", "fill": {}}]}, + "ec2:CreateImage": {"action": "ec2:CreateImage", "types": ["image", "instance", "snapshot"], "resources": [{"type": "image", "fill": {}, "made": true}, {"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:CreateImageUsageReport": {"action": "ec2:CreateImageUsageReport", "types": ["image", "image-usage-report"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}, {"type": "image-usage-report", "fill": {}, "made": true}]}, + "ec2:CreateInstanceConnectEndpoint": {"action": "ec2:CreateInstanceConnectEndpoint", "types": ["instance-connect-endpoint", "security-group", "subnet"], "resources": [{"type": "instance-connect-endpoint", "fill": {}, "made": true}, {"type": "security-group", "fill": {"SecurityGroupId": "SecurityGroupIds[]"}}, {"type": "subnet", "fill": {"SubnetId": "SubnetId"}}], "ec2Query": {"SecurityGroupIds[]": "SecurityGroupId"}}, + "ec2:CreateInstanceEventWindow": {"action": "ec2:CreateInstanceEventWindow", "types": ["instance-event-window"], "resources": [{"type": "instance-event-window", "fill": {}}]}, + "ec2:CreateInstanceExportTask": {"action": "ec2:CreateInstanceExportTask", "types": ["export-instance-task", "instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:CreateInternetGateway": {"action": "ec2:CreateInternetGateway", "types": ["internet-gateway"], "resources": [{"type": "internet-gateway", "fill": {}}]}, + "ec2:CreateInterruptibleCapacityReservationAllocation": {"action": "ec2:CreateInterruptibleCapacityReservationAllocation", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}]}, + "ec2:CreateIpam": {"action": "ec2:CreateIpam", "types": ["ipam"], "resources": [{"type": "ipam", "fill": {}, "account": "MeteredAccount"}]}, + "ec2:CreateIpamExternalResourceVerificationToken": {"action": "ec2:CreateIpamExternalResourceVerificationToken", "types": ["ipam", "ipam-external-resource-verification-token"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}, {"type": "ipam-external-resource-verification-token", "fill": {}, "made": true}]}, + "ec2:CreateIpamInternetRegistryAssociation": {"action": "ec2:CreateIpamInternetRegistryAssociation", "types": ["ipam", "ipam-internet-registry-association"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}, {"type": "ipam-internet-registry-association", "fill": {}, "made": true}]}, + "ec2:CreateIpamPolicy": {"action": "ec2:CreateIpamPolicy", "types": ["ipam", "ipam-policy"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}, {"type": "ipam-policy", "fill": {}, "made": true}]}, + "ec2:CreateIpamPool": {"action": "ec2:CreateIpamPool", "types": ["ipam-pool", "ipam-scope"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "SourceIpamPoolId"}, "made": true}, {"type": "ipam-scope", "fill": {"IpamScopeId": "IpamScopeId"}}]}, + "ec2:CreateIpamPrefixListResolver": {"action": "ec2:CreateIpamPrefixListResolver", "types": ["ipam", "ipam-prefix-list-resolver", "ipam-scope"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}, {"type": "ipam-prefix-list-resolver", "fill": {}, "made": true}, {"type": "ipam-scope", "fill": {"IpamScopeId": "Rules[].IpamScopeId"}}]}, + "ec2:CreateIpamPrefixListResolverTarget": {"action": "ec2:CreateIpamPrefixListResolverTarget", "types": ["ipam-prefix-list-resolver", "ipam-prefix-list-resolver-target"], "resources": [{"type": "ipam-prefix-list-resolver", "fill": {"IpamPrefixListResolverId": "IpamPrefixListResolverId"}}, {"type": "ipam-prefix-list-resolver-target", "fill": {}, "made": true}]}, + "ec2:CreateIpamResourceDiscovery": {"action": "ec2:CreateIpamResourceDiscovery", "types": ["ipam-resource-discovery"], "resources": [{"type": "ipam-resource-discovery", "fill": {}}]}, + "ec2:CreateIpamRoutingPolicyRegistration": {"action": "ec2:CreateIpamRoutingPolicyRegistration", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, + "ec2:CreateIpamScope": {"action": "ec2:CreateIpamScope", "types": ["ipam", "ipam-scope"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}, {"type": "ipam-scope", "fill": {}, "made": true}]}, + "ec2:CreateKeyPair": {"action": "ec2:CreateKeyPair", "types": ["key-pair"], "resources": [{"type": "key-pair", "fill": {"KeyPairName": "KeyName"}}]}, + "ec2:CreateLaunchTemplate": {"action": "ec2:CreateLaunchTemplate", "types": ["launch-template"], "resources": [{"type": "launch-template", "fill": {}, "find": ["LaunchTemplateName"]}]}, + "ec2:CreateLaunchTemplateVersion": {"action": "ec2:CreateLaunchTemplateVersion", "types": ["launch-template"], "resources": [{"type": "launch-template", "fill": {"LaunchTemplateId": "LaunchTemplateId"}}]}, + "ec2:CreateLocalGatewayRoute": {"action": "ec2:CreateLocalGatewayRoute", "types": ["local-gateway-route-table", "local-gateway-virtual-interface-group", "network-interface", "prefix-list"], "resources": [{"type": "local-gateway-route-table", "fill": {"LocalGatewayRoutetableId": "LocalGatewayRouteTableId"}}, {"type": "local-gateway-virtual-interface-group", "fill": {"LocalGatewayVirtualInterfaceGroupId": "LocalGatewayVirtualInterfaceGroupId"}}, {"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}, {"type": "prefix-list", "fill": {"PrefixListId": "DestinationPrefixListId"}}]}, + "ec2:CreateLocalGatewayRouteTable": {"action": "ec2:CreateLocalGatewayRouteTable", "types": ["local-gateway", "local-gateway-route-table"], "resources": [{"type": "local-gateway", "fill": {"LocalGatewayId": "LocalGatewayId"}}, {"type": "local-gateway-route-table", "fill": {}, "made": true}]}, + "ec2:CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation": {"action": "ec2:CreateLocalGatewayRouteTableVirtualInterfaceGroupAssociation", "types": ["local-gateway-route-table", "local-gateway-route-table-virtual-interface-group-association", "local-gateway-virtual-interface-group"], "resources": [{"type": "local-gateway-route-table", "fill": {"LocalGatewayRoutetableId": "LocalGatewayRouteTableId"}}, {"type": "local-gateway-route-table-virtual-interface-group-association", "fill": {}, "made": true}, {"type": "local-gateway-virtual-interface-group", "fill": {"LocalGatewayVirtualInterfaceGroupId": "LocalGatewayVirtualInterfaceGroupId"}}]}, + "ec2:CreateLocalGatewayRouteTableVpcAssociation": {"action": "ec2:CreateLocalGatewayRouteTableVpcAssociation", "types": ["local-gateway-route-table", "local-gateway-route-table-vpc-association", "vpc"], "resources": [{"type": "local-gateway-route-table", "fill": {"LocalGatewayRoutetableId": "LocalGatewayRouteTableId"}}, {"type": "local-gateway-route-table-vpc-association", "fill": {}, "made": true}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:CreateLocalGatewayVirtualInterface": {"action": "ec2:CreateLocalGatewayVirtualInterface", "types": ["local-gateway-virtual-interface", "local-gateway-virtual-interface-group", "outpost-lag"], "resources": [{"type": "local-gateway-virtual-interface", "fill": {}, "made": true}, {"type": "local-gateway-virtual-interface-group", "fill": {"LocalGatewayVirtualInterfaceGroupId": "LocalGatewayVirtualInterfaceGroupId"}}, {"type": "outpost-lag", "fill": {"OutpostLagId": "OutpostLagId"}}]}, + "ec2:CreateLocalGatewayVirtualInterfaceGroup": {"action": "ec2:CreateLocalGatewayVirtualInterfaceGroup", "types": ["local-gateway", "local-gateway-virtual-interface-group"], "resources": [{"type": "local-gateway", "fill": {"LocalGatewayId": "LocalGatewayId"}}, {"type": "local-gateway-virtual-interface-group", "fill": {}, "made": true}]}, + "ec2:CreateMacSystemIntegrityProtectionModificationTask": {"action": "ec2:CreateMacSystemIntegrityProtectionModificationTask", "types": ["instance", "mac-modification-task"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:CreateManagedPrefixList": {"action": "ec2:CreateManagedPrefixList", "types": ["prefix-list"], "resources": [{"type": "prefix-list", "fill": {}, "find": ["PrefixListName"]}]}, "ec2:CreateMetricCategory": {"action": "ec2:CreateMetricCategory", "types": [], "resources": []}, - "ec2:CreateNatGateway": {"action": "ec2:CreateNatGateway", "types": ["elastic-ip", "natgateway", "subnet", "vpc"], "resources": []}, - "ec2:CreateNetworkAcl": {"action": "ec2:CreateNetworkAcl", "types": ["network-acl", "vpc"], "resources": []}, - "ec2:CreateNetworkAclEntry": {"action": "ec2:CreateNetworkAclEntry", "types": ["network-acl"], "resources": []}, - "ec2:CreateNetworkInsightsAccessScope": {"action": "ec2:CreateNetworkInsightsAccessScope", "types": ["network-insights-access-scope"], "resources": []}, - "ec2:CreateNetworkInsightsPath": {"action": "ec2:CreateNetworkInsightsPath", "types": ["instance", "internet-gateway", "network-insights-path", "network-interface", "transit-gateway", "vpc-endpoint", "vpc-endpoint-service", "vpc-peering-connection", "vpn-gateway"], "resources": []}, - "ec2:CreateNetworkInterface": {"action": "ec2:CreateNetworkInterface", "types": ["network-interface", "security-group", "subnet"], "resources": []}, - "ec2:CreateNetworkInterfacePermission": {"action": "ec2:CreateNetworkInterfacePermission", "types": ["network-interface"], "resources": []}, + "ec2:CreateNatGateway": {"action": "ec2:CreateNatGateway", "types": ["elastic-ip", "natgateway", "subnet", "vpc"], "resources": [{"type": "elastic-ip", "fill": {"AllocationId": "AllocationId"}}, {"type": "natgateway", "fill": {}, "made": true}, {"type": "subnet", "fill": {"SubnetId": "SubnetId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:CreateNetworkAcl": {"action": "ec2:CreateNetworkAcl", "types": ["network-acl", "vpc"], "resources": [{"type": "network-acl", "fill": {}, "made": true}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:CreateNetworkAclEntry": {"action": "ec2:CreateNetworkAclEntry", "types": ["network-acl"], "resources": [{"type": "network-acl", "fill": {"NaclId": "NetworkAclId"}}]}, + "ec2:CreateNetworkInsightsAccessScope": {"action": "ec2:CreateNetworkInsightsAccessScope", "types": ["network-insights-access-scope"], "resources": [{"type": "network-insights-access-scope", "fill": {}}]}, + "ec2:CreateNetworkInsightsPath": {"action": "ec2:CreateNetworkInsightsPath", "types": ["instance", "internet-gateway", "network-insights-path", "network-interface", "transit-gateway", "vpc-endpoint", "vpc-endpoint-service", "vpc-peering-connection", "vpn-gateway"], "resources": [{"type": "network-insights-path", "fill": {}}]}, + "ec2:CreateNetworkInterface": {"action": "ec2:CreateNetworkInterface", "types": ["network-interface", "security-group", "subnet"], "resources": [{"type": "network-interface", "fill": {}, "made": true}, {"type": "security-group", "fill": {"SecurityGroupId": "Groups[]"}}, {"type": "subnet", "fill": {"SubnetId": "SubnetId"}}], "ec2Query": {"Groups[]": "SecurityGroupId"}}, + "ec2:CreateNetworkInterfacePermission": {"action": "ec2:CreateNetworkInterfacePermission", "types": ["network-interface"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, "ec2:CreateNetworkingFlexCostAllocationPolicy": {"action": "ec2:CreateNetworkingFlexCostAllocationPolicy", "types": [], "resources": []}, - "ec2:CreatePlacementGroup": {"action": "ec2:CreatePlacementGroup", "types": ["placement-group"], "resources": []}, + "ec2:CreatePlacementGroup": {"action": "ec2:CreatePlacementGroup", "types": ["placement-group"], "resources": [{"type": "placement-group", "fill": {"PlacementGroupName": "GroupName"}}]}, "ec2:CreatePublicIpv4Pool": {"action": "ec2:CreatePublicIpv4Pool", "types": ["ipv4pool-ec2"], "resources": []}, - "ec2:CreateReplaceRootVolumeTask": {"action": "ec2:CreateReplaceRootVolumeTask", "types": ["image", "instance", "replace-root-volume-task", "snapshot", "volume"], "resources": []}, + "ec2:CreateReplaceRootVolumeTask": {"action": "ec2:CreateReplaceRootVolumeTask", "types": ["image", "instance", "replace-root-volume-task", "snapshot", "volume"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}, {"type": "instance", "fill": {"InstanceId": "InstanceId"}}, {"type": "replace-root-volume-task", "fill": {}, "made": true}, {"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}, {"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, "ec2:CreateReservedInstancesListing": {"action": "ec2:CreateReservedInstancesListing", "types": [], "resources": []}, "ec2:CreateRestoreImageTask": {"action": "ec2:CreateRestoreImageTask", "types": ["image"], "resources": []}, - "ec2:CreateRoute": {"action": "ec2:CreateRoute", "types": ["route-table"], "resources": []}, - "ec2:CreateRouteServer": {"action": "ec2:CreateRouteServer", "types": ["route-server"], "resources": []}, - "ec2:CreateRouteServerEndpoint": {"action": "ec2:CreateRouteServerEndpoint", "types": ["route-server", "route-server-endpoint", "subnet"], "resources": []}, - "ec2:CreateRouteServerPeer": {"action": "ec2:CreateRouteServerPeer", "types": ["route-server-endpoint", "route-server-peer"], "resources": []}, - "ec2:CreateRouteTable": {"action": "ec2:CreateRouteTable", "types": ["route-table", "vpc"], "resources": []}, - "ec2:CreateSecondaryNetwork": {"action": "ec2:CreateSecondaryNetwork", "types": ["secondary-network"], "resources": []}, - "ec2:CreateSecondarySubnet": {"action": "ec2:CreateSecondarySubnet", "types": ["secondary-network", "secondary-subnet"], "resources": []}, - "ec2:CreateSecurityGroup": {"action": "ec2:CreateSecurityGroup", "types": ["security-group", "vpc"], "resources": []}, - "ec2:CreateSnapshot": {"action": "ec2:CreateSnapshot", "types": ["snapshot", "volume"], "resources": []}, - "ec2:CreateSnapshots": {"action": "ec2:CreateSnapshots", "types": ["instance", "snapshot", "volume"], "resources": []}, + "ec2:CreateRoute": {"action": "ec2:CreateRoute", "types": ["route-table"], "resources": [{"types": ["route-table"], "arn": "CoreNetworkArn"}, {"types": ["route-table"], "arn": "OdbNetworkArn"}, {"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}]}, + "ec2:CreateRouteServer": {"action": "ec2:CreateRouteServer", "types": ["route-server"], "resources": [{"type": "route-server", "fill": {}}]}, + "ec2:CreateRouteServerEndpoint": {"action": "ec2:CreateRouteServerEndpoint", "types": ["route-server", "route-server-endpoint", "subnet"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}, {"type": "route-server-endpoint", "fill": {}, "made": true}, {"type": "subnet", "fill": {"SubnetId": "SubnetId"}}]}, + "ec2:CreateRouteServerPeer": {"action": "ec2:CreateRouteServerPeer", "types": ["route-server-endpoint", "route-server-peer"], "resources": [{"type": "route-server-endpoint", "fill": {"RouteServerEndpointId": "RouteServerEndpointId"}}, {"type": "route-server-peer", "fill": {}, "made": true}]}, + "ec2:CreateRouteTable": {"action": "ec2:CreateRouteTable", "types": ["route-table", "vpc"], "resources": [{"type": "route-table", "fill": {}, "made": true}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:CreateSecondaryNetwork": {"action": "ec2:CreateSecondaryNetwork", "types": ["secondary-network"], "resources": [{"type": "secondary-network", "fill": {}}]}, + "ec2:CreateSecondarySubnet": {"action": "ec2:CreateSecondarySubnet", "types": ["secondary-network", "secondary-subnet"], "resources": [{"type": "secondary-network", "fill": {"SecondaryNetworkId": "SecondaryNetworkId"}}, {"type": "secondary-subnet", "fill": {}, "made": true}]}, + "ec2:CreateSecurityGroup": {"action": "ec2:CreateSecurityGroup", "types": ["security-group", "vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "security-group", "fill": {}, "find": ["GroupName"], "made": true}]}, + "ec2:CreateSnapshot": {"action": "ec2:CreateSnapshot", "types": ["snapshot", "volume"], "resources": [{"types": ["snapshot", "volume"], "arn": "OutpostArn"}, {"type": "snapshot", "fill": {}, "made": true}, {"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, + "ec2:CreateSnapshots": {"action": "ec2:CreateSnapshots", "types": ["instance", "snapshot", "volume"], "resources": [{"types": ["instance", "snapshot", "volume"], "arn": "OutpostArn"}, {"type": "snapshot", "fill": {}, "made": true}, {"type": "instance", "fill": {"InstanceId": "InstanceSpecification.InstanceId"}}]}, "ec2:CreateSpotDatafeedSubscription": {"action": "ec2:CreateSpotDatafeedSubscription", "types": [], "resources": []}, - "ec2:CreateStoreImageTask": {"action": "ec2:CreateStoreImageTask", "types": ["image"], "resources": []}, - "ec2:CreateSubnet": {"action": "ec2:CreateSubnet", "types": ["ipam-pool", "subnet", "vpc"], "resources": []}, - "ec2:CreateSubnetCidrReservation": {"action": "ec2:CreateSubnetCidrReservation", "types": ["subnet"], "resources": []}, - "ec2:CreateTags": {"action": "ec2:CreateTags", "types": ["application-status-check", "capacity-block", "capacity-manager-data-export", "capacity-reservation", "capacity-reservation-cancellation-quote", "capacity-reservation-fleet", "carrier-gateway", "client-vpn-endpoint", "coip-pool", "customer-gateway", "declarative-policies-report", "dedicated-host", "dhcp-options", "egress-only-internet-gateway", "elastic-gpu", "elastic-ip", "export-image-task", "export-instance-task", "fleet", "fpga-image", "host-reservation", "image", "image-usage-report", "import-image-task", "import-snapshot-task", "instance", "instance-connect-endpoint", "instance-event-window", "internet-gateway", "ipam", "ipam-external-resource-verification-token", "ipam-internet-registry-association", "ipam-policy", "ipam-pool", "ipam-pool-allocation", "ipam-prefix-list-resolver", "ipam-prefix-list-resolver-target", "ipam-resource-discovery", "ipam-resource-discovery-association", "ipam-scope", "ipv4pool-ec2", "ipv6pool-ec2", "key-pair", "launch-template", "local-gateway", "local-gateway-route-table", "local-gateway-route-table-virtual-interface-group-association", "local-gateway-route-table-vpc-association", "local-gateway-virtual-interface", "local-gateway-virtual-interface-group", "natgateway", "network-acl", "network-insights-access-scope", "network-insights-access-scope-analysis", "network-insights-analysis", "network-insights-path", "network-interface", "placement-group", "prefix-list", "replace-root-volume-task", "reserved-instances", "route-server", "route-server-endpoint", "route-server-peer", "route-table", "secondary-interface", "secondary-network", "secondary-subnet", "security-group", "security-group-rule", "snapshot", "spot-fleet-request", "spot-instances-request", "subnet", "subnet-cidr-reservation", "traffic-mirror-filter", "traffic-mirror-filter-rule", "traffic-mirror-session", "traffic-mirror-target", "transit-gateway", "transit-gateway-attachment", "transit-gateway-connect-peer", "transit-gateway-metering-policy", "transit-gateway-multicast-domain", "transit-gateway-policy-table", "transit-gateway-route-table", "transit-gateway-route-table-announcement", "verified-access-endpoint", "verified-access-endpoint-target", "verified-access-group", "verified-access-instance", "verified-access-policy", "verified-access-trust-provider", "volume", "vpc", "vpc-block-public-access-exclusion", "vpc-encryption-control", "vpc-endpoint", "vpc-endpoint-connection", "vpc-endpoint-service", "vpc-endpoint-service-permission", "vpc-flow-log", "vpc-peering-connection", "vpn-concentrator", "vpn-connection", "vpn-gateway"], "resources": [], "targets": {"member": "Resources[]", "query": "ResourceId", "prefixes": {"instance": "i-"}}}, - "ec2:CreateTrafficMirrorFilter": {"action": "ec2:CreateTrafficMirrorFilter", "types": ["traffic-mirror-filter"], "resources": []}, - "ec2:CreateTrafficMirrorFilterRule": {"action": "ec2:CreateTrafficMirrorFilterRule", "types": ["traffic-mirror-filter", "traffic-mirror-filter-rule"], "resources": []}, - "ec2:CreateTrafficMirrorSession": {"action": "ec2:CreateTrafficMirrorSession", "types": ["network-interface", "traffic-mirror-filter", "traffic-mirror-session", "traffic-mirror-target"], "resources": []}, - "ec2:CreateTrafficMirrorTarget": {"action": "ec2:CreateTrafficMirrorTarget", "types": ["network-interface", "traffic-mirror-target", "vpc-endpoint"], "resources": []}, - "ec2:CreateTransitGateway": {"action": "ec2:CreateTransitGateway", "types": ["transit-gateway"], "resources": []}, - "ec2:CreateTransitGatewayConnect": {"action": "ec2:CreateTransitGatewayConnect", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:CreateTransitGatewayConnectPeer": {"action": "ec2:CreateTransitGatewayConnectPeer", "types": ["transit-gateway-attachment", "transit-gateway-connect-peer"], "resources": []}, - "ec2:CreateTransitGatewayMeteringPolicy": {"action": "ec2:CreateTransitGatewayMeteringPolicy", "types": ["transit-gateway", "transit-gateway-attachment", "transit-gateway-metering-policy"], "resources": []}, - "ec2:CreateTransitGatewayMeteringPolicyEntry": {"action": "ec2:CreateTransitGatewayMeteringPolicyEntry", "types": ["transit-gateway-attachment", "transit-gateway-metering-policy"], "resources": []}, - "ec2:CreateTransitGatewayMulticastDomain": {"action": "ec2:CreateTransitGatewayMulticastDomain", "types": ["transit-gateway", "transit-gateway-multicast-domain"], "resources": []}, - "ec2:CreateTransitGatewayPeeringAttachment": {"action": "ec2:CreateTransitGatewayPeeringAttachment", "types": ["transit-gateway", "transit-gateway-attachment"], "resources": []}, - "ec2:CreateTransitGatewayPolicyTable": {"action": "ec2:CreateTransitGatewayPolicyTable", "types": ["transit-gateway", "transit-gateway-policy-table"], "resources": []}, - "ec2:CreateTransitGatewayPolicyTableEntry": {"action": "ec2:CreateTransitGatewayPolicyTableEntry", "types": ["transit-gateway-policy-table", "transit-gateway-route-table"], "resources": []}, - "ec2:CreateTransitGatewayPrefixListReference": {"action": "ec2:CreateTransitGatewayPrefixListReference", "types": ["prefix-list", "transit-gateway-attachment", "transit-gateway-route-table"], "resources": []}, - "ec2:CreateTransitGatewayRoute": {"action": "ec2:CreateTransitGatewayRoute", "types": ["transit-gateway-attachment", "transit-gateway-route-table"], "resources": []}, - "ec2:CreateTransitGatewayRouteTable": {"action": "ec2:CreateTransitGatewayRouteTable", "types": ["transit-gateway", "transit-gateway-route-table"], "resources": []}, - "ec2:CreateTransitGatewayRouteTableAnnouncement": {"action": "ec2:CreateTransitGatewayRouteTableAnnouncement", "types": ["transit-gateway-attachment", "transit-gateway-route-table", "transit-gateway-route-table-announcement"], "resources": []}, - "ec2:CreateTransitGatewayVpcAttachment": {"action": "ec2:CreateTransitGatewayVpcAttachment", "types": ["subnet", "transit-gateway", "transit-gateway-attachment", "vpc"], "resources": []}, - "ec2:CreateVerifiedAccessEndpoint": {"action": "ec2:CreateVerifiedAccessEndpoint", "types": ["network-interface", "security-group", "subnet", "verified-access-endpoint", "verified-access-group"], "resources": []}, - "ec2:CreateVerifiedAccessGroup": {"action": "ec2:CreateVerifiedAccessGroup", "types": ["verified-access-group", "verified-access-instance"], "resources": []}, - "ec2:CreateVerifiedAccessInstance": {"action": "ec2:CreateVerifiedAccessInstance", "types": ["verified-access-instance"], "resources": []}, - "ec2:CreateVerifiedAccessTrustProvider": {"action": "ec2:CreateVerifiedAccessTrustProvider", "types": ["verified-access-trust-provider"], "resources": []}, - "ec2:CreateVolume": {"action": "ec2:CreateVolume", "types": ["snapshot", "volume"], "resources": []}, - "ec2:CreateVpc": {"action": "ec2:CreateVpc", "types": ["ipam-pool", "ipv6pool-ec2", "vpc"], "resources": []}, - "ec2:CreateVpcBlockPublicAccessExclusion": {"action": "ec2:CreateVpcBlockPublicAccessExclusion", "types": ["subnet", "vpc", "vpc-block-public-access-exclusion"], "resources": []}, - "ec2:CreateVpcEncryptionControl": {"action": "ec2:CreateVpcEncryptionControl", "types": ["vpc", "vpc-encryption-control"], "resources": []}, - "ec2:CreateVpcEndpoint": {"action": "ec2:CreateVpcEndpoint", "types": ["route-table", "security-group", "subnet", "vpc", "vpc-endpoint"], "resources": []}, - "ec2:CreateVpcEndpointConnectionNotification": {"action": "ec2:CreateVpcEndpointConnectionNotification", "types": ["vpc-endpoint", "vpc-endpoint-service"], "resources": []}, - "ec2:CreateVpcEndpointServiceConfiguration": {"action": "ec2:CreateVpcEndpointServiceConfiguration", "types": ["vpc-endpoint-service"], "resources": []}, - "ec2:CreateVpcPeeringConnection": {"action": "ec2:CreateVpcPeeringConnection", "types": ["vpc", "vpc-peering-connection"], "resources": []}, - "ec2:CreateVpnConcentrator": {"action": "ec2:CreateVpnConcentrator", "types": ["transit-gateway", "vpn-concentrator"], "resources": []}, - "ec2:CreateVpnConnection": {"action": "ec2:CreateVpnConnection", "types": ["customer-gateway", "transit-gateway", "transit-gateway-attachment", "vpn-concentrator", "vpn-connection", "vpn-gateway"], "resources": []}, - "ec2:CreateVpnConnectionRoute": {"action": "ec2:CreateVpnConnectionRoute", "types": ["vpn-connection"], "resources": []}, - "ec2:CreateVpnGateway": {"action": "ec2:CreateVpnGateway", "types": ["vpn-gateway"], "resources": []}, - "ec2:DeleteApplicationStatusCheck": {"action": "ec2:DeleteApplicationStatusCheck", "types": ["application-status-check"], "resources": []}, - "ec2:DeleteCapacityManagerDataExport": {"action": "ec2:DeleteCapacityManagerDataExport", "types": ["capacity-manager-data-export"], "resources": []}, - "ec2:DeleteCarrierGateway": {"action": "ec2:DeleteCarrierGateway", "types": ["carrier-gateway"], "resources": []}, - "ec2:DeleteClientVpnEndpoint": {"action": "ec2:DeleteClientVpnEndpoint", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:DeleteClientVpnEndpointAuthorizationPolicy": {"action": "ec2:DeleteClientVpnEndpointAuthorizationPolicy", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:DeleteClientVpnRoute": {"action": "ec2:DeleteClientVpnRoute", "types": ["client-vpn-endpoint", "subnet"], "resources": []}, - "ec2:DeleteCoipCidr": {"action": "ec2:DeleteCoipCidr", "types": ["coip-pool"], "resources": []}, - "ec2:DeleteCoipPool": {"action": "ec2:DeleteCoipPool", "types": ["coip-pool"], "resources": []}, - "ec2:DeleteCustomerGateway": {"action": "ec2:DeleteCustomerGateway", "types": ["customer-gateway"], "resources": []}, - "ec2:DeleteDhcpOptions": {"action": "ec2:DeleteDhcpOptions", "types": ["dhcp-options"], "resources": []}, - "ec2:DeleteEgressOnlyInternetGateway": {"action": "ec2:DeleteEgressOnlyInternetGateway", "types": ["egress-only-internet-gateway"], "resources": []}, - "ec2:DeleteFleets": {"action": "ec2:DeleteFleets", "types": ["fleet"], "resources": []}, - "ec2:DeleteFlowLogs": {"action": "ec2:DeleteFlowLogs", "types": ["vpc-flow-log"], "resources": []}, - "ec2:DeleteFpgaImage": {"action": "ec2:DeleteFpgaImage", "types": ["fpga-image"], "resources": []}, - "ec2:DeleteImageUsageReport": {"action": "ec2:DeleteImageUsageReport", "types": ["image-usage-report"], "resources": []}, - "ec2:DeleteInstanceConnectEndpoint": {"action": "ec2:DeleteInstanceConnectEndpoint", "types": ["instance-connect-endpoint"], "resources": []}, - "ec2:DeleteInstanceEventWindow": {"action": "ec2:DeleteInstanceEventWindow", "types": ["instance-event-window"], "resources": []}, - "ec2:DeleteInternetGateway": {"action": "ec2:DeleteInternetGateway", "types": ["internet-gateway"], "resources": []}, - "ec2:DeleteIpam": {"action": "ec2:DeleteIpam", "types": ["ipam"], "resources": []}, - "ec2:DeleteIpamExternalResourceVerificationToken": {"action": "ec2:DeleteIpamExternalResourceVerificationToken", "types": ["ipam-external-resource-verification-token"], "resources": []}, - "ec2:DeleteIpamInternetRegistryAssociation": {"action": "ec2:DeleteIpamInternetRegistryAssociation", "types": ["ipam-internet-registry-association"], "resources": []}, - "ec2:DeleteIpamPolicy": {"action": "ec2:DeleteIpamPolicy", "types": ["ipam-policy"], "resources": []}, - "ec2:DeleteIpamPool": {"action": "ec2:DeleteIpamPool", "types": ["ipam-pool"], "resources": []}, - "ec2:DeleteIpamPrefixListResolver": {"action": "ec2:DeleteIpamPrefixListResolver", "types": ["ipam-prefix-list-resolver"], "resources": []}, - "ec2:DeleteIpamPrefixListResolverTarget": {"action": "ec2:DeleteIpamPrefixListResolverTarget", "types": ["ipam-prefix-list-resolver-target"], "resources": []}, - "ec2:DeleteIpamResourceDiscovery": {"action": "ec2:DeleteIpamResourceDiscovery", "types": ["ipam-resource-discovery"], "resources": []}, - "ec2:DeleteIpamRoutingPolicyRegistration": {"action": "ec2:DeleteIpamRoutingPolicyRegistration", "types": ["ipam-internet-registry-association"], "resources": []}, - "ec2:DeleteIpamScope": {"action": "ec2:DeleteIpamScope", "types": ["ipam-scope"], "resources": []}, + "ec2:CreateStoreImageTask": {"action": "ec2:CreateStoreImageTask", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, + "ec2:CreateSubnet": {"action": "ec2:CreateSubnet", "types": ["ipam-pool", "subnet", "vpc"], "resources": [{"types": ["ipam-pool", "subnet", "vpc"], "arn": "OutpostArn"}, {"type": "ipam-pool", "fill": {"IpamPoolId": "Ipv4IpamPoolId"}}, {"type": "subnet", "fill": {}, "made": true}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "ipam-pool", "fill": {"IpamPoolId": "Ipv6IpamPoolId"}}]}, + "ec2:CreateSubnetCidrReservation": {"action": "ec2:CreateSubnetCidrReservation", "types": ["subnet"], "resources": [{"type": "subnet", "fill": {"SubnetId": "SubnetId"}}]}, + "ec2:CreateTags": {"action": "ec2:CreateTags", "types": ["application-status-check", "capacity-block", "capacity-manager-data-export", "capacity-reservation", "capacity-reservation-cancellation-quote", "capacity-reservation-fleet", "carrier-gateway", "client-vpn-endpoint", "coip-pool", "customer-gateway", "declarative-policies-report", "dedicated-host", "dhcp-options", "egress-only-internet-gateway", "elastic-gpu", "elastic-ip", "export-image-task", "export-instance-task", "fleet", "fpga-image", "host-reservation", "image", "image-usage-report", "import-image-task", "import-snapshot-task", "instance", "instance-connect-endpoint", "instance-event-window", "internet-gateway", "ipam", "ipam-external-resource-verification-token", "ipam-internet-registry-association", "ipam-policy", "ipam-pool", "ipam-pool-allocation", "ipam-prefix-list-resolver", "ipam-prefix-list-resolver-target", "ipam-resource-discovery", "ipam-resource-discovery-association", "ipam-scope", "ipv4pool-ec2", "ipv6pool-ec2", "key-pair", "launch-template", "local-gateway", "local-gateway-route-table", "local-gateway-route-table-virtual-interface-group-association", "local-gateway-route-table-vpc-association", "local-gateway-virtual-interface", "local-gateway-virtual-interface-group", "natgateway", "network-acl", "network-insights-access-scope", "network-insights-access-scope-analysis", "network-insights-analysis", "network-insights-path", "network-interface", "placement-group", "prefix-list", "replace-root-volume-task", "reserved-instances", "route-server", "route-server-endpoint", "route-server-peer", "route-table", "secondary-interface", "secondary-network", "secondary-subnet", "security-group", "security-group-rule", "snapshot", "spot-fleet-request", "spot-instances-request", "subnet", "subnet-cidr-reservation", "traffic-mirror-filter", "traffic-mirror-filter-rule", "traffic-mirror-session", "traffic-mirror-target", "transit-gateway", "transit-gateway-attachment", "transit-gateway-connect-peer", "transit-gateway-metering-policy", "transit-gateway-multicast-domain", "transit-gateway-policy-table", "transit-gateway-route-table", "transit-gateway-route-table-announcement", "verified-access-endpoint", "verified-access-endpoint-target", "verified-access-group", "verified-access-instance", "verified-access-policy", "verified-access-trust-provider", "volume", "vpc", "vpc-block-public-access-exclusion", "vpc-encryption-control", "vpc-endpoint", "vpc-endpoint-connection", "vpc-endpoint-service", "vpc-endpoint-service-permission", "vpc-flow-log", "vpc-peering-connection", "vpn-concentrator", "vpn-connection", "vpn-gateway"], "resources": [], "targets": {"member": "Resources[]", "query": "ResourceId", "prefixes": {"instance": "i-", "network-acl": "acl-", "network-interface": "eni-", "route-table": "rtb-", "security-group": "sg-"}}}, + "ec2:CreateTrafficMirrorFilter": {"action": "ec2:CreateTrafficMirrorFilter", "types": ["traffic-mirror-filter"], "resources": [{"type": "traffic-mirror-filter", "fill": {}}]}, + "ec2:CreateTrafficMirrorFilterRule": {"action": "ec2:CreateTrafficMirrorFilterRule", "types": ["traffic-mirror-filter", "traffic-mirror-filter-rule"], "resources": [{"type": "traffic-mirror-filter", "fill": {"TrafficMirrorFilterId": "TrafficMirrorFilterId"}}, {"type": "traffic-mirror-filter-rule", "fill": {}, "made": true}]}, + "ec2:CreateTrafficMirrorSession": {"action": "ec2:CreateTrafficMirrorSession", "types": ["network-interface", "traffic-mirror-filter", "traffic-mirror-session", "traffic-mirror-target"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}, {"type": "traffic-mirror-filter", "fill": {"TrafficMirrorFilterId": "TrafficMirrorFilterId"}}, {"type": "traffic-mirror-session", "fill": {}, "made": true}, {"type": "traffic-mirror-target", "fill": {"TrafficMirrorTargetId": "TrafficMirrorTargetId"}}]}, + "ec2:CreateTrafficMirrorTarget": {"action": "ec2:CreateTrafficMirrorTarget", "types": ["network-interface", "traffic-mirror-target", "vpc-endpoint"], "resources": [{"types": ["network-interface", "traffic-mirror-target", "vpc-endpoint"], "arn": "NetworkLoadBalancerArn"}, {"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}, {"type": "traffic-mirror-target", "fill": {}, "made": true}, {"type": "vpc-endpoint", "fill": {"VpcEndpointId": "GatewayLoadBalancerEndpointId"}}]}, + "ec2:CreateTransitGateway": {"action": "ec2:CreateTransitGateway", "types": ["transit-gateway"], "resources": [{"type": "transit-gateway", "fill": {}}]}, + "ec2:CreateTransitGatewayConnect": {"action": "ec2:CreateTransitGatewayConnect", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransportTransitGatewayAttachmentId"}}]}, + "ec2:CreateTransitGatewayConnectPeer": {"action": "ec2:CreateTransitGatewayConnectPeer", "types": ["transit-gateway-attachment", "transit-gateway-connect-peer"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-connect-peer", "fill": {}, "made": true}]}, + "ec2:CreateTransitGatewayMeteringPolicy": {"action": "ec2:CreateTransitGatewayMeteringPolicy", "types": ["transit-gateway", "transit-gateway-attachment", "transit-gateway-metering-policy"], "resources": [{"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}, {"type": "transit-gateway-metering-policy", "fill": {}, "made": true}]}, + "ec2:CreateTransitGatewayMeteringPolicyEntry": {"action": "ec2:CreateTransitGatewayMeteringPolicyEntry", "types": ["transit-gateway-attachment", "transit-gateway-metering-policy"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "SourceTransitGatewayAttachmentId"}}, {"type": "transit-gateway-metering-policy", "fill": {"TransitGatewayMeteringPolicyId": "TransitGatewayMeteringPolicyId"}}, {"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "DestinationTransitGatewayAttachmentId"}}]}, + "ec2:CreateTransitGatewayMulticastDomain": {"action": "ec2:CreateTransitGatewayMulticastDomain", "types": ["transit-gateway", "transit-gateway-multicast-domain"], "resources": [{"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}, {"type": "transit-gateway-multicast-domain", "fill": {}, "made": true}]}, + "ec2:CreateTransitGatewayPeeringAttachment": {"action": "ec2:CreateTransitGatewayPeeringAttachment", "types": ["transit-gateway", "transit-gateway-attachment"], "resources": [{"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}]}, + "ec2:CreateTransitGatewayPolicyTable": {"action": "ec2:CreateTransitGatewayPolicyTable", "types": ["transit-gateway", "transit-gateway-policy-table"], "resources": [{"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}, {"type": "transit-gateway-policy-table", "fill": {}, "made": true}]}, + "ec2:CreateTransitGatewayPolicyTableEntry": {"action": "ec2:CreateTransitGatewayPolicyTableEntry", "types": ["transit-gateway-policy-table", "transit-gateway-route-table"], "resources": [{"type": "transit-gateway-policy-table", "fill": {"TransitGatewayPolicyTableId": "TransitGatewayPolicyTableId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TargetRouteTableId"}}]}, + "ec2:CreateTransitGatewayPrefixListReference": {"action": "ec2:CreateTransitGatewayPrefixListReference", "types": ["prefix-list", "transit-gateway-attachment", "transit-gateway-route-table"], "resources": [{"type": "prefix-list", "fill": {"PrefixListId": "PrefixListId"}}, {"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, + "ec2:CreateTransitGatewayRoute": {"action": "ec2:CreateTransitGatewayRoute", "types": ["transit-gateway-attachment", "transit-gateway-route-table"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, + "ec2:CreateTransitGatewayRouteTable": {"action": "ec2:CreateTransitGatewayRouteTable", "types": ["transit-gateway", "transit-gateway-route-table"], "resources": [{"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}, {"type": "transit-gateway-route-table", "fill": {}, "made": true}]}, + "ec2:CreateTransitGatewayRouteTableAnnouncement": {"action": "ec2:CreateTransitGatewayRouteTableAnnouncement", "types": ["transit-gateway-attachment", "transit-gateway-route-table", "transit-gateway-route-table-announcement"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "PeeringAttachmentId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}, {"type": "transit-gateway-route-table-announcement", "fill": {}, "made": true}]}, + "ec2:CreateTransitGatewayVpcAttachment": {"action": "ec2:CreateTransitGatewayVpcAttachment", "types": ["subnet", "transit-gateway", "transit-gateway-attachment", "vpc"], "resources": [{"type": "subnet", "fill": {"SubnetId": "SubnetIds[]"}}, {"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}], "ec2Query": {"SubnetIds[]": "SubnetIds"}}, + "ec2:CreateVerifiedAccessEndpoint": {"action": "ec2:CreateVerifiedAccessEndpoint", "types": ["network-interface", "security-group", "subnet", "verified-access-endpoint", "verified-access-group"], "resources": [{"types": ["network-interface", "security-group", "subnet", "verified-access-endpoint", "verified-access-group"], "arn": "DomainCertificateArn"}, {"types": ["network-interface", "security-group", "subnet", "verified-access-endpoint", "verified-access-group"], "arn": "LoadBalancerOptions.LoadBalancerArn"}, {"types": ["network-interface", "security-group", "subnet", "verified-access-endpoint", "verified-access-group"], "arn": "RdsOptions.RdsDbClusterArn"}, {"types": ["network-interface", "security-group", "subnet", "verified-access-endpoint", "verified-access-group"], "arn": "RdsOptions.RdsDbInstanceArn"}, {"types": ["network-interface", "security-group", "subnet", "verified-access-endpoint", "verified-access-group"], "arn": "RdsOptions.RdsDbProxyArn"}, {"types": ["network-interface", "security-group", "subnet", "verified-access-endpoint", "verified-access-group"], "arn": "SseSpecification.KmsKeyArn"}, {"type": "security-group", "fill": {"SecurityGroupId": "SecurityGroupIds[]"}}, {"type": "verified-access-endpoint", "fill": {}, "made": true}, {"type": "verified-access-group", "fill": {"VerifiedAccessGroupId": "VerifiedAccessGroupId"}}, {"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceOptions.NetworkInterfaceId"}}], "ec2Query": {"SecurityGroupIds[]": "SecurityGroupId"}}, + "ec2:CreateVerifiedAccessGroup": {"action": "ec2:CreateVerifiedAccessGroup", "types": ["verified-access-group", "verified-access-instance"], "resources": [{"types": ["verified-access-group", "verified-access-instance"], "arn": "SseSpecification.KmsKeyArn"}, {"type": "verified-access-group", "fill": {}, "made": true}, {"type": "verified-access-instance", "fill": {"VerifiedAccessInstanceId": "VerifiedAccessInstanceId"}}]}, + "ec2:CreateVerifiedAccessInstance": {"action": "ec2:CreateVerifiedAccessInstance", "types": ["verified-access-instance"], "resources": [{"type": "verified-access-instance", "fill": {}}]}, + "ec2:CreateVerifiedAccessTrustProvider": {"action": "ec2:CreateVerifiedAccessTrustProvider", "types": ["verified-access-trust-provider"], "resources": [{"types": ["verified-access-trust-provider"], "arn": "SseSpecification.KmsKeyArn"}, {"type": "verified-access-trust-provider", "fill": {}}]}, + "ec2:CreateVolume": {"action": "ec2:CreateVolume", "types": ["snapshot", "volume"], "resources": [{"types": ["snapshot", "volume"], "arn": "OutpostArn"}, {"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}, {"type": "volume", "fill": {}, "made": true}]}, + "ec2:CreateVpc": {"action": "ec2:CreateVpc", "types": ["ipam-pool", "ipv6pool-ec2", "vpc"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "Ipv4IpamPoolId"}}, {"type": "ipv6pool-ec2", "fill": {"Ipv6PoolEc2Id": "Ipv6Pool"}}, {"type": "vpc", "fill": {}, "made": true}, {"type": "ipam-pool", "fill": {"IpamPoolId": "Ipv6IpamPoolId"}}]}, + "ec2:CreateVpcBlockPublicAccessExclusion": {"action": "ec2:CreateVpcBlockPublicAccessExclusion", "types": ["subnet", "vpc", "vpc-block-public-access-exclusion"], "resources": [{"type": "subnet", "fill": {"SubnetId": "SubnetId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "vpc-block-public-access-exclusion", "fill": {}, "made": true}]}, + "ec2:CreateVpcEncryptionControl": {"action": "ec2:CreateVpcEncryptionControl", "types": ["vpc", "vpc-encryption-control"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "vpc-encryption-control", "fill": {}, "made": true}]}, + "ec2:CreateVpcEndpoint": {"action": "ec2:CreateVpcEndpoint", "types": ["route-table", "security-group", "subnet", "vpc", "vpc-endpoint"], "resources": [{"types": ["route-table", "security-group", "subnet", "vpc", "vpc-endpoint"], "arn": "ResourceConfigurationArn"}, {"types": ["route-table", "security-group", "subnet", "vpc", "vpc-endpoint"], "arn": "ServiceNetworkArn"}, {"type": "route-table", "fill": {"RouteTableId": "RouteTableIds[]"}}, {"type": "security-group", "fill": {"SecurityGroupId": "SecurityGroupIds[]"}}, {"type": "subnet", "fill": {"SubnetId": "SubnetIds[]"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "vpc-endpoint", "fill": {}, "made": true}], "ec2Query": {"RouteTableIds[]": "RouteTableId", "SubnetIds[]": "SubnetId", "SecurityGroupIds[]": "SecurityGroupId"}}, + "ec2:CreateVpcEndpointConnectionNotification": {"action": "ec2:CreateVpcEndpointConnectionNotification", "types": ["vpc-endpoint", "vpc-endpoint-service"], "resources": [{"types": ["vpc-endpoint", "vpc-endpoint-service"], "arn": "ConnectionNotificationArn"}, {"type": "vpc-endpoint", "fill": {"VpcEndpointId": "VpcEndpointId"}}, {"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceId"}}]}, + "ec2:CreateVpcEndpointServiceConfiguration": {"action": "ec2:CreateVpcEndpointServiceConfiguration", "types": ["vpc-endpoint-service"], "resources": [{"types": ["vpc-endpoint-service"], "arn": "GatewayLoadBalancerArns[]"}, {"types": ["vpc-endpoint-service"], "arn": "NetworkLoadBalancerArns[]"}], "ec2Query": {"NetworkLoadBalancerArns[]": "NetworkLoadBalancerArn", "GatewayLoadBalancerArns[]": "GatewayLoadBalancerArn"}}, + "ec2:CreateVpcPeeringConnection": {"action": "ec2:CreateVpcPeeringConnection", "types": ["vpc", "vpc-peering-connection"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "vpc-peering-connection", "fill": {}, "made": true}]}, + "ec2:CreateVpnConcentrator": {"action": "ec2:CreateVpnConcentrator", "types": ["transit-gateway", "vpn-concentrator"], "resources": [{"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}, {"type": "vpn-concentrator", "fill": {}, "made": true}]}, + "ec2:CreateVpnConnection": {"action": "ec2:CreateVpnConnection", "types": ["customer-gateway", "transit-gateway", "transit-gateway-attachment", "vpn-concentrator", "vpn-connection", "vpn-gateway"], "resources": [{"type": "customer-gateway", "fill": {"CustomerGatewayId": "CustomerGatewayId"}}, {"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}, {"type": "vpn-concentrator", "fill": {"VpnConcentratorId": "VpnConcentratorId"}}, {"type": "vpn-connection", "fill": {}, "made": true}, {"type": "vpn-gateway", "fill": {"VpnGatewayId": "VpnGatewayId"}}, {"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "Options.TransportTransitGatewayAttachmentId"}}]}, + "ec2:CreateVpnConnectionRoute": {"action": "ec2:CreateVpnConnectionRoute", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, + "ec2:CreateVpnGateway": {"action": "ec2:CreateVpnGateway", "types": ["vpn-gateway"], "resources": [{"type": "vpn-gateway", "fill": {}}]}, + "ec2:DeleteApplicationStatusCheck": {"action": "ec2:DeleteApplicationStatusCheck", "types": ["application-status-check"], "resources": [{"type": "application-status-check", "fill": {"ApplicationStatusCheckId": "ApplicationStatusCheckId"}}]}, + "ec2:DeleteCapacityManagerDataExport": {"action": "ec2:DeleteCapacityManagerDataExport", "types": ["capacity-manager-data-export"], "resources": [{"type": "capacity-manager-data-export", "fill": {"CapacityManagerDataExportId": "CapacityManagerDataExportId"}}]}, + "ec2:DeleteCarrierGateway": {"action": "ec2:DeleteCarrierGateway", "types": ["carrier-gateway"], "resources": [{"type": "carrier-gateway", "fill": {"CarrierGatewayId": "CarrierGatewayId"}}]}, + "ec2:DeleteClientVpnEndpoint": {"action": "ec2:DeleteClientVpnEndpoint", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:DeleteClientVpnEndpointAuthorizationPolicy": {"action": "ec2:DeleteClientVpnEndpointAuthorizationPolicy", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:DeleteClientVpnRoute": {"action": "ec2:DeleteClientVpnRoute", "types": ["client-vpn-endpoint", "subnet"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}, {"type": "subnet", "fill": {"SubnetId": "TargetVpcSubnetId"}}]}, + "ec2:DeleteCoipCidr": {"action": "ec2:DeleteCoipCidr", "types": ["coip-pool"], "resources": [{"type": "coip-pool", "fill": {"Ipv4PoolCoipId": "CoipPoolId"}}]}, + "ec2:DeleteCoipPool": {"action": "ec2:DeleteCoipPool", "types": ["coip-pool"], "resources": [{"type": "coip-pool", "fill": {"Ipv4PoolCoipId": "CoipPoolId"}}]}, + "ec2:DeleteCustomerGateway": {"action": "ec2:DeleteCustomerGateway", "types": ["customer-gateway"], "resources": [{"type": "customer-gateway", "fill": {"CustomerGatewayId": "CustomerGatewayId"}}]}, + "ec2:DeleteDhcpOptions": {"action": "ec2:DeleteDhcpOptions", "types": ["dhcp-options"], "resources": [{"type": "dhcp-options", "fill": {"DhcpOptionsId": "DhcpOptionsId"}}]}, + "ec2:DeleteEgressOnlyInternetGateway": {"action": "ec2:DeleteEgressOnlyInternetGateway", "types": ["egress-only-internet-gateway"], "resources": [{"type": "egress-only-internet-gateway", "fill": {"EgressOnlyInternetGatewayId": "EgressOnlyInternetGatewayId"}}]}, + "ec2:DeleteFleets": {"action": "ec2:DeleteFleets", "types": ["fleet"], "resources": [{"type": "fleet", "fill": {"FleetId": "FleetIds[]"}}], "ec2Query": {"FleetIds[]": "FleetId"}}, + "ec2:DeleteFlowLogs": {"action": "ec2:DeleteFlowLogs", "types": ["vpc-flow-log"], "resources": [{"type": "vpc-flow-log", "fill": {"VpcFlowLogId": "FlowLogIds[]"}}], "ec2Query": {"FlowLogIds[]": "FlowLogId"}}, + "ec2:DeleteFpgaImage": {"action": "ec2:DeleteFpgaImage", "types": ["fpga-image"], "resources": [{"type": "fpga-image", "fill": {"FpgaImageId": "FpgaImageId"}}]}, + "ec2:DeleteImageUsageReport": {"action": "ec2:DeleteImageUsageReport", "types": ["image-usage-report"], "resources": [{"type": "image-usage-report", "fill": {"ImageUsageReportId": "ReportId"}}]}, + "ec2:DeleteInstanceConnectEndpoint": {"action": "ec2:DeleteInstanceConnectEndpoint", "types": ["instance-connect-endpoint"], "resources": [{"type": "instance-connect-endpoint", "fill": {"InstanceConnectEndpointId": "InstanceConnectEndpointId"}}]}, + "ec2:DeleteInstanceEventWindow": {"action": "ec2:DeleteInstanceEventWindow", "types": ["instance-event-window"], "resources": [{"type": "instance-event-window", "fill": {"InstanceEventWindowId": "InstanceEventWindowId"}}]}, + "ec2:DeleteInternetGateway": {"action": "ec2:DeleteInternetGateway", "types": ["internet-gateway"], "resources": [{"type": "internet-gateway", "fill": {"InternetGatewayId": "InternetGatewayId"}}]}, + "ec2:DeleteIpam": {"action": "ec2:DeleteIpam", "types": ["ipam"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}]}, + "ec2:DeleteIpamExternalResourceVerificationToken": {"action": "ec2:DeleteIpamExternalResourceVerificationToken", "types": ["ipam-external-resource-verification-token"], "resources": [{"type": "ipam-external-resource-verification-token", "fill": {"IpamExternalResourceVerificationTokenId": "IpamExternalResourceVerificationTokenId"}}]}, + "ec2:DeleteIpamInternetRegistryAssociation": {"action": "ec2:DeleteIpamInternetRegistryAssociation", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, + "ec2:DeleteIpamPolicy": {"action": "ec2:DeleteIpamPolicy", "types": ["ipam-policy"], "resources": [{"type": "ipam-policy", "fill": {"IpamPolicyId": "IpamPolicyId"}}]}, + "ec2:DeleteIpamPool": {"action": "ec2:DeleteIpamPool", "types": ["ipam-pool"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}]}, + "ec2:DeleteIpamPrefixListResolver": {"action": "ec2:DeleteIpamPrefixListResolver", "types": ["ipam-prefix-list-resolver"], "resources": [{"type": "ipam-prefix-list-resolver", "fill": {"IpamPrefixListResolverId": "IpamPrefixListResolverId"}}]}, + "ec2:DeleteIpamPrefixListResolverTarget": {"action": "ec2:DeleteIpamPrefixListResolverTarget", "types": ["ipam-prefix-list-resolver-target"], "resources": [{"type": "ipam-prefix-list-resolver-target", "fill": {"IpamPrefixListResolverTargetId": "IpamPrefixListResolverTargetId"}}]}, + "ec2:DeleteIpamResourceDiscovery": {"action": "ec2:DeleteIpamResourceDiscovery", "types": ["ipam-resource-discovery"], "resources": [{"type": "ipam-resource-discovery", "fill": {"IpamResourceDiscoveryId": "IpamResourceDiscoveryId"}}]}, + "ec2:DeleteIpamRoutingPolicyRegistration": {"action": "ec2:DeleteIpamRoutingPolicyRegistration", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, + "ec2:DeleteIpamScope": {"action": "ec2:DeleteIpamScope", "types": ["ipam-scope"], "resources": [{"type": "ipam-scope", "fill": {"IpamScopeId": "IpamScopeId"}}]}, "ec2:DeleteKeyPair": {"action": "ec2:DeleteKeyPair", "types": ["key-pair"], "resources": []}, - "ec2:DeleteLaunchTemplate": {"action": "ec2:DeleteLaunchTemplate", "types": ["launch-template"], "resources": []}, - "ec2:DeleteLaunchTemplateVersions": {"action": "ec2:DeleteLaunchTemplateVersions", "types": ["launch-template"], "resources": []}, - "ec2:DeleteLocalGatewayRoute": {"action": "ec2:DeleteLocalGatewayRoute", "types": ["local-gateway-route-table", "prefix-list"], "resources": []}, - "ec2:DeleteLocalGatewayRouteTable": {"action": "ec2:DeleteLocalGatewayRouteTable", "types": ["local-gateway-route-table"], "resources": []}, - "ec2:DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation": {"action": "ec2:DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", "types": ["local-gateway-route-table-virtual-interface-group-association"], "resources": []}, - "ec2:DeleteLocalGatewayRouteTableVpcAssociation": {"action": "ec2:DeleteLocalGatewayRouteTableVpcAssociation", "types": ["local-gateway-route-table-vpc-association"], "resources": []}, - "ec2:DeleteLocalGatewayVirtualInterface": {"action": "ec2:DeleteLocalGatewayVirtualInterface", "types": ["local-gateway-virtual-interface"], "resources": []}, - "ec2:DeleteLocalGatewayVirtualInterfaceGroup": {"action": "ec2:DeleteLocalGatewayVirtualInterfaceGroup", "types": ["local-gateway-virtual-interface-group"], "resources": []}, - "ec2:DeleteManagedPrefixList": {"action": "ec2:DeleteManagedPrefixList", "types": ["prefix-list"], "resources": []}, + "ec2:DeleteLaunchTemplate": {"action": "ec2:DeleteLaunchTemplate", "types": ["launch-template"], "resources": [{"type": "launch-template", "fill": {"LaunchTemplateId": "LaunchTemplateId"}}]}, + "ec2:DeleteLaunchTemplateVersions": {"action": "ec2:DeleteLaunchTemplateVersions", "types": ["launch-template"], "resources": [{"type": "launch-template", "fill": {"LaunchTemplateId": "LaunchTemplateId"}}]}, + "ec2:DeleteLocalGatewayRoute": {"action": "ec2:DeleteLocalGatewayRoute", "types": ["local-gateway-route-table", "prefix-list"], "resources": [{"type": "local-gateway-route-table", "fill": {"LocalGatewayRoutetableId": "LocalGatewayRouteTableId"}}, {"type": "prefix-list", "fill": {"PrefixListId": "DestinationPrefixListId"}}]}, + "ec2:DeleteLocalGatewayRouteTable": {"action": "ec2:DeleteLocalGatewayRouteTable", "types": ["local-gateway-route-table"], "resources": [{"type": "local-gateway-route-table", "fill": {"LocalGatewayRoutetableId": "LocalGatewayRouteTableId"}}]}, + "ec2:DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation": {"action": "ec2:DeleteLocalGatewayRouteTableVirtualInterfaceGroupAssociation", "types": ["local-gateway-route-table-virtual-interface-group-association"], "resources": [{"type": "local-gateway-route-table-virtual-interface-group-association", "fill": {"LocalGatewayRouteTableVirtualInterfaceGroupAssociationId": "LocalGatewayRouteTableVirtualInterfaceGroupAssociationId"}}]}, + "ec2:DeleteLocalGatewayRouteTableVpcAssociation": {"action": "ec2:DeleteLocalGatewayRouteTableVpcAssociation", "types": ["local-gateway-route-table-vpc-association"], "resources": [{"type": "local-gateway-route-table-vpc-association", "fill": {"LocalGatewayRouteTableVpcAssociationId": "LocalGatewayRouteTableVpcAssociationId"}}]}, + "ec2:DeleteLocalGatewayVirtualInterface": {"action": "ec2:DeleteLocalGatewayVirtualInterface", "types": ["local-gateway-virtual-interface"], "resources": [{"type": "local-gateway-virtual-interface", "fill": {"LocalGatewayVirtualInterfaceId": "LocalGatewayVirtualInterfaceId"}}]}, + "ec2:DeleteLocalGatewayVirtualInterfaceGroup": {"action": "ec2:DeleteLocalGatewayVirtualInterfaceGroup", "types": ["local-gateway-virtual-interface-group"], "resources": [{"type": "local-gateway-virtual-interface-group", "fill": {"LocalGatewayVirtualInterfaceGroupId": "LocalGatewayVirtualInterfaceGroupId"}}]}, + "ec2:DeleteManagedPrefixList": {"action": "ec2:DeleteManagedPrefixList", "types": ["prefix-list"], "resources": [{"type": "prefix-list", "fill": {"PrefixListId": "PrefixListId"}}]}, "ec2:DeleteMetricCategory": {"action": "ec2:DeleteMetricCategory", "types": [], "resources": []}, - "ec2:DeleteNatGateway": {"action": "ec2:DeleteNatGateway", "types": ["natgateway"], "resources": []}, - "ec2:DeleteNetworkAcl": {"action": "ec2:DeleteNetworkAcl", "types": ["network-acl"], "resources": []}, - "ec2:DeleteNetworkAclEntry": {"action": "ec2:DeleteNetworkAclEntry", "types": ["network-acl"], "resources": []}, - "ec2:DeleteNetworkInsightsAccessScope": {"action": "ec2:DeleteNetworkInsightsAccessScope", "types": ["network-insights-access-scope"], "resources": []}, - "ec2:DeleteNetworkInsightsAccessScopeAnalysis": {"action": "ec2:DeleteNetworkInsightsAccessScopeAnalysis", "types": ["network-insights-access-scope-analysis"], "resources": []}, - "ec2:DeleteNetworkInsightsAnalysis": {"action": "ec2:DeleteNetworkInsightsAnalysis", "types": ["network-insights-analysis"], "resources": []}, - "ec2:DeleteNetworkInsightsPath": {"action": "ec2:DeleteNetworkInsightsPath", "types": ["network-insights-path"], "resources": []}, - "ec2:DeleteNetworkInterface": {"action": "ec2:DeleteNetworkInterface", "types": ["network-interface"], "resources": []}, - "ec2:DeleteNetworkInterfacePermission": {"action": "ec2:DeleteNetworkInterfacePermission", "types": ["network-interface"], "resources": []}, + "ec2:DeleteNatGateway": {"action": "ec2:DeleteNatGateway", "types": ["natgateway"], "resources": [{"type": "natgateway", "fill": {"NatGatewayId": "NatGatewayId"}}]}, + "ec2:DeleteNetworkAcl": {"action": "ec2:DeleteNetworkAcl", "types": ["network-acl"], "resources": [{"type": "network-acl", "fill": {"NaclId": "NetworkAclId"}}]}, + "ec2:DeleteNetworkAclEntry": {"action": "ec2:DeleteNetworkAclEntry", "types": ["network-acl"], "resources": [{"type": "network-acl", "fill": {"NaclId": "NetworkAclId"}}]}, + "ec2:DeleteNetworkInsightsAccessScope": {"action": "ec2:DeleteNetworkInsightsAccessScope", "types": ["network-insights-access-scope"], "resources": [{"type": "network-insights-access-scope", "fill": {"NetworkInsightsAccessScopeId": "NetworkInsightsAccessScopeId"}}]}, + "ec2:DeleteNetworkInsightsAccessScopeAnalysis": {"action": "ec2:DeleteNetworkInsightsAccessScopeAnalysis", "types": ["network-insights-access-scope-analysis"], "resources": [{"type": "network-insights-access-scope-analysis", "fill": {"NetworkInsightsAccessScopeAnalysisId": "NetworkInsightsAccessScopeAnalysisId"}}]}, + "ec2:DeleteNetworkInsightsAnalysis": {"action": "ec2:DeleteNetworkInsightsAnalysis", "types": ["network-insights-analysis"], "resources": [{"type": "network-insights-analysis", "fill": {"NetworkInsightsAnalysisId": "NetworkInsightsAnalysisId"}}]}, + "ec2:DeleteNetworkInsightsPath": {"action": "ec2:DeleteNetworkInsightsPath", "types": ["network-insights-path"], "resources": [{"type": "network-insights-path", "fill": {"NetworkInsightsPathId": "NetworkInsightsPathId"}}]}, + "ec2:DeleteNetworkInterface": {"action": "ec2:DeleteNetworkInterface", "types": ["network-interface"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, + "ec2:DeleteNetworkInterfacePermission": {"action": "ec2:DeleteNetworkInterfacePermission", "types": ["network-interface"], "resources": [{"types": ["network-interface"], "through": "NetworkInterfacePermissionId"}]}, "ec2:DeleteNetworkingFlexCostAllocationPolicies": {"action": "ec2:DeleteNetworkingFlexCostAllocationPolicies", "types": [], "resources": []}, - "ec2:DeletePlacementGroup": {"action": "ec2:DeletePlacementGroup", "types": ["placement-group"], "resources": []}, - "ec2:DeletePublicIpv4Pool": {"action": "ec2:DeletePublicIpv4Pool", "types": ["ipv4pool-ec2"], "resources": []}, - "ec2:DeleteQueuedReservedInstances": {"action": "ec2:DeleteQueuedReservedInstances", "types": ["reserved-instances"], "resources": []}, - "ec2:DeleteRoute": {"action": "ec2:DeleteRoute", "types": ["route-table"], "resources": []}, - "ec2:DeleteRouteServer": {"action": "ec2:DeleteRouteServer", "types": ["route-server"], "resources": []}, - "ec2:DeleteRouteServerEndpoint": {"action": "ec2:DeleteRouteServerEndpoint", "types": ["route-server-endpoint"], "resources": []}, - "ec2:DeleteRouteServerPeer": {"action": "ec2:DeleteRouteServerPeer", "types": ["route-server-peer"], "resources": []}, - "ec2:DeleteRouteTable": {"action": "ec2:DeleteRouteTable", "types": ["route-table"], "resources": []}, - "ec2:DeleteSecondaryNetwork": {"action": "ec2:DeleteSecondaryNetwork", "types": ["secondary-network"], "resources": []}, - "ec2:DeleteSecondarySubnet": {"action": "ec2:DeleteSecondarySubnet", "types": ["secondary-subnet"], "resources": []}, - "ec2:DeleteSecurityGroup": {"action": "ec2:DeleteSecurityGroup", "types": ["security-group"], "resources": []}, - "ec2:DeleteSnapshot": {"action": "ec2:DeleteSnapshot", "types": ["snapshot"], "resources": []}, + "ec2:DeletePlacementGroup": {"action": "ec2:DeletePlacementGroup", "types": ["placement-group"], "resources": [{"type": "placement-group", "fill": {"PlacementGroupName": "GroupName"}}]}, + "ec2:DeletePublicIpv4Pool": {"action": "ec2:DeletePublicIpv4Pool", "types": ["ipv4pool-ec2"], "resources": [{"type": "ipv4pool-ec2", "fill": {"Ipv4PoolEc2Id": "PoolId"}}]}, + "ec2:DeleteQueuedReservedInstances": {"action": "ec2:DeleteQueuedReservedInstances", "types": ["reserved-instances"], "resources": [{"type": "reserved-instances", "fill": {"ReservationId": "ReservedInstancesIds[]"}}], "ec2Query": {"ReservedInstancesIds[]": "ReservedInstancesId"}}, + "ec2:DeleteRoute": {"action": "ec2:DeleteRoute", "types": ["route-table"], "resources": [{"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}]}, + "ec2:DeleteRouteServer": {"action": "ec2:DeleteRouteServer", "types": ["route-server"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}]}, + "ec2:DeleteRouteServerEndpoint": {"action": "ec2:DeleteRouteServerEndpoint", "types": ["route-server-endpoint"], "resources": [{"type": "route-server-endpoint", "fill": {"RouteServerEndpointId": "RouteServerEndpointId"}}]}, + "ec2:DeleteRouteServerPeer": {"action": "ec2:DeleteRouteServerPeer", "types": ["route-server-peer"], "resources": [{"type": "route-server-peer", "fill": {"RouteServerPeerId": "RouteServerPeerId"}}]}, + "ec2:DeleteRouteTable": {"action": "ec2:DeleteRouteTable", "types": ["route-table"], "resources": [{"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}]}, + "ec2:DeleteSecondaryNetwork": {"action": "ec2:DeleteSecondaryNetwork", "types": ["secondary-network"], "resources": [{"type": "secondary-network", "fill": {"SecondaryNetworkId": "SecondaryNetworkId"}}]}, + "ec2:DeleteSecondarySubnet": {"action": "ec2:DeleteSecondarySubnet", "types": ["secondary-subnet"], "resources": [{"type": "secondary-subnet", "fill": {"SecondarySubnetId": "SecondarySubnetId"}}]}, + "ec2:DeleteSecurityGroup": {"action": "ec2:DeleteSecurityGroup", "types": ["security-group"], "resources": [{"type": "security-group", "fill": {}, "find": ["GroupName"]}, {"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}]}, + "ec2:DeleteSnapshot": {"action": "ec2:DeleteSnapshot", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}]}, "ec2:DeleteSpotDatafeedSubscription": {"action": "ec2:DeleteSpotDatafeedSubscription", "types": [], "resources": []}, - "ec2:DeleteSubnet": {"action": "ec2:DeleteSubnet", "types": ["subnet"], "resources": []}, + "ec2:DeleteSubnet": {"action": "ec2:DeleteSubnet", "types": ["subnet"], "resources": [{"type": "subnet", "fill": {"SubnetId": "SubnetId"}}]}, "ec2:DeleteSubnetCidrReservation": {"action": "ec2:DeleteSubnetCidrReservation", "types": [], "resources": []}, - "ec2:DeleteTags": {"action": "ec2:DeleteTags", "types": ["application-status-check", "capacity-block", "capacity-manager-data-export", "capacity-reservation", "capacity-reservation-cancellation-quote", "capacity-reservation-fleet", "carrier-gateway", "client-vpn-endpoint", "coip-pool", "customer-gateway", "declarative-policies-report", "dedicated-host", "dhcp-options", "egress-only-internet-gateway", "elastic-gpu", "elastic-ip", "export-image-task", "export-instance-task", "fleet", "fpga-image", "host-reservation", "image", "image-usage-report", "import-image-task", "import-snapshot-task", "instance", "instance-connect-endpoint", "instance-event-window", "internet-gateway", "ipam", "ipam-external-resource-verification-token", "ipam-internet-registry-association", "ipam-policy", "ipam-pool", "ipam-pool-allocation", "ipam-prefix-list-resolver", "ipam-prefix-list-resolver-target", "ipam-resource-discovery", "ipam-resource-discovery-association", "ipam-scope", "ipv4pool-ec2", "ipv6pool-ec2", "key-pair", "launch-template", "local-gateway", "local-gateway-route-table", "local-gateway-route-table-virtual-interface-group-association", "local-gateway-route-table-vpc-association", "local-gateway-virtual-interface", "local-gateway-virtual-interface-group", "natgateway", "network-acl", "network-insights-access-scope", "network-insights-access-scope-analysis", "network-insights-analysis", "network-insights-path", "network-interface", "placement-group", "prefix-list", "replace-root-volume-task", "reserved-instances", "route-server", "route-server-endpoint", "route-server-peer", "route-table", "secondary-interface", "secondary-network", "secondary-subnet", "security-group", "security-group-rule", "snapshot", "spot-fleet-request", "spot-instances-request", "subnet", "subnet-cidr-reservation", "traffic-mirror-filter", "traffic-mirror-filter-rule", "traffic-mirror-session", "traffic-mirror-target", "transit-gateway", "transit-gateway-attachment", "transit-gateway-connect-peer", "transit-gateway-metering-policy", "transit-gateway-multicast-domain", "transit-gateway-policy-table", "transit-gateway-route-table", "transit-gateway-route-table-announcement", "verified-access-endpoint", "verified-access-endpoint-target", "verified-access-group", "verified-access-instance", "verified-access-policy", "verified-access-trust-provider", "volume", "vpc", "vpc-block-public-access-exclusion", "vpc-encryption-control", "vpc-endpoint", "vpc-endpoint-connection", "vpc-endpoint-service", "vpc-endpoint-service-permission", "vpc-flow-log", "vpc-peering-connection", "vpn-concentrator", "vpn-connection", "vpn-gateway"], "resources": [], "targets": {"member": "Resources[]", "query": "ResourceId", "prefixes": {"instance": "i-"}}}, - "ec2:DeleteTrafficMirrorFilter": {"action": "ec2:DeleteTrafficMirrorFilter", "types": ["traffic-mirror-filter"], "resources": []}, - "ec2:DeleteTrafficMirrorFilterRule": {"action": "ec2:DeleteTrafficMirrorFilterRule", "types": ["traffic-mirror-filter", "traffic-mirror-filter-rule"], "resources": []}, - "ec2:DeleteTrafficMirrorSession": {"action": "ec2:DeleteTrafficMirrorSession", "types": ["traffic-mirror-session"], "resources": []}, - "ec2:DeleteTrafficMirrorTarget": {"action": "ec2:DeleteTrafficMirrorTarget", "types": ["traffic-mirror-target"], "resources": []}, - "ec2:DeleteTransitGateway": {"action": "ec2:DeleteTransitGateway", "types": ["transit-gateway"], "resources": []}, - "ec2:DeleteTransitGatewayClientVpnAttachment": {"action": "ec2:DeleteTransitGatewayClientVpnAttachment", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:DeleteTransitGatewayConnect": {"action": "ec2:DeleteTransitGatewayConnect", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:DeleteTransitGatewayConnectPeer": {"action": "ec2:DeleteTransitGatewayConnectPeer", "types": ["transit-gateway-connect-peer"], "resources": []}, - "ec2:DeleteTransitGatewayMeteringPolicy": {"action": "ec2:DeleteTransitGatewayMeteringPolicy", "types": ["transit-gateway-metering-policy"], "resources": []}, - "ec2:DeleteTransitGatewayMeteringPolicyEntry": {"action": "ec2:DeleteTransitGatewayMeteringPolicyEntry", "types": ["transit-gateway-metering-policy"], "resources": []}, - "ec2:DeleteTransitGatewayMulticastDomain": {"action": "ec2:DeleteTransitGatewayMulticastDomain", "types": ["transit-gateway-multicast-domain"], "resources": []}, - "ec2:DeleteTransitGatewayPeeringAttachment": {"action": "ec2:DeleteTransitGatewayPeeringAttachment", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:DeleteTransitGatewayPolicyTable": {"action": "ec2:DeleteTransitGatewayPolicyTable", "types": ["transit-gateway-policy-table"], "resources": []}, - "ec2:DeleteTransitGatewayPolicyTableEntry": {"action": "ec2:DeleteTransitGatewayPolicyTableEntry", "types": ["transit-gateway-policy-table"], "resources": []}, - "ec2:DeleteTransitGatewayPrefixListReference": {"action": "ec2:DeleteTransitGatewayPrefixListReference", "types": ["prefix-list", "transit-gateway-route-table"], "resources": []}, - "ec2:DeleteTransitGatewayRoute": {"action": "ec2:DeleteTransitGatewayRoute", "types": ["transit-gateway-route-table"], "resources": []}, - "ec2:DeleteTransitGatewayRouteTable": {"action": "ec2:DeleteTransitGatewayRouteTable", "types": ["transit-gateway-route-table"], "resources": []}, - "ec2:DeleteTransitGatewayRouteTableAnnouncement": {"action": "ec2:DeleteTransitGatewayRouteTableAnnouncement", "types": ["transit-gateway-route-table-announcement"], "resources": []}, - "ec2:DeleteTransitGatewayVpcAttachment": {"action": "ec2:DeleteTransitGatewayVpcAttachment", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:DeleteVerifiedAccessEndpoint": {"action": "ec2:DeleteVerifiedAccessEndpoint", "types": ["verified-access-endpoint"], "resources": []}, - "ec2:DeleteVerifiedAccessGroup": {"action": "ec2:DeleteVerifiedAccessGroup", "types": ["verified-access-group"], "resources": []}, - "ec2:DeleteVerifiedAccessInstance": {"action": "ec2:DeleteVerifiedAccessInstance", "types": ["verified-access-instance"], "resources": []}, - "ec2:DeleteVerifiedAccessTrustProvider": {"action": "ec2:DeleteVerifiedAccessTrustProvider", "types": ["verified-access-trust-provider"], "resources": []}, - "ec2:DeleteVolume": {"action": "ec2:DeleteVolume", "types": ["volume"], "resources": []}, - "ec2:DeleteVpc": {"action": "ec2:DeleteVpc", "types": ["vpc"], "resources": []}, - "ec2:DeleteVpcBlockPublicAccessExclusion": {"action": "ec2:DeleteVpcBlockPublicAccessExclusion", "types": ["vpc-block-public-access-exclusion"], "resources": []}, - "ec2:DeleteVpcEncryptionControl": {"action": "ec2:DeleteVpcEncryptionControl", "types": ["vpc-encryption-control"], "resources": []}, + "ec2:DeleteTags": {"action": "ec2:DeleteTags", "types": ["application-status-check", "capacity-block", "capacity-manager-data-export", "capacity-reservation", "capacity-reservation-cancellation-quote", "capacity-reservation-fleet", "carrier-gateway", "client-vpn-endpoint", "coip-pool", "customer-gateway", "declarative-policies-report", "dedicated-host", "dhcp-options", "egress-only-internet-gateway", "elastic-gpu", "elastic-ip", "export-image-task", "export-instance-task", "fleet", "fpga-image", "host-reservation", "image", "image-usage-report", "import-image-task", "import-snapshot-task", "instance", "instance-connect-endpoint", "instance-event-window", "internet-gateway", "ipam", "ipam-external-resource-verification-token", "ipam-internet-registry-association", "ipam-policy", "ipam-pool", "ipam-pool-allocation", "ipam-prefix-list-resolver", "ipam-prefix-list-resolver-target", "ipam-resource-discovery", "ipam-resource-discovery-association", "ipam-scope", "ipv4pool-ec2", "ipv6pool-ec2", "key-pair", "launch-template", "local-gateway", "local-gateway-route-table", "local-gateway-route-table-virtual-interface-group-association", "local-gateway-route-table-vpc-association", "local-gateway-virtual-interface", "local-gateway-virtual-interface-group", "natgateway", "network-acl", "network-insights-access-scope", "network-insights-access-scope-analysis", "network-insights-analysis", "network-insights-path", "network-interface", "placement-group", "prefix-list", "replace-root-volume-task", "reserved-instances", "route-server", "route-server-endpoint", "route-server-peer", "route-table", "secondary-interface", "secondary-network", "secondary-subnet", "security-group", "security-group-rule", "snapshot", "spot-fleet-request", "spot-instances-request", "subnet", "subnet-cidr-reservation", "traffic-mirror-filter", "traffic-mirror-filter-rule", "traffic-mirror-session", "traffic-mirror-target", "transit-gateway", "transit-gateway-attachment", "transit-gateway-connect-peer", "transit-gateway-metering-policy", "transit-gateway-multicast-domain", "transit-gateway-policy-table", "transit-gateway-route-table", "transit-gateway-route-table-announcement", "verified-access-endpoint", "verified-access-endpoint-target", "verified-access-group", "verified-access-instance", "verified-access-policy", "verified-access-trust-provider", "volume", "vpc", "vpc-block-public-access-exclusion", "vpc-encryption-control", "vpc-endpoint", "vpc-endpoint-connection", "vpc-endpoint-service", "vpc-endpoint-service-permission", "vpc-flow-log", "vpc-peering-connection", "vpn-concentrator", "vpn-connection", "vpn-gateway"], "resources": [], "targets": {"member": "Resources[]", "query": "ResourceId", "prefixes": {"instance": "i-", "network-acl": "acl-", "network-interface": "eni-", "route-table": "rtb-", "security-group": "sg-"}}}, + "ec2:DeleteTrafficMirrorFilter": {"action": "ec2:DeleteTrafficMirrorFilter", "types": ["traffic-mirror-filter"], "resources": [{"type": "traffic-mirror-filter", "fill": {"TrafficMirrorFilterId": "TrafficMirrorFilterId"}}]}, + "ec2:DeleteTrafficMirrorFilterRule": {"action": "ec2:DeleteTrafficMirrorFilterRule", "types": ["traffic-mirror-filter", "traffic-mirror-filter-rule"], "resources": [{"type": "traffic-mirror-filter-rule", "fill": {"TrafficMirrorFilterRuleId": "TrafficMirrorFilterRuleId"}}]}, + "ec2:DeleteTrafficMirrorSession": {"action": "ec2:DeleteTrafficMirrorSession", "types": ["traffic-mirror-session"], "resources": [{"type": "traffic-mirror-session", "fill": {"TrafficMirrorSessionId": "TrafficMirrorSessionId"}}]}, + "ec2:DeleteTrafficMirrorTarget": {"action": "ec2:DeleteTrafficMirrorTarget", "types": ["traffic-mirror-target"], "resources": [{"type": "traffic-mirror-target", "fill": {"TrafficMirrorTargetId": "TrafficMirrorTargetId"}}]}, + "ec2:DeleteTransitGateway": {"action": "ec2:DeleteTransitGateway", "types": ["transit-gateway"], "resources": [{"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}]}, + "ec2:DeleteTransitGatewayClientVpnAttachment": {"action": "ec2:DeleteTransitGatewayClientVpnAttachment", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:DeleteTransitGatewayConnect": {"action": "ec2:DeleteTransitGatewayConnect", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:DeleteTransitGatewayConnectPeer": {"action": "ec2:DeleteTransitGatewayConnectPeer", "types": ["transit-gateway-connect-peer"], "resources": [{"type": "transit-gateway-connect-peer", "fill": {"TransitGatewayConnectPeerId": "TransitGatewayConnectPeerId"}}]}, + "ec2:DeleteTransitGatewayMeteringPolicy": {"action": "ec2:DeleteTransitGatewayMeteringPolicy", "types": ["transit-gateway-metering-policy"], "resources": [{"type": "transit-gateway-metering-policy", "fill": {"TransitGatewayMeteringPolicyId": "TransitGatewayMeteringPolicyId"}}]}, + "ec2:DeleteTransitGatewayMeteringPolicyEntry": {"action": "ec2:DeleteTransitGatewayMeteringPolicyEntry", "types": ["transit-gateway-metering-policy"], "resources": [{"type": "transit-gateway-metering-policy", "fill": {"TransitGatewayMeteringPolicyId": "TransitGatewayMeteringPolicyId"}}]}, + "ec2:DeleteTransitGatewayMulticastDomain": {"action": "ec2:DeleteTransitGatewayMulticastDomain", "types": ["transit-gateway-multicast-domain"], "resources": [{"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}]}, + "ec2:DeleteTransitGatewayPeeringAttachment": {"action": "ec2:DeleteTransitGatewayPeeringAttachment", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:DeleteTransitGatewayPolicyTable": {"action": "ec2:DeleteTransitGatewayPolicyTable", "types": ["transit-gateway-policy-table"], "resources": [{"type": "transit-gateway-policy-table", "fill": {"TransitGatewayPolicyTableId": "TransitGatewayPolicyTableId"}}]}, + "ec2:DeleteTransitGatewayPolicyTableEntry": {"action": "ec2:DeleteTransitGatewayPolicyTableEntry", "types": ["transit-gateway-policy-table"], "resources": [{"type": "transit-gateway-policy-table", "fill": {"TransitGatewayPolicyTableId": "TransitGatewayPolicyTableId"}}]}, + "ec2:DeleteTransitGatewayPrefixListReference": {"action": "ec2:DeleteTransitGatewayPrefixListReference", "types": ["prefix-list", "transit-gateway-route-table"], "resources": [{"type": "prefix-list", "fill": {"PrefixListId": "PrefixListId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, + "ec2:DeleteTransitGatewayRoute": {"action": "ec2:DeleteTransitGatewayRoute", "types": ["transit-gateway-route-table"], "resources": [{"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, + "ec2:DeleteTransitGatewayRouteTable": {"action": "ec2:DeleteTransitGatewayRouteTable", "types": ["transit-gateway-route-table"], "resources": [{"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, + "ec2:DeleteTransitGatewayRouteTableAnnouncement": {"action": "ec2:DeleteTransitGatewayRouteTableAnnouncement", "types": ["transit-gateway-route-table-announcement"], "resources": [{"type": "transit-gateway-route-table-announcement", "fill": {"TransitGatewayRouteTableAnnouncementId": "TransitGatewayRouteTableAnnouncementId"}}]}, + "ec2:DeleteTransitGatewayVpcAttachment": {"action": "ec2:DeleteTransitGatewayVpcAttachment", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:DeleteVerifiedAccessEndpoint": {"action": "ec2:DeleteVerifiedAccessEndpoint", "types": ["verified-access-endpoint"], "resources": [{"type": "verified-access-endpoint", "fill": {"VerifiedAccessEndpointId": "VerifiedAccessEndpointId"}}]}, + "ec2:DeleteVerifiedAccessGroup": {"action": "ec2:DeleteVerifiedAccessGroup", "types": ["verified-access-group"], "resources": [{"type": "verified-access-group", "fill": {"VerifiedAccessGroupId": "VerifiedAccessGroupId"}}]}, + "ec2:DeleteVerifiedAccessInstance": {"action": "ec2:DeleteVerifiedAccessInstance", "types": ["verified-access-instance"], "resources": [{"type": "verified-access-instance", "fill": {"VerifiedAccessInstanceId": "VerifiedAccessInstanceId"}}]}, + "ec2:DeleteVerifiedAccessTrustProvider": {"action": "ec2:DeleteVerifiedAccessTrustProvider", "types": ["verified-access-trust-provider"], "resources": [{"type": "verified-access-trust-provider", "fill": {"VerifiedAccessTrustProviderId": "VerifiedAccessTrustProviderId"}}]}, + "ec2:DeleteVolume": {"action": "ec2:DeleteVolume", "types": ["volume"], "resources": [{"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, + "ec2:DeleteVpc": {"action": "ec2:DeleteVpc", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:DeleteVpcBlockPublicAccessExclusion": {"action": "ec2:DeleteVpcBlockPublicAccessExclusion", "types": ["vpc-block-public-access-exclusion"], "resources": [{"type": "vpc-block-public-access-exclusion", "fill": {"VpcBlockPublicAccessExclusionId": "ExclusionId"}}]}, + "ec2:DeleteVpcEncryptionControl": {"action": "ec2:DeleteVpcEncryptionControl", "types": ["vpc-encryption-control"], "resources": [{"type": "vpc-encryption-control", "fill": {"VpcEncryptionControlId": "VpcEncryptionControlId"}}]}, "ec2:DeleteVpcEndpointConnectionNotifications": {"action": "ec2:DeleteVpcEndpointConnectionNotifications", "types": ["vpc-endpoint", "vpc-endpoint-service"], "resources": []}, - "ec2:DeleteVpcEndpointServiceConfigurations": {"action": "ec2:DeleteVpcEndpointServiceConfigurations", "types": ["vpc-endpoint-service"], "resources": []}, - "ec2:DeleteVpcEndpoints": {"action": "ec2:DeleteVpcEndpoints", "types": ["vpc-endpoint"], "resources": []}, - "ec2:DeleteVpcPeeringConnection": {"action": "ec2:DeleteVpcPeeringConnection", "types": ["vpc-peering-connection"], "resources": []}, - "ec2:DeleteVpnConcentrator": {"action": "ec2:DeleteVpnConcentrator", "types": ["vpn-concentrator"], "resources": []}, - "ec2:DeleteVpnConnection": {"action": "ec2:DeleteVpnConnection", "types": ["vpn-connection"], "resources": []}, - "ec2:DeleteVpnConnectionRoute": {"action": "ec2:DeleteVpnConnectionRoute", "types": ["vpn-connection"], "resources": []}, - "ec2:DeleteVpnGateway": {"action": "ec2:DeleteVpnGateway", "types": ["vpn-gateway"], "resources": []}, + "ec2:DeleteVpcEndpointServiceConfigurations": {"action": "ec2:DeleteVpcEndpointServiceConfigurations", "types": ["vpc-endpoint-service"], "resources": [{"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceIds[]"}}], "ec2Query": {"ServiceIds[]": "ServiceId"}}, + "ec2:DeleteVpcEndpoints": {"action": "ec2:DeleteVpcEndpoints", "types": ["vpc-endpoint"], "resources": [{"type": "vpc-endpoint", "fill": {"VpcEndpointId": "VpcEndpointIds[]"}}], "ec2Query": {"VpcEndpointIds[]": "VpcEndpointId"}}, + "ec2:DeleteVpcPeeringConnection": {"action": "ec2:DeleteVpcPeeringConnection", "types": ["vpc-peering-connection"], "resources": [{"type": "vpc-peering-connection", "fill": {"VpcPeeringConnectionId": "VpcPeeringConnectionId"}}]}, + "ec2:DeleteVpnConcentrator": {"action": "ec2:DeleteVpnConcentrator", "types": ["vpn-concentrator"], "resources": [{"type": "vpn-concentrator", "fill": {"VpnConcentratorId": "VpnConcentratorId"}}]}, + "ec2:DeleteVpnConnection": {"action": "ec2:DeleteVpnConnection", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, + "ec2:DeleteVpnConnectionRoute": {"action": "ec2:DeleteVpnConnectionRoute", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, + "ec2:DeleteVpnGateway": {"action": "ec2:DeleteVpnGateway", "types": ["vpn-gateway"], "resources": [{"type": "vpn-gateway", "fill": {"VpnGatewayId": "VpnGatewayId"}}]}, "ec2:DeprovisionByoipCidr": {"action": "ec2:DeprovisionByoipCidr", "types": [], "resources": []}, - "ec2:DeprovisionIpamByoasn": {"action": "ec2:DeprovisionIpamByoasn", "types": ["ipam"], "resources": []}, - "ec2:DeprovisionIpamPoolCidr": {"action": "ec2:DeprovisionIpamPoolCidr", "types": ["ipam-pool"], "resources": []}, - "ec2:DeprovisionPublicIpv4PoolCidr": {"action": "ec2:DeprovisionPublicIpv4PoolCidr", "types": ["ipv4pool-ec2"], "resources": []}, - "ec2:DeregisterImage": {"action": "ec2:DeregisterImage", "types": ["image"], "resources": []}, + "ec2:DeprovisionIpamByoasn": {"action": "ec2:DeprovisionIpamByoasn", "types": ["ipam"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}]}, + "ec2:DeprovisionIpamPoolCidr": {"action": "ec2:DeprovisionIpamPoolCidr", "types": ["ipam-pool"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}]}, + "ec2:DeprovisionPublicIpv4PoolCidr": {"action": "ec2:DeprovisionPublicIpv4PoolCidr", "types": ["ipv4pool-ec2"], "resources": [{"type": "ipv4pool-ec2", "fill": {"Ipv4PoolEc2Id": "PoolId"}}]}, + "ec2:DeregisterImage": {"action": "ec2:DeregisterImage", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, "ec2:DeregisterInstanceEventNotificationAttributes": {"action": "ec2:DeregisterInstanceEventNotificationAttributes", "types": [], "resources": []}, - "ec2:DeregisterTransitGatewayMulticastGroupMembers": {"action": "ec2:DeregisterTransitGatewayMulticastGroupMembers", "types": ["network-interface", "transit-gateway-multicast-domain"], "resources": []}, - "ec2:DeregisterTransitGatewayMulticastGroupSources": {"action": "ec2:DeregisterTransitGatewayMulticastGroupSources", "types": ["network-interface", "transit-gateway-multicast-domain"], "resources": []}, + "ec2:DeregisterTransitGatewayMulticastGroupMembers": {"action": "ec2:DeregisterTransitGatewayMulticastGroupMembers", "types": ["network-interface", "transit-gateway-multicast-domain"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceIds[]"}}, {"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}], "ec2Query": {"NetworkInterfaceIds[]": "NetworkInterfaceIds"}}, + "ec2:DeregisterTransitGatewayMulticastGroupSources": {"action": "ec2:DeregisterTransitGatewayMulticastGroupSources", "types": ["network-interface", "transit-gateway-multicast-domain"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceIds[]"}}, {"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}], "ec2Query": {"NetworkInterfaceIds[]": "NetworkInterfaceIds"}}, "ec2:DescribeAccountAttributes": {"action": "ec2:DescribeAccountAttributes", "types": [], "resources": []}, "ec2:DescribeAccountVpcEncryptionControl": {"action": "ec2:DescribeAccountVpcEncryptionControl", "types": [], "resources": []}, "ec2:DescribeAddressTransfers": {"action": "ec2:DescribeAddressTransfers", "types": [], "resources": []}, @@ -1212,7 +1212,7 @@ "ec2:DescribeBundleTasks": {"action": "ec2:DescribeBundleTasks", "types": [], "resources": []}, "ec2:DescribeByoipCidrs": {"action": "ec2:DescribeByoipCidrs", "types": [], "resources": []}, "ec2:DescribeCapacityBlockExtensionHistory": {"action": "ec2:DescribeCapacityBlockExtensionHistory", "types": [], "resources": []}, - "ec2:DescribeCapacityBlockExtensionOfferings": {"action": "ec2:DescribeCapacityBlockExtensionOfferings", "types": ["capacity-reservation"], "resources": []}, + "ec2:DescribeCapacityBlockExtensionOfferings": {"action": "ec2:DescribeCapacityBlockExtensionOfferings", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}]}, "ec2:DescribeCapacityBlockOfferings": {"action": "ec2:DescribeCapacityBlockOfferings", "types": [], "resources": []}, "ec2:DescribeCapacityBlockStatus": {"action": "ec2:DescribeCapacityBlockStatus", "types": [], "resources": []}, "ec2:DescribeCapacityBlocks": {"action": "ec2:DescribeCapacityBlocks", "types": [], "resources": []}, @@ -1225,11 +1225,11 @@ "ec2:DescribeCapacityReservations": {"action": "ec2:DescribeCapacityReservations", "types": [], "resources": []}, "ec2:DescribeCarrierGateways": {"action": "ec2:DescribeCarrierGateways", "types": [], "resources": []}, "ec2:DescribeClassicLinkInstances": {"action": "ec2:DescribeClassicLinkInstances", "types": [], "resources": []}, - "ec2:DescribeClientVpnAuthorizationRules": {"action": "ec2:DescribeClientVpnAuthorizationRules", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:DescribeClientVpnConnections": {"action": "ec2:DescribeClientVpnConnections", "types": ["client-vpn-endpoint"], "resources": []}, + "ec2:DescribeClientVpnAuthorizationRules": {"action": "ec2:DescribeClientVpnAuthorizationRules", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:DescribeClientVpnConnections": {"action": "ec2:DescribeClientVpnConnections", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, "ec2:DescribeClientVpnEndpoints": {"action": "ec2:DescribeClientVpnEndpoints", "types": [], "resources": []}, - "ec2:DescribeClientVpnRoutes": {"action": "ec2:DescribeClientVpnRoutes", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:DescribeClientVpnTargetNetworks": {"action": "ec2:DescribeClientVpnTargetNetworks", "types": ["client-vpn-endpoint"], "resources": []}, + "ec2:DescribeClientVpnRoutes": {"action": "ec2:DescribeClientVpnRoutes", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:DescribeClientVpnTargetNetworks": {"action": "ec2:DescribeClientVpnTargetNetworks", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, "ec2:DescribeCoipPools": {"action": "ec2:DescribeCoipPools", "types": [], "resources": []}, "ec2:DescribeConversionTasks": {"action": "ec2:DescribeConversionTasks", "types": [], "resources": []}, "ec2:DescribeCustomerGateways": {"action": "ec2:DescribeCustomerGateways", "types": [], "resources": []}, @@ -1241,11 +1241,11 @@ "ec2:DescribeExportTasks": {"action": "ec2:DescribeExportTasks", "types": [], "resources": []}, "ec2:DescribeFastLaunchImages": {"action": "ec2:DescribeFastLaunchImages", "types": [], "resources": []}, "ec2:DescribeFastSnapshotRestores": {"action": "ec2:DescribeFastSnapshotRestores", "types": [], "resources": []}, - "ec2:DescribeFleetHistory": {"action": "ec2:DescribeFleetHistory", "types": ["fleet"], "resources": []}, - "ec2:DescribeFleetInstances": {"action": "ec2:DescribeFleetInstances", "types": ["fleet"], "resources": []}, + "ec2:DescribeFleetHistory": {"action": "ec2:DescribeFleetHistory", "types": ["fleet"], "resources": [{"type": "fleet", "fill": {"FleetId": "FleetId"}}]}, + "ec2:DescribeFleetInstances": {"action": "ec2:DescribeFleetInstances", "types": ["fleet"], "resources": [{"type": "fleet", "fill": {"FleetId": "FleetId"}}]}, "ec2:DescribeFleets": {"action": "ec2:DescribeFleets", "types": [], "resources": []}, "ec2:DescribeFlowLogs": {"action": "ec2:DescribeFlowLogs", "types": [], "resources": []}, - "ec2:DescribeFpgaImageAttribute": {"action": "ec2:DescribeFpgaImageAttribute", "types": ["fpga-image"], "resources": []}, + "ec2:DescribeFpgaImageAttribute": {"action": "ec2:DescribeFpgaImageAttribute", "types": ["fpga-image"], "resources": [{"type": "fpga-image", "fill": {"FpgaImageId": "FpgaImageId"}}]}, "ec2:DescribeFpgaImages": {"action": "ec2:DescribeFpgaImages", "types": [], "resources": []}, "ec2:DescribeHostReservationOfferings": {"action": "ec2:DescribeHostReservationOfferings", "types": [], "resources": []}, "ec2:DescribeHostReservations": {"action": "ec2:DescribeHostReservations", "types": [], "resources": []}, @@ -1253,14 +1253,14 @@ "ec2:DescribeIamInstanceProfileAssociations": {"action": "ec2:DescribeIamInstanceProfileAssociations", "types": [], "resources": []}, "ec2:DescribeIdFormat": {"action": "ec2:DescribeIdFormat", "types": [], "resources": []}, "ec2:DescribeIdentityIdFormat": {"action": "ec2:DescribeIdentityIdFormat", "types": [], "resources": []}, - "ec2:DescribeImageAttribute": {"action": "ec2:DescribeImageAttribute", "types": ["image"], "resources": []}, + "ec2:DescribeImageAttribute": {"action": "ec2:DescribeImageAttribute", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, "ec2:DescribeImageReferences": {"action": "ec2:DescribeImageReferences", "types": [], "resources": []}, "ec2:DescribeImageUsageReportEntries": {"action": "ec2:DescribeImageUsageReportEntries", "types": [], "resources": []}, "ec2:DescribeImageUsageReports": {"action": "ec2:DescribeImageUsageReports", "types": [], "resources": []}, "ec2:DescribeImages": {"action": "ec2:DescribeImages", "types": [], "resources": []}, "ec2:DescribeImportImageTasks": {"action": "ec2:DescribeImportImageTasks", "types": [], "resources": []}, "ec2:DescribeImportSnapshotTasks": {"action": "ec2:DescribeImportSnapshotTasks", "types": [], "resources": []}, - "ec2:DescribeInstanceAttribute": {"action": "ec2:DescribeInstanceAttribute", "types": ["instance"], "resources": []}, + "ec2:DescribeInstanceAttribute": {"action": "ec2:DescribeInstanceAttribute", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, "ec2:DescribeInstanceConnectEndpoints": {"action": "ec2:DescribeInstanceConnectEndpoints", "types": [], "resources": []}, "ec2:DescribeInstanceCreditSpecifications": {"action": "ec2:DescribeInstanceCreditSpecifications", "types": [], "resources": []}, "ec2:DescribeInstanceEventNotificationAttributes": {"action": "ec2:DescribeInstanceEventNotificationAttributes", "types": [], "resources": []}, @@ -1333,17 +1333,17 @@ "ec2:DescribeSecondaryInterfaces": {"action": "ec2:DescribeSecondaryInterfaces", "types": [], "resources": []}, "ec2:DescribeSecondaryNetworks": {"action": "ec2:DescribeSecondaryNetworks", "types": [], "resources": []}, "ec2:DescribeSecondarySubnets": {"action": "ec2:DescribeSecondarySubnets", "types": [], "resources": []}, - "ec2:DescribeSecurityGroupReferences": {"action": "ec2:DescribeSecurityGroupReferences", "types": ["security-group"], "resources": []}, + "ec2:DescribeSecurityGroupReferences": {"action": "ec2:DescribeSecurityGroupReferences", "types": ["security-group"], "resources": [{"type": "security-group", "fill": {"SecurityGroupId": "GroupId[]"}}], "ec2Query": {"GroupId[]": "GroupId"}}, "ec2:DescribeSecurityGroupRules": {"action": "ec2:DescribeSecurityGroupRules", "types": [], "resources": []}, "ec2:DescribeSecurityGroupVpcAssociations": {"action": "ec2:DescribeSecurityGroupVpcAssociations", "types": [], "resources": []}, "ec2:DescribeSecurityGroups": {"action": "ec2:DescribeSecurityGroups", "types": [], "resources": []}, "ec2:DescribeServiceLinkVirtualInterfaces": {"action": "ec2:DescribeServiceLinkVirtualInterfaces", "types": [], "resources": []}, - "ec2:DescribeSnapshotAttribute": {"action": "ec2:DescribeSnapshotAttribute", "types": ["snapshot"], "resources": []}, + "ec2:DescribeSnapshotAttribute": {"action": "ec2:DescribeSnapshotAttribute", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}]}, "ec2:DescribeSnapshotTierStatus": {"action": "ec2:DescribeSnapshotTierStatus", "types": [], "resources": []}, "ec2:DescribeSnapshots": {"action": "ec2:DescribeSnapshots", "types": [], "resources": []}, "ec2:DescribeSpotDatafeedSubscription": {"action": "ec2:DescribeSpotDatafeedSubscription", "types": [], "resources": []}, - "ec2:DescribeSpotFleetInstances": {"action": "ec2:DescribeSpotFleetInstances", "types": ["spot-fleet-request"], "resources": []}, - "ec2:DescribeSpotFleetRequestHistory": {"action": "ec2:DescribeSpotFleetRequestHistory", "types": ["spot-fleet-request"], "resources": []}, + "ec2:DescribeSpotFleetInstances": {"action": "ec2:DescribeSpotFleetInstances", "types": ["spot-fleet-request"], "resources": [{"type": "spot-fleet-request", "fill": {"SpotFleetRequestId": "SpotFleetRequestId"}}]}, + "ec2:DescribeSpotFleetRequestHistory": {"action": "ec2:DescribeSpotFleetRequestHistory", "types": ["spot-fleet-request"], "resources": [{"type": "spot-fleet-request", "fill": {"SpotFleetRequestId": "SpotFleetRequestId"}}]}, "ec2:DescribeSpotFleetRequests": {"action": "ec2:DescribeSpotFleetRequests", "types": [], "resources": []}, "ec2:DescribeSpotInstanceRequests": {"action": "ec2:DescribeSpotInstanceRequests", "types": [], "resources": []}, "ec2:DescribeSpotPriceHistory": {"action": "ec2:DescribeSpotPriceHistory", "types": [], "resources": []}, @@ -1372,11 +1372,11 @@ "ec2:DescribeVerifiedAccessInstanceLoggingConfigurations": {"action": "ec2:DescribeVerifiedAccessInstanceLoggingConfigurations", "types": [], "resources": []}, "ec2:DescribeVerifiedAccessInstances": {"action": "ec2:DescribeVerifiedAccessInstances", "types": [], "resources": []}, "ec2:DescribeVerifiedAccessTrustProviders": {"action": "ec2:DescribeVerifiedAccessTrustProviders", "types": [], "resources": []}, - "ec2:DescribeVolumeAttribute": {"action": "ec2:DescribeVolumeAttribute", "types": ["volume"], "resources": []}, + "ec2:DescribeVolumeAttribute": {"action": "ec2:DescribeVolumeAttribute", "types": ["volume"], "resources": [{"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, "ec2:DescribeVolumeStatus": {"action": "ec2:DescribeVolumeStatus", "types": [], "resources": []}, "ec2:DescribeVolumes": {"action": "ec2:DescribeVolumes", "types": [], "resources": []}, "ec2:DescribeVolumesModifications": {"action": "ec2:DescribeVolumesModifications", "types": [], "resources": []}, - "ec2:DescribeVpcAttribute": {"action": "ec2:DescribeVpcAttribute", "types": ["vpc"], "resources": []}, + "ec2:DescribeVpcAttribute": {"action": "ec2:DescribeVpcAttribute", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, "ec2:DescribeVpcBlockPublicAccessExclusions": {"action": "ec2:DescribeVpcBlockPublicAccessExclusions", "types": [], "resources": []}, "ec2:DescribeVpcBlockPublicAccessOptions": {"action": "ec2:DescribeVpcBlockPublicAccessOptions", "types": [], "resources": []}, "ec2:DescribeVpcClassicLink": {"action": "ec2:DescribeVpcClassicLink", "types": [], "resources": []}, @@ -1386,7 +1386,7 @@ "ec2:DescribeVpcEndpointConnectionNotifications": {"action": "ec2:DescribeVpcEndpointConnectionNotifications", "types": [], "resources": []}, "ec2:DescribeVpcEndpointConnections": {"action": "ec2:DescribeVpcEndpointConnections", "types": [], "resources": []}, "ec2:DescribeVpcEndpointServiceConfigurations": {"action": "ec2:DescribeVpcEndpointServiceConfigurations", "types": [], "resources": []}, - "ec2:DescribeVpcEndpointServicePermissions": {"action": "ec2:DescribeVpcEndpointServicePermissions", "types": ["vpc-endpoint-service"], "resources": []}, + "ec2:DescribeVpcEndpointServicePermissions": {"action": "ec2:DescribeVpcEndpointServicePermissions", "types": ["vpc-endpoint-service"], "resources": [{"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceId"}}]}, "ec2:DescribeVpcEndpointServices": {"action": "ec2:DescribeVpcEndpointServices", "types": [], "resources": []}, "ec2:DescribeVpcEndpoints": {"action": "ec2:DescribeVpcEndpoints", "types": [], "resources": []}, "ec2:DescribeVpcPeeringConnections": {"action": "ec2:DescribeVpcPeeringConnections", "types": [], "resources": []}, @@ -1394,346 +1394,346 @@ "ec2:DescribeVpnConcentrators": {"action": "ec2:DescribeVpnConcentrators", "types": [], "resources": []}, "ec2:DescribeVpnConnections": {"action": "ec2:DescribeVpnConnections", "types": [], "resources": []}, "ec2:DescribeVpnGateways": {"action": "ec2:DescribeVpnGateways", "types": [], "resources": []}, - "ec2:DetachClassicLinkVpc": {"action": "ec2:DetachClassicLinkVpc", "types": ["instance", "vpc"], "resources": []}, - "ec2:DetachImageWatermark": {"action": "ec2:DetachImageWatermark", "types": ["image"], "resources": []}, - "ec2:DetachInternetGateway": {"action": "ec2:DetachInternetGateway", "types": ["internet-gateway", "vpc"], "resources": []}, + "ec2:DetachClassicLinkVpc": {"action": "ec2:DetachClassicLinkVpc", "types": ["instance", "vpc"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:DetachImageWatermark": {"action": "ec2:DetachImageWatermark", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, + "ec2:DetachInternetGateway": {"action": "ec2:DetachInternetGateway", "types": ["internet-gateway", "vpc"], "resources": [{"type": "internet-gateway", "fill": {"InternetGatewayId": "InternetGatewayId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, "ec2:DetachNetworkInterface": {"action": "ec2:DetachNetworkInterface", "types": ["instance", "network-interface"], "resources": []}, - "ec2:DetachVerifiedAccessTrustProvider": {"action": "ec2:DetachVerifiedAccessTrustProvider", "types": ["verified-access-instance", "verified-access-trust-provider"], "resources": []}, - "ec2:DetachVolume": {"action": "ec2:DetachVolume", "types": ["instance", "volume"], "resources": []}, - "ec2:DetachVpnGateway": {"action": "ec2:DetachVpnGateway", "types": ["vpc", "vpn-gateway"], "resources": []}, - "ec2:DisableAddressTransfer": {"action": "ec2:DisableAddressTransfer", "types": ["elastic-ip"], "resources": []}, + "ec2:DetachVerifiedAccessTrustProvider": {"action": "ec2:DetachVerifiedAccessTrustProvider", "types": ["verified-access-instance", "verified-access-trust-provider"], "resources": [{"type": "verified-access-instance", "fill": {"VerifiedAccessInstanceId": "VerifiedAccessInstanceId"}}, {"type": "verified-access-trust-provider", "fill": {"VerifiedAccessTrustProviderId": "VerifiedAccessTrustProviderId"}}]}, + "ec2:DetachVolume": {"action": "ec2:DetachVolume", "types": ["instance", "volume"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}, {"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, + "ec2:DetachVpnGateway": {"action": "ec2:DetachVpnGateway", "types": ["vpc", "vpn-gateway"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "vpn-gateway", "fill": {"VpnGatewayId": "VpnGatewayId"}}]}, + "ec2:DisableAddressTransfer": {"action": "ec2:DisableAddressTransfer", "types": ["elastic-ip"], "resources": [{"type": "elastic-ip", "fill": {"AllocationId": "AllocationId"}}]}, "ec2:DisableAllowedImagesSettings": {"action": "ec2:DisableAllowedImagesSettings", "types": [], "resources": []}, "ec2:DisableApplicationStatusCheckSuppression": {"action": "ec2:DisableApplicationStatusCheckSuppression", "types": ["instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, "ec2:DisableAwsNetworkPerformanceMetricSubscription": {"action": "ec2:DisableAwsNetworkPerformanceMetricSubscription", "types": [], "resources": []}, "ec2:DisableCapacityManager": {"action": "ec2:DisableCapacityManager", "types": [], "resources": []}, "ec2:DisableEbsEncryptionByDefault": {"action": "ec2:DisableEbsEncryptionByDefault", "types": [], "resources": []}, - "ec2:DisableFastLaunch": {"action": "ec2:DisableFastLaunch", "types": ["image"], "resources": []}, - "ec2:DisableFastSnapshotRestores": {"action": "ec2:DisableFastSnapshotRestores", "types": ["snapshot"], "resources": []}, - "ec2:DisableImage": {"action": "ec2:DisableImage", "types": ["image"], "resources": []}, + "ec2:DisableFastLaunch": {"action": "ec2:DisableFastLaunch", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, + "ec2:DisableFastSnapshotRestores": {"action": "ec2:DisableFastSnapshotRestores", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SourceSnapshotIds[]"}}], "ec2Query": {"SourceSnapshotIds[]": "SourceSnapshotId"}}, + "ec2:DisableImage": {"action": "ec2:DisableImage", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, "ec2:DisableImageBlockPublicAccess": {"action": "ec2:DisableImageBlockPublicAccess", "types": [], "resources": []}, - "ec2:DisableImageDeprecation": {"action": "ec2:DisableImageDeprecation", "types": ["image"], "resources": []}, - "ec2:DisableImageDeregistrationProtection": {"action": "ec2:DisableImageDeregistrationProtection", "types": ["image"], "resources": []}, + "ec2:DisableImageDeprecation": {"action": "ec2:DisableImageDeprecation", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, + "ec2:DisableImageDeregistrationProtection": {"action": "ec2:DisableImageDeregistrationProtection", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, "ec2:DisableInstanceSqlHaStandbyDetections": {"action": "ec2:DisableInstanceSqlHaStandbyDetections", "types": ["instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, "ec2:DisableIpamOrganizationAdminAccount": {"action": "ec2:DisableIpamOrganizationAdminAccount", "types": [], "resources": []}, - "ec2:DisableIpamPolicy": {"action": "ec2:DisableIpamPolicy", "types": ["ipam-policy"], "resources": []}, - "ec2:DisableRouteServerPropagation": {"action": "ec2:DisableRouteServerPropagation", "types": ["route-server", "route-table"], "resources": []}, + "ec2:DisableIpamPolicy": {"action": "ec2:DisableIpamPolicy", "types": ["ipam-policy"], "resources": [{"type": "ipam-policy", "fill": {"IpamPolicyId": "IpamPolicyId"}}]}, + "ec2:DisableRouteServerPropagation": {"action": "ec2:DisableRouteServerPropagation", "types": ["route-server", "route-table"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}, {"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}]}, "ec2:DisableSerialConsoleAccess": {"action": "ec2:DisableSerialConsoleAccess", "types": [], "resources": []}, "ec2:DisableSnapshotBlockPublicAccess": {"action": "ec2:DisableSnapshotBlockPublicAccess", "types": [], "resources": []}, - "ec2:DisableTransitGatewayRouteTablePropagation": {"action": "ec2:DisableTransitGatewayRouteTablePropagation", "types": ["transit-gateway-attachment", "transit-gateway-route-table", "transit-gateway-route-table-announcement"], "resources": []}, - "ec2:DisableVgwRoutePropagation": {"action": "ec2:DisableVgwRoutePropagation", "types": ["route-table", "vpn-gateway"], "resources": []}, - "ec2:DisableVpcClassicLink": {"action": "ec2:DisableVpcClassicLink", "types": ["vpc"], "resources": []}, - "ec2:DisableVpcClassicLinkDnsSupport": {"action": "ec2:DisableVpcClassicLinkDnsSupport", "types": ["vpc"], "resources": []}, + "ec2:DisableTransitGatewayRouteTablePropagation": {"action": "ec2:DisableTransitGatewayRouteTablePropagation", "types": ["transit-gateway-attachment", "transit-gateway-route-table", "transit-gateway-route-table-announcement"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}, {"type": "transit-gateway-route-table-announcement", "fill": {"TransitGatewayRouteTableAnnouncementId": "TransitGatewayRouteTableAnnouncementId"}}]}, + "ec2:DisableVgwRoutePropagation": {"action": "ec2:DisableVgwRoutePropagation", "types": ["route-table", "vpn-gateway"], "resources": [{"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}, {"type": "vpn-gateway", "fill": {"VpnGatewayId": "GatewayId"}}]}, + "ec2:DisableVpcClassicLink": {"action": "ec2:DisableVpcClassicLink", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:DisableVpcClassicLinkDnsSupport": {"action": "ec2:DisableVpcClassicLinkDnsSupport", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, "ec2:DisassociateAddress": {"action": "ec2:DisassociateAddress", "types": ["elastic-ip", "network-interface"], "resources": []}, - "ec2:DisassociateApplicationStatusCheck": {"action": "ec2:DisassociateApplicationStatusCheck", "types": ["application-status-check", "instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, - "ec2:DisassociateCapacityReservationBillingOwner": {"action": "ec2:DisassociateCapacityReservationBillingOwner", "types": ["capacity-reservation"], "resources": []}, - "ec2:DisassociateClientVpnTargetNetwork": {"action": "ec2:DisassociateClientVpnTargetNetwork", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:DisassociateEnclaveCertificateIamRole": {"action": "ec2:DisassociateEnclaveCertificateIamRole", "types": ["certificate", "role"], "resources": []}, + "ec2:DisassociateApplicationStatusCheck": {"action": "ec2:DisassociateApplicationStatusCheck", "types": ["application-status-check", "instance"], "resources": [{"type": "application-status-check", "fill": {"ApplicationStatusCheckId": "ApplicationStatusCheckId"}}, {"type": "instance", "fill": {"InstanceId": "InstanceIds[]"}}], "ec2Query": {"InstanceIds[]": "InstanceId"}}, + "ec2:DisassociateCapacityReservationBillingOwner": {"action": "ec2:DisassociateCapacityReservationBillingOwner", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}, "account": "UnusedReservationBillingOwnerId"}]}, + "ec2:DisassociateClientVpnTargetNetwork": {"action": "ec2:DisassociateClientVpnTargetNetwork", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:DisassociateEnclaveCertificateIamRole": {"action": "ec2:DisassociateEnclaveCertificateIamRole", "types": ["certificate", "role"], "resources": [{"types": ["certificate", "role"], "arn": "CertificateArn"}, {"types": ["certificate", "role"], "arn": "RoleArn"}]}, "ec2:DisassociateIamInstanceProfile": {"action": "ec2:DisassociateIamInstanceProfile", "types": ["instance"], "resources": []}, - "ec2:DisassociateInstanceEventWindow": {"action": "ec2:DisassociateInstanceEventWindow", "types": ["instance-event-window"], "resources": []}, + "ec2:DisassociateInstanceEventWindow": {"action": "ec2:DisassociateInstanceEventWindow", "types": ["instance-event-window"], "resources": [{"type": "instance-event-window", "fill": {"InstanceEventWindowId": "InstanceEventWindowId"}}]}, "ec2:DisassociateIpamByoasn": {"action": "ec2:DisassociateIpamByoasn", "types": [], "resources": []}, - "ec2:DisassociateIpamResourceDiscovery": {"action": "ec2:DisassociateIpamResourceDiscovery", "types": ["ipam-resource-discovery-association"], "resources": []}, - "ec2:DisassociateNatGatewayAddress": {"action": "ec2:DisassociateNatGatewayAddress", "types": ["elastic-ip", "natgateway", "network-interface"], "resources": []}, + "ec2:DisassociateIpamResourceDiscovery": {"action": "ec2:DisassociateIpamResourceDiscovery", "types": ["ipam-resource-discovery-association"], "resources": [{"type": "ipam-resource-discovery-association", "fill": {"IpamResourceDiscoveryAssociationId": "IpamResourceDiscoveryAssociationId"}}]}, + "ec2:DisassociateNatGatewayAddress": {"action": "ec2:DisassociateNatGatewayAddress", "types": ["elastic-ip", "natgateway", "network-interface"], "resources": [{"type": "natgateway", "fill": {"NatGatewayId": "NatGatewayId"}}]}, "ec2:DisassociateNetworkingFlexCostAllocationPolicy": {"action": "ec2:DisassociateNetworkingFlexCostAllocationPolicy", "types": [], "resources": []}, - "ec2:DisassociateRouteServer": {"action": "ec2:DisassociateRouteServer", "types": ["route-server", "vpc"], "resources": []}, + "ec2:DisassociateRouteServer": {"action": "ec2:DisassociateRouteServer", "types": ["route-server", "vpc"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, "ec2:DisassociateRouteTable": {"action": "ec2:DisassociateRouteTable", "types": ["internet-gateway", "ipv4pool-ec2", "ipv6pool-ec2", "route-table", "subnet", "vpn-gateway"], "resources": []}, - "ec2:DisassociateSecurityGroupVpc": {"action": "ec2:DisassociateSecurityGroupVpc", "types": ["security-group", "vpc"], "resources": []}, + "ec2:DisassociateSecurityGroupVpc": {"action": "ec2:DisassociateSecurityGroupVpc", "types": ["security-group", "vpc"], "resources": [{"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, "ec2:DisassociateSubnetCidrBlock": {"action": "ec2:DisassociateSubnetCidrBlock", "types": ["subnet"], "resources": []}, - "ec2:DisassociateTransitGatewayMulticastDomain": {"action": "ec2:DisassociateTransitGatewayMulticastDomain", "types": ["subnet", "transit-gateway-attachment", "transit-gateway-multicast-domain"], "resources": []}, - "ec2:DisassociateTransitGatewayPolicyTable": {"action": "ec2:DisassociateTransitGatewayPolicyTable", "types": ["transit-gateway-attachment", "transit-gateway-policy-table"], "resources": []}, - "ec2:DisassociateTransitGatewayRouteTable": {"action": "ec2:DisassociateTransitGatewayRouteTable", "types": ["transit-gateway-attachment", "transit-gateway-route-table"], "resources": []}, + "ec2:DisassociateTransitGatewayMulticastDomain": {"action": "ec2:DisassociateTransitGatewayMulticastDomain", "types": ["subnet", "transit-gateway-attachment", "transit-gateway-multicast-domain"], "resources": [{"type": "subnet", "fill": {"SubnetId": "SubnetIds[]"}}, {"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}], "ec2Query": {"SubnetIds[]": "SubnetIds"}}, + "ec2:DisassociateTransitGatewayPolicyTable": {"action": "ec2:DisassociateTransitGatewayPolicyTable", "types": ["transit-gateway-attachment", "transit-gateway-policy-table"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-policy-table", "fill": {"TransitGatewayPolicyTableId": "TransitGatewayPolicyTableId"}}]}, + "ec2:DisassociateTransitGatewayRouteTable": {"action": "ec2:DisassociateTransitGatewayRouteTable", "types": ["transit-gateway-attachment", "transit-gateway-route-table"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, "ec2:DisassociateTrunkInterface": {"action": "ec2:DisassociateTrunkInterface", "types": [], "resources": []}, "ec2:DisassociateVpcCidrBlock": {"action": "ec2:DisassociateVpcCidrBlock", "types": ["vpc"], "resources": []}, - "ec2:EnableAddressTransfer": {"action": "ec2:EnableAddressTransfer", "types": ["elastic-ip"], "resources": []}, + "ec2:EnableAddressTransfer": {"action": "ec2:EnableAddressTransfer", "types": ["elastic-ip"], "resources": [{"type": "elastic-ip", "fill": {"AllocationId": "AllocationId"}}]}, "ec2:EnableAllowedImagesSettings": {"action": "ec2:EnableAllowedImagesSettings", "types": [], "resources": []}, "ec2:EnableApplicationStatusCheckSuppression": {"action": "ec2:EnableApplicationStatusCheckSuppression", "types": ["instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, "ec2:EnableAwsNetworkPerformanceMetricSubscription": {"action": "ec2:EnableAwsNetworkPerformanceMetricSubscription", "types": [], "resources": []}, "ec2:EnableCapacityManager": {"action": "ec2:EnableCapacityManager", "types": [], "resources": []}, "ec2:EnableEbsEncryptionByDefault": {"action": "ec2:EnableEbsEncryptionByDefault", "types": [], "resources": []}, - "ec2:EnableFastLaunch": {"action": "ec2:EnableFastLaunch", "types": ["image", "launch-template"], "resources": []}, - "ec2:EnableFastSnapshotRestores": {"action": "ec2:EnableFastSnapshotRestores", "types": ["snapshot"], "resources": []}, - "ec2:EnableImage": {"action": "ec2:EnableImage", "types": ["image"], "resources": []}, + "ec2:EnableFastLaunch": {"action": "ec2:EnableFastLaunch", "types": ["image", "launch-template"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}, {"type": "launch-template", "fill": {"LaunchTemplateId": "LaunchTemplate.LaunchTemplateId"}}]}, + "ec2:EnableFastSnapshotRestores": {"action": "ec2:EnableFastSnapshotRestores", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SourceSnapshotIds[]"}}], "ec2Query": {"SourceSnapshotIds[]": "SourceSnapshotId"}}, + "ec2:EnableImage": {"action": "ec2:EnableImage", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, "ec2:EnableImageBlockPublicAccess": {"action": "ec2:EnableImageBlockPublicAccess", "types": [], "resources": []}, - "ec2:EnableImageDeprecation": {"action": "ec2:EnableImageDeprecation", "types": ["image"], "resources": []}, - "ec2:EnableImageDeregistrationProtection": {"action": "ec2:EnableImageDeregistrationProtection", "types": ["image"], "resources": []}, + "ec2:EnableImageDeprecation": {"action": "ec2:EnableImageDeprecation", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, + "ec2:EnableImageDeregistrationProtection": {"action": "ec2:EnableImageDeregistrationProtection", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, "ec2:EnableInstanceSqlHaStandbyDetections": {"action": "ec2:EnableInstanceSqlHaStandbyDetections", "types": ["instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, - "ec2:EnableIpamInternetRegistryAssociation": {"action": "ec2:EnableIpamInternetRegistryAssociation", "types": ["ipam-internet-registry-association"], "resources": []}, + "ec2:EnableIpamInternetRegistryAssociation": {"action": "ec2:EnableIpamInternetRegistryAssociation", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, "ec2:EnableIpamOrganizationAdminAccount": {"action": "ec2:EnableIpamOrganizationAdminAccount", "types": [], "resources": []}, - "ec2:EnableIpamPolicy": {"action": "ec2:EnableIpamPolicy", "types": ["ipam-policy"], "resources": []}, + "ec2:EnableIpamPolicy": {"action": "ec2:EnableIpamPolicy", "types": ["ipam-policy"], "resources": [{"type": "ipam-policy", "fill": {"IpamPolicyId": "IpamPolicyId"}}]}, "ec2:EnableReachabilityAnalyzerOrganizationSharing": {"action": "ec2:EnableReachabilityAnalyzerOrganizationSharing", "types": [], "resources": []}, - "ec2:EnableRouteServerPropagation": {"action": "ec2:EnableRouteServerPropagation", "types": ["route-server", "route-table"], "resources": []}, + "ec2:EnableRouteServerPropagation": {"action": "ec2:EnableRouteServerPropagation", "types": ["route-server", "route-table"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}, {"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}]}, "ec2:EnableSerialConsoleAccess": {"action": "ec2:EnableSerialConsoleAccess", "types": [], "resources": []}, "ec2:EnableSnapshotBlockPublicAccess": {"action": "ec2:EnableSnapshotBlockPublicAccess", "types": [], "resources": []}, - "ec2:EnableTransitGatewayRouteTablePropagation": {"action": "ec2:EnableTransitGatewayRouteTablePropagation", "types": ["transit-gateway-attachment", "transit-gateway-route-table", "transit-gateway-route-table-announcement"], "resources": []}, - "ec2:EnableVgwRoutePropagation": {"action": "ec2:EnableVgwRoutePropagation", "types": ["route-table", "vpn-gateway"], "resources": []}, - "ec2:EnableVolumeIO": {"action": "ec2:EnableVolumeIO", "types": ["volume"], "resources": []}, - "ec2:EnableVpcClassicLink": {"action": "ec2:EnableVpcClassicLink", "types": ["vpc"], "resources": []}, - "ec2:EnableVpcClassicLinkDnsSupport": {"action": "ec2:EnableVpcClassicLinkDnsSupport", "types": ["vpc"], "resources": []}, - "ec2:ExportClientVpnClientCertificateRevocationList": {"action": "ec2:ExportClientVpnClientCertificateRevocationList", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:ExportClientVpnClientConfiguration": {"action": "ec2:ExportClientVpnClientConfiguration", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:ExportImage": {"action": "ec2:ExportImage", "types": ["export-image-task", "image"], "resources": []}, + "ec2:EnableTransitGatewayRouteTablePropagation": {"action": "ec2:EnableTransitGatewayRouteTablePropagation", "types": ["transit-gateway-attachment", "transit-gateway-route-table", "transit-gateway-route-table-announcement"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}, {"type": "transit-gateway-route-table-announcement", "fill": {"TransitGatewayRouteTableAnnouncementId": "TransitGatewayRouteTableAnnouncementId"}}]}, + "ec2:EnableVgwRoutePropagation": {"action": "ec2:EnableVgwRoutePropagation", "types": ["route-table", "vpn-gateway"], "resources": [{"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}, {"type": "vpn-gateway", "fill": {"VpnGatewayId": "GatewayId"}}]}, + "ec2:EnableVolumeIO": {"action": "ec2:EnableVolumeIO", "types": ["volume"], "resources": [{"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, + "ec2:EnableVpcClassicLink": {"action": "ec2:EnableVpcClassicLink", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:EnableVpcClassicLinkDnsSupport": {"action": "ec2:EnableVpcClassicLinkDnsSupport", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:ExportClientVpnClientCertificateRevocationList": {"action": "ec2:ExportClientVpnClientCertificateRevocationList", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:ExportClientVpnClientConfiguration": {"action": "ec2:ExportClientVpnClientConfiguration", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:ExportImage": {"action": "ec2:ExportImage", "types": ["export-image-task", "image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, "ec2:ExportTransitGatewayRoutes": {"action": "ec2:ExportTransitGatewayRoutes", "types": [], "resources": []}, - "ec2:ExportVerifiedAccessInstanceClientConfiguration": {"action": "ec2:ExportVerifiedAccessInstanceClientConfiguration", "types": ["verified-access-instance"], "resources": []}, - "ec2:GetActiveVpnTunnelStatus": {"action": "ec2:GetActiveVpnTunnelStatus", "types": ["vpn-connection"], "resources": []}, + "ec2:ExportVerifiedAccessInstanceClientConfiguration": {"action": "ec2:ExportVerifiedAccessInstanceClientConfiguration", "types": ["verified-access-instance"], "resources": [{"type": "verified-access-instance", "fill": {"VerifiedAccessInstanceId": "VerifiedAccessInstanceId"}}]}, + "ec2:GetActiveVpnTunnelStatus": {"action": "ec2:GetActiveVpnTunnelStatus", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, "ec2:GetAllowedImagesSettings": {"action": "ec2:GetAllowedImagesSettings", "types": [], "resources": []}, - "ec2:GetAssociatedEnclaveCertificateIamRoles": {"action": "ec2:GetAssociatedEnclaveCertificateIamRoles", "types": ["certificate"], "resources": []}, - "ec2:GetAssociatedIpv6PoolCidrs": {"action": "ec2:GetAssociatedIpv6PoolCidrs", "types": ["ipv6pool-ec2"], "resources": []}, + "ec2:GetAssociatedEnclaveCertificateIamRoles": {"action": "ec2:GetAssociatedEnclaveCertificateIamRoles", "types": ["certificate"], "resources": [{"types": ["certificate"], "arn": "CertificateArn"}]}, + "ec2:GetAssociatedIpv6PoolCidrs": {"action": "ec2:GetAssociatedIpv6PoolCidrs", "types": ["ipv6pool-ec2"], "resources": [{"type": "ipv6pool-ec2", "fill": {"Ipv6PoolEc2Id": "PoolId"}}]}, "ec2:GetAwsNetworkPerformanceData": {"action": "ec2:GetAwsNetworkPerformanceData", "types": [], "resources": []}, "ec2:GetCapacityManagerAttributes": {"action": "ec2:GetCapacityManagerAttributes", "types": [], "resources": []}, "ec2:GetCapacityManagerMetricData": {"action": "ec2:GetCapacityManagerMetricData", "types": [], "resources": []}, "ec2:GetCapacityManagerMetricDimensions": {"action": "ec2:GetCapacityManagerMetricDimensions", "types": [], "resources": []}, "ec2:GetCapacityManagerMonitoredTagKeys": {"action": "ec2:GetCapacityManagerMonitoredTagKeys", "types": [], "resources": []}, "ec2:GetCapacityManagerSupportabilityScores": {"action": "ec2:GetCapacityManagerSupportabilityScores", "types": [], "resources": []}, - "ec2:GetCapacityReservationUsage": {"action": "ec2:GetCapacityReservationUsage", "types": ["capacity-reservation"], "resources": []}, - "ec2:GetClientVpnEndpointAuthorizationPolicy": {"action": "ec2:GetClientVpnEndpointAuthorizationPolicy", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:GetCoipPoolUsage": {"action": "ec2:GetCoipPoolUsage", "types": ["coip-pool"], "resources": []}, - "ec2:GetConsoleOutput": {"action": "ec2:GetConsoleOutput", "types": ["instance"], "resources": []}, - "ec2:GetConsoleScreenshot": {"action": "ec2:GetConsoleScreenshot", "types": ["instance"], "resources": []}, - "ec2:GetDeclarativePoliciesReportSummary": {"action": "ec2:GetDeclarativePoliciesReportSummary", "types": ["declarative-policies-report"], "resources": []}, + "ec2:GetCapacityReservationUsage": {"action": "ec2:GetCapacityReservationUsage", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}]}, + "ec2:GetClientVpnEndpointAuthorizationPolicy": {"action": "ec2:GetClientVpnEndpointAuthorizationPolicy", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:GetCoipPoolUsage": {"action": "ec2:GetCoipPoolUsage", "types": ["coip-pool"], "resources": [{"type": "coip-pool", "fill": {"Ipv4PoolCoipId": "PoolId"}}]}, + "ec2:GetConsoleOutput": {"action": "ec2:GetConsoleOutput", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:GetConsoleScreenshot": {"action": "ec2:GetConsoleScreenshot", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:GetDeclarativePoliciesReportSummary": {"action": "ec2:GetDeclarativePoliciesReportSummary", "types": ["declarative-policies-report"], "resources": [{"type": "declarative-policies-report", "fill": {"DeclarativePoliciesReportId": "ReportId"}}]}, "ec2:GetDefaultCreditSpecification": {"action": "ec2:GetDefaultCreditSpecification", "types": [], "resources": []}, "ec2:GetEbsDefaultKmsKeyId": {"action": "ec2:GetEbsDefaultKmsKeyId", "types": [], "resources": []}, "ec2:GetEbsEncryptionByDefault": {"action": "ec2:GetEbsEncryptionByDefault", "types": [], "resources": []}, "ec2:GetEnabledIpamPolicy": {"action": "ec2:GetEnabledIpamPolicy", "types": [], "resources": []}, - "ec2:GetFlowLogsIntegrationTemplate": {"action": "ec2:GetFlowLogsIntegrationTemplate", "types": ["vpc-flow-log"], "resources": []}, - "ec2:GetGroupsForCapacityReservation": {"action": "ec2:GetGroupsForCapacityReservation", "types": ["capacity-reservation"], "resources": []}, + "ec2:GetFlowLogsIntegrationTemplate": {"action": "ec2:GetFlowLogsIntegrationTemplate", "types": ["vpc-flow-log"], "resources": [{"types": ["vpc-flow-log"], "arn": "ConfigDeliveryS3DestinationArn"}, {"type": "vpc-flow-log", "fill": {"VpcFlowLogId": "FlowLogId"}}]}, + "ec2:GetGroupsForCapacityReservation": {"action": "ec2:GetGroupsForCapacityReservation", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}]}, "ec2:GetHostReservationPurchasePreview": {"action": "ec2:GetHostReservationPurchasePreview", "types": [], "resources": []}, - "ec2:GetImageAncestry": {"action": "ec2:GetImageAncestry", "types": ["image"], "resources": []}, + "ec2:GetImageAncestry": {"action": "ec2:GetImageAncestry", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, "ec2:GetImageBlockPublicAccessState": {"action": "ec2:GetImageBlockPublicAccessState", "types": [], "resources": []}, "ec2:GetImageFindings": {"action": "ec2:GetImageFindings", "types": ["image"], "resources": []}, "ec2:GetInstanceMetadataDefaults": {"action": "ec2:GetInstanceMetadataDefaults", "types": [], "resources": []}, - "ec2:GetInstanceTpmEkPub": {"action": "ec2:GetInstanceTpmEkPub", "types": ["instance"], "resources": []}, + "ec2:GetInstanceTpmEkPub": {"action": "ec2:GetInstanceTpmEkPub", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, "ec2:GetInstanceTypesFromInstanceRequirements": {"action": "ec2:GetInstanceTypesFromInstanceRequirements", "types": [], "resources": []}, - "ec2:GetInstanceUefiData": {"action": "ec2:GetInstanceUefiData", "types": ["instance"], "resources": []}, - "ec2:GetIpamAddressHistory": {"action": "ec2:GetIpamAddressHistory", "types": ["ipam-scope"], "resources": []}, - "ec2:GetIpamDiscoveredAccounts": {"action": "ec2:GetIpamDiscoveredAccounts", "types": ["ipam-resource-discovery"], "resources": []}, - "ec2:GetIpamDiscoveredPublicAddresses": {"action": "ec2:GetIpamDiscoveredPublicAddresses", "types": ["ipam-resource-discovery"], "resources": []}, - "ec2:GetIpamDiscoveredResourceCidrs": {"action": "ec2:GetIpamDiscoveredResourceCidrs", "types": ["ipam-resource-discovery"], "resources": []}, - "ec2:GetIpamDiscoveredRoutes": {"action": "ec2:GetIpamDiscoveredRoutes", "types": ["ipam-resource-discovery"], "resources": []}, - "ec2:GetIpamInternetRegistryAssociationAsns": {"action": "ec2:GetIpamInternetRegistryAssociationAsns", "types": ["ipam-internet-registry-association"], "resources": []}, - "ec2:GetIpamInternetRegistryAssociationCidrs": {"action": "ec2:GetIpamInternetRegistryAssociationCidrs", "types": ["ipam-internet-registry-association"], "resources": []}, - "ec2:GetIpamPolicyAllocationRules": {"action": "ec2:GetIpamPolicyAllocationRules", "types": ["ipam-policy"], "resources": []}, - "ec2:GetIpamPolicyOrganizationTargets": {"action": "ec2:GetIpamPolicyOrganizationTargets", "types": ["ipam-policy"], "resources": []}, - "ec2:GetIpamPoolAllocations": {"action": "ec2:GetIpamPoolAllocations", "types": ["ipam-pool"], "resources": []}, - "ec2:GetIpamPoolCidrs": {"action": "ec2:GetIpamPoolCidrs", "types": ["ipam-pool"], "resources": []}, - "ec2:GetIpamPrefixListResolverRules": {"action": "ec2:GetIpamPrefixListResolverRules", "types": ["ipam-prefix-list-resolver"], "resources": []}, - "ec2:GetIpamPrefixListResolverVersionEntries": {"action": "ec2:GetIpamPrefixListResolverVersionEntries", "types": ["ipam-prefix-list-resolver"], "resources": []}, - "ec2:GetIpamPrefixListResolverVersions": {"action": "ec2:GetIpamPrefixListResolverVersions", "types": ["ipam-prefix-list-resolver"], "resources": []}, - "ec2:GetIpamResourceCidrs": {"action": "ec2:GetIpamResourceCidrs", "types": ["ipam-pool", "ipam-scope"], "resources": []}, - "ec2:GetIpamRouteOriginAuthorizations": {"action": "ec2:GetIpamRouteOriginAuthorizations", "types": ["ipam-internet-registry-association"], "resources": []}, - "ec2:GetIpamRouteProtectionFindings": {"action": "ec2:GetIpamRouteProtectionFindings", "types": ["ipam"], "resources": []}, - "ec2:GetIpamRoutingPolicyRegistrationDeltas": {"action": "ec2:GetIpamRoutingPolicyRegistrationDeltas", "types": ["ipam-internet-registry-association"], "resources": []}, - "ec2:GetIpamRoutingPolicyRegistrations": {"action": "ec2:GetIpamRoutingPolicyRegistrations", "types": ["ipam-internet-registry-association"], "resources": []}, - "ec2:GetLaunchTemplateData": {"action": "ec2:GetLaunchTemplateData", "types": ["instance"], "resources": []}, - "ec2:GetManagedPrefixListAssociations": {"action": "ec2:GetManagedPrefixListAssociations", "types": ["prefix-list"], "resources": []}, - "ec2:GetManagedPrefixListEntries": {"action": "ec2:GetManagedPrefixListEntries", "types": ["prefix-list"], "resources": []}, + "ec2:GetInstanceUefiData": {"action": "ec2:GetInstanceUefiData", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:GetIpamAddressHistory": {"action": "ec2:GetIpamAddressHistory", "types": ["ipam-scope"], "resources": [{"type": "ipam-scope", "fill": {"IpamScopeId": "IpamScopeId"}}]}, + "ec2:GetIpamDiscoveredAccounts": {"action": "ec2:GetIpamDiscoveredAccounts", "types": ["ipam-resource-discovery"], "resources": [{"type": "ipam-resource-discovery", "fill": {"IpamResourceDiscoveryId": "IpamResourceDiscoveryId"}}]}, + "ec2:GetIpamDiscoveredPublicAddresses": {"action": "ec2:GetIpamDiscoveredPublicAddresses", "types": ["ipam-resource-discovery"], "resources": [{"type": "ipam-resource-discovery", "fill": {"IpamResourceDiscoveryId": "IpamResourceDiscoveryId"}}]}, + "ec2:GetIpamDiscoveredResourceCidrs": {"action": "ec2:GetIpamDiscoveredResourceCidrs", "types": ["ipam-resource-discovery"], "resources": [{"type": "ipam-resource-discovery", "fill": {"IpamResourceDiscoveryId": "IpamResourceDiscoveryId"}}]}, + "ec2:GetIpamDiscoveredRoutes": {"action": "ec2:GetIpamDiscoveredRoutes", "types": ["ipam-resource-discovery"], "resources": [{"type": "ipam-resource-discovery", "fill": {"IpamResourceDiscoveryId": "IpamResourceDiscoveryId"}}]}, + "ec2:GetIpamInternetRegistryAssociationAsns": {"action": "ec2:GetIpamInternetRegistryAssociationAsns", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, + "ec2:GetIpamInternetRegistryAssociationCidrs": {"action": "ec2:GetIpamInternetRegistryAssociationCidrs", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, + "ec2:GetIpamPolicyAllocationRules": {"action": "ec2:GetIpamPolicyAllocationRules", "types": ["ipam-policy"], "resources": [{"type": "ipam-policy", "fill": {"IpamPolicyId": "IpamPolicyId"}}]}, + "ec2:GetIpamPolicyOrganizationTargets": {"action": "ec2:GetIpamPolicyOrganizationTargets", "types": ["ipam-policy"], "resources": [{"type": "ipam-policy", "fill": {"IpamPolicyId": "IpamPolicyId"}}]}, + "ec2:GetIpamPoolAllocations": {"action": "ec2:GetIpamPoolAllocations", "types": ["ipam-pool"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}]}, + "ec2:GetIpamPoolCidrs": {"action": "ec2:GetIpamPoolCidrs", "types": ["ipam-pool"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}]}, + "ec2:GetIpamPrefixListResolverRules": {"action": "ec2:GetIpamPrefixListResolverRules", "types": ["ipam-prefix-list-resolver"], "resources": [{"type": "ipam-prefix-list-resolver", "fill": {"IpamPrefixListResolverId": "IpamPrefixListResolverId"}}]}, + "ec2:GetIpamPrefixListResolverVersionEntries": {"action": "ec2:GetIpamPrefixListResolverVersionEntries", "types": ["ipam-prefix-list-resolver"], "resources": [{"type": "ipam-prefix-list-resolver", "fill": {"IpamPrefixListResolverId": "IpamPrefixListResolverId"}}]}, + "ec2:GetIpamPrefixListResolverVersions": {"action": "ec2:GetIpamPrefixListResolverVersions", "types": ["ipam-prefix-list-resolver"], "resources": [{"type": "ipam-prefix-list-resolver", "fill": {"IpamPrefixListResolverId": "IpamPrefixListResolverId"}}]}, + "ec2:GetIpamResourceCidrs": {"action": "ec2:GetIpamResourceCidrs", "types": ["ipam-pool", "ipam-scope"], "resources": [{"types": ["ipam-pool", "ipam-scope"], "through": "ResourceId"}]}, + "ec2:GetIpamRouteOriginAuthorizations": {"action": "ec2:GetIpamRouteOriginAuthorizations", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, + "ec2:GetIpamRouteProtectionFindings": {"action": "ec2:GetIpamRouteProtectionFindings", "types": ["ipam"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}]}, + "ec2:GetIpamRoutingPolicyRegistrationDeltas": {"action": "ec2:GetIpamRoutingPolicyRegistrationDeltas", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, + "ec2:GetIpamRoutingPolicyRegistrations": {"action": "ec2:GetIpamRoutingPolicyRegistrations", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, + "ec2:GetLaunchTemplateData": {"action": "ec2:GetLaunchTemplateData", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:GetManagedPrefixListAssociations": {"action": "ec2:GetManagedPrefixListAssociations", "types": ["prefix-list"], "resources": [{"type": "prefix-list", "fill": {"PrefixListId": "PrefixListId"}}]}, + "ec2:GetManagedPrefixListEntries": {"action": "ec2:GetManagedPrefixListEntries", "types": ["prefix-list"], "resources": [{"type": "prefix-list", "fill": {"PrefixListId": "PrefixListId"}}]}, "ec2:GetManagedResourceVisibility": {"action": "ec2:GetManagedResourceVisibility", "types": [], "resources": []}, - "ec2:GetNetworkInsightsAccessScopeAnalysisFindings": {"action": "ec2:GetNetworkInsightsAccessScopeAnalysisFindings", "types": ["network-insights-access-scope-analysis"], "resources": []}, - "ec2:GetNetworkInsightsAccessScopeContent": {"action": "ec2:GetNetworkInsightsAccessScopeContent", "types": ["network-insights-access-scope"], "resources": []}, + "ec2:GetNetworkInsightsAccessScopeAnalysisFindings": {"action": "ec2:GetNetworkInsightsAccessScopeAnalysisFindings", "types": ["network-insights-access-scope-analysis"], "resources": [{"type": "network-insights-access-scope-analysis", "fill": {"NetworkInsightsAccessScopeAnalysisId": "NetworkInsightsAccessScopeAnalysisId"}}]}, + "ec2:GetNetworkInsightsAccessScopeContent": {"action": "ec2:GetNetworkInsightsAccessScopeContent", "types": ["network-insights-access-scope"], "resources": [{"type": "network-insights-access-scope", "fill": {"NetworkInsightsAccessScopeId": "NetworkInsightsAccessScopeId"}}]}, "ec2:GetNetworkingFlexCostAllocationPolicyVersions": {"action": "ec2:GetNetworkingFlexCostAllocationPolicyVersions", "types": [], "resources": []}, - "ec2:GetPasswordData": {"action": "ec2:GetPasswordData", "types": ["instance"], "resources": []}, - "ec2:GetReservedInstancesExchangeQuote": {"action": "ec2:GetReservedInstancesExchangeQuote", "types": ["reserved-instances"], "resources": []}, - "ec2:GetRouteServerAssociations": {"action": "ec2:GetRouteServerAssociations", "types": ["route-server"], "resources": []}, - "ec2:GetRouteServerPropagations": {"action": "ec2:GetRouteServerPropagations", "types": ["route-server", "route-table"], "resources": []}, - "ec2:GetRouteServerRoutingDatabase": {"action": "ec2:GetRouteServerRoutingDatabase", "types": ["route-server"], "resources": []}, - "ec2:GetSecurityGroupsForVpc": {"action": "ec2:GetSecurityGroupsForVpc", "types": ["vpc"], "resources": []}, + "ec2:GetPasswordData": {"action": "ec2:GetPasswordData", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:GetReservedInstancesExchangeQuote": {"action": "ec2:GetReservedInstancesExchangeQuote", "types": ["reserved-instances"], "resources": [{"type": "reserved-instances", "fill": {"ReservationId": "ReservedInstanceIds[]"}}], "ec2Query": {"ReservedInstanceIds[]": "ReservedInstanceId"}}, + "ec2:GetRouteServerAssociations": {"action": "ec2:GetRouteServerAssociations", "types": ["route-server"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}]}, + "ec2:GetRouteServerPropagations": {"action": "ec2:GetRouteServerPropagations", "types": ["route-server", "route-table"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}, {"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}]}, + "ec2:GetRouteServerRoutingDatabase": {"action": "ec2:GetRouteServerRoutingDatabase", "types": ["route-server"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}]}, + "ec2:GetSecurityGroupsForVpc": {"action": "ec2:GetSecurityGroupsForVpc", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, "ec2:GetSerialConsoleAccessStatus": {"action": "ec2:GetSerialConsoleAccessStatus", "types": [], "resources": []}, "ec2:GetSnapshotBlockPublicAccessState": {"action": "ec2:GetSnapshotBlockPublicAccessState", "types": [], "resources": []}, "ec2:GetSpotPlacementScores": {"action": "ec2:GetSpotPlacementScores", "types": [], "resources": []}, "ec2:GetSubnetCidrReservations": {"action": "ec2:GetSubnetCidrReservations", "types": [], "resources": []}, - "ec2:GetTransitGatewayAttachmentNatConfiguration": {"action": "ec2:GetTransitGatewayAttachmentNatConfiguration", "types": ["transit-gateway-attachment"], "resources": []}, + "ec2:GetTransitGatewayAttachmentNatConfiguration": {"action": "ec2:GetTransitGatewayAttachmentNatConfiguration", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, "ec2:GetTransitGatewayAttachmentPropagations": {"action": "ec2:GetTransitGatewayAttachmentPropagations", "types": [], "resources": []}, - "ec2:GetTransitGatewayMeteringPolicyEntries": {"action": "ec2:GetTransitGatewayMeteringPolicyEntries", "types": ["transit-gateway-metering-policy"], "resources": []}, - "ec2:GetTransitGatewayMulticastDomainAssociations": {"action": "ec2:GetTransitGatewayMulticastDomainAssociations", "types": ["transit-gateway-multicast-domain"], "resources": []}, - "ec2:GetTransitGatewayPolicyTableAssociations": {"action": "ec2:GetTransitGatewayPolicyTableAssociations", "types": ["transit-gateway-policy-table"], "resources": []}, - "ec2:GetTransitGatewayPolicyTableEntries": {"action": "ec2:GetTransitGatewayPolicyTableEntries", "types": ["transit-gateway-policy-table"], "resources": []}, + "ec2:GetTransitGatewayMeteringPolicyEntries": {"action": "ec2:GetTransitGatewayMeteringPolicyEntries", "types": ["transit-gateway-metering-policy"], "resources": [{"type": "transit-gateway-metering-policy", "fill": {"TransitGatewayMeteringPolicyId": "TransitGatewayMeteringPolicyId"}}]}, + "ec2:GetTransitGatewayMulticastDomainAssociations": {"action": "ec2:GetTransitGatewayMulticastDomainAssociations", "types": ["transit-gateway-multicast-domain"], "resources": [{"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}]}, + "ec2:GetTransitGatewayPolicyTableAssociations": {"action": "ec2:GetTransitGatewayPolicyTableAssociations", "types": ["transit-gateway-policy-table"], "resources": [{"type": "transit-gateway-policy-table", "fill": {"TransitGatewayPolicyTableId": "TransitGatewayPolicyTableId"}}]}, + "ec2:GetTransitGatewayPolicyTableEntries": {"action": "ec2:GetTransitGatewayPolicyTableEntries", "types": ["transit-gateway-policy-table"], "resources": [{"type": "transit-gateway-policy-table", "fill": {"TransitGatewayPolicyTableId": "TransitGatewayPolicyTableId"}}]}, "ec2:GetTransitGatewayPrefixListReferences": {"action": "ec2:GetTransitGatewayPrefixListReferences", "types": [], "resources": []}, "ec2:GetTransitGatewayRouteTableAssociations": {"action": "ec2:GetTransitGatewayRouteTableAssociations", "types": [], "resources": []}, "ec2:GetTransitGatewayRouteTablePropagations": {"action": "ec2:GetTransitGatewayRouteTablePropagations", "types": [], "resources": []}, - "ec2:GetVerifiedAccessEndpointPolicy": {"action": "ec2:GetVerifiedAccessEndpointPolicy", "types": ["verified-access-endpoint"], "resources": []}, - "ec2:GetVerifiedAccessEndpointTargets": {"action": "ec2:GetVerifiedAccessEndpointTargets", "types": ["verified-access-endpoint"], "resources": []}, - "ec2:GetVerifiedAccessGroupPolicy": {"action": "ec2:GetVerifiedAccessGroupPolicy", "types": ["verified-access-group"], "resources": []}, - "ec2:GetVpcResourcesBlockingEncryptionEnforcement": {"action": "ec2:GetVpcResourcesBlockingEncryptionEnforcement", "types": ["vpc"], "resources": []}, - "ec2:GetVpnConnectionDeviceSampleConfiguration": {"action": "ec2:GetVpnConnectionDeviceSampleConfiguration", "types": ["vpn-connection", "vpn-connection-device-type"], "resources": []}, + "ec2:GetVerifiedAccessEndpointPolicy": {"action": "ec2:GetVerifiedAccessEndpointPolicy", "types": ["verified-access-endpoint"], "resources": [{"type": "verified-access-endpoint", "fill": {"VerifiedAccessEndpointId": "VerifiedAccessEndpointId"}}]}, + "ec2:GetVerifiedAccessEndpointTargets": {"action": "ec2:GetVerifiedAccessEndpointTargets", "types": ["verified-access-endpoint"], "resources": [{"type": "verified-access-endpoint", "fill": {"VerifiedAccessEndpointId": "VerifiedAccessEndpointId"}}]}, + "ec2:GetVerifiedAccessGroupPolicy": {"action": "ec2:GetVerifiedAccessGroupPolicy", "types": ["verified-access-group"], "resources": [{"type": "verified-access-group", "fill": {"VerifiedAccessGroupId": "VerifiedAccessGroupId"}}]}, + "ec2:GetVpcResourcesBlockingEncryptionEnforcement": {"action": "ec2:GetVpcResourcesBlockingEncryptionEnforcement", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:GetVpnConnectionDeviceSampleConfiguration": {"action": "ec2:GetVpnConnectionDeviceSampleConfiguration", "types": ["vpn-connection", "vpn-connection-device-type"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}, {"type": "vpn-connection-device-type", "fill": {"VpnConnectionDeviceTypeId": "VpnConnectionDeviceTypeId"}}]}, "ec2:GetVpnConnectionDeviceTypes": {"action": "ec2:GetVpnConnectionDeviceTypes", "types": [], "resources": []}, - "ec2:GetVpnTunnelReplacementStatus": {"action": "ec2:GetVpnTunnelReplacementStatus", "types": ["vpn-connection"], "resources": []}, - "ec2:ImportClientVpnClientCertificateRevocationList": {"action": "ec2:ImportClientVpnClientCertificateRevocationList", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:ImportImage": {"action": "ec2:ImportImage", "types": ["image", "import-image-task", "snapshot"], "resources": []}, - "ec2:ImportInstance": {"action": "ec2:ImportInstance", "types": ["instance", "security-group", "subnet", "volume"], "resources": []}, - "ec2:ImportKeyPair": {"action": "ec2:ImportKeyPair", "types": ["key-pair"], "resources": []}, - "ec2:ImportSnapshot": {"action": "ec2:ImportSnapshot", "types": ["import-snapshot-task", "snapshot"], "resources": []}, - "ec2:ImportVolume": {"action": "ec2:ImportVolume", "types": ["volume"], "resources": []}, + "ec2:GetVpnTunnelReplacementStatus": {"action": "ec2:GetVpnTunnelReplacementStatus", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, + "ec2:ImportClientVpnClientCertificateRevocationList": {"action": "ec2:ImportClientVpnClientCertificateRevocationList", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:ImportImage": {"action": "ec2:ImportImage", "types": ["image", "import-image-task", "snapshot"], "resources": [{"types": ["image", "import-image-task", "snapshot"], "arn": "LicenseSpecifications[].LicenseConfigurationArn"}, {"type": "image", "fill": {}, "made": true}, {"type": "snapshot", "fill": {"SnapshotId": "DiskContainers[].SnapshotId"}}]}, + "ec2:ImportInstance": {"action": "ec2:ImportInstance", "types": ["instance", "security-group", "subnet", "volume"], "resources": [{"type": "instance", "fill": {}, "made": true}, {"type": "subnet", "fill": {"SubnetId": "LaunchSpecification.SubnetId"}}]}, + "ec2:ImportKeyPair": {"action": "ec2:ImportKeyPair", "types": ["key-pair"], "resources": [{"type": "key-pair", "fill": {"KeyPairName": "KeyName"}}]}, + "ec2:ImportSnapshot": {"action": "ec2:ImportSnapshot", "types": ["import-snapshot-task", "snapshot"], "resources": [{"type": "snapshot", "fill": {}}]}, + "ec2:ImportVolume": {"action": "ec2:ImportVolume", "types": ["volume"], "resources": [{"type": "volume", "fill": {}}]}, "ec2:ListImagesInRecycleBin": {"action": "ec2:ListImagesInRecycleBin", "types": [], "resources": []}, "ec2:ListSnapshotsInRecycleBin": {"action": "ec2:ListSnapshotsInRecycleBin", "types": [], "resources": []}, "ec2:ListVolumesInRecycleBin": {"action": "ec2:ListVolumesInRecycleBin", "types": [], "resources": []}, - "ec2:LockSnapshot": {"action": "ec2:LockSnapshot", "types": ["snapshot"], "resources": []}, + "ec2:LockSnapshot": {"action": "ec2:LockSnapshot", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}]}, "ec2:ModifyAccountVpcEncryptionControl": {"action": "ec2:ModifyAccountVpcEncryptionControl", "types": [], "resources": []}, - "ec2:ModifyAddressAttribute": {"action": "ec2:ModifyAddressAttribute", "types": ["elastic-ip"], "resources": []}, - "ec2:ModifyApplicationStatusCheck": {"action": "ec2:ModifyApplicationStatusCheck", "types": ["application-status-check", "security-group", "subnet"], "resources": []}, + "ec2:ModifyAddressAttribute": {"action": "ec2:ModifyAddressAttribute", "types": ["elastic-ip"], "resources": [{"type": "elastic-ip", "fill": {"AllocationId": "AllocationId"}}]}, + "ec2:ModifyApplicationStatusCheck": {"action": "ec2:ModifyApplicationStatusCheck", "types": ["application-status-check", "security-group", "subnet"], "resources": [{"type": "application-status-check", "fill": {"ApplicationStatusCheckId": "ApplicationStatusCheckId"}}]}, "ec2:ModifyAvailabilityZoneGroup": {"action": "ec2:ModifyAvailabilityZoneGroup", "types": [], "resources": []}, - "ec2:ModifyCapacityReservation": {"action": "ec2:ModifyCapacityReservation", "types": ["capacity-reservation", "capacity-reservation-modification-quote"], "resources": []}, - "ec2:ModifyCapacityReservationFleet": {"action": "ec2:ModifyCapacityReservationFleet", "types": ["capacity-reservation-fleet"], "resources": []}, - "ec2:ModifyClientVpnEndpoint": {"action": "ec2:ModifyClientVpnEndpoint", "types": ["client-vpn-endpoint", "security-group", "transit-gateway", "vpc"], "resources": []}, - "ec2:ModifyClientVpnEndpointAuthorizationPolicy": {"action": "ec2:ModifyClientVpnEndpointAuthorizationPolicy", "types": ["client-vpn-endpoint"], "resources": []}, + "ec2:ModifyCapacityReservation": {"action": "ec2:ModifyCapacityReservation", "types": ["capacity-reservation", "capacity-reservation-modification-quote"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}, {"type": "capacity-reservation-modification-quote", "fill": {"CapacityReservationModificationQuoteId": "QuoteId"}}]}, + "ec2:ModifyCapacityReservationFleet": {"action": "ec2:ModifyCapacityReservationFleet", "types": ["capacity-reservation-fleet"], "resources": [{"type": "capacity-reservation-fleet", "fill": {"CapacityReservationFleetId": "CapacityReservationFleetId"}}]}, + "ec2:ModifyClientVpnEndpoint": {"action": "ec2:ModifyClientVpnEndpoint", "types": ["client-vpn-endpoint", "security-group", "transit-gateway", "vpc"], "resources": [{"types": ["client-vpn-endpoint", "security-group", "transit-gateway", "vpc"], "arn": "ClientConnectOptions.LambdaFunctionArn"}, {"types": ["client-vpn-endpoint", "security-group", "transit-gateway", "vpc"], "arn": "ServerCertificateArn"}, {"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}, {"type": "security-group", "fill": {"SecurityGroupId": "SecurityGroupIds[]"}}, {"type": "vpc", "fill": {"VpcId": "VpcId"}}, {"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayConfiguration.TransitGatewayId"}}], "ec2Query": {"SecurityGroupIds[]": "SecurityGroupId"}}, + "ec2:ModifyClientVpnEndpointAuthorizationPolicy": {"action": "ec2:ModifyClientVpnEndpointAuthorizationPolicy", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, "ec2:ModifyDefaultCreditSpecification": {"action": "ec2:ModifyDefaultCreditSpecification", "types": [], "resources": []}, "ec2:ModifyEbsDefaultKmsKeyId": {"action": "ec2:ModifyEbsDefaultKmsKeyId", "types": [], "resources": []}, - "ec2:ModifyFleet": {"action": "ec2:ModifyFleet", "types": ["fleet", "image", "launch-template", "subnet"], "resources": []}, - "ec2:ModifyFpgaImageAttribute": {"action": "ec2:ModifyFpgaImageAttribute", "types": ["fpga-image"], "resources": []}, - "ec2:ModifyHosts": {"action": "ec2:ModifyHosts", "types": ["dedicated-host"], "resources": []}, + "ec2:ModifyFleet": {"action": "ec2:ModifyFleet", "types": ["fleet", "image", "launch-template", "subnet"], "resources": [{"type": "fleet", "fill": {"FleetId": "FleetId"}}]}, + "ec2:ModifyFpgaImageAttribute": {"action": "ec2:ModifyFpgaImageAttribute", "types": ["fpga-image"], "resources": [{"type": "fpga-image", "fill": {"FpgaImageId": "FpgaImageId"}}]}, + "ec2:ModifyHosts": {"action": "ec2:ModifyHosts", "types": ["dedicated-host"], "resources": [{"type": "dedicated-host", "fill": {"DedicatedHostId": "HostIds[]"}}], "ec2Query": {"HostIds[]": "HostId"}}, "ec2:ModifyIdFormat": {"action": "ec2:ModifyIdFormat", "types": [], "resources": []}, "ec2:ModifyIdentityIdFormat": {"action": "ec2:ModifyIdentityIdFormat", "types": [], "resources": []}, - "ec2:ModifyImageAttribute": {"action": "ec2:ModifyImageAttribute", "types": ["image"], "resources": []}, - "ec2:ModifyInstanceAttribute": {"action": "ec2:ModifyInstanceAttribute", "types": ["instance", "security-group", "volume"], "resources": []}, - "ec2:ModifyInstanceCapacityReservationAttributes": {"action": "ec2:ModifyInstanceCapacityReservationAttributes", "types": ["capacity-reservation", "instance"], "resources": []}, - "ec2:ModifyInstanceConnectEndpoint": {"action": "ec2:ModifyInstanceConnectEndpoint", "types": ["instance-connect-endpoint", "security-group"], "resources": []}, - "ec2:ModifyInstanceCpuOptions": {"action": "ec2:ModifyInstanceCpuOptions", "types": ["instance"], "resources": []}, - "ec2:ModifyInstanceCreditSpecification": {"action": "ec2:ModifyInstanceCreditSpecification", "types": ["instance"], "resources": []}, - "ec2:ModifyInstanceEventStartTime": {"action": "ec2:ModifyInstanceEventStartTime", "types": ["instance"], "resources": []}, - "ec2:ModifyInstanceEventWindow": {"action": "ec2:ModifyInstanceEventWindow", "types": ["instance-event-window"], "resources": []}, - "ec2:ModifyInstanceMaintenanceOptions": {"action": "ec2:ModifyInstanceMaintenanceOptions", "types": ["instance"], "resources": []}, + "ec2:ModifyImageAttribute": {"action": "ec2:ModifyImageAttribute", "types": ["image"], "resources": [{"types": ["image"], "arn": "OrganizationArns[]"}, {"types": ["image"], "arn": "OrganizationalUnitArns[]"}, {"type": "image", "fill": {"ImageId": "ImageId"}}], "ec2Query": {"OrganizationArns[]": "OrganizationArn", "OrganizationalUnitArns[]": "OrganizationalUnitArn"}}, + "ec2:ModifyInstanceAttribute": {"action": "ec2:ModifyInstanceAttribute", "types": ["instance", "security-group", "volume"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}, {"type": "security-group", "fill": {"SecurityGroupId": "Groups[]"}}], "ec2Query": {"Groups[]": "GroupId"}}, + "ec2:ModifyInstanceCapacityReservationAttributes": {"action": "ec2:ModifyInstanceCapacityReservationAttributes", "types": ["capacity-reservation", "instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:ModifyInstanceConnectEndpoint": {"action": "ec2:ModifyInstanceConnectEndpoint", "types": ["instance-connect-endpoint", "security-group"], "resources": [{"type": "instance-connect-endpoint", "fill": {"InstanceConnectEndpointId": "InstanceConnectEndpointId"}}, {"type": "security-group", "fill": {"SecurityGroupId": "SecurityGroupIds[]"}}], "ec2Query": {"SecurityGroupIds[]": "SecurityGroupId"}}, + "ec2:ModifyInstanceCpuOptions": {"action": "ec2:ModifyInstanceCpuOptions", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:ModifyInstanceCreditSpecification": {"action": "ec2:ModifyInstanceCreditSpecification", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceCreditSpecifications[].InstanceId"}}]}, + "ec2:ModifyInstanceEventStartTime": {"action": "ec2:ModifyInstanceEventStartTime", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:ModifyInstanceEventWindow": {"action": "ec2:ModifyInstanceEventWindow", "types": ["instance-event-window"], "resources": [{"type": "instance-event-window", "fill": {"InstanceEventWindowId": "InstanceEventWindowId"}}]}, + "ec2:ModifyInstanceMaintenanceOptions": {"action": "ec2:ModifyInstanceMaintenanceOptions", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, "ec2:ModifyInstanceMetadataDefaults": {"action": "ec2:ModifyInstanceMetadataDefaults", "types": [], "resources": []}, - "ec2:ModifyInstanceMetadataOptions": {"action": "ec2:ModifyInstanceMetadataOptions", "types": ["instance"], "resources": []}, - "ec2:ModifyInstanceNetworkPerformanceOptions": {"action": "ec2:ModifyInstanceNetworkPerformanceOptions", "types": ["instance"], "resources": []}, - "ec2:ModifyInstancePlacement": {"action": "ec2:ModifyInstancePlacement", "types": ["dedicated-host", "instance", "placement-group"], "resources": []}, - "ec2:ModifyIpam": {"action": "ec2:ModifyIpam", "types": ["ipam"], "resources": []}, - "ec2:ModifyIpamPolicyAllocationRules": {"action": "ec2:ModifyIpamPolicyAllocationRules", "types": ["ipam-policy", "ipam-pool"], "resources": []}, - "ec2:ModifyIpamPool": {"action": "ec2:ModifyIpamPool", "types": ["ipam-pool"], "resources": []}, - "ec2:ModifyIpamPoolAllocation": {"action": "ec2:ModifyIpamPoolAllocation", "types": ["ipam-pool-allocation"], "resources": []}, - "ec2:ModifyIpamPrefixListResolver": {"action": "ec2:ModifyIpamPrefixListResolver", "types": ["ipam-prefix-list-resolver", "ipam-scope"], "resources": []}, - "ec2:ModifyIpamPrefixListResolverTarget": {"action": "ec2:ModifyIpamPrefixListResolverTarget", "types": ["ipam-prefix-list-resolver-target"], "resources": []}, - "ec2:ModifyIpamResourceCidr": {"action": "ec2:ModifyIpamResourceCidr", "types": ["ipam-scope"], "resources": []}, - "ec2:ModifyIpamResourceDiscovery": {"action": "ec2:ModifyIpamResourceDiscovery", "types": ["ipam-resource-discovery"], "resources": []}, - "ec2:ModifyIpamRoutingPolicyRegistration": {"action": "ec2:ModifyIpamRoutingPolicyRegistration", "types": ["ipam-internet-registry-association"], "resources": []}, - "ec2:ModifyIpamScope": {"action": "ec2:ModifyIpamScope", "types": ["ipam-scope"], "resources": []}, - "ec2:ModifyLaunchTemplate": {"action": "ec2:ModifyLaunchTemplate", "types": ["launch-template"], "resources": []}, - "ec2:ModifyLocalGatewayRoute": {"action": "ec2:ModifyLocalGatewayRoute", "types": ["local-gateway-route-table", "local-gateway-virtual-interface-group", "network-interface", "prefix-list"], "resources": []}, - "ec2:ModifyManagedPrefixList": {"action": "ec2:ModifyManagedPrefixList", "types": ["prefix-list"], "resources": []}, + "ec2:ModifyInstanceMetadataOptions": {"action": "ec2:ModifyInstanceMetadataOptions", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:ModifyInstanceNetworkPerformanceOptions": {"action": "ec2:ModifyInstanceNetworkPerformanceOptions", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:ModifyInstancePlacement": {"action": "ec2:ModifyInstancePlacement", "types": ["dedicated-host", "instance", "placement-group"], "resources": [{"types": ["dedicated-host", "instance", "placement-group"], "arn": "HostResourceGroupArn"}, {"type": "dedicated-host", "fill": {"DedicatedHostId": "HostId"}}, {"type": "instance", "fill": {"InstanceId": "InstanceId"}}, {"type": "placement-group", "fill": {"PlacementGroupName": "GroupName"}}]}, + "ec2:ModifyIpam": {"action": "ec2:ModifyIpam", "types": ["ipam"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}, "account": "MeteredAccount"}]}, + "ec2:ModifyIpamPolicyAllocationRules": {"action": "ec2:ModifyIpamPolicyAllocationRules", "types": ["ipam-policy", "ipam-pool"], "resources": [{"type": "ipam-policy", "fill": {"IpamPolicyId": "IpamPolicyId"}}]}, + "ec2:ModifyIpamPool": {"action": "ec2:ModifyIpamPool", "types": ["ipam-pool"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}]}, + "ec2:ModifyIpamPoolAllocation": {"action": "ec2:ModifyIpamPoolAllocation", "types": ["ipam-pool-allocation"], "resources": [{"type": "ipam-pool-allocation", "fill": {"IpamPoolAllocationId": "IpamPoolAllocationId"}}]}, + "ec2:ModifyIpamPrefixListResolver": {"action": "ec2:ModifyIpamPrefixListResolver", "types": ["ipam-prefix-list-resolver", "ipam-scope"], "resources": [{"type": "ipam-prefix-list-resolver", "fill": {"IpamPrefixListResolverId": "IpamPrefixListResolverId"}}, {"type": "ipam-scope", "fill": {"IpamScopeId": "Rules[].IpamScopeId"}}]}, + "ec2:ModifyIpamPrefixListResolverTarget": {"action": "ec2:ModifyIpamPrefixListResolverTarget", "types": ["ipam-prefix-list-resolver-target"], "resources": [{"type": "ipam-prefix-list-resolver-target", "fill": {"IpamPrefixListResolverTargetId": "IpamPrefixListResolverTargetId"}}]}, + "ec2:ModifyIpamResourceCidr": {"action": "ec2:ModifyIpamResourceCidr", "types": ["ipam-scope"], "resources": [{"type": "ipam-scope", "fill": {"IpamScopeId": "CurrentIpamScopeId"}}, {"type": "ipam-scope", "fill": {"IpamScopeId": "DestinationIpamScopeId"}}]}, + "ec2:ModifyIpamResourceDiscovery": {"action": "ec2:ModifyIpamResourceDiscovery", "types": ["ipam-resource-discovery"], "resources": [{"type": "ipam-resource-discovery", "fill": {"IpamResourceDiscoveryId": "IpamResourceDiscoveryId"}}]}, + "ec2:ModifyIpamRoutingPolicyRegistration": {"action": "ec2:ModifyIpamRoutingPolicyRegistration", "types": ["ipam-internet-registry-association"], "resources": [{"type": "ipam-internet-registry-association", "fill": {"IpamInternetRegistryAssociationId": "IpamInternetRegistryAssociationId"}}]}, + "ec2:ModifyIpamScope": {"action": "ec2:ModifyIpamScope", "types": ["ipam-scope"], "resources": [{"type": "ipam-scope", "fill": {"IpamScopeId": "IpamScopeId"}}]}, + "ec2:ModifyLaunchTemplate": {"action": "ec2:ModifyLaunchTemplate", "types": ["launch-template"], "resources": [{"type": "launch-template", "fill": {"LaunchTemplateId": "LaunchTemplateId"}}]}, + "ec2:ModifyLocalGatewayRoute": {"action": "ec2:ModifyLocalGatewayRoute", "types": ["local-gateway-route-table", "local-gateway-virtual-interface-group", "network-interface", "prefix-list"], "resources": [{"type": "local-gateway-route-table", "fill": {"LocalGatewayRoutetableId": "LocalGatewayRouteTableId"}}, {"type": "local-gateway-virtual-interface-group", "fill": {"LocalGatewayVirtualInterfaceGroupId": "LocalGatewayVirtualInterfaceGroupId"}}, {"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}, {"type": "prefix-list", "fill": {"PrefixListId": "DestinationPrefixListId"}}]}, + "ec2:ModifyManagedPrefixList": {"action": "ec2:ModifyManagedPrefixList", "types": ["prefix-list"], "resources": [{"type": "prefix-list", "fill": {"PrefixListId": "PrefixListId"}}]}, "ec2:ModifyManagedResourceVisibility": {"action": "ec2:ModifyManagedResourceVisibility", "types": [], "resources": []}, "ec2:ModifyMetricCategory": {"action": "ec2:ModifyMetricCategory", "types": [], "resources": []}, - "ec2:ModifyNetworkInterfaceAttribute": {"action": "ec2:ModifyNetworkInterfaceAttribute", "types": ["instance", "network-interface", "security-group", "subnet"], "resources": []}, + "ec2:ModifyNetworkInterfaceAttribute": {"action": "ec2:ModifyNetworkInterfaceAttribute", "types": ["instance", "network-interface", "security-group", "subnet"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}, {"type": "security-group", "fill": {"SecurityGroupId": "Groups[]"}}, {"type": "subnet", "fill": {"SubnetId": "AssociatedSubnetIds[]"}}], "ec2Query": {"AssociatedSubnetIds[]": "AssociatedSubnetId", "Groups[]": "SecurityGroupId"}}, "ec2:ModifyNetworkingFlexCostAllocationPolicy": {"action": "ec2:ModifyNetworkingFlexCostAllocationPolicy", "types": [], "resources": []}, - "ec2:ModifyPrivateDnsNameOptions": {"action": "ec2:ModifyPrivateDnsNameOptions", "types": ["instance"], "resources": []}, - "ec2:ModifyPublicIpDnsNameOptions": {"action": "ec2:ModifyPublicIpDnsNameOptions", "types": ["network-interface"], "resources": []}, - "ec2:ModifyReservedInstances": {"action": "ec2:ModifyReservedInstances", "types": ["reserved-instances"], "resources": []}, - "ec2:ModifyRouteServer": {"action": "ec2:ModifyRouteServer", "types": ["route-server"], "resources": []}, - "ec2:ModifySecurityGroupRules": {"action": "ec2:ModifySecurityGroupRules", "types": ["prefix-list", "security-group", "security-group-rule"], "resources": []}, - "ec2:ModifySnapshotAttribute": {"action": "ec2:ModifySnapshotAttribute", "types": ["snapshot"], "resources": []}, - "ec2:ModifySnapshotTier": {"action": "ec2:ModifySnapshotTier", "types": ["snapshot"], "resources": []}, - "ec2:ModifySpotFleetRequest": {"action": "ec2:ModifySpotFleetRequest", "types": ["launch-template", "spot-fleet-request", "subnet"], "resources": []}, - "ec2:ModifySubnetAttribute": {"action": "ec2:ModifySubnetAttribute", "types": ["subnet"], "resources": []}, - "ec2:ModifyTrafficMirrorFilterNetworkServices": {"action": "ec2:ModifyTrafficMirrorFilterNetworkServices", "types": ["traffic-mirror-filter"], "resources": []}, - "ec2:ModifyTrafficMirrorFilterRule": {"action": "ec2:ModifyTrafficMirrorFilterRule", "types": ["traffic-mirror-filter", "traffic-mirror-filter-rule"], "resources": []}, - "ec2:ModifyTrafficMirrorSession": {"action": "ec2:ModifyTrafficMirrorSession", "types": ["traffic-mirror-filter", "traffic-mirror-session", "traffic-mirror-target"], "resources": []}, - "ec2:ModifyTransitGateway": {"action": "ec2:ModifyTransitGateway", "types": ["transit-gateway", "transit-gateway-route-table"], "resources": []}, - "ec2:ModifyTransitGatewayAttachmentNatConfiguration": {"action": "ec2:ModifyTransitGatewayAttachmentNatConfiguration", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:ModifyTransitGatewayMeteringPolicy": {"action": "ec2:ModifyTransitGatewayMeteringPolicy", "types": ["transit-gateway-attachment", "transit-gateway-metering-policy"], "resources": []}, - "ec2:ModifyTransitGatewayPolicyTableEntry": {"action": "ec2:ModifyTransitGatewayPolicyTableEntry", "types": ["transit-gateway-policy-table", "transit-gateway-route-table"], "resources": []}, - "ec2:ModifyTransitGatewayPrefixListReference": {"action": "ec2:ModifyTransitGatewayPrefixListReference", "types": ["prefix-list", "transit-gateway-attachment", "transit-gateway-route-table"], "resources": []}, - "ec2:ModifyTransitGatewayVpcAttachment": {"action": "ec2:ModifyTransitGatewayVpcAttachment", "types": ["subnet", "transit-gateway-attachment"], "resources": []}, - "ec2:ModifyVerifiedAccessEndpoint": {"action": "ec2:ModifyVerifiedAccessEndpoint", "types": ["subnet", "verified-access-endpoint", "verified-access-group"], "resources": []}, - "ec2:ModifyVerifiedAccessEndpointPolicy": {"action": "ec2:ModifyVerifiedAccessEndpointPolicy", "types": ["verified-access-endpoint"], "resources": []}, - "ec2:ModifyVerifiedAccessGroup": {"action": "ec2:ModifyVerifiedAccessGroup", "types": ["verified-access-group", "verified-access-instance"], "resources": []}, - "ec2:ModifyVerifiedAccessGroupPolicy": {"action": "ec2:ModifyVerifiedAccessGroupPolicy", "types": ["verified-access-group"], "resources": []}, - "ec2:ModifyVerifiedAccessInstance": {"action": "ec2:ModifyVerifiedAccessInstance", "types": ["verified-access-instance"], "resources": []}, - "ec2:ModifyVerifiedAccessInstanceLoggingConfiguration": {"action": "ec2:ModifyVerifiedAccessInstanceLoggingConfiguration", "types": ["verified-access-instance"], "resources": []}, - "ec2:ModifyVerifiedAccessTrustProvider": {"action": "ec2:ModifyVerifiedAccessTrustProvider", "types": ["verified-access-trust-provider"], "resources": []}, - "ec2:ModifyVolume": {"action": "ec2:ModifyVolume", "types": ["volume"], "resources": []}, - "ec2:ModifyVolumeAttribute": {"action": "ec2:ModifyVolumeAttribute", "types": ["volume"], "resources": []}, - "ec2:ModifyVpcAttribute": {"action": "ec2:ModifyVpcAttribute", "types": ["vpc"], "resources": []}, - "ec2:ModifyVpcBlockPublicAccessExclusion": {"action": "ec2:ModifyVpcBlockPublicAccessExclusion", "types": ["vpc-block-public-access-exclusion"], "resources": []}, + "ec2:ModifyPrivateDnsNameOptions": {"action": "ec2:ModifyPrivateDnsNameOptions", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:ModifyPublicIpDnsNameOptions": {"action": "ec2:ModifyPublicIpDnsNameOptions", "types": ["network-interface"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, + "ec2:ModifyReservedInstances": {"action": "ec2:ModifyReservedInstances", "types": ["reserved-instances"], "resources": [{"type": "reserved-instances", "fill": {"ReservationId": "ReservedInstancesIds[]"}}], "ec2Query": {"ReservedInstancesIds[]": "ReservedInstancesId"}}, + "ec2:ModifyRouteServer": {"action": "ec2:ModifyRouteServer", "types": ["route-server"], "resources": [{"type": "route-server", "fill": {"RouteServerId": "RouteServerId"}}]}, + "ec2:ModifySecurityGroupRules": {"action": "ec2:ModifySecurityGroupRules", "types": ["prefix-list", "security-group", "security-group-rule"], "resources": [{"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}, {"type": "security-group-rule", "fill": {"SecurityGroupRuleId": "SecurityGroupRules[].SecurityGroupRuleId"}}]}, + "ec2:ModifySnapshotAttribute": {"action": "ec2:ModifySnapshotAttribute", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}]}, + "ec2:ModifySnapshotTier": {"action": "ec2:ModifySnapshotTier", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}]}, + "ec2:ModifySpotFleetRequest": {"action": "ec2:ModifySpotFleetRequest", "types": ["launch-template", "spot-fleet-request", "subnet"], "resources": [{"type": "spot-fleet-request", "fill": {"SpotFleetRequestId": "SpotFleetRequestId"}}]}, + "ec2:ModifySubnetAttribute": {"action": "ec2:ModifySubnetAttribute", "types": ["subnet"], "resources": [{"type": "subnet", "fill": {"SubnetId": "SubnetId"}}]}, + "ec2:ModifyTrafficMirrorFilterNetworkServices": {"action": "ec2:ModifyTrafficMirrorFilterNetworkServices", "types": ["traffic-mirror-filter"], "resources": [{"type": "traffic-mirror-filter", "fill": {"TrafficMirrorFilterId": "TrafficMirrorFilterId"}}]}, + "ec2:ModifyTrafficMirrorFilterRule": {"action": "ec2:ModifyTrafficMirrorFilterRule", "types": ["traffic-mirror-filter", "traffic-mirror-filter-rule"], "resources": [{"type": "traffic-mirror-filter-rule", "fill": {"TrafficMirrorFilterRuleId": "TrafficMirrorFilterRuleId"}}]}, + "ec2:ModifyTrafficMirrorSession": {"action": "ec2:ModifyTrafficMirrorSession", "types": ["traffic-mirror-filter", "traffic-mirror-session", "traffic-mirror-target"], "resources": [{"type": "traffic-mirror-filter", "fill": {"TrafficMirrorFilterId": "TrafficMirrorFilterId"}}, {"type": "traffic-mirror-session", "fill": {"TrafficMirrorSessionId": "TrafficMirrorSessionId"}}, {"type": "traffic-mirror-target", "fill": {"TrafficMirrorTargetId": "TrafficMirrorTargetId"}}]}, + "ec2:ModifyTransitGateway": {"action": "ec2:ModifyTransitGateway", "types": ["transit-gateway", "transit-gateway-route-table"], "resources": [{"type": "transit-gateway", "fill": {"TransitGatewayId": "TransitGatewayId"}}]}, + "ec2:ModifyTransitGatewayAttachmentNatConfiguration": {"action": "ec2:ModifyTransitGatewayAttachmentNatConfiguration", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:ModifyTransitGatewayMeteringPolicy": {"action": "ec2:ModifyTransitGatewayMeteringPolicy", "types": ["transit-gateway-attachment", "transit-gateway-metering-policy"], "resources": [{"type": "transit-gateway-metering-policy", "fill": {"TransitGatewayMeteringPolicyId": "TransitGatewayMeteringPolicyId"}}]}, + "ec2:ModifyTransitGatewayPolicyTableEntry": {"action": "ec2:ModifyTransitGatewayPolicyTableEntry", "types": ["transit-gateway-policy-table", "transit-gateway-route-table"], "resources": [{"type": "transit-gateway-policy-table", "fill": {"TransitGatewayPolicyTableId": "TransitGatewayPolicyTableId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TargetRouteTableId"}}]}, + "ec2:ModifyTransitGatewayPrefixListReference": {"action": "ec2:ModifyTransitGatewayPrefixListReference", "types": ["prefix-list", "transit-gateway-attachment", "transit-gateway-route-table"], "resources": [{"type": "prefix-list", "fill": {"PrefixListId": "PrefixListId"}}, {"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, + "ec2:ModifyTransitGatewayVpcAttachment": {"action": "ec2:ModifyTransitGatewayVpcAttachment", "types": ["subnet", "transit-gateway-attachment"], "resources": [{"type": "subnet", "fill": {"SubnetId": "AddSubnetIds[]"}}, {"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}], "ec2Query": {"AddSubnetIds[]": "AddSubnetIds"}}, + "ec2:ModifyVerifiedAccessEndpoint": {"action": "ec2:ModifyVerifiedAccessEndpoint", "types": ["subnet", "verified-access-endpoint", "verified-access-group"], "resources": [{"type": "verified-access-endpoint", "fill": {"VerifiedAccessEndpointId": "VerifiedAccessEndpointId"}}, {"type": "verified-access-group", "fill": {"VerifiedAccessGroupId": "VerifiedAccessGroupId"}}]}, + "ec2:ModifyVerifiedAccessEndpointPolicy": {"action": "ec2:ModifyVerifiedAccessEndpointPolicy", "types": ["verified-access-endpoint"], "resources": [{"types": ["verified-access-endpoint"], "arn": "SseSpecification.KmsKeyArn"}, {"type": "verified-access-endpoint", "fill": {"VerifiedAccessEndpointId": "VerifiedAccessEndpointId"}}]}, + "ec2:ModifyVerifiedAccessGroup": {"action": "ec2:ModifyVerifiedAccessGroup", "types": ["verified-access-group", "verified-access-instance"], "resources": [{"type": "verified-access-group", "fill": {"VerifiedAccessGroupId": "VerifiedAccessGroupId"}}, {"type": "verified-access-instance", "fill": {"VerifiedAccessInstanceId": "VerifiedAccessInstanceId"}}]}, + "ec2:ModifyVerifiedAccessGroupPolicy": {"action": "ec2:ModifyVerifiedAccessGroupPolicy", "types": ["verified-access-group"], "resources": [{"types": ["verified-access-group"], "arn": "SseSpecification.KmsKeyArn"}, {"type": "verified-access-group", "fill": {"VerifiedAccessGroupId": "VerifiedAccessGroupId"}}]}, + "ec2:ModifyVerifiedAccessInstance": {"action": "ec2:ModifyVerifiedAccessInstance", "types": ["verified-access-instance"], "resources": [{"type": "verified-access-instance", "fill": {"VerifiedAccessInstanceId": "VerifiedAccessInstanceId"}}]}, + "ec2:ModifyVerifiedAccessInstanceLoggingConfiguration": {"action": "ec2:ModifyVerifiedAccessInstanceLoggingConfiguration", "types": ["verified-access-instance"], "resources": [{"type": "verified-access-instance", "fill": {"VerifiedAccessInstanceId": "VerifiedAccessInstanceId"}}]}, + "ec2:ModifyVerifiedAccessTrustProvider": {"action": "ec2:ModifyVerifiedAccessTrustProvider", "types": ["verified-access-trust-provider"], "resources": [{"types": ["verified-access-trust-provider"], "arn": "SseSpecification.KmsKeyArn"}, {"type": "verified-access-trust-provider", "fill": {"VerifiedAccessTrustProviderId": "VerifiedAccessTrustProviderId"}}]}, + "ec2:ModifyVolume": {"action": "ec2:ModifyVolume", "types": ["volume"], "resources": [{"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, + "ec2:ModifyVolumeAttribute": {"action": "ec2:ModifyVolumeAttribute", "types": ["volume"], "resources": [{"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, + "ec2:ModifyVpcAttribute": {"action": "ec2:ModifyVpcAttribute", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:ModifyVpcBlockPublicAccessExclusion": {"action": "ec2:ModifyVpcBlockPublicAccessExclusion", "types": ["vpc-block-public-access-exclusion"], "resources": [{"type": "vpc-block-public-access-exclusion", "fill": {"VpcBlockPublicAccessExclusionId": "ExclusionId"}}]}, "ec2:ModifyVpcBlockPublicAccessOptions": {"action": "ec2:ModifyVpcBlockPublicAccessOptions", "types": [], "resources": []}, - "ec2:ModifyVpcEncryptionControl": {"action": "ec2:ModifyVpcEncryptionControl", "types": ["vpc-encryption-control"], "resources": []}, - "ec2:ModifyVpcEndpoint": {"action": "ec2:ModifyVpcEndpoint", "types": ["route-table", "security-group", "subnet", "vpc-endpoint"], "resources": []}, - "ec2:ModifyVpcEndpointConnectionNotification": {"action": "ec2:ModifyVpcEndpointConnectionNotification", "types": ["vpc-endpoint", "vpc-endpoint-service"], "resources": []}, - "ec2:ModifyVpcEndpointPayerResponsibility": {"action": "ec2:ModifyVpcEndpointPayerResponsibility", "types": ["vpc-endpoint-service"], "resources": []}, - "ec2:ModifyVpcEndpointServiceConfiguration": {"action": "ec2:ModifyVpcEndpointServiceConfiguration", "types": ["vpc-endpoint-service"], "resources": []}, - "ec2:ModifyVpcEndpointServicePayerResponsibility": {"action": "ec2:ModifyVpcEndpointServicePayerResponsibility", "types": ["vpc-endpoint-service"], "resources": []}, - "ec2:ModifyVpcEndpointServicePermissions": {"action": "ec2:ModifyVpcEndpointServicePermissions", "types": ["vpc-endpoint-service"], "resources": []}, - "ec2:ModifyVpcPeeringConnectionOptions": {"action": "ec2:ModifyVpcPeeringConnectionOptions", "types": ["vpc-peering-connection"], "resources": []}, - "ec2:ModifyVpcTenancy": {"action": "ec2:ModifyVpcTenancy", "types": ["vpc"], "resources": []}, - "ec2:ModifyVpnConnection": {"action": "ec2:ModifyVpnConnection", "types": ["vpn-connection"], "resources": []}, - "ec2:ModifyVpnConnectionOptions": {"action": "ec2:ModifyVpnConnectionOptions", "types": ["vpn-connection"], "resources": []}, - "ec2:ModifyVpnTunnelCertificate": {"action": "ec2:ModifyVpnTunnelCertificate", "types": ["vpn-connection"], "resources": []}, - "ec2:ModifyVpnTunnelOptions": {"action": "ec2:ModifyVpnTunnelOptions", "types": ["vpn-connection"], "resources": []}, + "ec2:ModifyVpcEncryptionControl": {"action": "ec2:ModifyVpcEncryptionControl", "types": ["vpc-encryption-control"], "resources": [{"type": "vpc-encryption-control", "fill": {"VpcEncryptionControlId": "VpcEncryptionControlId"}}]}, + "ec2:ModifyVpcEndpoint": {"action": "ec2:ModifyVpcEndpoint", "types": ["route-table", "security-group", "subnet", "vpc-endpoint"], "resources": [{"type": "route-table", "fill": {"RouteTableId": "AddRouteTableIds[]"}}, {"type": "security-group", "fill": {"SecurityGroupId": "AddSecurityGroupIds[]"}}, {"type": "subnet", "fill": {"SubnetId": "AddSubnetIds[]"}}, {"type": "vpc-endpoint", "fill": {"VpcEndpointId": "VpcEndpointId"}}], "ec2Query": {"AddRouteTableIds[]": "AddRouteTableId", "AddSubnetIds[]": "AddSubnetId", "AddSecurityGroupIds[]": "AddSecurityGroupId"}}, + "ec2:ModifyVpcEndpointConnectionNotification": {"action": "ec2:ModifyVpcEndpointConnectionNotification", "types": ["vpc-endpoint", "vpc-endpoint-service"], "resources": [{"types": ["vpc-endpoint", "vpc-endpoint-service"], "arn": "ConnectionNotificationArn"}, {"types": ["vpc-endpoint"], "through": "ConnectionNotificationId"}]}, + "ec2:ModifyVpcEndpointPayerResponsibility": {"action": "ec2:ModifyVpcEndpointPayerResponsibility", "types": ["vpc-endpoint-service"], "resources": [{"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceId"}}]}, + "ec2:ModifyVpcEndpointServiceConfiguration": {"action": "ec2:ModifyVpcEndpointServiceConfiguration", "types": ["vpc-endpoint-service"], "resources": [{"types": ["vpc-endpoint-service"], "arn": "AddGatewayLoadBalancerArns[]"}, {"types": ["vpc-endpoint-service"], "arn": "AddNetworkLoadBalancerArns[]"}, {"types": ["vpc-endpoint-service"], "arn": "RemoveGatewayLoadBalancerArns[]"}, {"types": ["vpc-endpoint-service"], "arn": "RemoveNetworkLoadBalancerArns[]"}, {"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceId"}}], "ec2Query": {"AddNetworkLoadBalancerArns[]": "AddNetworkLoadBalancerArn", "RemoveNetworkLoadBalancerArns[]": "RemoveNetworkLoadBalancerArn", "AddGatewayLoadBalancerArns[]": "AddGatewayLoadBalancerArn", "RemoveGatewayLoadBalancerArns[]": "RemoveGatewayLoadBalancerArn"}}, + "ec2:ModifyVpcEndpointServicePayerResponsibility": {"action": "ec2:ModifyVpcEndpointServicePayerResponsibility", "types": ["vpc-endpoint-service"], "resources": [{"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceId"}}]}, + "ec2:ModifyVpcEndpointServicePermissions": {"action": "ec2:ModifyVpcEndpointServicePermissions", "types": ["vpc-endpoint-service"], "resources": [{"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceId"}}]}, + "ec2:ModifyVpcPeeringConnectionOptions": {"action": "ec2:ModifyVpcPeeringConnectionOptions", "types": ["vpc-peering-connection"], "resources": [{"type": "vpc-peering-connection", "fill": {"VpcPeeringConnectionId": "VpcPeeringConnectionId"}}]}, + "ec2:ModifyVpcTenancy": {"action": "ec2:ModifyVpcTenancy", "types": ["vpc"], "resources": [{"type": "vpc", "fill": {"VpcId": "VpcId"}}]}, + "ec2:ModifyVpnConnection": {"action": "ec2:ModifyVpnConnection", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, + "ec2:ModifyVpnConnectionOptions": {"action": "ec2:ModifyVpnConnectionOptions", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, + "ec2:ModifyVpnTunnelCertificate": {"action": "ec2:ModifyVpnTunnelCertificate", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, + "ec2:ModifyVpnTunnelOptions": {"action": "ec2:ModifyVpnTunnelOptions", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, "ec2:MonitorInstances": {"action": "ec2:MonitorInstances", "types": ["instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, "ec2:MoveAddressToVpc": {"action": "ec2:MoveAddressToVpc", "types": [], "resources": []}, - "ec2:MoveByoipCidrToIpam": {"action": "ec2:MoveByoipCidrToIpam", "types": ["ipam-pool"], "resources": []}, - "ec2:MoveCapacityReservationInstances": {"action": "ec2:MoveCapacityReservationInstances", "types": ["capacity-reservation"], "resources": []}, + "ec2:MoveByoipCidrToIpam": {"action": "ec2:MoveByoipCidrToIpam", "types": ["ipam-pool"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}]}, + "ec2:MoveCapacityReservationInstances": {"action": "ec2:MoveCapacityReservationInstances", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "SourceCapacityReservationId"}}, {"type": "capacity-reservation", "fill": {"CapacityReservationId": "DestinationCapacityReservationId"}}]}, "ec2:ProvisionByoipCidr": {"action": "ec2:ProvisionByoipCidr", "types": [], "resources": []}, - "ec2:ProvisionIpamByoasn": {"action": "ec2:ProvisionIpamByoasn", "types": ["ipam"], "resources": []}, - "ec2:ProvisionIpamPoolCidr": {"action": "ec2:ProvisionIpamPoolCidr", "types": ["ipam-external-resource-verification-token", "ipam-pool"], "resources": []}, - "ec2:ProvisionPublicIpv4PoolCidr": {"action": "ec2:ProvisionPublicIpv4PoolCidr", "types": ["ipam-pool", "ipv4pool-ec2"], "resources": []}, + "ec2:ProvisionIpamByoasn": {"action": "ec2:ProvisionIpamByoasn", "types": ["ipam"], "resources": [{"type": "ipam", "fill": {"IpamId": "IpamId"}}]}, + "ec2:ProvisionIpamPoolCidr": {"action": "ec2:ProvisionIpamPoolCidr", "types": ["ipam-external-resource-verification-token", "ipam-pool"], "resources": [{"type": "ipam-external-resource-verification-token", "fill": {"IpamExternalResourceVerificationTokenId": "IpamExternalResourceVerificationTokenId"}}, {"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}]}, + "ec2:ProvisionPublicIpv4PoolCidr": {"action": "ec2:ProvisionPublicIpv4PoolCidr", "types": ["ipam-pool", "ipv4pool-ec2"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}, {"type": "ipv4pool-ec2", "fill": {"Ipv4PoolEc2Id": "PoolId"}}]}, "ec2:PurchaseCapacityBlock": {"action": "ec2:PurchaseCapacityBlock", "types": ["capacity-reservation"], "resources": []}, - "ec2:PurchaseCapacityBlockExtension": {"action": "ec2:PurchaseCapacityBlockExtension", "types": ["capacity-reservation"], "resources": []}, + "ec2:PurchaseCapacityBlockExtension": {"action": "ec2:PurchaseCapacityBlockExtension", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}]}, "ec2:PurchaseHostReservation": {"action": "ec2:PurchaseHostReservation", "types": ["dedicated-host"], "resources": []}, "ec2:PurchaseReservedInstancesOffering": {"action": "ec2:PurchaseReservedInstancesOffering", "types": [], "resources": []}, "ec2:PurchaseScheduledInstances": {"action": "ec2:PurchaseScheduledInstances", "types": [], "resources": []}, "ec2:RebootInstances": {"action": "ec2:RebootInstances", "types": ["instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, - "ec2:RegisterImage": {"action": "ec2:RegisterImage", "types": ["image", "snapshot"], "resources": []}, + "ec2:RegisterImage": {"action": "ec2:RegisterImage", "types": ["image", "snapshot"], "resources": [{"type": "image", "fill": {}}]}, "ec2:RegisterInstanceEventNotificationAttributes": {"action": "ec2:RegisterInstanceEventNotificationAttributes", "types": [], "resources": []}, - "ec2:RegisterTransitGatewayMulticastGroupMembers": {"action": "ec2:RegisterTransitGatewayMulticastGroupMembers", "types": ["network-interface", "transit-gateway-multicast-domain"], "resources": []}, - "ec2:RegisterTransitGatewayMulticastGroupSources": {"action": "ec2:RegisterTransitGatewayMulticastGroupSources", "types": ["network-interface", "transit-gateway-multicast-domain"], "resources": []}, - "ec2:RejectCapacityReservationBillingOwnership": {"action": "ec2:RejectCapacityReservationBillingOwnership", "types": ["capacity-reservation"], "resources": []}, - "ec2:RejectTransitGatewayClientVpnAttachment": {"action": "ec2:RejectTransitGatewayClientVpnAttachment", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:RejectTransitGatewayMulticastDomainAssociations": {"action": "ec2:RejectTransitGatewayMulticastDomainAssociations", "types": ["transit-gateway-attachment", "transit-gateway-multicast-domain"], "resources": []}, - "ec2:RejectTransitGatewayPeeringAttachment": {"action": "ec2:RejectTransitGatewayPeeringAttachment", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:RejectTransitGatewayVpcAttachment": {"action": "ec2:RejectTransitGatewayVpcAttachment", "types": ["transit-gateway-attachment"], "resources": []}, - "ec2:RejectVpcEndpointConnections": {"action": "ec2:RejectVpcEndpointConnections", "types": ["vpc-endpoint-service"], "resources": []}, - "ec2:RejectVpcPeeringConnection": {"action": "ec2:RejectVpcPeeringConnection", "types": ["vpc-peering-connection"], "resources": []}, - "ec2:ReleaseAddress": {"action": "ec2:ReleaseAddress", "types": ["elastic-ip"], "resources": []}, - "ec2:ReleaseHosts": {"action": "ec2:ReleaseHosts", "types": ["dedicated-host"], "resources": []}, - "ec2:ReleaseIpamPoolAllocation": {"action": "ec2:ReleaseIpamPoolAllocation", "types": ["ipam-pool"], "resources": []}, - "ec2:ReplaceIamInstanceProfileAssociation": {"action": "ec2:ReplaceIamInstanceProfileAssociation", "types": ["instance"], "resources": []}, + "ec2:RegisterTransitGatewayMulticastGroupMembers": {"action": "ec2:RegisterTransitGatewayMulticastGroupMembers", "types": ["network-interface", "transit-gateway-multicast-domain"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceIds[]"}}, {"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}], "ec2Query": {"NetworkInterfaceIds[]": "NetworkInterfaceIds"}}, + "ec2:RegisterTransitGatewayMulticastGroupSources": {"action": "ec2:RegisterTransitGatewayMulticastGroupSources", "types": ["network-interface", "transit-gateway-multicast-domain"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceIds[]"}}, {"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}], "ec2Query": {"NetworkInterfaceIds[]": "NetworkInterfaceIds"}}, + "ec2:RejectCapacityReservationBillingOwnership": {"action": "ec2:RejectCapacityReservationBillingOwnership", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}]}, + "ec2:RejectTransitGatewayClientVpnAttachment": {"action": "ec2:RejectTransitGatewayClientVpnAttachment", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:RejectTransitGatewayMulticastDomainAssociations": {"action": "ec2:RejectTransitGatewayMulticastDomainAssociations", "types": ["transit-gateway-attachment", "transit-gateway-multicast-domain"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}]}, + "ec2:RejectTransitGatewayPeeringAttachment": {"action": "ec2:RejectTransitGatewayPeeringAttachment", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:RejectTransitGatewayVpcAttachment": {"action": "ec2:RejectTransitGatewayVpcAttachment", "types": ["transit-gateway-attachment"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}]}, + "ec2:RejectVpcEndpointConnections": {"action": "ec2:RejectVpcEndpointConnections", "types": ["vpc-endpoint-service"], "resources": [{"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceId"}}]}, + "ec2:RejectVpcPeeringConnection": {"action": "ec2:RejectVpcPeeringConnection", "types": ["vpc-peering-connection"], "resources": [{"type": "vpc-peering-connection", "fill": {"VpcPeeringConnectionId": "VpcPeeringConnectionId"}}]}, + "ec2:ReleaseAddress": {"action": "ec2:ReleaseAddress", "types": ["elastic-ip"], "resources": [{"type": "elastic-ip", "fill": {"AllocationId": "AllocationId"}}]}, + "ec2:ReleaseHosts": {"action": "ec2:ReleaseHosts", "types": ["dedicated-host"], "resources": [{"type": "dedicated-host", "fill": {"DedicatedHostId": "HostIds[]"}}], "ec2Query": {"HostIds[]": "HostId"}}, + "ec2:ReleaseIpamPoolAllocation": {"action": "ec2:ReleaseIpamPoolAllocation", "types": ["ipam-pool"], "resources": [{"type": "ipam-pool", "fill": {"IpamPoolId": "IpamPoolId"}}]}, + "ec2:ReplaceIamInstanceProfileAssociation": {"action": "ec2:ReplaceIamInstanceProfileAssociation", "types": ["instance"], "resources": [{"types": ["instance"], "arn": "IamInstanceProfile.Arn"}]}, "ec2:ReplaceImageCriteriaInAllowedImagesSettings": {"action": "ec2:ReplaceImageCriteriaInAllowedImagesSettings", "types": [], "resources": []}, - "ec2:ReplaceImageInstanceTypeSpecification": {"action": "ec2:ReplaceImageInstanceTypeSpecification", "types": ["image"], "resources": []}, - "ec2:ReplaceNetworkAclAssociation": {"action": "ec2:ReplaceNetworkAclAssociation", "types": ["network-acl", "subnet"], "resources": []}, - "ec2:ReplaceNetworkAclEntry": {"action": "ec2:ReplaceNetworkAclEntry", "types": ["network-acl"], "resources": []}, - "ec2:ReplaceRoute": {"action": "ec2:ReplaceRoute", "types": ["route-table"], "resources": []}, - "ec2:ReplaceRouteTableAssociation": {"action": "ec2:ReplaceRouteTableAssociation", "types": ["internet-gateway", "ipv4pool-ec2", "ipv6pool-ec2", "route-table", "subnet", "vpn-gateway"], "resources": []}, - "ec2:ReplaceTransitGatewayRoute": {"action": "ec2:ReplaceTransitGatewayRoute", "types": ["transit-gateway-attachment", "transit-gateway-route-table"], "resources": []}, - "ec2:ReplaceVpnTunnel": {"action": "ec2:ReplaceVpnTunnel", "types": ["vpn-connection"], "resources": []}, - "ec2:ReportInstanceStatus": {"action": "ec2:ReportInstanceStatus", "types": ["instance"], "resources": []}, + "ec2:ReplaceImageInstanceTypeSpecification": {"action": "ec2:ReplaceImageInstanceTypeSpecification", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, + "ec2:ReplaceNetworkAclAssociation": {"action": "ec2:ReplaceNetworkAclAssociation", "types": ["network-acl", "subnet"], "resources": [{"type": "network-acl", "fill": {"NaclId": "NetworkAclId"}}]}, + "ec2:ReplaceNetworkAclEntry": {"action": "ec2:ReplaceNetworkAclEntry", "types": ["network-acl"], "resources": [{"type": "network-acl", "fill": {"NaclId": "NetworkAclId"}}]}, + "ec2:ReplaceRoute": {"action": "ec2:ReplaceRoute", "types": ["route-table"], "resources": [{"types": ["route-table"], "arn": "CoreNetworkArn"}, {"types": ["route-table"], "arn": "OdbNetworkArn"}, {"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}]}, + "ec2:ReplaceRouteTableAssociation": {"action": "ec2:ReplaceRouteTableAssociation", "types": ["internet-gateway", "ipv4pool-ec2", "ipv6pool-ec2", "route-table", "subnet", "vpn-gateway"], "resources": [{"type": "route-table", "fill": {"RouteTableId": "RouteTableId"}}]}, + "ec2:ReplaceTransitGatewayRoute": {"action": "ec2:ReplaceTransitGatewayRoute", "types": ["transit-gateway-attachment", "transit-gateway-route-table"], "resources": [{"type": "transit-gateway-attachment", "fill": {"TransitGatewayAttachmentId": "TransitGatewayAttachmentId"}}, {"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, + "ec2:ReplaceVpnTunnel": {"action": "ec2:ReplaceVpnTunnel", "types": ["vpn-connection"], "resources": [{"type": "vpn-connection", "fill": {"VpnConnectionId": "VpnConnectionId"}}]}, + "ec2:ReportInstanceStatus": {"action": "ec2:ReportInstanceStatus", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "Instances[]"}}], "ec2Query": {"Instances[]": "InstanceId"}}, "ec2:RequestSpotFleet": {"action": "ec2:RequestSpotFleet", "types": ["image", "key-pair", "launch-template", "placement-group", "security-group", "snapshot", "spot-fleet-request", "subnet"], "resources": []}, - "ec2:RequestSpotInstances": {"action": "ec2:RequestSpotInstances", "types": ["image", "key-pair", "network-interface", "placement-group", "security-group", "snapshot", "spot-instances-request", "subnet"], "resources": []}, - "ec2:ResetAddressAttribute": {"action": "ec2:ResetAddressAttribute", "types": ["elastic-ip"], "resources": []}, + "ec2:RequestSpotInstances": {"action": "ec2:RequestSpotInstances", "types": ["image", "key-pair", "network-interface", "placement-group", "security-group", "snapshot", "spot-instances-request", "subnet"], "resources": [{"type": "image", "fill": {"ImageId": "LaunchSpecification.ImageId"}}, {"type": "subnet", "fill": {"SubnetId": "LaunchSpecification.SubnetId"}}]}, + "ec2:ResetAddressAttribute": {"action": "ec2:ResetAddressAttribute", "types": ["elastic-ip"], "resources": [{"type": "elastic-ip", "fill": {"AllocationId": "AllocationId"}}]}, "ec2:ResetEbsDefaultKmsKeyId": {"action": "ec2:ResetEbsDefaultKmsKeyId", "types": [], "resources": []}, - "ec2:ResetFpgaImageAttribute": {"action": "ec2:ResetFpgaImageAttribute", "types": ["fpga-image"], "resources": []}, - "ec2:ResetImageAttribute": {"action": "ec2:ResetImageAttribute", "types": ["image"], "resources": []}, - "ec2:ResetInstanceAttribute": {"action": "ec2:ResetInstanceAttribute", "types": ["instance"], "resources": []}, - "ec2:ResetNetworkInterfaceAttribute": {"action": "ec2:ResetNetworkInterfaceAttribute", "types": ["network-interface"], "resources": []}, - "ec2:ResetSnapshotAttribute": {"action": "ec2:ResetSnapshotAttribute", "types": ["snapshot"], "resources": []}, + "ec2:ResetFpgaImageAttribute": {"action": "ec2:ResetFpgaImageAttribute", "types": ["fpga-image"], "resources": [{"type": "fpga-image", "fill": {"FpgaImageId": "FpgaImageId"}}]}, + "ec2:ResetImageAttribute": {"action": "ec2:ResetImageAttribute", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, + "ec2:ResetInstanceAttribute": {"action": "ec2:ResetInstanceAttribute", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:ResetNetworkInterfaceAttribute": {"action": "ec2:ResetNetworkInterfaceAttribute", "types": ["network-interface"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, + "ec2:ResetSnapshotAttribute": {"action": "ec2:ResetSnapshotAttribute", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}]}, "ec2:RestoreAddressToClassic": {"action": "ec2:RestoreAddressToClassic", "types": [], "resources": []}, - "ec2:RestoreImageFromRecycleBin": {"action": "ec2:RestoreImageFromRecycleBin", "types": ["image"], "resources": []}, - "ec2:RestoreManagedPrefixListVersion": {"action": "ec2:RestoreManagedPrefixListVersion", "types": ["prefix-list"], "resources": []}, - "ec2:RestoreSnapshotFromRecycleBin": {"action": "ec2:RestoreSnapshotFromRecycleBin", "types": ["snapshot"], "resources": []}, - "ec2:RestoreSnapshotTier": {"action": "ec2:RestoreSnapshotTier", "types": ["snapshot"], "resources": []}, - "ec2:RestoreVolumeFromRecycleBin": {"action": "ec2:RestoreVolumeFromRecycleBin", "types": ["volume"], "resources": []}, - "ec2:RevokeClientVpnIngress": {"action": "ec2:RevokeClientVpnIngress", "types": ["client-vpn-endpoint"], "resources": []}, - "ec2:RevokeSecurityGroupEgress": {"action": "ec2:RevokeSecurityGroupEgress", "types": ["security-group"], "resources": []}, - "ec2:RevokeSecurityGroupIngress": {"action": "ec2:RevokeSecurityGroupIngress", "types": ["security-group"], "resources": []}, - "ec2:RunInstances": {"action": "ec2:RunInstances", "types": ["capacity-reservation", "elastic-gpu", "elastic-inference", "group", "image", "instance", "key-pair", "launch-template", "license-configuration", "network-interface", "placement-group", "secondary-interface", "secondary-subnet", "security-group", "snapshot", "spot-instances-request", "subnet", "volume"], "resources": []}, - "ec2:RunScheduledInstances": {"action": "ec2:RunScheduledInstances", "types": [], "resources": []}, - "ec2:SearchLocalGatewayRoutes": {"action": "ec2:SearchLocalGatewayRoutes", "types": ["local-gateway-route-table"], "resources": []}, - "ec2:SearchTransitGatewayMulticastGroups": {"action": "ec2:SearchTransitGatewayMulticastGroups", "types": ["transit-gateway-multicast-domain"], "resources": []}, - "ec2:SearchTransitGatewayRoutes": {"action": "ec2:SearchTransitGatewayRoutes", "types": ["transit-gateway-route-table"], "resources": []}, - "ec2:SendDiagnosticInterrupt": {"action": "ec2:SendDiagnosticInterrupt", "types": ["instance"], "resources": []}, - "ec2:StartDeclarativePoliciesReport": {"action": "ec2:StartDeclarativePoliciesReport", "types": [], "resources": []}, + "ec2:RestoreImageFromRecycleBin": {"action": "ec2:RestoreImageFromRecycleBin", "types": ["image"], "resources": [{"type": "image", "fill": {"ImageId": "ImageId"}}]}, + "ec2:RestoreManagedPrefixListVersion": {"action": "ec2:RestoreManagedPrefixListVersion", "types": ["prefix-list"], "resources": [{"type": "prefix-list", "fill": {"PrefixListId": "PrefixListId"}}]}, + "ec2:RestoreSnapshotFromRecycleBin": {"action": "ec2:RestoreSnapshotFromRecycleBin", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}]}, + "ec2:RestoreSnapshotTier": {"action": "ec2:RestoreSnapshotTier", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}]}, + "ec2:RestoreVolumeFromRecycleBin": {"action": "ec2:RestoreVolumeFromRecycleBin", "types": ["volume"], "resources": [{"type": "volume", "fill": {"VolumeId": "VolumeId"}}]}, + "ec2:RevokeClientVpnIngress": {"action": "ec2:RevokeClientVpnIngress", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, + "ec2:RevokeSecurityGroupEgress": {"action": "ec2:RevokeSecurityGroupEgress", "types": ["security-group"], "resources": [{"type": "security-group", "fill": {}, "find": ["SourceSecurityGroupName"]}, {"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}]}, + "ec2:RevokeSecurityGroupIngress": {"action": "ec2:RevokeSecurityGroupIngress", "types": ["security-group"], "resources": [{"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}]}, + "ec2:RunInstances": {"action": "ec2:RunInstances", "types": ["capacity-reservation", "elastic-gpu", "elastic-inference", "group", "image", "instance", "key-pair", "launch-template", "license-configuration", "network-interface", "placement-group", "secondary-interface", "secondary-subnet", "security-group", "snapshot", "spot-instances-request", "subnet", "volume"], "resources": [{"types": ["capacity-reservation", "elastic-gpu", "elastic-inference", "group", "image", "instance", "key-pair", "launch-template", "license-configuration", "network-interface", "placement-group", "secondary-interface", "secondary-subnet", "security-group", "snapshot", "spot-instances-request", "subnet", "volume"], "arn": "IamInstanceProfile.Arn"}, {"types": ["capacity-reservation", "elastic-gpu", "elastic-inference", "group", "image", "instance", "key-pair", "launch-template", "license-configuration", "network-interface", "placement-group", "secondary-interface", "secondary-subnet", "security-group", "snapshot", "spot-instances-request", "subnet", "volume"], "arn": "LicenseSpecifications[].LicenseConfigurationArn"}, {"types": ["capacity-reservation", "elastic-gpu", "elastic-inference", "group", "image", "instance", "key-pair", "launch-template", "license-configuration", "network-interface", "placement-group", "secondary-interface", "secondary-subnet", "security-group", "snapshot", "spot-instances-request", "subnet", "volume"], "arn": "Placement.HostResourceGroupArn"}, {"type": "image", "fill": {"ImageId": "ImageId"}}, {"type": "instance", "fill": {}, "made": true}, {"type": "key-pair", "fill": {"KeyPairName": "KeyName"}}, {"type": "group", "fill": {"GroupName": "Placement.GroupName"}}, {"type": "launch-template", "fill": {"LaunchTemplateId": "LaunchTemplate.LaunchTemplateId"}}, {"type": "placement-group", "fill": {"PlacementGroupName": "Placement.GroupName"}}, {"type": "security-group", "fill": {"SecurityGroupId": "Placement.GroupId"}}, {"type": "subnet", "fill": {"SubnetId": "SubnetId"}}, {"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaces[].NetworkInterfaceId"}}, {"type": "secondary-subnet", "fill": {"SecondarySubnetId": "SecondaryInterfaces[].SecondarySubnetId"}}]}, + "ec2:RunScheduledInstances": {"action": "ec2:RunScheduledInstances", "types": [], "resources": [], "makes": [{"type": "instance", "fill": {"InstanceId": "ScheduledInstanceId"}}]}, + "ec2:SearchLocalGatewayRoutes": {"action": "ec2:SearchLocalGatewayRoutes", "types": ["local-gateway-route-table"], "resources": [{"type": "local-gateway-route-table", "fill": {"LocalGatewayRoutetableId": "LocalGatewayRouteTableId"}}]}, + "ec2:SearchTransitGatewayMulticastGroups": {"action": "ec2:SearchTransitGatewayMulticastGroups", "types": ["transit-gateway-multicast-domain"], "resources": [{"type": "transit-gateway-multicast-domain", "fill": {"TransitGatewayMulticastDomainId": "TransitGatewayMulticastDomainId"}}]}, + "ec2:SearchTransitGatewayRoutes": {"action": "ec2:SearchTransitGatewayRoutes", "types": ["transit-gateway-route-table"], "resources": [{"type": "transit-gateway-route-table", "fill": {"TransitGatewayRouteTableId": "TransitGatewayRouteTableId"}}]}, + "ec2:SendDiagnosticInterrupt": {"action": "ec2:SendDiagnosticInterrupt", "types": ["instance"], "resources": [{"type": "instance", "fill": {"InstanceId": "InstanceId"}}]}, + "ec2:StartDeclarativePoliciesReport": {"action": "ec2:StartDeclarativePoliciesReport", "types": [], "resources": [], "makes": [{"type": "declarative-policies-report", "fill": {}}]}, "ec2:StartInstances": {"action": "ec2:StartInstances", "types": ["group", "instance", "license-configuration"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, - "ec2:StartNetworkInsightsAccessScopeAnalysis": {"action": "ec2:StartNetworkInsightsAccessScopeAnalysis", "types": ["network-insights-access-scope", "network-insights-access-scope-analysis"], "resources": []}, - "ec2:StartNetworkInsightsAnalysis": {"action": "ec2:StartNetworkInsightsAnalysis", "types": ["network-insights-analysis", "network-insights-path"], "resources": []}, - "ec2:StartVpcEndpointServicePrivateDnsVerification": {"action": "ec2:StartVpcEndpointServicePrivateDnsVerification", "types": ["vpc-endpoint-service"], "resources": []}, + "ec2:StartNetworkInsightsAccessScopeAnalysis": {"action": "ec2:StartNetworkInsightsAccessScopeAnalysis", "types": ["network-insights-access-scope", "network-insights-access-scope-analysis"], "resources": [{"type": "network-insights-access-scope", "fill": {"NetworkInsightsAccessScopeId": "NetworkInsightsAccessScopeId"}}, {"type": "network-insights-access-scope-analysis", "fill": {}, "made": true}]}, + "ec2:StartNetworkInsightsAnalysis": {"action": "ec2:StartNetworkInsightsAnalysis", "types": ["network-insights-analysis", "network-insights-path"], "resources": [{"types": ["network-insights-analysis", "network-insights-path"], "arn": "FilterInArns[]"}, {"types": ["network-insights-analysis", "network-insights-path"], "arn": "FilterOutArns[]"}, {"type": "network-insights-analysis", "fill": {}, "made": true}, {"type": "network-insights-path", "fill": {"NetworkInsightsPathId": "NetworkInsightsPathId"}}], "ec2Query": {"FilterInArns[]": "FilterInArn", "FilterOutArns[]": "FilterOutArn"}}, + "ec2:StartVpcEndpointServicePrivateDnsVerification": {"action": "ec2:StartVpcEndpointServicePrivateDnsVerification", "types": ["vpc-endpoint-service"], "resources": [{"type": "vpc-endpoint-service", "fill": {"VpcEndpointServiceId": "ServiceId"}}]}, "ec2:StopInstances": {"action": "ec2:StopInstances", "types": ["instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, - "ec2:TerminateClientVpnConnections": {"action": "ec2:TerminateClientVpnConnections", "types": ["client-vpn-endpoint"], "resources": []}, + "ec2:TerminateClientVpnConnections": {"action": "ec2:TerminateClientVpnConnections", "types": ["client-vpn-endpoint"], "resources": [{"type": "client-vpn-endpoint", "fill": {"ClientVpnEndpointId": "ClientVpnEndpointId"}}]}, "ec2:TerminateInstances": {"action": "ec2:TerminateInstances", "types": ["instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, - "ec2:UnassignIpv6Addresses": {"action": "ec2:UnassignIpv6Addresses", "types": ["network-interface"], "resources": []}, - "ec2:UnassignPrivateIpAddresses": {"action": "ec2:UnassignPrivateIpAddresses", "types": ["network-interface"], "resources": []}, - "ec2:UnassignPrivateNatGatewayAddress": {"action": "ec2:UnassignPrivateNatGatewayAddress", "types": ["natgateway"], "resources": []}, - "ec2:UnlockSnapshot": {"action": "ec2:UnlockSnapshot", "types": ["snapshot"], "resources": []}, + "ec2:UnassignIpv6Addresses": {"action": "ec2:UnassignIpv6Addresses", "types": ["network-interface"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, + "ec2:UnassignPrivateIpAddresses": {"action": "ec2:UnassignPrivateIpAddresses", "types": ["network-interface"], "resources": [{"type": "network-interface", "fill": {"NetworkInterfaceId": "NetworkInterfaceId"}}]}, + "ec2:UnassignPrivateNatGatewayAddress": {"action": "ec2:UnassignPrivateNatGatewayAddress", "types": ["natgateway"], "resources": [{"type": "natgateway", "fill": {"NatGatewayId": "NatGatewayId"}}]}, + "ec2:UnlockSnapshot": {"action": "ec2:UnlockSnapshot", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotId": "SnapshotId"}}]}, "ec2:UnmonitorInstances": {"action": "ec2:UnmonitorInstances", "types": ["instance"], "resources": [], "targets": {"member": "InstanceIds[]", "query": "InstanceId", "prefixes": {"instance": "i-"}}}, "ec2:UpdateCapacityManagerMonitoredTagKeys": {"action": "ec2:UpdateCapacityManagerMonitoredTagKeys", "types": [], "resources": []}, "ec2:UpdateCapacityManagerOrganizationsAccess": {"action": "ec2:UpdateCapacityManagerOrganizationsAccess", "types": [], "resources": []}, - "ec2:UpdateInterruptibleCapacityReservationAllocation": {"action": "ec2:UpdateInterruptibleCapacityReservationAllocation", "types": ["capacity-reservation"], "resources": []}, - "ec2:UpdateSecurityGroupRuleDescriptionsEgress": {"action": "ec2:UpdateSecurityGroupRuleDescriptionsEgress", "types": ["security-group"], "resources": []}, - "ec2:UpdateSecurityGroupRuleDescriptionsIngress": {"action": "ec2:UpdateSecurityGroupRuleDescriptionsIngress", "types": ["security-group"], "resources": []}, - "ec2:ValidateSecurityGroupQuotasForInterface": {"action": "ec2:ValidateSecurityGroupQuotasForInterface", "types": ["security-group"], "resources": []}, + "ec2:UpdateInterruptibleCapacityReservationAllocation": {"action": "ec2:UpdateInterruptibleCapacityReservationAllocation", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationId": "CapacityReservationId"}}]}, + "ec2:UpdateSecurityGroupRuleDescriptionsEgress": {"action": "ec2:UpdateSecurityGroupRuleDescriptionsEgress", "types": ["security-group"], "resources": [{"type": "security-group", "fill": {}, "find": ["GroupName"]}, {"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}]}, + "ec2:UpdateSecurityGroupRuleDescriptionsIngress": {"action": "ec2:UpdateSecurityGroupRuleDescriptionsIngress", "types": ["security-group"], "resources": [{"type": "security-group", "fill": {}, "find": ["GroupName"]}, {"type": "security-group", "fill": {"SecurityGroupId": "GroupId"}}]}, + "ec2:ValidateSecurityGroupQuotasForInterface": {"action": "ec2:ValidateSecurityGroupQuotasForInterface", "types": ["security-group"], "resources": [], "targets": {"member": "SecurityGroupIds[]", "query": "SecurityGroupId", "prefixes": {"security-group": "sg-"}}}, "ec2:WithdrawByoipCidr": {"action": "ec2:WithdrawByoipCidr", "types": [], "resources": []}, "ecr:BatchCheckLayerAvailability": {"action": "ecr:BatchCheckLayerAvailability", "types": ["repository"], "resources": [{"type": "repository", "fill": {"RepositoryName": "repositoryName"}, "account": "registryId"}]}, "ecr:BatchDeleteImage": {"action": "ecr:BatchDeleteImage", "types": ["repository"], "resources": [{"type": "repository", "fill": {"RepositoryName": "repositoryName"}, "account": "registryId"}]}, diff --git a/src/test/java/io/floci/aws/core/common/Ec2AddressIamIntegrationTest.java b/src/test/java/io/floci/aws/core/common/Ec2AddressIamIntegrationTest.java new file mode 100644 index 0000000000..b15d596b8d --- /dev/null +++ b/src/test/java/io/floci/aws/core/common/Ec2AddressIamIntegrationTest.java @@ -0,0 +1,150 @@ +package io.floci.aws.core.common; + +import io.floci.aws.testing.AwsTestClients; +import io.floci.aws.testing.EnforcementFixtures; +import io.floci.aws.testing.EnforcementFixtures.UserCredentials; +import io.floci.aws.testing.IamEnforcementProfile; +import io.floci.aws.testing.PartitionCleanup; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.ec2.Ec2Client; +import software.amazon.awssdk.services.ec2.model.Address; +import software.amazon.awssdk.services.ec2.model.AssociateAddressRequest; +import software.amazon.awssdk.services.ec2.model.TagSpecification; + +import java.net.URI; +import java.util.UUID; + +import static io.floci.aws.testing.AwsSdkErrors.assertAwsError; +import static io.floci.aws.testing.EnforcementFixtures.auth; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; + +@QuarkusTest +@TestProfile(IamEnforcementProfile.class) +class Ec2AddressIamIntegrationTest { + @TestHTTPResource("/") + URI endpoint; + @RegisterExtension + final PartitionCleanup cleanup = new PartitionCleanup(); + + @ParameterizedTest + @ValueSource(strings = {"instance", "network-interface"}) + void associationRequiresEveryRequestedTargetWithItsOwnStoredTags(String kind) { + String user = "address-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), user); + try (Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint); + Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint)) { + String vpc = admin.createVpc(r -> r.cidrBlock("10.211.0.0/16")).vpc().vpcId(); + String subnet = admin.createSubnet(r -> r.vpcId(vpc).cidrBlock("10.211.1.0/24")).subnet().subnetId(); + String target; + if ("instance".equals(kind)) { + target = admin.runInstances(r -> r.imageId("ami-amazonlinux2023").instanceType("t3.micro") + .minCount(1).maxCount(1).subnetId(subnet).tagSpecifications(tags(kind, "foreign"))) + .instances().getFirst().instanceId(); + } else { + target = admin.createNetworkInterface(r -> r.subnetId(subnet).tagSpecifications(tags(kind, "foreign"))) + .networkInterface().networkInterfaceId(); + } + String allocation = admin.allocateAddress(r -> r.domain("vpc") + .tagSpecifications(tags("elastic-ip", "address"))).allocationId(); + String addressGrant = grant("AssociateAddress", "elastic-ip/" + allocation, "address"); + String targetGrant = grant("AssociateAddress", kind + "/" + target, "target"); + AssociateAddressRequest.Builder builder = AssociateAddressRequest.builder().allocationId(allocation); + if ("instance".equals(kind)) { + builder.instanceId(target); + } else { + builder.networkInterfaceId(target); + } + AssociateAddressRequest request = builder.build(); + try { + policy(user, addressGrant + "," + targetGrant); + assertAwsError("UnauthorizedOperation", 403, () -> client.associateAddress(request)); + assertNull(admin.describeAddresses(r -> r.allocationIds(allocation)).addresses().getFirst().associationId()); + admin.createTags(r -> r.resources(target).tags(t -> t.key("Owner").value("target"))); + policy(user, addressGrant); + assertAwsError("UnauthorizedOperation", 403, () -> client.associateAddress(request)); + policy(user, targetGrant); + assertAwsError("UnauthorizedOperation", 403, () -> client.associateAddress(request)); + policy(user, addressGrant + "," + targetGrant + "," + targetGrant.replace("Allow", "Deny")); + assertAwsError("UnauthorizedOperation", 403, () -> client.associateAddress(request)); + policy(user, addressGrant + "," + targetGrant + "," + addressGrant.replace("Allow", "Deny")); + assertAwsError("UnauthorizedOperation", 403, () -> client.associateAddress(request)); + policy(user, addressGrant + "," + targetGrant); + String association = client.associateAddress(request).associationId(); + Address result = admin.describeAddresses(r -> r.allocationIds(allocation)).addresses().getFirst(); + assertEquals(association, result.associationId()); + assertEquals(target, "instance".equals(kind) ? result.instanceId() : result.networkInterfaceId()); + } finally { + Address address = admin.describeAddresses(r -> r.allocationIds(allocation)).addresses().getFirst(); + if (address.associationId() != null) { + admin.disassociateAddress(r -> r.associationId(address.associationId())); + } + admin.releaseAddress(r -> r.allocationId(allocation)); + if ("instance".equals(kind)) { + admin.terminateInstances(r -> r.instanceIds(target)); + } + admin.describeNetworkInterfaces().networkInterfaces().stream().filter(n -> vpc.equals(n.vpcId())) + .forEach(n -> admin.deleteNetworkInterface(r -> r.networkInterfaceId(n.networkInterfaceId()))); + admin.deleteSubnet(r -> r.subnetId(subnet)); + admin.deleteVpc(r -> r.vpcId(vpc)); + } + } + } + + @Test + void releaseRequiresTheNamedAllocationsStoredOwnershipAndHonorsExplicitDeny() { + String user = "release-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), user); + try (Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint); + Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint)) { + String allocation = admin.allocateAddress(r -> r.domain("vpc") + .tagSpecifications(tags("elastic-ip", "foreign"))).allocationId(); + String grant = grant("ReleaseAddress", "elastic-ip/" + allocation, "address"); + try { + policy(user, grant); + assertAwsError("UnauthorizedOperation", 403, + () -> client.releaseAddress(r -> r.allocationId(allocation))); + admin.createTags(r -> r.resources(allocation).tags(t -> t.key("Owner").value("address"))); + policy(user, grant + "," + grant.replace("Allow", "Deny")); + assertAwsError("UnauthorizedOperation", 403, + () -> client.releaseAddress(r -> r.allocationId(allocation))); + policy(user, grant.replace(allocation, "eipalloc-other")); + assertAwsError("UnauthorizedOperation", 403, + () -> client.releaseAddress(r -> r.allocationId(allocation))); + policy(user, grant); + client.releaseAddress(r -> r.allocationId(allocation)); + } finally { + if (admin.describeAddresses().addresses().stream().anyMatch(a -> allocation.equals(a.allocationId()))) { + admin.releaseAddress(r -> r.allocationId(allocation)); + } + } + } + } + + private void policy(String user, String statements) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth("000000000000", "iam"), user, + "address", "{\"Version\":\"2012-10-17\",\"Statement\":[" + statements + "]}"); + } + + private static String grant(String action, String resource, String owner) { + return """ + {"Effect":"Allow","Action":"ec2:%s","Resource":"arn:aws:ec2:us-east-1:000000000000:%s", + "Condition":{"StringEquals":{"aws:ResourceTag/Owner":"%s"}}} + """.formatted(action, resource, owner); + } + + private static TagSpecification tags(String type, String owner) { + return TagSpecification.builder().resourceType(type).tags(t -> t.key("Owner").value(owner)).build(); + } +} diff --git a/src/test/java/io/floci/aws/core/common/Ec2CreateVpcIamIntegrationTest.java b/src/test/java/io/floci/aws/core/common/Ec2CreateVpcIamIntegrationTest.java new file mode 100644 index 0000000000..fe3c815862 --- /dev/null +++ b/src/test/java/io/floci/aws/core/common/Ec2CreateVpcIamIntegrationTest.java @@ -0,0 +1,132 @@ +package io.floci.aws.core.common; + +import io.floci.aws.testing.AwsTestClients; +import io.floci.aws.testing.EnforcementFixtures; +import io.floci.aws.testing.EnforcementFixtures.UserCredentials; +import io.floci.aws.testing.IamEnforcementProfile; +import io.floci.aws.testing.PartitionCleanup; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import org.junit.jupiter.api.extension.RegisterExtension; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.ec2.Ec2Client; +import software.amazon.awssdk.services.ec2.model.CreateVpcRequest; +import software.amazon.awssdk.services.ec2.model.ResourceType; +import software.amazon.awssdk.services.ec2.model.Tag; +import software.amazon.awssdk.services.ec2.model.TagSpecification; + +import java.net.URI; +import java.util.UUID; + +import static io.floci.aws.testing.AwsSdkErrors.assertAwsError; +import static io.floci.aws.testing.EnforcementFixtures.auth; +import static org.junit.jupiter.api.Assertions.assertTrue; + +@QuarkusTest +@TestProfile(IamEnforcementProfile.class) +class Ec2CreateVpcIamIntegrationTest { + + @TestHTTPResource("/") + URI endpoint; + + @RegisterExtension + final PartitionCleanup cleanup = new PartitionCleanup(); + + @ParameterizedTest + @ValueSource(strings = {"us-east-1", "us-gov-west-1", "cn-north-1"}) + void scopedCreateRequiresRequestTagsAndTagPermissionAndHonorsExplicitDeny(String region) { + String name = "vpc-create-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), name); + String resource = AwsArnUtils.Arn.of("ec2", region, "000000000000", "vpc/*").toString(); + String create = """ + {"Effect":"Allow","Action":"ec2:CreateVpc","Resource":"%s", + "Condition":{"StringEquals":{"aws:RequestTag/ManagedBy":"integration-test"}}} + """.formatted(resource); + String tag = """ + {"Effect":"Allow","Action":"ec2:CreateTags","Resource":"%s", + "Condition":{"StringEquals":{"ec2:CreateAction":"CreateVpc"}}} + """.formatted(resource); + try (Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.of(region), endpoint); + Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.of(region), endpoint)) { + CreateVpcRequest request = tagged("integration-test"); + policy(name, create); + denied(client, request); + policy(name, create + "," + tag); + denied(client, CreateVpcRequest.builder().cidrBlock("10.200.0.0/16").build()); + denied(client, tagged("other")); + String vpcId = client.createVpc(request).vpc().vpcId(); + try { + assertTrue(vpcId.startsWith("vpc-")); + assertTrue(admin.describeVpcs(r -> r.vpcIds(vpcId)).vpcs().getFirst().tags().stream() + .anyMatch(t -> t.key().equals("ManagedBy") && t.value().equals("integration-test"))); + } finally { + admin.deleteVpc(r -> r.vpcId(vpcId)); + } + policy(name, create + "," + tag + "," + """ + {"Effect":"Deny","Action":"ec2:CreateVpc","Resource":"%s"} + """.formatted(resource)); + denied(client, request); + policy(name, create.replace(":000000000000:", ":111122223333:") + "," + tag); + denied(client, request); + policy(name, create + "," + tag + "," + """ + {"Effect":"Deny","Action":"ec2:CreateTags","Resource":"%s"} + """.formatted(resource)); + denied(client, request); + } + } + + @ParameterizedTest + @ValueSource(strings = {"ipv4-ipam", "ipv6-ipam", "ipv6-pool"}) + void optionalPoolsNeedTheirOwnGrantAndTagsAreCheckedOnlyOnTheVpc(String pool) { + String name = "vpc-pool-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), name); + String resource = pool.equals("ipv6-pool") + ? "arn:aws:ec2:us-east-1:000000000000:ipv6pool-ec2/ipv6pool-one" + : "arn:aws:ec2::000000000000:ipam-pool/ipam-pool-one"; + CreateVpcRequest.Builder request = tagged("integration-test").toBuilder(); + switch (pool) { + case "ipv4-ipam" -> request.ipv4IpamPoolId("ipam-pool-one"); + case "ipv6-ipam" -> request.ipv6IpamPoolId("ipam-pool-one"); + default -> request.ipv6Pool("ipv6pool-one"); + } + String vpc = """ + {"Effect":"Allow","Action":["ec2:CreateVpc","ec2:CreateTags"], + "Resource":"arn:aws:ec2:us-east-1:000000000000:vpc/*"} + """; + String grant = """ + {"Effect":"Allow","Action":"ec2:CreateVpc","Resource":"%s"} + """.formatted(resource); + try (Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint); + Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint)) { + policy(name, vpc); + denied(client, request.build()); + policy(name, vpc + "," + grant); + String vpcId = client.createVpc(request.build()).vpc().vpcId(); + admin.deleteVpc(r -> r.vpcId(vpcId)); + policy(name, vpc + "," + grant + "," + grant.replace("Allow", "Deny")); + denied(client, request.build()); + } + } + + private CreateVpcRequest tagged(String owner) { + return CreateVpcRequest.builder().cidrBlock("10.200.0.0/16") + .tagSpecifications(TagSpecification.builder().resourceType(ResourceType.VPC) + .tags(Tag.builder().key("ManagedBy").value(owner).build()).build()).build(); + } + + private void denied(Ec2Client client, CreateVpcRequest request) { + assertAwsError("UnauthorizedOperation", 403, () -> client.createVpc(request)); + } + + private void policy(String name, String statements) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth("000000000000", "iam"), name, + "create", "{\"Version\":\"2012-10-17\",\"Statement\":[" + statements + "]}"); + } +} diff --git a/src/test/java/io/floci/aws/core/common/Ec2NatGatewayIamIntegrationTest.java b/src/test/java/io/floci/aws/core/common/Ec2NatGatewayIamIntegrationTest.java new file mode 100644 index 0000000000..6903660a70 --- /dev/null +++ b/src/test/java/io/floci/aws/core/common/Ec2NatGatewayIamIntegrationTest.java @@ -0,0 +1,102 @@ +package io.floci.aws.core.common; + +import io.floci.aws.testing.AwsTestClients; +import io.floci.aws.testing.EnforcementFixtures; +import io.floci.aws.testing.EnforcementFixtures.UserCredentials; +import io.floci.aws.testing.IamEnforcementProfile; +import io.floci.aws.testing.PartitionCleanup; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.ec2.Ec2Client; +import software.amazon.awssdk.services.ec2.model.Tag; +import software.amazon.awssdk.services.ec2.model.TagSpecification; + +import java.net.URI; +import java.util.UUID; + +import static io.floci.aws.testing.AwsSdkErrors.assertAwsError; +import static io.floci.aws.testing.EnforcementFixtures.auth; + +@QuarkusTest +@TestProfile(IamEnforcementProfile.class) +class Ec2NatGatewayIamIntegrationTest { + + @TestHTTPResource("/") + URI endpoint; + + @RegisterExtension + final PartitionCleanup cleanup = new PartitionCleanup(); + + @Test + void natCreationRequiresBothOwnedParentsAndSeparatelyAuthorizedTags() { + String name = "nat-iam-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), name); + try (Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint); + Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint)) { + String vpc = admin.createVpc(r -> r.cidrBlock("10.205.0.0/16")).vpc().vpcId(); + String subnet = admin.createSubnet(r -> r.vpcId(vpc).cidrBlock("10.205.1.0/24") + .tagSpecifications(tags("subnet", "owner"))).subnet().subnetId(); + String allocation = admin.allocateAddress(r -> r.domain("vpc") + .tagSpecifications(tags("elastic-ip", "foreign"))).allocationId(); + String created = """ + {"Effect":"Allow","Action":"ec2:CreateNatGateway", + "Resource":"arn:aws:ec2:us-east-1:000000000000:natgateway/*", + "Condition":{"StringEquals":{"aws:RequestTag/Owner":"owner"}}} + """; + String parents = """ + {"Effect":"Allow","Action":"ec2:CreateNatGateway", + "Resource":["arn:aws:ec2:us-east-1:000000000000:subnet/%s", + "arn:aws:ec2:us-east-1:000000000000:elastic-ip/%s"], + "Condition":{"StringEquals":{"aws:ResourceTag/Owner":"owner"}}} + """.formatted(subnet, allocation); + String tag = """ + {"Effect":"Allow","Action":"ec2:CreateTags", + "Resource":"arn:aws:ec2:us-east-1:000000000000:natgateway/*", + "Condition":{"StringEquals":{"ec2:CreateAction":"CreateNatGateway"}}} + """; + try { + policy(name, created + "," + parents + "," + tag); + assertAwsError("UnauthorizedOperation", 403, () -> create(client, subnet, allocation)); + admin.createTags(r -> r.resources(allocation).tags(Tag.builder().key("Owner").value("owner").build())); + policy(name, created + "," + tag); + assertAwsError("UnauthorizedOperation", 403, () -> create(client, subnet, allocation)); + policy(name, created + "," + parents); + assertAwsError("UnauthorizedOperation", 403, () -> create(client, subnet, allocation)); + policy(name, created + "," + parents + "," + tag + "," + """ + {"Effect":"Deny","Action":"ec2:CreateNatGateway", + "Resource":"arn:aws:ec2:us-east-1:000000000000:elastic-ip/%s"} + """.formatted(allocation)); + assertAwsError("UnauthorizedOperation", 403, () -> create(client, subnet, allocation)); + policy(name, created + "," + parents + "," + tag); + create(client, subnet, allocation); + } finally { + admin.describeNatGateways().natGateways().stream().filter(n -> vpc.equals(n.vpcId())) + .forEach(n -> admin.deleteNatGateway(r -> r.natGatewayId(n.natGatewayId()))); + admin.releaseAddress(r -> r.allocationId(allocation)); + admin.deleteSubnet(r -> r.subnetId(subnet)); + admin.deleteVpc(r -> r.vpcId(vpc)); + } + } + } + + private void policy(String name, String statements) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth("000000000000", "iam"), name, "nat", + "{\"Version\":\"2012-10-17\",\"Statement\":[" + statements + "]}"); + } + + private static void create(Ec2Client client, String subnet, String allocation) { + client.createNatGateway(r -> r.subnetId(subnet).allocationId(allocation) + .tagSpecifications(tags("natgateway", "owner"))); + } + + private static TagSpecification tags(String type, String owner) { + return TagSpecification.builder().resourceType(type) + .tags(Tag.builder().key("Owner").value(owner).build()).build(); + } +} diff --git a/src/test/java/io/floci/aws/core/common/Ec2NetworkCreateIamIntegrationTest.java b/src/test/java/io/floci/aws/core/common/Ec2NetworkCreateIamIntegrationTest.java new file mode 100644 index 0000000000..d911b29ded --- /dev/null +++ b/src/test/java/io/floci/aws/core/common/Ec2NetworkCreateIamIntegrationTest.java @@ -0,0 +1,180 @@ +package io.floci.aws.core.common; + +import io.floci.aws.testing.AwsTestClients; +import io.floci.aws.testing.EnforcementFixtures; +import io.floci.aws.testing.EnforcementFixtures.UserCredentials; +import io.floci.aws.testing.IamEnforcementProfile; +import io.floci.aws.testing.PartitionCleanup; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.CsvSource; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.ec2.Ec2Client; +import software.amazon.awssdk.services.ec2.model.Tag; +import software.amazon.awssdk.services.ec2.model.TagSpecification; + +import java.net.URI; +import java.util.UUID; + +import static io.floci.aws.testing.AwsSdkErrors.assertAwsError; +import static io.floci.aws.testing.EnforcementFixtures.auth; +import static org.junit.jupiter.api.Assertions.assertEquals; + +@QuarkusTest +@TestProfile(IamEnforcementProfile.class) +class Ec2NetworkCreateIamIntegrationTest { + + @TestHTTPResource("/") + URI endpoint; + + @RegisterExtension + final PartitionCleanup cleanup = new PartitionCleanup(); + + @Test + void gatewayEndpointChecksEverySuppliedRouteTable() { + String user = "endpoint-routes-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), user); + try (Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint); + Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint)) { + String vpc = admin.createVpc(r -> r.cidrBlock("10.204.0.0/16")).vpc().vpcId(); + String first = admin.createRouteTable(r -> r.vpcId(vpc)).routeTable().routeTableId(); + String second = admin.createRouteTable(r -> r.vpcId(vpc)).routeTable().routeTableId(); + String allow = """ + {"Effect":"Allow","Action":"ec2:CreateVpcEndpoint", + "Resource":"arn:aws:ec2:us-east-1:000000000000:*"} + """; + String deny = """ + {"Effect":"Deny","Action":"ec2:CreateVpcEndpoint", + "Resource":"arn:aws:ec2:us-east-1:000000000000:route-table/%s"} + """.formatted(second); + try { + policy(user, allow + "," + deny); + assertAwsError("UnauthorizedOperation", 403, + () -> client.createVpcEndpoint(r -> r.vpcId(vpc).vpcEndpointType("Gateway") + .serviceName("com.amazonaws.us-east-1.s3").routeTableIds(first, second))); + policy(user, allow); + String id = client.createVpcEndpoint(r -> r.vpcId(vpc).vpcEndpointType("Gateway") + .serviceName("com.amazonaws.us-east-1.s3").routeTableIds(first, second)) + .vpcEndpoint().vpcEndpointId(); + admin.deleteVpcEndpoints(r -> r.vpcEndpointIds(id)); + } finally { + admin.describeVpcEndpoints().vpcEndpoints().stream().filter(e -> vpc.equals(e.vpcId())) + .forEach(e -> admin.deleteVpcEndpoints(r -> r.vpcEndpointIds(e.vpcEndpointId()))); + admin.deleteRouteTable(r -> r.routeTableId(second)); + admin.deleteRouteTable(r -> r.routeTableId(first)); + admin.deleteVpc(r -> r.vpcId(vpc)); + } + } + } + + @ParameterizedTest + @CsvSource({"CreateSubnet,subnet", "CreateRouteTable,route-table", "CreateSecurityGroup,security-group", + "CreateInternetGateway,internet-gateway", "CreateVpcEndpoint,vpc-endpoint", "AllocateAddress,elastic-ip"}) + void creationChecksNewResourceTagsAndParentOwnershipSeparately(String action, String type) { + String name = "network-create-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), name); + String resource = "arn:aws:ec2:us-east-1:000000000000:" + type + "/*"; + String create = """ + {"Effect":"Allow","Action":"ec2:%s","Resource":"%s", + "Condition":{"StringEquals":{"aws:RequestTag/ManagedBy":"integration-test"}}} + """.formatted(action, resource); + String tags = """ + {"Effect":"Allow","Action":"ec2:CreateTags","Resource":"%s", + "Condition":{"StringEquals":{"ec2:CreateAction":"%s"}}} + """.formatted(resource, action); + try (Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint); + Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint)) { + String vpc = admin.createVpc(r -> r.cidrBlock("10.201.0.0/16").tagSpecifications( + specification("vpc", "parent-owner"))).vpc().vpcId(); + String parentArn = "arn:aws:ec2:us-east-1:000000000000:vpc/" + vpc; + String parent = """ + {"Effect":"Allow","Action":"ec2:%s","Resource":"%s", + "Condition":{"StringEquals":{"aws:ResourceTag/ManagedBy":"parent-owner"}}} + """.formatted(action, parentArn); + try { + policy(name, create + "," + parent); + assertAwsError("UnauthorizedOperation", 403, + () -> create(client, action, type, vpc, "integration-test")); + policy(name, create + "," + tags + "," + parent); + assertAwsError("UnauthorizedOperation", 403, () -> create(client, action, type, vpc, "wrong-owner")); + String id = create(client, action, type, vpc, "integration-test"); + assertEquals("integration-test", admin.describeTags(r -> r.filters(f -> f.name("resource-id") + .values(id))).tags().stream().filter(t -> t.key().equals("ManagedBy")).findFirst() + .orElseThrow().value()); + delete(admin, action, id); + policy(name, create + "," + tags + "," + parent + "," + create.replace("Allow", "Deny")); + assertAwsError("UnauthorizedOperation", 403, + () -> create(client, action, type, vpc, "integration-test")); + policy(name, create.replace(":000000000000:", ":111122223333:") + "," + tags + "," + parent); + assertAwsError("UnauthorizedOperation", 403, + () -> create(client, action, type, vpc, "integration-test")); + if (!action.equals("CreateInternetGateway") && !action.equals("AllocateAddress")) { + policy(name, create + "," + tags); + assertAwsError("UnauthorizedOperation", 403, + () -> create(client, action, type, vpc, "integration-test")); + policy(name, create + "," + tags + "," + parent.replace("parent-owner", "integration-test")); + assertAwsError("UnauthorizedOperation", 403, + () -> create(client, action, type, vpc, "integration-test")); + policy(name, create + "," + tags + "," + parent + "," + parent.replace("Allow", "Deny")); + assertAwsError("UnauthorizedOperation", 403, + () -> create(client, action, type, vpc, "integration-test")); + } else { + policy(name, create + "," + tags); + delete(admin, action, create(client, action, type, vpc, "integration-test")); + } + } finally { + admin.deleteVpc(r -> r.vpcId(vpc)); + } + } + } + + private String create(Ec2Client client, String action, String type, String vpc, String owner) { + TagSpecification tags = specification(type, owner); + return switch (action) { + case "CreateSubnet" -> client.createSubnet(r -> r.vpcId(vpc).cidrBlock("10.201.1.0/24") + .tagSpecifications(tags)).subnet().subnetId(); + case "CreateRouteTable" -> client.createRouteTable(r -> r.vpcId(vpc).tagSpecifications(tags)) + .routeTable().routeTableId(); + case "CreateSecurityGroup" -> client.createSecurityGroup(r -> r.vpcId(vpc) + .groupName("network-" + UUID.randomUUID()).description("IAM integration test") + .tagSpecifications(tags)).groupId(); + case "CreateVpcEndpoint" -> client.createVpcEndpoint(r -> r.vpcId(vpc).vpcEndpointType("Gateway") + .serviceName("com.amazonaws.us-east-1.s3").tagSpecifications(tags)).vpcEndpoint().vpcEndpointId(); + case "CreateInternetGateway" -> client.createInternetGateway(r -> r.tagSpecifications(tags)) + .internetGateway().internetGatewayId(); + case "AllocateAddress" -> client.allocateAddress(r -> r.domain("vpc").tagSpecifications(tags)).allocationId(); + default -> throw new IllegalArgumentException(action); + }; + } + + private void delete(Ec2Client admin, String action, String id) { + switch (action) { + case "CreateSubnet" -> admin.deleteSubnet(r -> r.subnetId(id)); + case "CreateRouteTable" -> admin.deleteRouteTable(r -> r.routeTableId(id)); + case "CreateSecurityGroup" -> admin.deleteSecurityGroup(r -> r.groupId(id)); + case "CreateVpcEndpoint" -> admin.deleteVpcEndpoints(r -> r.vpcEndpointIds(id)); + case "CreateInternetGateway" -> admin.deleteInternetGateway(r -> r.internetGatewayId(id)); + case "AllocateAddress" -> admin.releaseAddress(r -> r.allocationId(id)); + default -> throw new IllegalArgumentException(action); + } + } + + private TagSpecification specification(String type, String owner) { + return TagSpecification.builder().resourceType(type) + .tags(Tag.builder().key("ManagedBy").value(owner).build()).build(); + } + + + private void policy(String name, String statements) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth("000000000000", "iam"), name, + "network", "{\"Version\":\"2012-10-17\",\"Statement\":[" + statements + "]}"); + } +} diff --git a/src/test/java/io/floci/aws/core/common/Ec2NetworkInterfaceIamIntegrationTest.java b/src/test/java/io/floci/aws/core/common/Ec2NetworkInterfaceIamIntegrationTest.java new file mode 100644 index 0000000000..4f36c04de5 --- /dev/null +++ b/src/test/java/io/floci/aws/core/common/Ec2NetworkInterfaceIamIntegrationTest.java @@ -0,0 +1,158 @@ +package io.floci.aws.core.common; + +import io.floci.aws.testing.AwsTestClients; +import io.floci.aws.testing.EnforcementFixtures; +import io.floci.aws.testing.EnforcementFixtures.UserCredentials; +import io.floci.aws.testing.IamEnforcementProfile; +import io.floci.aws.testing.PartitionCleanup; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.ec2.Ec2Client; +import software.amazon.awssdk.services.ec2.model.NetworkInterface; +import software.amazon.awssdk.services.ec2.model.TagSpecification; + +import java.net.URI; +import java.util.UUID; + +import static io.floci.aws.testing.AwsSdkErrors.assertAwsError; +import static io.floci.aws.testing.EnforcementFixtures.auth; +import static org.junit.jupiter.api.Assertions.assertEquals; + +@QuarkusTest +@TestProfile(IamEnforcementProfile.class) +class Ec2NetworkInterfaceIamIntegrationTest { + @TestHTTPResource("/") + URI endpoint; + + @RegisterExtension + final PartitionCleanup cleanup = new PartitionCleanup(); + + @Test + void creationChecksSubnetAndEverySecurityGroupWithTheirOwnTags() { + String user = "eni-create-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), user); + try (Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint); + Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint)) { + String vpc = admin.createVpc(r -> r.cidrBlock("10.203.0.0/16")).vpc().vpcId(); + String subnet = admin.createSubnet(r -> r.vpcId(vpc).cidrBlock("10.203.1.0/24") + .tagSpecifications(tags("subnet", "subnet-owner"))).subnet().subnetId(); + String group = admin.createSecurityGroup(r -> r.vpcId(vpc).groupName("eni-test") + .description("IAM fixture").tagSpecifications(tags("security-group", "group-owner"))).groupId(); + String second = admin.createSecurityGroup(r -> r.vpcId(vpc).groupName("eni-test-second") + .description("IAM fixture").tagSpecifications(tags("security-group", "group-owner"))).groupId(); + String create = """ + {"Effect":"Allow","Action":"ec2:CreateNetworkInterface", + "Resource":"arn:aws:ec2:us-east-1:000000000000:network-interface/*", + "Condition":{"StringEquals":{"aws:RequestTag/ManagedBy":"integration-test"}}} + """; + String tag = """ + {"Effect":"Allow","Action":"ec2:CreateTags", + "Resource":"arn:aws:ec2:us-east-1:000000000000:network-interface/*", + "Condition":{"StringEquals":{"ec2:CreateAction":"CreateNetworkInterface"}}} + """; + String subnetGrant = grant("subnet/" + subnet, "subnet-owner"); + String firstGrant = grant("security-group/" + group, "group-owner"); + String secondGrant = grant("security-group/" + second, "group-owner"); + String all = create + "," + tag + "," + subnetGrant + "," + firstGrant + "," + secondGrant; + Runnable request = () -> create(client, subnet, group, second, "integration-test"); + try { + policy(user, create + "," + subnetGrant + "," + firstGrant + "," + secondGrant); + assertAwsError("UnauthorizedOperation", 403, request::run); + policy(user, create + "," + tag + "," + firstGrant + "," + secondGrant); + assertAwsError("UnauthorizedOperation", 403, request::run); + policy(user, create + "," + tag + "," + subnetGrant + "," + firstGrant); + assertAwsError("UnauthorizedOperation", 403, request::run); + policy(user, all.replace("subnet-owner", "group-owner")); + assertAwsError("UnauthorizedOperation", 403, request::run); + policy(user, all + "," + secondGrant.replace("Allow", "Deny")); + assertAwsError("UnauthorizedOperation", 403, request::run); + policy(user, all); + assertAwsError("UnauthorizedOperation", 403, + () -> create(client, subnet, group, second, "wrong-owner")); + String eni = create(client, subnet, group, second, "integration-test"); + assertEquals(2, admin.describeNetworkInterfaces(r -> r.networkInterfaceIds(eni)) + .networkInterfaces().getFirst().groups().size()); + admin.deleteNetworkInterface(r -> r.networkInterfaceId(eni)); + } finally { + for (NetworkInterface eni : admin.describeNetworkInterfaces().networkInterfaces()) { + if (subnet.equals(eni.subnetId())) { + admin.deleteNetworkInterface(r -> r.networkInterfaceId(eni.networkInterfaceId())); + } + } + admin.deleteSecurityGroup(r -> r.groupId(second)); + admin.deleteSecurityGroup(r -> r.groupId(group)); + admin.deleteSubnet(r -> r.subnetId(subnet)); + admin.deleteVpc(r -> r.vpcId(vpc)); + } + } + } + + @Test + void creationTagsAuthorizeLaterMutationsAndStayInSync() { + String user = "eni-tags-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), user); + try (Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint); + Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint)) { + String vpc = admin.createVpc(r -> r.cidrBlock("10.204.0.0/16")).vpc().vpcId(); + String subnet = admin.createSubnet(r -> r.vpcId(vpc).cidrBlock("10.204.1.0/24")).subnet().subnetId(); + String eni = admin.createNetworkInterface(r -> r.subnetId(subnet) + .tagSpecifications(tags("network-interface", "team-a"))).networkInterface().networkInterfaceId(); + try { + policy(user, """ + {"Effect":"Allow","Action":["ec2:CreateTags","ec2:DeleteTags"], + "Resource":"arn:aws:ec2:us-east-1:000000000000:network-interface/%s", + "Condition":{"StringEquals":{"aws:ResourceTag/ManagedBy":"team-a", + "ec2:ResourceTag/ManagedBy":"team-a"}}} + """.formatted(eni)); + client.createTags(r -> r.resources(eni).tags(t -> t.key("Purpose").value("fixture"))); + assertEquals(2, admin.describeNetworkInterfaces(r -> r.networkInterfaceIds(eni)) + .networkInterfaces().getFirst().tagSet().size()); + client.createTags(r -> r.resources(eni).tags(t -> t.key("ManagedBy").value("team-b"))); + assertEquals("team-b", admin.describeNetworkInterfaces(r -> r.networkInterfaceIds(eni)) + .networkInterfaces().getFirst().tagSet().stream().filter(t -> t.key().equals("ManagedBy")) + .findFirst().orElseThrow().value()); + assertAwsError("UnauthorizedOperation", 403, + () -> client.createTags(r -> r.resources(eni).tags(t -> t.key("Purpose").value("denied")))); + admin.createTags(r -> r.resources(eni).tags(t -> t.key("ManagedBy").value("team-a"))); + client.deleteTags(r -> r.resources(eni).tags(t -> t.key("ManagedBy"))); + assertAwsError("UnauthorizedOperation", 403, + () -> client.createTags(r -> r.resources(eni).tags(t -> t.key("Purpose").value("denied")))); + } finally { + admin.deleteNetworkInterface(r -> r.networkInterfaceId(eni)); + assertEquals(0, admin.describeTags(r -> r.filters(f -> f.name("resource-id").values(eni))).tags().size()); + admin.deleteSubnet(r -> r.subnetId(subnet)); + admin.deleteVpc(r -> r.vpcId(vpc)); + } + } + } + + private String create(Ec2Client client, String subnet, String group, String second, String owner) { + return client.createNetworkInterface(r -> r.subnetId(subnet).groups(group, second) + .tagSpecifications(tags("network-interface", owner))).networkInterface().networkInterfaceId(); + } + + private TagSpecification tags(String type, String owner) { + return TagSpecification.builder().resourceType(type).tags(t -> t.key("ManagedBy").value(owner)).build(); + } + + private String grant(String resource, String owner) { + return """ + {"Effect":"Allow","Action":"ec2:CreateNetworkInterface", + "Resource":"arn:aws:ec2:us-east-1:000000000000:%s", + "Condition":{"StringEquals":{"aws:ResourceTag/ManagedBy":"%s"}}} + """.formatted(resource, owner); + } + + private void policy(String user, String statements) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth("000000000000", "iam"), user, + "network", "{\"Version\":\"2012-10-17\",\"Statement\":[" + statements + "]}"); + } +} diff --git a/src/test/java/io/floci/aws/core/common/Ec2NetworkMutationIamIntegrationTest.java b/src/test/java/io/floci/aws/core/common/Ec2NetworkMutationIamIntegrationTest.java new file mode 100644 index 0000000000..8160fa3aa3 --- /dev/null +++ b/src/test/java/io/floci/aws/core/common/Ec2NetworkMutationIamIntegrationTest.java @@ -0,0 +1,169 @@ +package io.floci.aws.core.common; + +import io.floci.aws.testing.AwsTestClients; +import io.floci.aws.testing.EnforcementFixtures; +import io.floci.aws.testing.EnforcementFixtures.UserCredentials; +import io.floci.aws.testing.IamEnforcementProfile; +import io.floci.aws.testing.PartitionCleanup; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import org.junit.jupiter.api.extension.RegisterExtension; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.ec2.Ec2Client; +import software.amazon.awssdk.services.ec2.model.Ec2Exception; +import software.amazon.awssdk.services.ec2.model.IpPermission; +import software.amazon.awssdk.services.ec2.model.RouteTableAssociation; +import software.amazon.awssdk.services.ec2.model.TagSpecification; + +import java.net.URI; +import java.util.UUID; + +import static io.floci.aws.testing.AwsSdkErrors.assertAwsError; +import static io.floci.aws.testing.EnforcementFixtures.auth; +import static org.junit.jupiter.api.Assertions.assertTrue; + +@QuarkusTest +@TestProfile(IamEnforcementProfile.class) +class Ec2NetworkMutationIamIntegrationTest { + @TestHTTPResource("/") + URI endpoint; + + @RegisterExtension + final PartitionCleanup cleanup = new PartitionCleanup(); + + @ParameterizedTest + @ValueSource(strings = {"ModifySubnetAttribute", "AttachInternetGateway", "DetachInternetGateway", + "CreateRoute", "ReplaceRoute", "DeleteRoute", "AssociateRouteTable", + "AuthorizeSecurityGroupIngress", "AuthorizeSecurityGroupEgress", "RevokeSecurityGroupIngress", + "RevokeSecurityGroupEgress", "DeleteVpc", "DeleteSubnet", "DeleteRouteTable", + "DeleteInternetGateway", "DeleteSecurityGroup"}) + void scopedMutationsReadCurrentOwnershipAndHonorDenies(String action) { + String user = "network-mutation-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), user); + try (Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint); + Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint)) { + String vpc = admin.createVpc(r -> r.cidrBlock("10.202.0.0/16").tagSpecifications(tags("vpc"))).vpc().vpcId(); + String subnet = admin.createSubnet(r -> r.vpcId(vpc).cidrBlock("10.202.1.0/24") + .tagSpecifications(tags("subnet"))).subnet().subnetId(); + String table = admin.createRouteTable(r -> r.vpcId(vpc).tagSpecifications(tags("route-table"))) + .routeTable().routeTableId(); + String gateway = admin.createInternetGateway(r -> r.tagSpecifications(tags("internet-gateway"))) + .internetGateway().internetGatewayId(); + String group = admin.createSecurityGroup(r -> r.vpcId(vpc).groupName("scoped-" + UUID.randomUUID()) + .description("IAM mutation fixture").tagSpecifications(tags("security-group"))).groupId(); + IpPermission permission = IpPermission.builder().ipProtocol("tcp").fromPort(443).toPort(443) + .ipRanges(r -> r.cidrIp("192.0.2.0/24")).build(); + if (action.equals("DetachInternetGateway") || action.endsWith("Route")) { + admin.attachInternetGateway(r -> r.internetGatewayId(gateway).vpcId(vpc)); + } + if (action.equals("ReplaceRoute") || action.equals("DeleteRoute")) { + admin.createRoute(r -> r.routeTableId(table).gatewayId(gateway).destinationCidrBlock("0.0.0.0/0")); + } + if (action.equals("RevokeSecurityGroupIngress")) { + admin.authorizeSecurityGroupIngress(r -> r.groupId(group).ipPermissions(permission)); + } + if (action.equals("RevokeSecurityGroupEgress")) { + admin.authorizeSecurityGroupEgress(r -> r.groupId(group).ipPermissions(permission)); + } + if (action.equals("DeleteVpc")) { + admin.deleteSubnet(r -> r.subnetId(subnet)); + admin.deleteRouteTable(r -> r.routeTableId(table)); + admin.deleteSecurityGroup(r -> r.groupId(group)); + } + Runnable mutate = () -> { + switch (action) { + case "ModifySubnetAttribute" -> client.modifySubnetAttribute(r -> r.subnetId(subnet) + .mapPublicIpOnLaunch(v -> v.value(true))); + case "AttachInternetGateway" -> client.attachInternetGateway(r -> r.internetGatewayId(gateway).vpcId(vpc)); + case "DetachInternetGateway" -> client.detachInternetGateway(r -> r.internetGatewayId(gateway).vpcId(vpc)); + case "CreateRoute" -> client.createRoute(r -> r.routeTableId(table).gatewayId(gateway) + .destinationCidrBlock("0.0.0.0/0")); + case "ReplaceRoute" -> client.replaceRoute(r -> r.routeTableId(table).gatewayId(gateway) + .destinationCidrBlock("0.0.0.0/0")); + case "DeleteRoute" -> client.deleteRoute(r -> r.routeTableId(table).destinationCidrBlock("0.0.0.0/0")); + case "AssociateRouteTable" -> client.associateRouteTable(r -> r.routeTableId(table).subnetId(subnet)); + case "AuthorizeSecurityGroupIngress" -> client.authorizeSecurityGroupIngress(r -> r.groupId(group) + .ipPermissions(permission)); + case "AuthorizeSecurityGroupEgress" -> client.authorizeSecurityGroupEgress(r -> r.groupId(group) + .ipPermissions(permission)); + case "RevokeSecurityGroupIngress" -> client.revokeSecurityGroupIngress(r -> r.groupId(group) + .ipPermissions(permission)); + case "RevokeSecurityGroupEgress" -> client.revokeSecurityGroupEgress(r -> r.groupId(group) + .ipPermissions(permission)); + case "DeleteVpc" -> client.deleteVpc(r -> r.vpcId(vpc)); + case "DeleteSubnet" -> client.deleteSubnet(r -> r.subnetId(subnet)); + case "DeleteRouteTable" -> client.deleteRouteTable(r -> r.routeTableId(table)); + case "DeleteInternetGateway" -> client.deleteInternetGateway(r -> r.internetGatewayId(gateway)); + case "DeleteSecurityGroup" -> client.deleteSecurityGroup(r -> r.groupId(group)); + default -> throw new IllegalArgumentException(action); + } + }; + String grant = """ + {"Effect":"Allow","Action":"ec2:%s","Resource":"arn:aws:ec2:us-east-1:000000000000:*", + "Condition":{"StringEquals":{"aws:ResourceTag/Owner":"integration-test"}}} + """.formatted(action); + // New rule IDs have no stored tags; authorization of the parent group remains required. + String rules = """ + ,{"Effect":"Allow","Action":"ec2:%s", + "Resource":"arn:aws:ec2:us-east-1:000000000000:security-group-rule/*"} + """.formatted(action); + try { + policy(user, grant.replace("integration-test", "wrong-owner") + rules); + assertAwsError("UnauthorizedOperation", 403, mutate::run); + policy(user, grant.replace(":000000000000:", ":111122223333:") + rules); + assertAwsError("UnauthorizedOperation", 403, mutate::run); + policy(user, grant + rules + "," + grant.replace("Allow", "Deny")); + assertAwsError("UnauthorizedOperation", 403, mutate::run); + policy(user, grant + rules); + mutate.run(); + if (action.equals("ModifySubnetAttribute")) { + assertTrue(admin.describeSubnets(r -> r.subnetIds(subnet)).subnets().getFirst().mapPublicIpOnLaunch()); + } + } finally { + if (!action.equals("DeleteVpc")) { + if (!action.equals("DeleteRouteTable")) { + for (RouteTableAssociation association : admin.describeRouteTables(r -> r.routeTableIds(table)) + .routeTables().getFirst().associations()) { + if (!Boolean.TRUE.equals(association.main())) { + admin.disassociateRouteTable(r -> r.associationId(association.routeTableAssociationId())); + } + } + remove(() -> admin.deleteRouteTable(r -> r.routeTableId(table))); + } + remove(() -> admin.deleteSubnet(r -> r.subnetId(subnet))); + remove(() -> admin.deleteSecurityGroup(r -> r.groupId(group))); + } + remove(() -> admin.detachInternetGateway(r -> r.internetGatewayId(gateway).vpcId(vpc))); + remove(() -> admin.deleteInternetGateway(r -> r.internetGatewayId(gateway))); + remove(() -> admin.deleteVpc(r -> r.vpcId(vpc))); + } + } + } + + private TagSpecification tags(String type) { + return TagSpecification.builder().resourceType(type).tags(t -> t.key("Owner").value("integration-test")).build(); + } + + + private void remove(Runnable cleanup) { + try { + cleanup.run(); + } catch (Ec2Exception expected) { + // The action under test may already have removed or detached this fixture. + if (!expected.awsErrorDetails().errorCode().endsWith(".NotFound") + && !expected.awsErrorDetails().errorCode().equals("Gateway.NotAttached")) { + throw expected; + } + } + } + + private void policy(String user, String statements) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth("000000000000", "iam"), user, + "mutation", "{\"Version\":\"2012-10-17\",\"Statement\":[" + statements + "]}"); + } +} diff --git a/src/test/java/io/floci/aws/core/common/Ec2NetworkTagsIamIntegrationTest.java b/src/test/java/io/floci/aws/core/common/Ec2NetworkTagsIamIntegrationTest.java new file mode 100644 index 0000000000..22ba35e90a --- /dev/null +++ b/src/test/java/io/floci/aws/core/common/Ec2NetworkTagsIamIntegrationTest.java @@ -0,0 +1,114 @@ +package io.floci.aws.core.common; + +import io.floci.aws.testing.AwsTestClients; +import io.floci.aws.testing.EnforcementFixtures; +import io.floci.aws.testing.EnforcementFixtures.UserCredentials; +import io.floci.aws.testing.IamEnforcementProfile; +import io.floci.aws.testing.PartitionCleanup; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.ec2.Ec2Client; +import software.amazon.awssdk.services.ec2.model.Tag; + +import java.net.URI; +import java.util.List; +import java.util.UUID; + +import static io.floci.aws.testing.AwsSdkErrors.assertAwsError; +import static io.floci.aws.testing.EnforcementFixtures.auth; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; + +@QuarkusTest +@TestProfile(IamEnforcementProfile.class) +class Ec2NetworkTagsIamIntegrationTest { + + @TestHTTPResource("/") + URI endpoint; + + @RegisterExtension + final PartitionCleanup cleanup = new PartitionCleanup(); + + @Test + void networkTagBatchesAuthorizeEachResourceAndItsOwnStoredTags() { + String user = "network-tags-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), user); + try (Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint); + Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint)) { + String vpc = admin.createVpc(r -> r.cidrBlock("10.206.0.0/16")).vpc().vpcId(); + String subnet = admin.createSubnet(r -> r.vpcId(vpc).cidrBlock("10.206.1.0/24")).subnet().subnetId(); + String group = admin.describeSecurityGroups(r -> r.filters(f -> f.name("vpc-id").values(vpc))) + .securityGroups().getFirst().groupId(); + String acl = admin.describeNetworkAcls(r -> r.filters(f -> f.name("vpc-id").values(vpc))) + .networkAcls().getFirst().networkAclId(); + String route = admin.describeRouteTables(r -> r.filters(f -> f.name("vpc-id").values(vpc))) + .routeTables().getFirst().routeTableId(); + String eni = admin.createNetworkInterface(r -> r.subnetId(subnet).groups(group)) + .networkInterface().networkInterfaceId(); + List ids = List.of(group, acl, route, eni); + String resources = """ + ["arn:aws:ec2:us-east-1:000000000000:security-group/*", + "arn:aws:ec2:us-east-1:000000000000:network-acl/*", + "arn:aws:ec2:us-east-1:000000000000:route-table/*", + "arn:aws:ec2:us-east-1:000000000000:network-interface/*"] + """; + String grant = """ + {"Effect":"Allow","Action":"ec2:CreateTags","Resource":%s, + "Condition":{"StringEquals":{"aws:RequestTag/Owner":"owner"}, + "ForAllValues:StringEquals":{"aws:TagKeys":["Owner"]}, + "StringEqualsIfExists":{"aws:ResourceTag/Owner":"${aws:RequestTag/Owner}"}, + "Null":{"aws:ResourceTag/ManagedBy":"true"}}}, + {"Effect":"Allow","Action":"ec2:DeleteTags","Resource":%s, + "Condition":{"StringEquals":{"aws:ResourceTag/Owner":"owner"}}} + """.formatted(resources, resources); + try { + policy(user, grant); + client.createTags(r -> r.resources(ids).tags(owner("owner"))); + assertEquals(4, admin.describeTags(r -> r.filters(f -> f.name("resource-id").values(ids))) + .tags().stream().filter(t -> "Owner".equals(t.key()) && "owner".equals(t.value())).count()); + admin.createTags(r -> r.resources(eni).tags(owner("foreign"))); + assertAwsError("UnauthorizedOperation", 403, + () -> client.createTags(r -> r.resources(ids).tags(owner("owner")))); + assertAwsError("UnauthorizedOperation", 403, + () -> client.deleteTags(r -> r.resources(ids).tags(owner("owner")))); + assertEquals(4, admin.describeTags(r -> r.filters(f -> f.name("resource-id").values(ids))) + .tags().stream().filter(t -> "Owner".equals(t.key())).count()); + admin.createTags(r -> r.resources(eni).tags(owner("owner"))); + policy(user, grant + "," + """ + {"Effect":"Deny","Action":["ec2:CreateTags","ec2:DeleteTags"], + "Resource":"arn:aws:ec2:us-east-1:000000000000:network-interface/%s"} + """.formatted(eni)); + assertAwsError("UnauthorizedOperation", 403, + () -> client.createTags(r -> r.resources(ids).tags(owner("owner")))); + assertAwsError("UnauthorizedOperation", 403, + () -> client.deleteTags(r -> r.resources(ids).tags(owner("owner")))); + policy(user, grant); + // A resource type not covered by the grants must not borrow a preceding target's ARN. + assertAwsError("UnauthorizedOperation", 403, + () -> client.createTags(r -> r.resources(group, vpc).tags(owner("owner")))); + client.deleteTags(r -> r.resources(ids).tags(owner("owner"))); + assertTrue(admin.describeTags(r -> r.filters(f -> f.name("resource-id").values(ids))).tags().stream() + .noneMatch(t -> "Owner".equals(t.key()))); + } finally { + admin.deleteNetworkInterface(r -> r.networkInterfaceId(eni)); + admin.deleteSubnet(r -> r.subnetId(subnet)); + admin.deleteVpc(r -> r.vpcId(vpc)); + } + } + } + + private void policy(String user, String statements) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth("000000000000", "iam"), user, "tags", + "{\"Version\":\"2012-10-17\",\"Statement\":[" + statements + "]}"); + } + + private static Tag owner(String value) { + return Tag.builder().key("Owner").value(value).build(); + } +} diff --git a/src/test/java/io/floci/aws/core/common/Ec2VpcResourceTagsIntegrationTest.java b/src/test/java/io/floci/aws/core/common/Ec2VpcResourceTagsIntegrationTest.java new file mode 100644 index 0000000000..229c13785e --- /dev/null +++ b/src/test/java/io/floci/aws/core/common/Ec2VpcResourceTagsIntegrationTest.java @@ -0,0 +1,93 @@ +package io.floci.aws.core.common; + +import io.floci.aws.testing.AwsTestClients; +import io.floci.aws.testing.EnforcementFixtures; +import io.floci.aws.testing.EnforcementFixtures.UserCredentials; +import io.floci.aws.testing.IamEnforcementProfile; +import io.floci.aws.testing.PartitionCleanup; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import org.junit.jupiter.api.extension.RegisterExtension; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.ec2.Ec2Client; +import software.amazon.awssdk.services.ec2.model.ResourceType; +import software.amazon.awssdk.services.ec2.model.Tag; +import software.amazon.awssdk.services.ec2.model.TagSpecification; +import software.amazon.awssdk.services.ec2.model.VpcAttributeName; + +import java.net.URI; +import java.util.UUID; + +import static io.floci.aws.testing.AwsSdkErrors.assertAwsError; +import static io.floci.aws.testing.EnforcementFixtures.auth; +import static org.junit.jupiter.api.Assertions.assertTrue; + +@QuarkusTest +@TestProfile(IamEnforcementProfile.class) +class Ec2VpcResourceTagsIntegrationTest { + + @TestHTTPResource("/") + URI endpoint; + + @RegisterExtension + final PartitionCleanup cleanup = new PartitionCleanup(); + + @ParameterizedTest + @ValueSource(strings = {"aws:ResourceTag/", "ec2:ResourceTag/"}) + void modifyVpcAttributeUsesTheTargetsCurrentTagsAndHonorsDeny(String prefix) { + String user = "vpc-tag-" + UUID.randomUUID(); + UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), + auth("000000000000", "iam"), user); + String allow = """ + {"Effect":"Allow","Action":"ec2:ModifyVpcAttribute", + "Resource":"arn:aws:ec2:us-east-1:000000000000:vpc/*", + "Condition":{"StringEquals":{"%sManagedBy":"integration-test"}}} + """.formatted(prefix); + try (Ec2Client admin = AwsTestClients.create(Ec2Client.builder(), "000000000000", Region.US_EAST_1, endpoint); + Ec2Client client = AwsTestClients.create(Ec2Client.builder(), credentials.accessKeyId(), + credentials.secretAccessKey(), Region.US_EAST_1, endpoint)) { + String owned = create(admin, "integration-test"); + String other = create(admin, "other"); + String untagged = admin.createVpc(r -> r.cidrBlock("10.203.0.0/16")).vpc().vpcId(); + try { + policy(user, allow); + client.modifyVpcAttribute(r -> r.vpcId(owned).enableDnsHostnames(a -> a.value(true))); + assertTrue(admin.describeVpcAttribute(r -> r.vpcId(owned) + .attribute(VpcAttributeName.ENABLE_DNS_HOSTNAMES)).enableDnsHostnames().value()); + denied(client, other); + denied(client, untagged); + policy(user, allow + "," + """ + {"Effect":"Deny","Action":"ec2:ModifyVpcAttribute", + "Resource":"arn:aws:ec2:us-east-1:000000000000:vpc/%s"} + """.formatted(owned)); + denied(client, owned); + policy(user, allow); + admin.createTags(r -> r.resources(owned).tags(Tag.builder().key("ManagedBy").value("other").build())); + denied(client, owned); + } finally { + for (String id : new String[]{owned, other, untagged}) { + admin.deleteVpc(r -> r.vpcId(id)); + } + } + } + } + + private String create(Ec2Client client, String owner) { + return client.createVpc(r -> r.cidrBlock("10.202.0.0/16") + .tagSpecifications(TagSpecification.builder().resourceType(ResourceType.VPC) + .tags(Tag.builder().key("ManagedBy").value(owner).build()).build())).vpc().vpcId(); + } + + private void denied(Ec2Client client, String vpcId) { + assertAwsError("UnauthorizedOperation", 403, + () -> client.modifyVpcAttribute(r -> r.vpcId(vpcId).enableDnsHostnames(a -> a.value(true)))); + } + + private void policy(String user, String statements) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth("000000000000", "iam"), user, + "modify", "{\"Version\":\"2012-10-17\",\"Statement\":[" + statements + "]}"); + } +} diff --git a/src/test/java/io/floci/aws/core/common/RequestResourceMembersTest.java b/src/test/java/io/floci/aws/core/common/RequestResourceMembersTest.java index 08cf97d1be..2267d20170 100644 --- a/src/test/java/io/floci/aws/core/common/RequestResourceMembersTest.java +++ b/src/test/java/io/floci/aws/core/common/RequestResourceMembersTest.java @@ -447,7 +447,10 @@ class RequestResourceMembersTest { } String sent = where == null ? value : "other"; put(body, member, sent); - form.append('&').append(parameter(member)).append('=').append(encoded(sent)); + String ec2Wire = table.ec2Query().getOrDefault(operation.getKey(), Map.of()).get(member); + String parameter = ec2Wire == null ? parameter(member) + : ec2Wire + (member.list() ? ".1" : ""); + form.append('&').append(parameter).append('=').append(encoded(sent)); }); List named = operation.getValue().stream() .filter(other -> (other == resource || named(other) || sharesAMember(other, given) diff --git a/src/test/java/io/floci/aws/core/common/RequestResourcesTest.java b/src/test/java/io/floci/aws/core/common/RequestResourcesTest.java index b787c81bdd..ee56234bc8 100644 --- a/src/test/java/io/floci/aws/core/common/RequestResourcesTest.java +++ b/src/test/java/io/floci/aws/core/common/RequestResourcesTest.java @@ -31,6 +31,7 @@ class RequestResourcesTest { private static final ObjectMapper CBOR = new ObjectMapper(new CBORFactory()); private static final String MACHINE = "arn:aws:states:us-east-1:000000000000:stateMachine:orders"; private static final RegionResolver US_EAST_1 = new RegionResolver("us-east-1", "000000000000"); + /** EventBridge as it answers the reader: the Region's default bus, {@code event-bus/default}. */ private static final StoredResourceArns EVENTS = new StoredResourceArns() { @Override @@ -50,6 +51,34 @@ class RequestResourcesTest { } }; + @Test + void ec2ListsUseSdkWireNamesAndIgnoreForgedQuerySpellings() { + String prefix = "arn:aws:ec2:us-east-1:000000000000:"; + List expected = List.of(prefix + "network-interface/*", prefix + "security-group/sg-one", + prefix + "security-group/sg-two", prefix + "subnet/subnet-one"); + assertEquals(expected, of("ec2:CreateNetworkInterface", form("Action=CreateNetworkInterface" + + "&SubnetId=subnet-one&SecurityGroupId.1=sg-one&SecurityGroupId.2=sg-two" + + "&Groups.member.1=sg-forged&Groups.2=sg-forged&Groups=sg-forged"))); + assertEquals(expected, of("ec2:CreateNetworkInterface", json(""" + {"SubnetId":"subnet-one","Groups":["sg-one","sg-two"]} + """))); + } + + @Test + void createVpcChecksItsNewArnAndOnlyThePoolsPresentInTheRequest() { + String prefix = "arn:aws:ec2:us-east-1:000000000000:"; + assertEquals(List.of(prefix + "vpc/*"), of("ec2:CreateVpc", json("{\"CidrBlock\":\"10.0.0.0/16\"}"))); + assertEquals(List.of("arn:aws:ec2::000000000000:ipam-pool/ipam-pool-v4", + prefix + "ipv6pool-ec2/ipv6pool-one", prefix + "vpc/*", + "arn:aws:ec2::000000000000:ipam-pool/ipam-pool-v6"), + of("ec2:CreateVpc", json(""" + {"Ipv4IpamPoolId":"ipam-pool-v4","Ipv6IpamPoolId":"ipam-pool-v6", + "Ipv6Pool":"ipv6pool-one"} + """))); + assertEquals(List.of(prefix + "vpc/*", "arn:aws:ec2::000000000000:ipam-pool/ipam-pool-v6"), + of("ec2:CreateVpc", json("{\"Ipv6IpamPoolId\":\"ipam-pool-v6\"}"))); + } + @Test void inferredLandingZoneIdentifiersKeepRawContextAcrossOperations() { String arn = "arn:aws:controltower:::landingzone/missing"; diff --git a/tools/aws/regen_iam_request_resources.py b/tools/aws/regen_iam_request_resources.py index 2d15317f4c..334089a64e 100644 --- a/tools/aws/regen_iam_request_resources.py +++ b/tools/aws/regen_iam_request_resources.py @@ -94,13 +94,16 @@ follow the rule unchanged: a family of a hand-built namespace whose requests nam way the rule reads them. `HAND_BUILT` are the namespaces `ResourceArnBuilder` builds resources for itself, and `NOT_COVERED` the ones Floci serves that are not read yet, each with its reason; `RequestResourceNamespacesIntegrationTest` fails for a served namespace in none of the three. -`ID_TARGETS` is Floci's coverage of id-list namespaces, the types of each it reads by id (EC2's instances): a -resource ARN's variable names its list member, with the request's list of whatever resources it acts on -(`Resources`) as a fallback. Botocore supplies its serialized EC2 Query name (including queryName and -capitalization), and the id prefix botocore documents each type with ("the instance ID (for example, -i-0123456789abcdef0)") distinguishes them. `resourceTagKeys` comes from those types' Service Reference condition keys. Each generated `targets` entry preserves the -request's order and duplicates, including a wildcard for each unsupported id; only resolved ARNs -use the corresponding target's condition context. Other requests in those namespaces stay on `*`. +`ID_TARGETS` is Floci's coverage of id-list namespaces, the types of each it reads by id (EC2's instances and +network resources): a resource ARN's variable names its list member, with the request's list of whatever resources +it acts on (`Resources`) as a fallback. A list a type's variable names is the request's targets only when the +request names nothing else the action acts on. Botocore supplies its serialized EC2 Query name (including queryName +and capitalization), and the id prefix botocore gives each type, in its documentation ("the instance ID (for +example, i-0123456789abcdef0)") or its examples (`"GroupId": "sg-903004f8"`), distinguishes them. Each generated +`targets` entry preserves the request's order and duplicates, including a wildcard for each unsupported id; only +resolved ARNs use the corresponding target's condition context. Every other request of those namespaces is read by +the ordinary rules, its EC2 Query wire names (`ec2Query`) from botocore. `resourceTagKeys` gives every type of those +namespaces its Service Reference resource-tag condition keys, as their service keeps tags by resource id. Beyond the members' names, botocore's shapes and documentation say what a member names, and the rule reads them: - a member whose documentation names the type, word for word ("The name of the pipeline to start"), fills its variable when it is the kind the variable is (a name, an id), and is found by the type's service otherwise @@ -217,7 +220,9 @@ from regen_iam_passed_roles import ( load_models, namespace_of, ) +from regen_partitions import load_model as load_json_file from regen_partitions import resolve_botocore_data +from regen_query_services import latest_model_dir from regen_rest_routes import MODELS as REST_MODELS REPO_ROOT = Path(__file__).resolve().parents[2] @@ -418,15 +423,17 @@ KNOWN_VARIABLES = {"Partition", "Region", "Account"} # Floci's coverage of id-list namespaces: the types of each it reads by id, which ResourceArnBuilder and the condition # resolver resolve with their stored tags. It states no AWS fact: the model supplies each list member and its wire -# name, the Service Reference the action's types and ARN formats, and botocore's documentation the id prefix of each -# type (`id_prefixes`). Other ids keep a wildcard entry until their coverage grows; requests without those lists stay -# unchanged. -ID_TARGETS = {"ec2": ("instance",)} +# name, the Service Reference the action's types and ARN formats, and botocore's documentation and examples the id +# prefix of each type (`id_prefixes`). Other ids keep a wildcard entry until their coverage grows; every request +# without those lists is read by the ordinary rules. +ID_TARGETS = {"ec2": ("instance", "network-acl", "network-interface", "route-table", "security-group")} # An ARN format's account given as `${AccountId}`, the account `${Account}` gives in every other format. ACCOUNT_ID_SLOT_RE = re.compile(r"^(arn:[^:]*:[^:]*:[^:]*:)\$\{AccountId}:") VARIABLE_RE = re.compile(r"\$\{(\w+)}") # A type's id with the example botocore documents it by: "the instance ID (for example, i-0123456789abcdef0)". ID_EXAMPLE_RE = re.compile(r"\b([a-z][a-z ]*?) ID \(for example, ([a-z0-9]+-)[0-9a-f]{8,}\)") +# An id one of botocore's request or response examples gives a member: "GroupId": "sg-903004f8". +EXAMPLE_ID_RE = re.compile(r"^([a-z0-9]+-)[0-9a-f]{8,17}$") # A sentence of botocore's documentation stating the members that key a type: " are uniquely identified by the # combination of ". UNIQUE_KEY_RE = re.compile(r"(?P[A-Za-z][A-Za-z ]*?) (?:are|is) uniquely identified by (?:the )?combination of " @@ -499,14 +506,17 @@ def checked_actions(documents: list[dict]) -> dict[str, dict]: def resource_tag_keys(documents: list[dict]) -> dict[str, dict[str, list[str]]]: - """Stored-tag key prefixes for the resource types the id-target reader supports.""" + """Stored-tag key prefixes for every resource type of the id-target namespaces, as the Service Reference gives each + type's resource-tag condition keys: their service keeps a resource's tags by its id, whatever its type.""" result = {} for document in documents: namespace = document["Name"] - supported = ID_TARGETS.get(namespace, ()) + if namespace not in ID_TARGETS: + continue types = {resource["Name"]: sorted(key.removesuffix("${TagKey}") for key in resource.get("ConditionKeys", []) if key.endswith(":ResourceTag/${TagKey}")) - for resource in document.get("Resources", []) if resource["Name"] in supported} + for resource in document.get("Resources", [])} + types = {kind: keys for kind, keys in types.items() if keys} if types: result[namespace] = dict(sorted(types.items())) return dict(sorted(result.items())) @@ -696,7 +706,9 @@ def documented_members(models: dict[str, dict], operation: str) -> dict[str, dic for field, nested in shape.get("members", {}).items()] for path, item, item_shape in entries: strings = _strings(model, item_shape) - if strings is None: + # A list inside a structure (`InstanceSpecification.ExcludeDataVolumeIds`) is no path the vendored + # file or its reader takes, so it names nothing. + if strings is None or "." in path and strings: continue element = model["shapes"][item_shape["member"]["shape"]] if item_shape["type"] == "list" else item_shape found.setdefault(path, {"path": path + strings, "nested": "." in path, @@ -1460,7 +1472,7 @@ def resources_for(operation: str, types: list[str], formats: dict[str, str], mem kept += kinds if len(kinds) == 1 else (full if len(full) == 1 else []) specs = [{"types": kinds, "arn": arns[member]} for member, kinds in sorted(by_arn.items())] return specs + [{"type": kind, "fill": dict(sorted(filled[kind].items()))} for kind in types if kind in kept] + \ - also_filled(types, members, filled, kept, used, aliased or set()) + also_filled(types, members, filled, kept, used, aliased or set(), shapes) RESOURCE_PART_RE = re.compile(r"^arn:\$\{Partition}:[^:]*:[^:]*:[^:]*:([A-Za-z][A-Za-z0-9-]*)(.*)$") @@ -1493,6 +1505,40 @@ def with_made(resources: list[dict], operation: str, formats: dict[str, str]) -> for resource, is_made in zip(resources, made, strict=True)] +def with_documented_creation(resources: list[dict], operation: str, types: list[str], + formats: dict[str, str], models: dict[str, dict]) -> list[dict]: + """A create whose name differs from its type can name it in the operation's opening sentence: + AllocateAddress 'Allocates an Elastic IP address'. Require that direct object and the type's sole + ARN id as a string in the response, absent from the request. Pool ids echoed in the response and + types mentioned later in the documentation do not identify a newly created resource.""" + name = operation.split(":", 1)[1] + verb = CREATING_RE.match(name) + if not verb: + return resources + named = {kind for resource in resources for kind in _kinds(resource)} + added = [] + for kind in types: + variables = set(VARIABLE_RE.findall(formats.get(kind, ""))) - KNOWN_VARIABLES + if kind in named or len(variables) != 1: + continue + variable = next(iter(variables)) + if kind_of(variable) != "id": + continue + phrase = r"[ -]+".join(re.escape(word) for word in re.split(r"[ -]+", kind.lower())) + opening = rf"^{verb.group().lower()}s? (?:a |an |the )?{phrase}\b" + for model in models.values(): + spec = model["operations"].get(name, {}) + if "input" not in spec or "output" not in spec or not re.match(opening, _lead(spec.get("documentation"))): + continue + inputs = model["shapes"][spec["input"]["shape"]].get("members", {}) + outputs = model["shapes"][spec["output"]["shape"]].get("members", {}) + if variable not in inputs and variable in outputs \ + and model["shapes"][outputs[variable]["shape"]]["type"] == "string": + added.append({"type": kind, "fill": {}, "made": True}) + break + return resources + added + + def child_id(child: str, parent: str) -> str | None: """The variable a child type's ARN format adds to its parent's: the parent's with its leading resource type word replaced and one id appended (`listener/app/.../${ListenerId}` for `loadbalancer/app/...`); None for any other.""" @@ -1596,7 +1642,8 @@ def _filling(variable: str, kind_stem: str, variables: int, names: dict[str, str def also_filled(types: list[str], members: dict[str, str], filled: dict[str, dict[str, str]], - kept: list[str], used: dict[str, str], aliased: set[str]) -> list[dict]: + kept: list[str], used: dict[str, str], aliased: set[str], + shapes: dict[str, str] | None = None) -> list[dict]: """The resources a request names besides the one it fills a type with, when it names several of that type and acts on each of them. @@ -1613,7 +1660,15 @@ def also_filled(types: list[str], members: dict[str, str], filled: dict[str, dic for member in sorted(members): if used.get(kind) == member: continue - if member not in aliased or not names_type(member, kind_stem): + # Two qualified ids of the same modeled id shape name separate resources: IPv4 and IPv6 IPAM pools. + selected = used.get(kind, "") + sibling_id = (len(filled[kind]) == 1 and kind_of(variable) == "id" + and kind_of(member) == "id" and kind_of(selected) == "id" + and stem(member) != stem(variable) and stem(selected) != stem(variable) + and stem(member).endswith(stem(variable)) and stem(selected).endswith(stem(variable)) + and (shapes or {}).get(member) == (shapes or {}).get(selected) + and stem((shapes or {}).get(member, "")) == stem(variable)) + if not sibling_id and (member not in aliased or not names_type(member, kind_stem)): continue if not compatible(member, variable): continue @@ -1633,10 +1688,52 @@ def names_type(member: str, kind_stem: str) -> bool: # --------------------------------------------------------------------------- # # The vendored document # --------------------------------------------------------------------------- # -def id_prefixes(models: dict[str, dict], kinds: tuple[str, ...]) -> dict[str, str]: - """The prefix botocore documents each type's ids with, "the instance ID (for example, i-0123456789abcdef0)", for the - types given; a type it gives no example of has none.""" +def load_examples(data: Path, clients: set[str]) -> dict[str, dict]: + """Each client's botocore `examples-1.json`, the requests and responses its API reference shows, for the clients + that have one.""" + examples = {} + for client in sorted(clients): + if not (data / client).is_dir(): + continue + directory = latest_model_dir(data, client) + for name in ("examples-1.json", "examples-1.json.gz"): + if (directory / name).is_file(): + examples[client] = load_json_file(directory / name) + break + return examples + + +def _example_ids(model: dict, shape_name: str, value: object, found: list[tuple[str, str]]) -> None: + """The ids an example's value gives, each with the string shape botocore declares for its member: the + `SecurityGroupId` a `GroupId` holds, or each of a `GroupIds` list.""" + shape = model["shapes"].get(shape_name, {}) + if isinstance(value, dict) and shape.get("type") == "structure": + members = shape.get("members", {}) + for name, item in value.items(): + if name in members: + _example_ids(model, members[name]["shape"], item, found) + elif isinstance(value, list) and shape.get("type") == "list": + for item in value: + _example_ids(model, shape["member"]["shape"], item, found) + elif isinstance(value, str) and shape.get("type") == "string": + match = EXAMPLE_ID_RE.match(value) + if match: + found.append((shape_name, match.group(1))) + + +def id_prefixes(models: dict[str, dict], kinds: tuple[str, ...], + examples: dict[str, dict] | None = None) -> dict[str, str]: + """The prefix botocore gives each type's ids, for the types given: in its documentation, "the instance ID (for + example, i-0123456789abcdef0)", and in its examples, the ids of the members whose shape names the type + (`"GroupId": "sg-903004f8"`, a `SecurityGroupId`). The prefix given most wins; a type with none has none.""" counts: dict[str, dict[str, int]] = {} + + def count(named: str, prefix: str) -> None: + kind = next((kind for kind in kinds if stem(kind) == stem(named)), None) + if kind: + counts.setdefault(kind, {}).setdefault(prefix, 0) + counts[kind][prefix] += 1 + for model in models.values(): for shape in model["shapes"].values(): for member in shape.get("members", {}).values(): @@ -1645,23 +1742,35 @@ def id_prefixes(models: dict[str, dict], kinds: tuple[str, ...]) -> dict[str, st continue text = re.sub(r"\s+", " ", re.sub(r"<[^>]+>", "", documentation)) for named, prefix in ID_EXAMPLE_RE.findall(text): - kind = next((kind for kind in kinds if stem(kind) == stem(named.split()[-1])), None) - if kind: - counts.setdefault(kind, {}).setdefault(prefix, 0) - counts[kind][prefix] += 1 + count(named.split()[-1], prefix) + for client, document in sorted((examples or {}).items()): + model = models.get(client) + if model is None: + continue + for operation, shown in sorted(document.get("examples", {}).items()): + spec = model["operations"].get(operation, {}) + for example in shown: + found: list[tuple[str, str]] = [] + for part in ("input", "output"): + if part in spec and isinstance(example.get(part), dict): + _example_ids(model, spec[part]["shape"], example[part], found) + for shape_name, prefix in found: + count(shape_name, prefix) return {kind: max(found, key=found.get) for kind, found in sorted(counts.items())} -def namespace_id_prefixes(namespace: str, models: dict[str, dict]) -> dict[str, str] | None: +def namespace_id_prefixes(namespace: str, models: dict[str, dict], + examples: dict[str, dict] | None = None) -> dict[str, str] | None: """`id_prefixes` of the types `ID_TARGETS` reads by id in the namespace; None for a namespace it reads none of.""" - return id_prefixes(models, ID_TARGETS[namespace]) if namespace in ID_TARGETS else None + return id_prefixes(models, ID_TARGETS[namespace], examples) if namespace in ID_TARGETS else None def id_targets(operation: str, types: list[str], formats: dict[str, str], models: dict[str, dict], known: dict[str, str] | None = None) -> dict | None: """An id list, in model and EC2 Query spelling, with each type `ID_TARGETS` reads by id's discriminator, the prefix - botocore documents its ids with (`id_prefixes`): the list a type's ARN variable names, or else the request's list - of whatever resources it acts on (`Resources`, of the tagging calls).""" + botocore gives its ids (`id_prefixes`): the list a type's ARN variable names, when the request names nothing else + the action acts on, or else the request's list of whatever resources it acts on (`Resources`, of the tagging + calls). None when the request has neither, and the ordinary rules read it.""" configured = ID_TARGETS.get(namespace_of(operation)) if configured is None: return None @@ -1678,7 +1787,9 @@ def id_targets(operation: str, types: list[str], formats: dict[str, str], models if _strings(model, model["shapes"][member["shape"]]) == "[]" and name.lower().removesuffix("s") in {variable.lower() for variable in variables}] if len(candidates) > 1: - raise ValueError(f"{operation}: several id lists name the target: {candidates}") + # Lists of several types (a VPC endpoint's `RouteTableIds` and `SecurityGroupIds`) name more than one + # thing the action acts on, which the ordinary rules read. + continue listed = [name for name, member in members.items() if stem(name) == "resource" and _strings(model, model["shapes"][member["shape"]]) == "[]"] member_name = candidates[0] if candidates else listed[0] if len(listed) == 1 else None @@ -1686,6 +1797,19 @@ def id_targets(operation: str, types: list[str], formats: dict[str, str], models if member is None or _strings(model, model["shapes"][member["shape"]]) != "[]": continue prefixes = {kind: prefix for kind, prefix in known.items() if kind in types and kind in formats} + if candidates: + # A list a type's ARN variable names holds that type's ids alone, and it is all the request acts on only + # when the request names nothing else the action acts on: a launch's `SecurityGroupIds` sit beside its + # image, subnet and key pair, so they are not its targets. + listed_as = member_name.lower().removesuffix("s") + prefixes = {kind: prefix for kind, prefix in prefixes.items() + if listed_as in {variable.lower() for variable in VARIABLE_RE.findall(formats[kind])}} + others = {kind for resource in by_client(operation, models, + lambda read: read_resources(operation, types, formats, read), + formats) + for kind in _kinds(resource)} - set(prefixes) + if others: + continue if not prefixes: continue for kind in prefixes: @@ -1701,6 +1825,29 @@ def id_targets(operation: str, types: list[str], formats: dict[str, str], models return found +def ec2_query_members(operation: str, models: dict[str, dict], named: set[str]) -> dict[str, str]: + """Wire names for the top-level EC2 members the rules read. EC2 lists use Name.N, + unlike Query's Name.member.N; locationName/queryName can also rename a member.""" + result = {} + for model in models.values(): + spec = model["operations"].get(operation.split(":", 1)[1], {}) + if "ec2" not in _protocols(model) or "input" not in spec: + continue + for name, member in model["shapes"][spec["input"]["shape"]].get("members", {}).items(): + shape = model["shapes"][member["shape"]] + suffix = _strings(model, shape) + if name not in named or suffix is None: + continue + location = member.get("locationName", name) + wire = member.get("queryName", location[:1].upper() + location[1:]) + if suffix or wire != name: + path = name + suffix + if path in result and result[path] != wire: + raise ValueError(f"{operation}: clients disagree on {name}'s EC2 Query name") + result[path] = wire + return result + + def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: dict[str, dict], known: dict[str, str] | None = None, forwarded: dict[str, dict] | None = None) -> dict: """What the file says for one operation, `forwarded` being what the file records of each action `FORWARDED` @@ -1713,13 +1860,11 @@ def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: d arn_members = {member for member, values in patterns.items() if (kind_of(member) == "identifier" or stem(member) in ("", "resource")) and values and all(only_arn(value) for value in values)} - if namespace_of(operation) in ID_TARGETS: - entry = {"action": upstream["action"], "types": types, "resources": []} - targets = id_targets(operation, types, formats, models, known) - if targets is not None: - entry["targets"] = targets - return entry + targets = id_targets(operation, types, formats, models, known) if namespace_of(operation) in ID_TARGETS else None + if targets is not None: + return {"action": upstream["action"], "types": types, "resources": [], "targets": targets} resources = by_client(operation, models, lambda read: read_resources(operation, types, formats, read), formats) + resources = with_documented_creation(resources, operation, types, formats, models) resources = with_made(resources, operation, formats) if operation in MEASURED: resources = measured_resources(operation, types, formats, resources) @@ -1732,6 +1877,9 @@ def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: d if makes: entry["makes"] = makes named = _named(resources) | _named(creates) | _named(makes) + query_members = ec2_query_members(operation, models, named) + if query_members: + entry["ec2Query"] = query_members located = {member: where for member, where in located_members(models, operation.split(":", 1)[1]).items() if member in named} if located: @@ -2255,7 +2403,8 @@ def build(documents: list[dict], provenance: str, data: Path, botocore: str) -> check_forwarded(authorized_by(documents)) forwarded = forwarded_actions(documents) operations = {} - prefixes = {namespace: namespace_id_prefixes(namespace, load_models(data, set(namespaces[namespace]))) + prefixes = {namespace: namespace_id_prefixes(namespace, load_models(data, set(namespaces[namespace])), + load_examples(data, set(namespaces[namespace]))) for namespace in ID_TARGETS if namespace in namespaces} for operation, value in sorted(covered.items()): models = load_models(data, set(namespaces[namespace_of(operation)])) @@ -2473,7 +2622,7 @@ def validate(document: dict) -> list[str]: problems.append(f"{operation!r} is not an operation of a namespace the file reads") continue if not isinstance(entry, dict) or not {"action", "types", "resources"} <= set(entry) <= { - "action", "types", "resources", "creates", "makes", "located", "targets", "forwarded"}: + "action", "types", "resources", "creates", "makes", "located", "targets", "forwarded", "ec2Query"}: problems.append(f"{operation} is not an action, its types and its resources") continue if not isinstance(entry["action"], str) or not OPERATION_RE.match(entry["action"]) \ @@ -2513,6 +2662,13 @@ def validate(document: dict) -> list[str]: values = [p for p in prefixes.values() if isinstance(p, str)] if any(a.startswith(b) for i, a in enumerate(values) for j, b in enumerate(values) if i != j): problems.append(f"{operation} has ambiguous id prefixes") + query_members = entry.get("ec2Query") + if query_members is not None and (namespace != "ec2" or not isinstance(query_members, dict) + or not query_members or not all(isinstance(member, str) + and re.fullmatch(r"[A-Za-z][A-Za-z0-9_]*(\[\])?", member) + and isinstance(wire, str) and re.fullmatch(r"[A-Za-z][A-Za-z0-9_]*", wire) + for member, wire in query_members.items())): + problems.append(f"{operation} has invalid EC2 Query member names") located = entry.get("located", {}) if not isinstance(located, dict) or not located and "located" in entry or not all( isinstance(member, str) and PATH_RE.match(member) and isinstance(where, str) and LOCATED_RE.match(where) @@ -2644,7 +2800,8 @@ def derive(document: dict, data: Path) -> list[str]: if sorted(document["forwardedActions"]) != named: problems.append(f"the file records {sorted(document['forwardedActions'])} as forwarded actions, FORWARDED " f"names {named}") - prefixes = {namespace: namespace_id_prefixes(namespace, load_models(data, set(document["namespaces"][namespace]))) + prefixes = {namespace: namespace_id_prefixes(namespace, load_models(data, set(document["namespaces"][namespace])), + load_examples(data, set(document["namespaces"][namespace]))) for namespace in ID_TARGETS if namespace in document["namespaces"]} for operation, entry in document["operations"].items(): namespace = namespace_of(operation) diff --git a/tools/aws/test_regen_iam_request_resources.py b/tools/aws/test_regen_iam_request_resources.py index a0de1ff0b4..4d467b7bc4 100644 --- a/tools/aws/test_regen_iam_request_resources.py +++ b/tools/aws/test_regen_iam_request_resources.py @@ -1262,6 +1262,24 @@ def with_instance_example(model_: dict) -> dict: return model_ +def test_create_vpc_reads_the_new_vpc_and_each_optional_pool(): + ec2 = model({"CreateVpc": {"CidrBlock": "String", "Ipv4IpamPoolId": "IpamPoolId", + "Ipv6IpamPoolId": "IpamPoolId", "Ipv6Pool": "Ipv6PoolEc2Id"}}, "ec2") + ec2["shapes"]["IpamPoolId"] = {"type": "string"} + ec2["shapes"]["Ipv6PoolEc2Id"] = {"type": "string"} + formats = {"vpc": "arn:${Partition}:ec2:${Region}:${Account}:vpc/${VpcId}", + "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/${IpamPoolId}", + "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/${Ipv6PoolEc2Id}"} + upstream = {"action": "ec2:CreateVpc", "types": ["ipam-pool", "ipv6pool-ec2", "vpc"]} + entry = r.entry_for("ec2:CreateVpc", upstream, formats, {"ec2": ec2}) + assert entry["resources"] == [ + {"type": "ipam-pool", "fill": {"IpamPoolId": "Ipv4IpamPoolId"}}, + {"type": "ipv6pool-ec2", "fill": {"Ipv6PoolEc2Id": "Ipv6Pool"}}, + {"type": "vpc", "fill": {}, "made": True}, + {"type": "ipam-pool", "fill": {"IpamPoolId": "Ipv6IpamPoolId"}}] + assert "targets" not in entry + + def test_id_targets_follow_the_model_and_resource_types_not_operation_names(): ec2 = with_instance_example(model({"AnnotateResources": {"Resources": "Strings"}}, "ec2")) member = ec2["shapes"]["AnnotateResourcesIn"]["members"]["Resources"] @@ -1301,7 +1319,9 @@ def test_generated_targets_match_botocores_actual_serialization(operation, targe operation_model = model.operation_model(name) parameters = ArgumentGenerator().generate_skeleton(operation_model.input_shape) parameters[target["member"].removesuffix("[]")] = ids - request = create_serializer(model.metadata["protocol"]).serialize_to_request(parameters, operation_model) + # The skeleton's other members are placeholders (an empty tag key), so only the serialization is checked. + request = create_serializer(model.metadata["protocol"], include_validation=False).serialize_to_request( + parameters, operation_model) assert [request["body"][target["query"] + "." + str(i)] for i in range(1, 4)] == ids checked += 1 assert checked > 0 @@ -1331,15 +1351,34 @@ def test_instance_target_member_is_derived_from_the_arn_variable_not_the_action_ renamed_formats, {"ec2": renamed})["targets"]["member"] == "MachineIds[]" -def test_resource_tag_prefixes_come_only_from_supported_reference_resources(): +def test_resource_tag_prefixes_cover_every_type_of_an_id_target_namespace_from_the_reference(): documents = [{"Name": "ec2", "Resources": [ {"Name": "instance", "ConditionKeys": ["vendor:ResourceTag/${TagKey}", "aws:RequestTag/${TagKey}", "aws:ResourceTag/${TagKey}", "ec2:Region"]}, - {"Name": "volume", "ConditionKeys": ["volume:ResourceTag/${TagKey}"]}]}] - assert r.resource_tag_keys(documents) == {"ec2": {"instance": ["aws:ResourceTag/", "vendor:ResourceTag/"]}} + {"Name": "volume", "ConditionKeys": ["volume:ResourceTag/${TagKey}"]}, + {"Name": "untaggable", "ConditionKeys": ["ec2:Region"]}]}, + {"Name": "other", "Resources": [{"Name": "thing", "ConditionKeys": ["aws:ResourceTag/${TagKey}"]}]}] + assert r.resource_tag_keys(documents) == {"ec2": {"instance": ["aws:ResourceTag/", "vendor:ResourceTag/"], + "volume": ["volume:ResourceTag/"]}} assert r.resource_tag_keys([]) == {} +def test_id_prefixes_read_botocores_examples_by_the_shape_of_each_member(): + ec2 = model({"DescribeGroups": {"GroupIds": "GroupIdList", "Label": "String"}}, "ec2") + ec2["shapes"]["SecurityGroupId"] = {"type": "string"} + ec2["shapes"]["GroupIdList"] = {"type": "list", "member": {"shape": "SecurityGroupId"}} + ec2["operations"]["DescribeGroups"]["output"] = {"shape": "DescribeGroupsOut"} + ec2["shapes"]["DescribeGroupsOut"] = {"type": "structure", "members": {"GroupId": {"shape": "SecurityGroupId"}}} + examples = {"ec2": {"examples": {"DescribeGroups": [ + {"input": {"GroupIds": ["sg-903004f8", "sg-1a2b3c4d"], "Label": "lb-0123456789abcdef"}, + "output": {"GroupId": "sg-0a1b2c3d4e5f60718"}}, + {"input": {"GroupIds": ["xx-12345678"]}}]}}} + assert r.id_prefixes({"ec2": ec2}, ("security-group",), examples) == {"security-group": "sg-"} + # A String member's id-like value names no type, and without examples nothing is known. + assert r.id_prefixes({"ec2": ec2}, ("lb",), examples) == {} + assert r.id_prefixes({"ec2": ec2}, ("security-group",)) == {} + + def test_id_targets_reject_unknown_types_ambiguous_prefixes_and_malformed_members(): import copy @@ -1714,3 +1753,119 @@ def test_a_resource_id_variable_takes_a_member_named_so_and_a_bare_id_the_member # A bare `Id` is whatever the operation is about: the tenant's is its `DistributionTenantId`. assert r._filling("Id", "distributiontenant", 1, {"Id": "Id", "DistributionTenantId": "DistributionTenantId"}, {"Id"}) == "DistributionTenantId" + + +def test_vpc_operations_read_vpc_ids_and_stored_tag_keys(): + ec2 = model({"ModifyVpcAttribute": {"VpcId": "String"}}, "ec2") + formats = {"vpc": "arn:${Partition}:ec2:${Region}:${Account}:vpc/${VpcId}"} + assert r.entry_for("ec2:ModifyVpcAttribute", {"action": "ec2:ModifyVpcAttribute", "types": ["vpc"]}, + formats, {"ec2": ec2})["resources"] == [{"type": "vpc", "fill": {"VpcId": "VpcId"}}] + assert r.resource_tag_keys([{"Name": "ec2", "Resources": [{"Name": "vpc", "ConditionKeys": [ + "aws:ResourceTag/${TagKey}", "ec2:ResourceTag/${TagKey}", "ec2:Region"]}]}]) == { + "ec2": {"vpc": ["aws:ResourceTag/", "ec2:ResourceTag/"]}} + + +@pytest.mark.parametrize("operation,kind,variable", [ + ("CreateSubnet", "subnet", "SubnetId"), + ("CreateRouteTable", "route-table", "RouteTableId"), + ("CreateSecurityGroup", "security-group", "SecurityGroupId"), + ("CreateInternetGateway", "internet-gateway", "InternetGatewayId"), +]) +def test_network_creates_authorize_new_resource_and_existing_vpc(operation, kind, variable): + has_parent = operation != "CreateInternetGateway" + members = {"VpcId": "String"} if has_parent else {} + ec2 = model({operation: members}, "ec2") + formats = {kind: f"arn:${{Partition}}:ec2:${{Region}}:${{Account}}:{kind}/${{{variable}}}", + "vpc": "arn:${Partition}:ec2:${Region}:${Account}:vpc/${VpcId}"} + types = [kind, "vpc"] if has_parent else [kind] + entry = r.entry_for(f"ec2:{operation}", {"action": f"ec2:{operation}", "types": types}, + formats, {"ec2": ec2}) + expected = [{"type": kind, "fill": {}}] + if has_parent: + expected[0]["made"] = True + expected.append({"type": "vpc", "fill": {"VpcId": "VpcId"}}) + assert entry["resources"] == expected + + +@pytest.mark.parametrize("documentation,output_id,input_id,expected", [ + ("

Allocates an Elastic IP address to your account.

", True, False, True), + ("Allocates a pool for an Elastic IP address.", True, False, False), + ("Describes an Elastic IP address.", True, False, False), + ("Allocates an Elastic IP address.", False, False, False), + ("Allocates an Elastic IP address.", True, True, False), +]) +def test_documented_creation_requires_direct_object_and_new_response_id(documentation, output_id, input_id, expected): + ec2 = model({"AllocateAddress": {"AllocationId": "String"} if input_id else {}}, "ec2") + ec2["operations"]["AllocateAddress"].update(documentation=documentation, output={"shape": "Out"}) + ec2["shapes"]["Out"] = {"type": "structure", "members": { + "AllocationId" if output_id else "PublicIp": {"shape": "String"}}} + formats = {"elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/${AllocationId}"} + assert r.with_documented_creation([], "ec2:AllocateAddress", ["elastic-ip"], formats, {"ec2": ec2}) == ( + [{"type": "elastic-ip", "fill": {}, "made": True}] if expected else []) + + +def test_ec2_query_names_follow_model_serialization_and_only_read_resource_members(): + ec2 = model({"CreateNetworkInterface": {"Groups": "Strings", "SubnetId": "String", "Ignored": "Strings"}}, "ec2") + group = ec2["shapes"]["CreateNetworkInterfaceIn"]["members"]["Groups"] + group["locationName"] = "securityGroupId" + assert r.ec2_query_members("ec2:CreateNetworkInterface", {"ec2": ec2}, {"Groups", "SubnetId"}) == { + "Groups[]": "SecurityGroupId"} + group["queryName"] = "ExactGroupWireName" + assert r.ec2_query_members("ec2:CreateNetworkInterface", {"ec2": ec2}, {"Groups"}) == { + "Groups[]": "ExactGroupWireName"} + ec2["metadata"]["protocol"] = "query" + assert r.ec2_query_members("ec2:CreateNetworkInterface", {"ec2": ec2}, {"Groups"}) == {} + + +def test_a_typed_list_is_the_targets_only_when_the_request_names_nothing_else_the_action_acts_on(): + ec2 = model({"Launch": {"SecurityGroupIds": "Strings", "ImageId": "String"}, + "ApplyGroups": {"SecurityGroupIds": "Strings"}, + "AnnotateResources": {"Resources": "Strings"}}, "ec2") + formats = {"security-group": "arn:${Partition}:ec2:${Region}:${Account}:security-group/${SecurityGroupId}", + "image": "arn:${Partition}:ec2:${Region}::image/${ImageId}"} + known = {"security-group": "sg-"} + # A launch's groups sit beside its image: the ordinary rules read both, and the groups are not its targets. + launch = r.entry_for("ec2:Launch", {"action": "ec2:Launch", "types": ["image", "security-group"]}, + formats, {"ec2": ec2}, known) + assert "targets" not in launch + assert {"type": "image", "fill": {"ImageId": "ImageId"}} in launch["resources"] + applied = r.entry_for("ec2:ApplyGroups", {"action": "ec2:ApplyGroups", "types": ["security-group"]}, + formats, {"ec2": ec2}, known) + assert applied["targets"] == {"member": "SecurityGroupIds[]", "query": "SecurityGroupIds", + "prefixes": {"security-group": "sg-"}} + tags = r.entry_for("ec2:AnnotateResources", {"action": "ec2:AnnotateResources", "types": ["security-group"]}, + formats, {"ec2": ec2}, known) + assert tags["targets"]["prefixes"] == {"security-group": "sg-"} + + +def test_a_list_inside_a_structure_is_no_member_the_rules_read(): + ec2 = model({"CreateSnapshots": {"InstanceSpecification": "Specification"}}, "ec2") + ec2["shapes"]["Specification"] = {"type": "structure", "members": { + "InstanceId": {"shape": "String"}, "ExcludeDataVolumeIds": {"shape": "Strings"}}} + found = r.documented_members({"ec2": ec2}, "CreateSnapshots") + assert "InstanceSpecification.InstanceId" in found + assert "InstanceSpecification.ExcludeDataVolumeIds" not in found + + +def test_lists_of_several_types_are_read_by_the_ordinary_rules(): + ec2 = model({"CreateEndpoint": {"RouteTableIds": "Strings", "SecurityGroupIds": "Strings"}}, "ec2") + formats = {"route-table": "arn:${Partition}:ec2:${Region}:${Account}:route-table/${RouteTableId}", + "security-group": "arn:${Partition}:ec2:${Region}:${Account}:security-group/${SecurityGroupId}"} + entry = r.entry_for("ec2:CreateEndpoint", {"action": "ec2:CreateEndpoint", "types": ["route-table", "security-group"]}, + formats, {"ec2": ec2}, {"route-table": "rtb-", "security-group": "sg-"}) + assert "targets" not in entry + assert {kind for resource in entry["resources"] for kind in r._kinds(resource)} == {"route-table", "security-group"} + + +@pytest.mark.parametrize("operation,members,kinds", [ + ("AssociateAddress", {"AllocationId": "String", "InstanceId": "String", "NetworkInterfaceId": "String"}, + ["elastic-ip", "instance", "network-interface"]), + ("ReleaseAddress", {"AllocationId": "String"}, ["elastic-ip"]), +]) +def test_eip_operations_read_scalar_targets_from_models(operation, members, kinds): + variables = {"elastic-ip": "AllocationId", "instance": "InstanceId", "network-interface": "NetworkInterfaceId"} + formats = {kind: f"arn:${{Partition}}:ec2:${{Region}}:${{Account}}:{kind}/${{{variables[kind]}}}" for kind in kinds} + ec2 = model({operation: members}, "ec2") + action = "ec2:" + operation + entry = r.entry_for(action, {"action": action, "types": kinds}, formats, {"ec2": ec2}) + assert entry["resources"] == [{"type": kind, "fill": {variables[kind]: variables[kind]}} for kind in kinds]