mirror of
https://github.com/floci-io/floci.git
synced 2026-12-01 01:12:48 -05:00
fix(iam): check Glue requests on the resources they name (#8529)
Glue was one of the namespaces the table of request resources did not read yet, so under enforcement every Glue request was checked on *: a grant scoped to one database or table could not allow anything, and a deny scoped to one did not hold. - Glue moves from NOT_COVERED to NAMESPACES and the generator reads all 314 of its operations. A table operation is checked on the account's Data Catalog, the database and the table, the three types the Service Reference gives glue:GetTable and its kin; a database operation on the catalog and the database; jobs, crawlers, triggers, workflows and connections on the ARNs Glue mints for them. - Where a Glue request names its resources in ways the generator did not read yet, its rules read a little further, each from botocore alone: Input and List drop from a member's stem as Config and plurals do (DatabaseInput.Name, ConnectionNameList); a list whose own list shape is named for the type's names fills it (BatchDeleteTable's TablesToDelete, a BatchDeleteTableNameList); "being" ends a type's name in documentation (GetWorkflowRun's Name, "name of the workflow being run"); a type of no variables of its own, the account's catalog, is no longer dropped as an alternative to the unnamed type a create makes; and a create whose request carries tags and whose action acts on other types alone tags the resource it makes when the request names it in full (CreateConnection's tags on connection/<ConnectionInput.Name>), which the table reader now accepts. - Outside Glue those rules change four entries: Redshift's BatchModifyClusterSnapshots is checked on the snapshots its SnapshotIdentifierList names instead of *, and EventBridge's CreateEventSource and QuickSight's CreateDataSet and CreateTopic gain a makes that changes nothing at runtime. Every other entry is unchanged. - What the table does not read stays as the metadata gives it: a CatalogId is not read, so another account's or a federated catalog is checked on the caller's account's ARNs, and a schema named by its registry and name on schema/<SchemaName>, the Service Reference's format, whose botocore pattern takes no slash. IamRequestResourceEnforcementIntegrationTest checks a table on the catalog, its database and itself, a database and a job on the ARNs Glue gives them, a deny on one table or connection holding inside a batch delete, a database's creation on its DatabaseInput.Name, a connection's tags on its ConnectionInput.Name, and a workflow run on its workflow. The generator's tests cover each rule; iam.md says so.
This commit is contained in:
1 parent
b0625347d8
commit
e6f57d849d
8 files changed
+614
-43
No files matched your search
+16
-2
@@ -1969,7 +1969,7 @@ AWS Data Exports, AWS Pricing Calculator, Cost Explorer, CloudTrail, Global Acce
|
||||
Timestream for InfluxDB, Amazon Redshift, the Amazon Redshift Data API, AWS Payment Cryptography, AWS DataSync, Amazon EMR,
|
||||
Amazon Rekognition, IAM Identity Center, Amazon Inspector, Amazon Macie, AWS Fault Injection Service, AWS Resource
|
||||
Access Manager, CloudWatch Observability Access Manager, AWS Resource Explorer, AWS Account Management, AWS Control
|
||||
Catalog, Amazon OpenSearch Service, IAM Access Analyzer, AWS Security Hub, Amazon GuardDuty and Lambda they come from a table generated from AWS's Service Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each
|
||||
Catalog, Amazon OpenSearch Service, IAM Access Analyzer, AWS Security Hub, Amazon GuardDuty, Lambda and AWS Glue they come from a table generated from AWS's Service Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each
|
||||
operation's action, the resource types that action acts on with their ARN formats, and the request
|
||||
members that name them: a member holding a resource's ARN, which counts when it matches the format
|
||||
of a type the action acts on, or members filling the variables of a type's format. Nothing in it is
|
||||
@@ -2229,6 +2229,18 @@ from their path, and a publishing destination on
|
||||
operations act on no resource type and are checked on `*`. An `EnableSecurityHub` or a GuardDuty
|
||||
create carrying tags also needs `securityhub:TagResource` on the hub or `guardduty:TagResource` on the
|
||||
resource it creates, with the id GuardDuty mints open (`detector/*`, `detector/<DetectorId>/ipset/*`).
|
||||
AWS Glue's table operations are checked on the account's Data Catalog, `catalog`, the database and the
|
||||
table they name, `database/<DatabaseName>` and `table/<DatabaseName>/<Name>`, all three the types the
|
||||
Service Reference gives `glue:GetTable` and its kin, and a database operation on `catalog` and
|
||||
`database/<Name>`; jobs, crawlers, triggers, workflows and connections on `job/<Name>` and the like. The
|
||||
table reads no member for the catalog a `CatalogId` names, so a request naming another account's catalog
|
||||
or a federated one is checked on the caller's account's ARNs, and a catalog's own update or deletion on
|
||||
`catalog/*`. A schema named by its registry and name is checked on `schema/<SchemaName>`, the Service
|
||||
Reference's format, which leaves out the registry Glue's schema ARN carries; one named by its ARN is
|
||||
checked on that ARN. A batch delete is checked on each table its `TablesToDelete` lists, a
|
||||
`BatchDeleteTableNameList`, and each connection its `ConnectionNameList` lists; `CreateDatabase` on the catalog
|
||||
and the database its `DatabaseInput.Name` names, and its tags on that database; `GetWorkflowRun` on the workflow
|
||||
its `Name` names, "the workflow being run".
|
||||
|
||||
A route no rule maps is the operation whose route it matches in botocore's model of its service,
|
||||
vendored in `src/main/resources/aws/rest-routes.json` (`make aws-data-sync` regenerates it): of the
|
||||
@@ -2555,7 +2567,9 @@ whose action acts on no resource type is checked on `*`, and its tags on the res
|
||||
type it is named after with the ids its service mints open, where its tagging action acts on that type:
|
||||
Resource Explorer's `CreateView` on `view/<ViewName>/*`, OAM's `CreateSink` on `sink/*`, ACM's
|
||||
`RequestCertificate` on `certificate/*`; a Cloud Map namespace's tags, whose `TagResource` acts on no
|
||||
type, stay on `*`. Where the
|
||||
type, stay on `*`. So are the tags of a create whose action acts on other types alone, when its request
|
||||
names every variable of the resource it makes, a field of a structure included: Glue's `CreateConnection` is
|
||||
checked on its connection type and the catalog, and its tags on `connection/<ConnectionInput.Name>`. Where the
|
||||
tagging action takes
|
||||
its namespace's `CreateAction` key, as `ec2:CreateTags`, `ecs:TagResource`, CloudFormation's
|
||||
`TagResource` and Elastic Load Balancing's `AddTags` do, the key is the operation's name:
|
||||
|
||||
@@ -306,7 +306,7 @@ final class RequestResourceMembers {
|
||||
|
||||
/**
|
||||
* The file: each operation's resources, the resource types its action acts on, the resources it creates under a
|
||||
* parent and the one a create whose action acts on no type makes ({@code makes}), as
|
||||
* parent and the one a create whose action acts on no type, or on other types alone, makes ({@code makes}), as
|
||||
* {@code <namespace>:<Operation>}, the members a REST operation's request carries outside its body, each
|
||||
* namespace's ARN formats, and the namespaces it reads, those built by hand, those not read yet, and the others
|
||||
* with resource types. A located member is a label of the request's path, {@code {Label}}, or a parameter of its
|
||||
@@ -441,10 +441,10 @@ final class RequestResourceMembers {
|
||||
actsOn.put(operation.getKey(), types);
|
||||
List<Resource> made = new ArrayList<>();
|
||||
for (JsonNode resource : operation.getValue().path("makes")) {
|
||||
if (!types.isEmpty() || !resource.isObject() || resource.size() != 2 || !resource.has("type")
|
||||
|| !resource.has("fill")) {
|
||||
if (!resource.isObject() || resource.size() != 2 || !resource.has("type") || !resource.has("fill")
|
||||
|| types.contains(resource.get("type").asText())) {
|
||||
throw new IllegalStateException(RESOURCE_NAME + " makes " + resource + " for " + operation.getKey()
|
||||
+ ", no type's variables of a create acting on none");
|
||||
+ ", no type's variables of a create acting on none or on other types alone");
|
||||
}
|
||||
made.add(resource(operation.getKey(), resource, formats.getOrDefault(namespace, Map.of())));
|
||||
}
|
||||
|
||||
@@ -306,8 +306,9 @@ public final class RequestResources {
|
||||
|
||||
/**
|
||||
* As {@link #created(String, ContainerRequestContext, String, String, String, Map)}, for a request whose tags need
|
||||
* the {@code tagging} action: a create whose action acts on no resource type tags the resource it makes
|
||||
* ({@code makes}) where that action acts on the resource's type, as AWS checks a tagging action on the resource
|
||||
* the {@code tagging} action: a create whose action acts on no resource type, or on other types alone (Glue's
|
||||
* {@code CreateConnection}), tags the resource it makes ({@code makes}) where that action acts on the resource's
|
||||
* type, as AWS checks a tagging action on the resource
|
||||
* being tagged, and its tags go where the operation is checked otherwise (a Cloud Map namespace, whose
|
||||
* {@code TagResource} acts on no type, on {@code *}); a null {@code tagging}, or one the table does not hold, acts
|
||||
* on it.
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-15", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "ram": ["ram"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "route53": ["route53"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "ram": ["ram"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "route53": ["route53"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"handBuilt": ["apigateway", "bedrock", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "logs", "pipes", "resource-groups", "s3", "sns", "sqs", "sts"],
|
||||
"notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rules do not fill a name from, so nearly every operation's resource would be left open", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ec2-instance-connect": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment/<application>/<name>`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST rLine truncated
|
||||
"notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rules do not fill a name from, so nearly every operation's resource would be left open", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ec2-instance-connect": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment/<application>/<name>`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST rLine truncated
|
||||
"otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "application-signals-mcp", "appmesh", "appmesh-preview", "apprunner", "appstream", "apptest", "arc-region-switch", "arc-zonal-shift", "artifact", "assurance", "auditmanager", "aws-external-anthropic", "b2bi", "backup-gateway", "backup-search", "bedrock-mantle", "bedrock-websearch", "billing", "billingconductor", "braket", "bugbust", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "clouddirectory", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "emr-containers", "end-user-messaging", "entityresolution", "evs", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "ssmmessages", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web"],
|
||||
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudformation": {"changeset": "arn:${Partition}:cloudformation:${Region}:${Account}:changeSet/${ChangeSetName}/${Id}", "generatedtemplate": "arn:${Partition}:cloudformation:${Region}:${Account}:generatedTemplate/${Id}", "resourcescan": "arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}", "stack": "arn:${Partition}:cloudformation:${Region}:${Account}:stack/${StackName}/${Id}", "stackset": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset/${StackSetName}:${Id}", "stackset-target": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset-target/${StackSetTarget}", "type": "arn:${Partition}:cloudformation:${Region}:${Account}:type/resource/${Type}", "typeHook": "arn:${Partition}:cloudformation:${Region}:${Account}:type/hook/${Type}"}, "cloudfront": {"anycast-ip-list": "arn:${Partition}:cloudfront::${Account}:anycast-ip-list/${Id}", "cache-policy": "arn:${Partition}:cloudfront::${Account}:cache-policy/${Id}", "connection-function": "arn:${Partition}:cloudfront::${Account}:connection-function/${Id}", "connection-group": "arn:${Partition}:cloudfront::${Account}:connection-group/${Id}", "continuous-deployment-policy": "arn:${Partition}:cloudfront::${Account}:continuous-deployment-policy/${Id}", "distribution": "arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}", "distribution-tenant": "arn:${Partition}:cloudfront::${Account}:distribution-tenant/${Id}", "field-level-encryption-config": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-config/${Id}", "field-level-encryption-profile": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-profile/${Id}", "function": "arn:${Partition}:cloudfront::${Account}:function/${Name}", "key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}", "origin-access-control": "arn:${Partition}:cloudfront::${Account}:origin-access-control/${Id}", "origin-access-identity": "arn:${Partition}:cloudfront::${Account}:origin-access-identity/${Id}", "origin-request-policy": "arn:${Partition}:cloudfront::${Account}:origin-request-policy/${Id}", "realtime-log-config": "arn:${Partition}:cloudfront::${Account}:realtime-log-config/${Name}", "response-headers-policy": "arn:$Line truncated
|
||||
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/"], "budgetAction": ["aws:ResourceTag/"]}, "ce": {"anomalymonitor": ["aws:ResourceTag/"], "anomalysubscription": ["aws:ResourceTag/"], "billingview": ["aws:ResourceTag/"], "costcategory": ["aws:ResourceTag/"]}, "cloudformation": {"changeset": ["aws:ResourceTag/"], "stack": ["aws:ResourceTag/"], "stackset": ["aws:ResourceTag/"]}, "cloudfront": {"anycast-ip-list": ["aws:ResourceTag/"], "connection-function": ["aws:ResourceTag/"], "connection-group": ["aws:ResourceTag/"], "distribution": ["aws:ResourceTag/"], "distribution-tenant": ["aws:ResourceTag/"], "function": ["aws:ResourceTag/"], "key-value-store": ["aws:ResourceTag/"], "streaming-distribution": ["aws:ResourceTag/"], "trust-store": ["aws:ResourceTag/"], "vpcorigin": ["aws:ResourceTag/"]}, "cloudtrail": {"channel": ["aws:ResourceTag/"], "dashboard": ["aws:ResourceTag/"], "eventdatastore": ["aws:ResourceTag/"], "trail": ["aws:ResourceTag/"]}, "codebuild": {"project": ["aws:ResourceTag/"], "report-group": ["aws:ResourceTag/"]}, "codepipeline": {"action": ["aws:ResourceTag/"], "actiontype": ["aws:ResourceTag/"], "pipeline": ["aws:ResourceTag/"], "stage": ["aws:ResourceTag/"], "webhook": ["aws:ResourceTag/"]}, "cognito-identity": {"identitypool": ["aws:ResourceTag/"]}, "cognito-idp": {"userpool": ["aws:ResourceTag/"]}, "controltower": {"EnabledBaseline": ["aws:ResourceTag/"], "EnabledControl": ["aws:ResourceTag/"], "LandingZone": ["aws:ResourceTag/"]}, "datasync": {"agent": ["aws:ResourceTag/"], "discoveryjob": ["aws:ResourceTag/"], "location": ["aws:ResourceTag/"], "storagesystem": ["aws:ResourceTag/"], "task": ["aws:ResourceTag/"], "taskexecution": ["aws:ResourceTag/"]}, "dynamodb": {"index": ["aws:ResourceTag/"], "stream": ["aws:ResourceTag/"], "table": ["aws:ResourceTag/"]}, "ec2": {"application-status-check": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-block": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-manager-data-export": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-cancellation-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-modification-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "carrier-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "client-vpn-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "coip-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "customer-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "declarative-policies-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dedicated-host": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dhcp-options": ["aws:ResourceTag/", "ec2:ResourceTag/"], "egress-only-internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-gpu": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-ip": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-instance-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fpga-image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "host-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image-usage-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-snapshot-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-connect-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-event-window": ["aws:ResourceTag/", "ec2:ResourceTag/"], "internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-external-resource-verification-token": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-internet-registry-association": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-policy": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool-allocation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver-target": ["aws:ResourceTag/", "ec2:Line truncated
|
||||
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudformation": {"changeset": "arn:${Partition}:cloudformation:${Region}:${Account}:changeSet/${ChangeSetName}/${Id}", "generatedtemplate": "arn:${Partition}:cloudformation:${Region}:${Account}:generatedTemplate/${Id}", "resourcescan": "arn:${Partition}:cloudformation:${Region}:${Account}:resourceScan/${Id}", "stack": "arn:${Partition}:cloudformation:${Region}:${Account}:stack/${StackName}/${Id}", "stackset": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset/${StackSetName}:${Id}", "stackset-target": "arn:${Partition}:cloudformation:${Region}:${Account}:stackset-target/${StackSetTarget}", "type": "arn:${Partition}:cloudformation:${Region}:${Account}:type/resource/${Type}", "typeHook": "arn:${Partition}:cloudformation:${Region}:${Account}:type/hook/${Type}"}, "cloudfront": {"anycast-ip-list": "arn:${Partition}:cloudfront::${Account}:anycast-ip-list/${Id}", "cache-policy": "arn:${Partition}:cloudfront::${Account}:cache-policy/${Id}", "connection-function": "arn:${Partition}:cloudfront::${Account}:connection-function/${Id}", "connection-group": "arn:${Partition}:cloudfront::${Account}:connection-group/${Id}", "continuous-deployment-policy": "arn:${Partition}:cloudfront::${Account}:continuous-deployment-policy/${Id}", "distribution": "arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}", "distribution-tenant": "arn:${Partition}:cloudfront::${Account}:distribution-tenant/${Id}", "field-level-encryption-config": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-config/${Id}", "field-level-encryption-profile": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-profile/${Id}", "function": "arn:${Partition}:cloudfront::${Account}:function/${Name}", "key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}", "origin-access-control": "arn:${Partition}:cloudfront::${Account}:origin-access-control/${Id}", "origin-access-identity": "arn:${Partition}:cloudfront::${Account}:origin-access-identity/${Id}", "origin-request-policy": "arn:${Partition}:cloudfront::${Account}:origin-request-policy/${Id}", "realtime-log-config": "arn:${Partition}:cloudfront::${Account}:realtime-log-config/${Name}", "response-headers-policy": "arn:$Line truncated
|
||||
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/"], "budgetAction": ["aws:ResourceTag/"]}, "ce": {"anomalymonitor": ["aws:ResourceTag/"], "anomalysubscription": ["aws:ResourceTag/"], "billingview": ["aws:ResourceTag/"], "costcategory": ["aws:ResourceTag/"]}, "cloudformation": {"changeset": ["aws:ResourceTag/"], "stack": ["aws:ResourceTag/"], "stackset": ["aws:ResourceTag/"]}, "cloudfront": {"anycast-ip-list": ["aws:ResourceTag/"], "connection-function": ["aws:ResourceTag/"], "connection-group": ["aws:ResourceTag/"], "distribution": ["aws:ResourceTag/"], "distribution-tenant": ["aws:ResourceTag/"], "function": ["aws:ResourceTag/"], "key-value-store": ["aws:ResourceTag/"], "streaming-distribution": ["aws:ResourceTag/"], "trust-store": ["aws:ResourceTag/"], "vpcorigin": ["aws:ResourceTag/"]}, "cloudtrail": {"channel": ["aws:ResourceTag/"], "dashboard": ["aws:ResourceTag/"], "eventdatastore": ["aws:ResourceTag/"], "trail": ["aws:ResourceTag/"]}, "codebuild": {"project": ["aws:ResourceTag/"], "report-group": ["aws:ResourceTag/"]}, "codepipeline": {"action": ["aws:ResourceTag/"], "actiontype": ["aws:ResourceTag/"], "pipeline": ["aws:ResourceTag/"], "stage": ["aws:ResourceTag/"], "webhook": ["aws:ResourceTag/"]}, "cognito-identity": {"identitypool": ["aws:ResourceTag/"]}, "cognito-idp": {"userpool": ["aws:ResourceTag/"]}, "controltower": {"EnabledBaseline": ["aws:ResourceTag/"], "EnabledControl": ["aws:ResourceTag/"], "LandingZone": ["aws:ResourceTag/"]}, "datasync": {"agent": ["aws:ResourceTag/"], "discoveryjob": ["aws:ResourceTag/"], "location": ["aws:ResourceTag/"], "storagesystem": ["aws:ResourceTag/"], "task": ["aws:ResourceTag/"], "taskexecution": ["aws:ResourceTag/"]}, "dynamodb": {"index": ["aws:ResourceTag/"], "stream": ["aws:ResourceTag/"], "table": ["aws:ResourceTag/"]}, "ec2": {"application-status-check": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-block": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-manager-data-export": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-cancellation-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "capacity-reservation-modification-quote": ["aws:ResourceTag/", "ec2:ResourceTag/"], "carrier-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "client-vpn-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "coip-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "customer-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "declarative-policies-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dedicated-host": ["aws:ResourceTag/", "ec2:ResourceTag/"], "dhcp-options": ["aws:ResourceTag/", "ec2:ResourceTag/"], "egress-only-internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-gpu": ["aws:ResourceTag/", "ec2:ResourceTag/"], "elastic-ip": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "export-instance-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fleet": ["aws:ResourceTag/", "ec2:ResourceTag/"], "fpga-image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "host-reservation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image": ["aws:ResourceTag/", "ec2:ResourceTag/"], "image-usage-report": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-image-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "import-snapshot-task": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-connect-endpoint": ["aws:ResourceTag/", "ec2:ResourceTag/"], "instance-event-window": ["aws:ResourceTag/", "ec2:ResourceTag/"], "internet-gateway": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-external-resource-verification-token": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-internet-registry-association": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-policy": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-pool-allocation": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver": ["aws:ResourceTag/", "ec2:ResourceTag/"], "ipam-prefix-list-resolver-target": ["aws:ResourceTag/", "ec2:Line truncated
|
||||
"resourceKeys": {"ec2": {"capacity-reservation": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:CapacityReservationFleet": {"member": "CapacityReservationFleetId", "arn": "capacity-reservation-fleet"}, "ec2:EbsOptimized": {"member": "EbsOptimized"}, "ec2:EndDateType": {"member": "EndDateType"}, "ec2:EphemeralStorage": {"member": "EphemeralStorage"}, "ec2:InstanceMatchCriteria": {"member": "InstanceMatchCriteria"}, "ec2:InstanceType": {"member": "InstanceType"}, "ec2:Tenancy": {"member": "Tenancy"}}, "carrier-gateway": {"ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "dhcp-options": {"ec2:DhcpOptionsID": {"member": "DhcpOptionsId"}}, "fpga-image": {"ec2:Owner": {"member": "OwnerId"}, "ec2:Public": {"member": "Public"}}, "image": {"ec2:ImageID": {"member": "ImageId"}, "ec2:ImageType": {"member": "ImageType"}, "ec2:Owner": {"member": "OwnerId"}, "ec2:Public": {"member": "Public"}, "ec2:RootDeviceType": {"member": "RootDeviceType"}}, "instance": {"ec2:EbsOptimized": {"member": "EbsOptimized"}, "ec2:InstanceID": {"member": "InstanceId"}, "ec2:InstanceType": {"member": "InstanceType"}, "ec2:RootDeviceType": {"member": "RootDeviceType"}}, "internet-gateway": {"ec2:InternetGatewayID": {"member": "InternetGatewayId"}}, "launch-template": {"ec2:LaunchTemplate": {"member": "LaunchTemplateId", "arn": "launch-template"}}, "network-acl": {"ec2:NetworkAclID": {"member": "NetworkAclId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "network-interface": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:NetworkInterfaceID": {"member": "NetworkInterfaceId"}, "ec2:Subnet": {"member": "SubnetId", "arn": "subnet"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "reserved-instances": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:InstanceType": {"member": "InstanceType"}}, "route-table": {"ec2:RouteTableID": {"member": "RouteTableId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "secondary-interface": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}}, "security-group": {"ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "snapshot": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:Encrypted": {"member": "Encrypted"}, "ec2:Owner": {"member": "OwnerId"}, "ec2:SnapshotID": {"member": "SnapshotId"}, "ec2:VolumeSize": {"member": "VolumeSize"}}, "subnet": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:SubnetID": {"member": "SubnetId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "transit-gateway": {"ec2:transitGatewayId": {"member": "TransitGatewayId"}}, "transit-gateway-attachment": {"ec2:transitGatewayAttachmentId": {"member": "TransitGatewayAttachmentId"}}, "transit-gateway-connect-peer": {"ec2:transitGatewayConnectPeerId": {"member": "TransitGatewayConnectPeerId"}}, "transit-gateway-metering-policy": {"ec2:transitGatewayMeteringPolicyId": {"member": "TransitGatewayMeteringPolicyId"}}, "transit-gateway-multicast-domain": {"ec2:transitGatewayMulticastDomainId": {"member": "TransitGatewayMulticastDomainId"}}, "transit-gateway-policy-table": {"ec2:transitGatewayPolicyTableId": {"member": "TransitGatewayPolicyTableId"}}, "transit-gateway-route-table": {"ec2:transitGatewayRouteTableId": {"member": "TransitGatewayRouteTableId"}}, "transit-gateway-route-table-announcement": {"ec2:transitGatewayRouteTableAnnouncementId": {"member": "TransitGatewayRouteTableAnnouncementId"}}, "volume": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:Encrypted": {"member": "Encrypted"}, "ec2:KmsKeyId": {"member": "KmsKeyId"}, "ec2:VolumeID": {"member": "VolumeId"}, "ec2:VolumeInitializationRate": {"member": "VolumeInitializationRate"}, "ec2:VolumeType": {"member": "VolumeType"}}, "vpc": {"ec2:VpcID": {"member": "VpcId"}}, "vpc-peering-connection": {"ec2:VpcPeeringConnectionID": {"member": "VpcPeeringConnectionId"}}}},
|
||||
"unqualified": {"ssm": ["parameter"], "states": ["statemachine"]},
|
||||
"mintedIds": {"events": ["api-destination", "connection"]},
|
||||
@@ -2274,7 +2274,7 @@
|
||||
"events:CreateConnection": {"action": "events:CreateConnection", "types": ["connection"], "resources": [{"type": "connection", "fill": {"ConnectionName": "Name"}}]},
|
||||
"events:CreateEndpoint": {"action": "events:CreateEndpoint", "types": ["endpoint"], "resources": [{"types": ["endpoint"], "arn": "EventBuses[].EventBusArn"}, {"type": "endpoint", "fill": {"EndpointName": "Name"}}]},
|
||||
"events:CreateEventBus": {"action": "events:CreateEventBus", "types": ["event-bus", "event-busv2"], "resources": [{"type": "event-busv2", "fill": {"EventBusName": "Name"}, "endpoint": "eventsv2"}, {"types": ["event-bus", "event-busv2"], "arn": "DeadLetterConfig.Arn", "endpoint": "events"}, {"type": "event-bus", "fill": {"EventBusName": "Name"}, "endpoint": "events", "made": true}]},
|
||||
"events:CreateEventSource": {"action": "events:CreateEventSource", "types": ["event-busv2", "event-sourcev2"], "resources": [{"types": ["event-busv2", "event-sourcev2"], "arn": "EventBusArn"}]},
|
||||
"events:CreateEventSource": {"action": "events:CreateEventSource", "types": ["event-busv2", "event-sourcev2"], "resources": [{"types": ["event-busv2", "event-sourcev2"], "arn": "EventBusArn"}], "makes": [{"type": "event-source", "fill": {"EventSourceName": "Name"}}]},
|
||||
"events:CreatePartnerEventSource": {"action": "events:CreatePartnerEventSource", "types": ["event-source"], "resources": [{"type": "event-source", "fill": {"EventSourceName": "Name"}}]},
|
||||
"events:CreateSubscriber": {"action": "events:CreateSubscriber", "types": ["event-busv2", "subscriber"], "resources": [{"types": ["event-busv2", "subscriber"], "arn": "EventBusArn"}, {"type": "subscriber", "fill": {"SubscriberName": "Name"}, "made": true}]},
|
||||
"events:DeactivateEventSource": {"action": "events:DeactivateEventSource", "types": ["event-source"], "resources": [{"type": "event-source", "fill": {"EventSourceName": "Name"}}]},
|
||||
@@ -2432,6 +2432,320 @@
|
||||
"globalaccelerator:UpdateEndpointGroup": {"action": "globalaccelerator:UpdateEndpointGroup", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointConfigurations[].AttachmentArn"}, {"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:UpdateListener": {"action": "globalaccelerator:UpdateListener", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:WithdrawByoipCidr": {"action": "globalaccelerator:WithdrawByoipCidr", "types": [], "resources": []},
|
||||
"glue:AssociateGlossaryTerms": {"action": "glue:AssociateGlossaryTerms", "types": [], "resources": []},
|
||||
"glue:BatchCreatePartition": {"action": "glue:BatchCreatePartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}, {"type": "catalog", "fill": {}, "find": ["CatalogId"]}]},
|
||||
"glue:BatchDeleteConnection": {"action": "glue:BatchDeleteConnection", "types": ["connection", "rootcatalog"], "resources": [{"type": "connection", "fill": {"ConnectionName": "ConnectionNameList[]"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:BatchDeletePartition": {"action": "glue:BatchDeletePartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:BatchDeleteTable": {"action": "glue:BatchDeleteTable", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TablesToDelete[]"}}]},
|
||||
"glue:BatchDeleteTableVersion": {"action": "glue:BatchDeleteTableVersion", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:BatchGetBlueprints": {"action": "glue:BatchGetBlueprints", "types": ["blueprint"], "resources": [{"type": "blueprint", "fill": {"BlueprintName": "Names[]"}}]},
|
||||
"glue:BatchGetCrawlers": {"action": "glue:BatchGetCrawlers", "types": ["crawler"], "resources": [{"type": "crawler", "fill": {"CrawlerName": "CrawlerNames[]"}}]},
|
||||
"glue:BatchGetCustomEntityTypes": {"action": "glue:BatchGetCustomEntityTypes", "types": [], "resources": []},
|
||||
"glue:BatchGetDataQualityResult": {"action": "glue:GetDataQualityResult", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:BatchGetDataQualityResultV2": {"action": "glue:GetDataQualityResult", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:BatchGetDataQualityRulesetEvaluationRun": {"action": "glue:GetDataQualityRulesetEvaluationRun", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:BatchGetDevEndpoints": {"action": "glue:BatchGetDevEndpoints", "types": ["devendpoint"], "resources": [{"type": "devendpoint", "fill": {"DevEndpointName": "DevEndpointNames[]"}}]},
|
||||
"glue:BatchGetIterableForms": {"action": "glue:BatchGetIterableForms", "types": [], "resources": []},
|
||||
"glue:BatchGetJobs": {"action": "glue:BatchGetJobs", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobNames[]"}}]},
|
||||
"glue:BatchGetPartition": {"action": "glue:BatchGetPartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:BatchGetTableOptimizer": {"action": "glue:BatchGetTableOptimizer", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "rootcatalog", "fill": {}}, {"type": "database", "fill": {"DatabaseName": "Entries[].databaseName"}}]},
|
||||
"glue:BatchGetTriggers": {"action": "glue:BatchGetTriggers", "types": ["trigger"], "resources": [{"type": "trigger", "fill": {"TriggerName": "TriggerNames[]"}}]},
|
||||
"glue:BatchGetWorkflows": {"action": "glue:BatchGetWorkflows", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Names[]"}}]},
|
||||
"glue:BatchPutDataQualityStatisticAnnotation": {"action": "glue:PutDataQualityStatisticAnnotation", "types": ["dataQualityRuleset", "job"], "resources": []},
|
||||
"glue:BatchStopJobRun": {"action": "glue:BatchStopJobRun", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:BatchUpdatePartition": {"action": "glue:BatchUpdatePartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}, {"type": "catalog", "fill": {}, "find": ["CatalogId"]}]},
|
||||
"glue:CancelDataQualityRuleRecommendationRun": {"action": "glue:CancelDataQualityRuleRecommendationRun", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:CancelDataQualityRulesetEvaluationRun": {"action": "glue:CancelDataQualityRulesetEvaluationRun", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:CancelMLTaskRun": {"action": "glue:CancelMLTaskRun", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}, {"types": ["mlTransform"], "through": "TaskRunId"}]},
|
||||
"glue:CancelStatement": {"action": "glue:CancelStatement", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "SessionId"}}]},
|
||||
"glue:CheckSchemaVersionValidity": {"action": "glue:CheckSchemaVersionValidity", "types": [], "resources": []},
|
||||
"glue:CreateBlueprint": {"action": "glue:CreateBlueprint", "types": ["blueprint"], "resources": [{"type": "blueprint", "fill": {"BlueprintName": "Name"}}]},
|
||||
"glue:CreateCatalog": {"action": "glue:CreateCatalog", "types": ["catalog", "rootcatalog"], "resources": [{"type": "catalog", "fill": {"CatalogName": "Name"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:CreateClassifier": {"action": "glue:CreateClassifier", "types": [], "resources": []},
|
||||
"glue:CreateColumnStatisticsTaskSettings": {"action": "glue:CreateColumnStatisticsTaskSettings", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:CreateConnection": {"action": "glue:CreateConnection", "types": ["connectionType", "rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}, {"type": "connectionType", "fill": {"ConnectionTypeName": "ConnectionInput.ConnectionType"}}], "makes": [{"type": "connection", "fill": {"ConnectionName": "ConnectionInput.Name"}}]},
|
||||
"glue:CreateCrawler": {"action": "glue:CreateCrawler", "types": [], "resources": [], "makes": [{"type": "crawler", "fill": {"CrawlerName": "Name"}}]},
|
||||
"glue:CreateCustomEntityType": {"action": "glue:CreateCustomEntityType", "types": [], "resources": [], "makes": [{"type": "customEntityType", "fill": {}}]},
|
||||
"glue:CreateDataQualityEvaluationConfig": {"action": "glue:CreateDataQualityEvaluationConfig", "types": [], "resources": []},
|
||||
"glue:CreateDataQualityRuleset": {"action": "glue:CreateDataQualityRuleset", "types": [], "resources": [], "makes": [{"type": "dataQualityRuleset", "fill": {"RulesetName": "Ruleset"}}]},
|
||||
"glue:CreateDatabase": {"action": "glue:CreateDatabase", "types": ["catalog", "database", "rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}, {"type": "database", "fill": {"DatabaseName": "DatabaseInput.Name"}, "made": true}]},
|
||||
"glue:CreateDevEndpoint": {"action": "glue:CreateDevEndpoint", "types": [], "resources": [], "makes": [{"type": "devendpoint", "fill": {"DevEndpointName": "EndpointName"}}]},
|
||||
"glue:CreateGlossary": {"action": "glue:CreateGlossary", "types": [], "resources": []},
|
||||
"glue:CreateGlossaryTerm": {"action": "glue:CreateGlossaryTerm", "types": [], "resources": []},
|
||||
"glue:CreateGlueIdentityCenterConfiguration": {"action": "glue:CreateGlueIdentityCenterConfiguration", "types": [], "resources": []},
|
||||
"glue:CreateIntegration": {"action": "glue:CreateIntegration", "types": ["catalog", "connection", "database", "integration"], "resources": [{"types": ["catalog", "connection", "database", "integration"], "arn": "SourceArn"}, {"types": ["catalog", "connection", "database", "integration"], "arn": "TargetArn"}, {"type": "integration", "fill": {}, "find": ["IntegrationName"], "made": true}]},
|
||||
"glue:CreateIntegrationResourceProperty": {"action": "glue:CreateIntegrationResourceProperty", "types": ["catalog", "connection", "database", "integrationResourceProperty"], "resources": [{"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "ResourceArn"}, {"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "SourceProcessingProperties.RoleArn"}, {"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "TargetProcessingProperties.EventBusArn"}, {"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "TargetProcessingProperties.KmsArn"}, {"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "TargetProcessingProperties.RoleArn"}, {"type": "integrationResourceProperty", "fill": {}, "made": true}]},
|
||||
"glue:CreateIntegrationTableProperties": {"action": "glue:CreateIntegrationTableProperties", "types": ["catalog", "connection", "database"], "resources": [{"types": ["catalog", "connection", "database"], "arn": "ResourceArn"}]},
|
||||
"glue:CreateJob": {"action": "glue:CreateJob", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "Name"}}]},
|
||||
"glue:CreateMLTransform": {"action": "glue:CreateMLTransform", "types": [], "resources": [], "makes": [{"type": "mlTransform", "fill": {}}]},
|
||||
"glue:CreatePartition": {"action": "glue:CreatePartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:CreatePartitionIndex": {"action": "glue:CreatePartitionIndex", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:CreateRegistry": {"action": "glue:CreateRegistry", "types": ["registry"], "resources": [{"type": "registry", "fill": {"RegistryName": "RegistryName"}}]},
|
||||
"glue:CreateSchema": {"action": "glue:CreateSchema", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "RegistryId.RegistryArn"}, {"type": "schema", "fill": {"SchemaName": "SchemaName"}, "made": true}, {"type": "registry", "fill": {"RegistryName": "RegistryId.RegistryName"}}]},
|
||||
"glue:CreateScript": {"action": "glue:CreateScript", "types": [], "resources": []},
|
||||
"glue:CreateSecurityConfiguration": {"action": "glue:CreateSecurityConfiguration", "types": [], "resources": []},
|
||||
"glue:CreateSession": {"action": "glue:CreateSession", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "Id"}}]},
|
||||
"glue:CreateTable": {"action": "glue:CreateTable", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "Name"}, "unless": {"Name": [null]}, "made": true}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableInput.Name"}, "when": {"Name": [null]}, "made": true}]},
|
||||
"glue:CreateTableOptimizer": {"action": "glue:CreateTableOptimizer", "types": ["database", "rootcatalog", "table"], "resources": [{"types": ["database", "rootcatalog", "table"], "arn": "TableOptimizerConfiguration.roleArn"}, {"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:CreateTrigger": {"action": "glue:CreateTrigger", "types": ["trigger"], "resources": [{"type": "trigger", "fill": {"TriggerName": "Name"}}]},
|
||||
"glue:CreateUsageProfile": {"action": "glue:CreateUsageProfile", "types": ["usageProfile"], "resources": [{"type": "usageProfile", "fill": {}, "find": ["Name"]}]},
|
||||
"glue:CreateUserDefinedFunction": {"action": "glue:CreateUserDefinedFunction", "types": ["catalog", "database", "rootcatalog"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:CreateWorkflow": {"action": "glue:CreateWorkflow", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:DeleteAsset": {"action": "glue:DeleteAsset", "types": [], "resources": []},
|
||||
"glue:DeleteAssetType": {"action": "glue:DeleteAssetType", "types": [], "resources": []},
|
||||
"glue:DeleteAttachment": {"action": "glue:DeleteAttachment", "types": [], "resources": []},
|
||||
"glue:DeleteBlueprint": {"action": "glue:DeleteBlueprint", "types": ["blueprint"], "resources": [{"type": "blueprint", "fill": {"BlueprintName": "Name"}}]},
|
||||
"glue:DeleteCatalog": {"action": "glue:DeleteCatalog", "types": ["catalog", "rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}, {"type": "catalog", "fill": {}, "find": ["CatalogId"]}]},
|
||||
"glue:DeleteClassifier": {"action": "glue:DeleteClassifier", "types": [], "resources": []},
|
||||
"glue:DeleteColumnStatisticsForPartition": {"action": "glue:DeleteColumnStatisticsForPartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:DeleteColumnStatisticsForTable": {"action": "glue:DeleteColumnStatisticsForTable", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:DeleteColumnStatisticsTaskSettings": {"action": "glue:DeleteColumnStatisticsTaskSettings", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:DeleteConnection": {"action": "glue:DeleteConnection", "types": ["connection", "rootcatalog"], "resources": [{"type": "connection", "fill": {"ConnectionName": "ConnectionName"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:DeleteConnectionType": {"action": "glue:DeleteConnectionType", "types": ["connectionType"], "resources": [{"type": "connectionType", "fill": {"ConnectionTypeName": "ConnectionType"}}]},
|
||||
"glue:DeleteCrawler": {"action": "glue:DeleteCrawler", "types": ["crawler"], "resources": [{"type": "crawler", "fill": {"CrawlerName": "Name"}}]},
|
||||
"glue:DeleteCustomEntityType": {"action": "glue:DeleteCustomEntityType", "types": [], "resources": []},
|
||||
"glue:DeleteDataQualityEvaluationConfig": {"action": "glue:DeleteDataQualityEvaluationConfig", "types": [], "resources": []},
|
||||
"glue:DeleteDataQualityRuleset": {"action": "glue:DeleteDataQualityRuleset", "types": ["dataQualityRuleset"], "resources": [{"type": "dataQualityRuleset", "fill": {"RulesetName": "Name"}}]},
|
||||
"glue:DeleteDatabase": {"action": "glue:DeleteDatabase", "types": ["catalog", "database", "rootcatalog", "table", "userdefinedfunction"], "resources": [{"type": "database", "fill": {"DatabaseName": "Name"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:DeleteDevEndpoint": {"action": "glue:DeleteDevEndpoint", "types": ["devendpoint"], "resources": [{"type": "devendpoint", "fill": {"DevEndpointName": "EndpointName"}}]},
|
||||
"glue:DeleteFormType": {"action": "glue:DeleteFormType", "types": [], "resources": []},
|
||||
"glue:DeleteGlossary": {"action": "glue:DeleteGlossary", "types": [], "resources": []},
|
||||
"glue:DeleteGlossaryTerm": {"action": "glue:DeleteGlossaryTerm", "types": [], "resources": []},
|
||||
"glue:DeleteGlueIdentityCenterConfiguration": {"action": "glue:DeleteGlueIdentityCenterConfiguration", "types": [], "resources": []},
|
||||
"glue:DeleteIntegration": {"action": "glue:DeleteIntegration", "types": ["integration"], "resources": [{"types": ["integration"], "arn": "IntegrationIdentifier"}, {"type": "integration", "fill": {"IntegrationId": "IntegrationIdentifier"}}]},
|
||||
"glue:DeleteIntegrationResourceProperty": {"action": "glue:DeleteIntegrationResourceProperty", "types": ["catalog", "connection", "database", "integrationResourceProperty"], "resources": [{"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "ResourceArn"}]},
|
||||
"glue:DeleteIntegrationTableProperties": {"action": "glue:DeleteIntegrationTableProperties", "types": ["catalog", "connection", "database"], "resources": [{"types": ["catalog", "connection", "database"], "arn": "ResourceArn"}]},
|
||||
"glue:DeleteJob": {"action": "glue:DeleteJob", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:DeleteMLTransform": {"action": "glue:DeleteMLTransform", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}]},
|
||||
"glue:DeletePartition": {"action": "glue:DeletePartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:DeletePartitionIndex": {"action": "glue:DeletePartitionIndex", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:DeleteRegistry": {"action": "glue:DeleteRegistry", "types": ["registry"], "resources": [{"types": ["registry"], "arn": "RegistryId.RegistryArn"}, {"type": "registry", "fill": {"RegistryName": "RegistryId.RegistryName"}}]},
|
||||
"glue:DeleteResourcePolicy": {"action": "glue:DeleteResourcePolicy", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"types": ["catalog", "database", "rootcatalog", "table"], "arn": "ResourceArn"}]},
|
||||
"glue:DeleteSchema": {"action": "glue:DeleteSchema", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:DeleteSchemaVersions": {"action": "glue:DeleteSchemaVersions", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:DeleteSecurityConfiguration": {"action": "glue:DeleteSecurityConfiguration", "types": [], "resources": []},
|
||||
"glue:DeleteSession": {"action": "glue:DeleteSession", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "Id"}}]},
|
||||
"glue:DeleteTable": {"action": "glue:DeleteTable", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "Name"}}]},
|
||||
"glue:DeleteTableOptimizer": {"action": "glue:DeleteTableOptimizer", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:DeleteTableVersion": {"action": "glue:DeleteTableVersion", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:DeleteTrigger": {"action": "glue:DeleteTrigger", "types": ["trigger"], "resources": [{"type": "trigger", "fill": {"TriggerName": "Name"}}]},
|
||||
"glue:DeleteUsageProfile": {"action": "glue:DeleteUsageProfile", "types": ["usageProfile"], "resources": [{"type": "usageProfile", "fill": {}, "find": ["Name"]}]},
|
||||
"glue:DeleteUserDefinedFunction": {"action": "glue:DeleteUserDefinedFunction", "types": ["catalog", "database", "rootcatalog", "userdefinedfunction"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "userdefinedfunction", "fill": {"DatabaseName": "DatabaseName", "UserDefinedFunctionName": "FunctionName"}}]},
|
||||
"glue:DeleteWorkflow": {"action": "glue:DeleteWorkflow", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:DescribeConnectionType": {"action": "glue:DescribeConnectionType", "types": ["connectionType"], "resources": [{"type": "connectionType", "fill": {"ConnectionTypeName": "ConnectionType"}}]},
|
||||
"glue:DescribeEntity": {"action": "glue:DescribeEntity", "types": ["connection", "connectionType", "rootcatalog"], "resources": [{"type": "connection", "fill": {"ConnectionName": "ConnectionName"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:DescribeInboundIntegrations": {"action": "glue:DescribeInboundIntegrations", "types": [], "resources": []},
|
||||
"glue:DescribeIntegrations": {"action": "glue:DescribeIntegrations", "types": ["integration"], "resources": [{"types": ["integration"], "arn": "IntegrationIdentifier"}, {"type": "integration", "fill": {"IntegrationId": "IntegrationIdentifier"}}]},
|
||||
"glue:DisassociateGlossaryTerms": {"action": "glue:DisassociateGlossaryTerms", "types": [], "resources": []},
|
||||
"glue:GetAsset": {"action": "glue:GetAsset", "types": [], "resources": []},
|
||||
"glue:GetAssetType": {"action": "glue:GetAssetType", "types": [], "resources": []},
|
||||
"glue:GetBlueprint": {"action": "glue:GetBlueprint", "types": ["blueprint"], "resources": [{"type": "blueprint", "fill": {"BlueprintName": "Name"}}]},
|
||||
"glue:GetBlueprintRun": {"action": "glue:GetBlueprintRun", "types": ["blueprint"], "resources": [{"type": "blueprint", "fill": {"BlueprintName": "BlueprintName"}}]},
|
||||
"glue:GetBlueprintRuns": {"action": "glue:GetBlueprintRuns", "types": ["blueprint"], "resources": [{"type": "blueprint", "fill": {"BlueprintName": "BlueprintName"}}]},
|
||||
"glue:GetCatalog": {"action": "glue:GetCatalog", "types": ["catalog", "rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetCatalogImportStatus": {"action": "glue:GetCatalogImportStatus", "types": ["rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetCatalogs": {"action": "glue:GetCatalogs", "types": ["catalog", "rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetClassifier": {"action": "glue:GetClassifier", "types": [], "resources": []},
|
||||
"glue:GetClassifiers": {"action": "glue:GetClassifiers", "types": [], "resources": []},
|
||||
"glue:GetColumnStatisticsForPartition": {"action": "glue:GetColumnStatisticsForPartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:GetColumnStatisticsForTable": {"action": "glue:GetColumnStatisticsForTable", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:GetColumnStatisticsTaskRun": {"action": "glue:GetColumnStatisticsTaskRun", "types": [], "resources": []},
|
||||
"glue:GetColumnStatisticsTaskRuns": {"action": "glue:GetColumnStatisticsTaskRuns", "types": [], "resources": []},
|
||||
"glue:GetColumnStatisticsTaskSettings": {"action": "glue:GetColumnStatisticsTaskSettings", "types": [], "resources": []},
|
||||
"glue:GetConnection": {"action": "glue:GetConnection", "types": ["connection", "rootcatalog"], "resources": [{"type": "connection", "fill": {"ConnectionName": "Name"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetConnections": {"action": "glue:GetConnections", "types": ["connection", "rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetCrawler": {"action": "glue:GetCrawler", "types": ["crawler"], "resources": [{"type": "crawler", "fill": {"CrawlerName": "Name"}}]},
|
||||
"glue:GetCrawlerMetrics": {"action": "glue:GetCrawlerMetrics", "types": [], "resources": []},
|
||||
"glue:GetCrawlers": {"action": "glue:GetCrawlers", "types": [], "resources": []},
|
||||
"glue:GetCustomEntityType": {"action": "glue:GetCustomEntityType", "types": [], "resources": []},
|
||||
"glue:GetDashboardUrl": {"action": "glue:GetDashboardUrl", "types": ["session"], "resources": []},
|
||||
"glue:GetDataCatalogEncryptionSettings": {"action": "glue:GetDataCatalogEncryptionSettings", "types": ["rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetDataCatalogExportConfiguration": {"action": "glue:GetDataCatalogExportConfiguration", "types": [], "resources": []},
|
||||
"glue:GetDataQualityEvaluationConfig": {"action": "glue:GetDataQualityEvaluationConfig", "types": [], "resources": []},
|
||||
"glue:GetDataQualityModel": {"action": "glue:GetDataQualityModel", "types": ["dataQualityRuleset", "job"], "resources": []},
|
||||
"glue:GetDataQualityModelResult": {"action": "glue:GetDataQualityModelResult", "types": ["dataQualityRuleset", "job"], "resources": []},
|
||||
"glue:GetDataQualityResult": {"action": "glue:GetDataQualityResult", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:GetDataQualityResultV2": {"action": "glue:GetDataQualityResult", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:GetDataQualityRuleRecommendationRun": {"action": "glue:GetDataQualityRuleRecommendationRun", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:GetDataQualityRuleset": {"action": "glue:GetDataQualityRuleset", "types": ["dataQualityRuleset"], "resources": [{"type": "dataQualityRuleset", "fill": {"RulesetName": "Name"}}]},
|
||||
"glue:GetDataQualityRulesetEvaluationRun": {"action": "glue:GetDataQualityRulesetEvaluationRun", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:GetDatabase": {"action": "glue:GetDatabase", "types": ["catalog", "database", "rootcatalog"], "resources": [{"type": "database", "fill": {"DatabaseName": "Name"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetDatabases": {"action": "glue:GetDatabases", "types": ["catalog", "database", "rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetDataflowGraph": {"action": "glue:GetDataflowGraph", "types": [], "resources": []},
|
||||
"glue:GetDevEndpoint": {"action": "glue:GetDevEndpoint", "types": ["devendpoint"], "resources": [{"type": "devendpoint", "fill": {"DevEndpointName": "EndpointName"}}]},
|
||||
"glue:GetDevEndpoints": {"action": "glue:GetDevEndpoints", "types": [], "resources": []},
|
||||
"glue:GetEntityRecords": {"action": "glue:GetEntityRecords", "types": ["catalog", "connection", "connectionType"], "resources": [{"type": "connection", "fill": {"ConnectionName": "ConnectionName"}}]},
|
||||
"glue:GetFormType": {"action": "glue:GetFormType", "types": [], "resources": []},
|
||||
"glue:GetGlossary": {"action": "glue:GetGlossary", "types": [], "resources": []},
|
||||
"glue:GetGlossaryTerm": {"action": "glue:GetGlossaryTerm", "types": [], "resources": []},
|
||||
"glue:GetGlueIdentityCenterConfiguration": {"action": "glue:GetGlueIdentityCenterConfiguration", "types": [], "resources": []},
|
||||
"glue:GetIntegrationResourceProperty": {"action": "glue:GetIntegrationResourceProperty", "types": ["catalog", "connection", "database", "integrationResourceProperty"], "resources": [{"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "ResourceArn"}]},
|
||||
"glue:GetIntegrationTableProperties": {"action": "glue:GetIntegrationTableProperties", "types": ["catalog", "connection", "database"], "resources": [{"types": ["catalog", "connection", "database"], "arn": "ResourceArn"}]},
|
||||
"glue:GetJob": {"action": "glue:GetJob", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:GetJobBookmark": {"action": "glue:GetJobBookmark", "types": [], "resources": []},
|
||||
"glue:GetJobRun": {"action": "glue:GetJobRun", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:GetJobRuns": {"action": "glue:GetJobRuns", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:GetJobUpgradeAnalysis": {"action": "glue:GetJobUpgradeAnalysis", "types": ["job"], "resources": []},
|
||||
"glue:GetJobs": {"action": "glue:GetJobs", "types": [], "resources": []},
|
||||
"glue:GetMLTaskRun": {"action": "glue:GetMLTaskRun", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}, {"types": ["mlTransform"], "through": "TaskRunId"}]},
|
||||
"glue:GetMLTaskRuns": {"action": "glue:GetMLTaskRuns", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}]},
|
||||
"glue:GetMLTransform": {"action": "glue:GetMLTransform", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}]},
|
||||
"glue:GetMLTransforms": {"action": "glue:GetMLTransforms", "types": ["mlTransform"], "resources": []},
|
||||
"glue:GetMapping": {"action": "glue:GetMapping", "types": [], "resources": []},
|
||||
"glue:GetMaterializedViewRefreshTaskRun": {"action": "glue:GetMaterializedViewRefreshTaskRun", "types": [], "resources": []},
|
||||
"glue:GetPartition": {"action": "glue:GetPartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:GetPartitionIndexes": {"action": "glue:GetPartitionIndexes", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:GetPartitions": {"action": "glue:GetPartitions", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:GetPlan": {"action": "glue:GetPlan", "types": [], "resources": []},
|
||||
"glue:GetRegistry": {"action": "glue:GetRegistry", "types": ["registry"], "resources": [{"types": ["registry"], "arn": "RegistryId.RegistryArn"}, {"type": "registry", "fill": {"RegistryName": "RegistryId.RegistryName"}}]},
|
||||
"glue:GetResourcePolicies": {"action": "glue:GetResourcePolicies", "types": ["rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetResourcePolicy": {"action": "glue:GetResourcePolicy", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"types": ["catalog", "database", "rootcatalog", "table"], "arn": "ResourceArn"}]},
|
||||
"glue:GetSchema": {"action": "glue:GetSchema", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:GetSchemaByDefinition": {"action": "glue:GetSchemaByDefinition", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:GetSchemaVersion": {"action": "glue:GetSchemaVersion", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"types": ["schema"], "through": "SchemaVersionId"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:GetSchemaVersionsDiff": {"action": "glue:GetSchemaVersionsDiff", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:GetSecurityConfiguration": {"action": "glue:GetSecurityConfiguration", "types": [], "resources": []},
|
||||
"glue:GetSecurityConfigurations": {"action": "glue:GetSecurityConfigurations", "types": [], "resources": []},
|
||||
"glue:GetSession": {"action": "glue:GetSession", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "Id"}}]},
|
||||
"glue:GetSessionEndpoint": {"action": "glue:GetSessionEndpoint", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "SessionId"}}]},
|
||||
"glue:GetStatement": {"action": "glue:GetStatement", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "SessionId"}}]},
|
||||
"glue:GetSystemLogsForJobRun": {"action": "glue:GetSystemLogsForJobRun", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:GetSystemLogsForSession": {"action": "glue:GetSystemLogsForSession", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "Id"}}]},
|
||||
"glue:GetTable": {"action": "glue:GetTable", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "Name"}}]},
|
||||
"glue:GetTableOptimizer": {"action": "glue:GetTableOptimizer", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:GetTableVersion": {"action": "glue:GetTableVersion", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:GetTableVersions": {"action": "glue:GetTableVersions", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:GetTables": {"action": "glue:GetTables", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetTags": {"action": "glue:GetTags", "types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "database", "devendpoint", "job", "trigger", "usageProfile", "workflow"], "resources": [{"types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "database", "devendpoint", "job", "trigger", "usageProfile", "workflow"], "arn": "ResourceArn"}]},
|
||||
"glue:GetTrigger": {"action": "glue:GetTrigger", "types": ["trigger"], "resources": [{"type": "trigger", "fill": {"TriggerName": "Name"}}]},
|
||||
"glue:GetTriggers": {"action": "glue:GetTriggers", "types": [], "resources": []},
|
||||
"glue:GetUnfilteredPartitionMetadata": {"action": "glue:GetUnfilteredPartitionMetadata", "types": [], "resources": []},
|
||||
"glue:GetUnfilteredPartitionsMetadata": {"action": "glue:GetUnfilteredPartitionsMetadata", "types": [], "resources": []},
|
||||
"glue:GetUnfilteredTableMetadata": {"action": "glue:GetUnfilteredTableMetadata", "types": [], "resources": []},
|
||||
"glue:GetUsageProfile": {"action": "glue:GetUsageProfile", "types": ["usageProfile"], "resources": [{"type": "usageProfile", "fill": {}, "find": ["Name"]}]},
|
||||
"glue:GetUserDefinedFunction": {"action": "glue:GetUserDefinedFunction", "types": ["catalog", "database", "rootcatalog", "userdefinedfunction"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "userdefinedfunction", "fill": {"DatabaseName": "DatabaseName", "UserDefinedFunctionName": "FunctionName"}}]},
|
||||
"glue:GetUserDefinedFunctions": {"action": "glue:GetUserDefinedFunctions", "types": ["catalog", "database", "rootcatalog", "userdefinedfunction"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:GetWorkflow": {"action": "glue:GetWorkflow", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:GetWorkflowRun": {"action": "glue:GetWorkflowRun", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:GetWorkflowRunProperties": {"action": "glue:GetWorkflowRunProperties", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:GetWorkflowRuns": {"action": "glue:GetWorkflowRuns", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:ImportCatalogToGlue": {"action": "glue:ImportCatalogToGlue", "types": ["rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:ListAssetTypes": {"action": "glue:ListAssetTypes", "types": [], "resources": []},
|
||||
"glue:ListBlueprints": {"action": "glue:ListBlueprints", "types": [], "resources": []},
|
||||
"glue:ListColumnStatisticsTaskRuns": {"action": "glue:ListColumnStatisticsTaskRuns", "types": [], "resources": []},
|
||||
"glue:ListConnectionTypes": {"action": "glue:ListConnectionTypes", "types": [], "resources": []},
|
||||
"glue:ListCrawlers": {"action": "glue:ListCrawlers", "types": [], "resources": []},
|
||||
"glue:ListCrawls": {"action": "glue:ListCrawls", "types": ["crawler"], "resources": [{"type": "crawler", "fill": {"CrawlerName": "CrawlerName"}}]},
|
||||
"glue:ListCustomEntityTypes": {"action": "glue:ListCustomEntityTypes", "types": [], "resources": []},
|
||||
"glue:ListDataQualityEvaluationConfigs": {"action": "glue:ListDataQualityEvaluationConfigs", "types": [], "resources": []},
|
||||
"glue:ListDataQualityResults": {"action": "glue:ListDataQualityResults", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:ListDataQualityResultsV2": {"action": "glue:ListDataQualityResults", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:ListDataQualityRuleRecommendationRuns": {"action": "glue:ListDataQualityRuleRecommendationRuns", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:ListDataQualityRulesetEvaluationRuns": {"action": "glue:ListDataQualityRulesetEvaluationRuns", "types": ["dataQualityRuleset"], "resources": [{"type": "dataQualityRuleset", "fill": {"RulesetName": "Filter.RulesetName"}}]},
|
||||
"glue:ListDataQualityRulesets": {"action": "glue:ListDataQualityRulesets", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:ListDataQualityStatisticAnnotations": {"action": "glue:GetDataQualityResult", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:ListDataQualityStatistics": {"action": "glue:GetDataQualityResult", "types": ["dataQualityRuleset"], "resources": []},
|
||||
"glue:ListDevEndpoints": {"action": "glue:ListDevEndpoints", "types": [], "resources": []},
|
||||
"glue:ListEntities": {"action": "glue:ListEntities", "types": ["connection", "connectionType", "rootcatalog"], "resources": [{"type": "connection", "fill": {"ConnectionName": "ConnectionName"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:ListFormTypes": {"action": "glue:ListFormTypes", "types": [], "resources": []},
|
||||
"glue:ListGlossaries": {"action": "glue:ListGlossaries", "types": [], "resources": []},
|
||||
"glue:ListGlossaryTerms": {"action": "glue:ListGlossaryTerms", "types": [], "resources": []},
|
||||
"glue:ListIntegrationResourceProperties": {"action": "glue:ListIntegrationResourceProperties", "types": ["catalog", "connection", "database", "integrationResourceProperty"], "resources": []},
|
||||
"glue:ListIntegrationTableProperties": {"action": "glue:ListIntegrationTableProperties", "types": [], "resources": []},
|
||||
"glue:ListIterableForms": {"action": "glue:ListIterableForms", "types": [], "resources": []},
|
||||
"glue:ListJobs": {"action": "glue:ListJobs", "types": [], "resources": []},
|
||||
"glue:ListMLTransforms": {"action": "glue:ListMLTransforms", "types": ["mlTransform"], "resources": []},
|
||||
"glue:ListMaterializedViewRefreshTaskRuns": {"action": "glue:ListMaterializedViewRefreshTaskRuns", "types": [], "resources": []},
|
||||
"glue:ListRegistries": {"action": "glue:ListRegistries", "types": [], "resources": []},
|
||||
"glue:ListSchemaVersions": {"action": "glue:ListSchemaVersions", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:ListSchemas": {"action": "glue:ListSchemas", "types": ["registry"], "resources": [{"types": ["registry"], "arn": "RegistryId.RegistryArn"}, {"type": "registry", "fill": {"RegistryName": "RegistryId.RegistryName"}}]},
|
||||
"glue:ListSessions": {"action": "glue:ListSessions", "types": [], "resources": []},
|
||||
"glue:ListStatements": {"action": "glue:ListStatements", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "SessionId"}}]},
|
||||
"glue:ListTableOptimizerRuns": {"action": "glue:ListTableOptimizerRuns", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:ListTriggers": {"action": "glue:ListTriggers", "types": [], "resources": []},
|
||||
"glue:ListUsageProfiles": {"action": "glue:ListUsageProfiles", "types": [], "resources": []},
|
||||
"glue:ListWorkflows": {"action": "glue:ListWorkflows", "types": [], "resources": []},
|
||||
"glue:ModifyIntegration": {"action": "glue:ModifyIntegration", "types": ["integration"], "resources": [{"types": ["integration"], "arn": "IntegrationIdentifier"}, {"type": "integration", "fill": {}, "find": ["IntegrationName"]}]},
|
||||
"glue:PublishDataQualityResultV2": {"action": "glue:PublishDataQuality", "types": ["dataQualityRuleset"], "resources": [{"type": "dataQualityRuleset", "fill": {"RulesetName": "RulesetName"}}]},
|
||||
"glue:PutAsset": {"action": "glue:PutAsset", "types": [], "resources": []},
|
||||
"glue:PutAssetType": {"action": "glue:PutAssetType", "types": [], "resources": []},
|
||||
"glue:PutAttachment": {"action": "glue:PutAttachment", "types": [], "resources": []},
|
||||
"glue:PutDataCatalogEncryptionSettings": {"action": "glue:PutDataCatalogEncryptionSettings", "types": ["rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:PutDataCatalogExportConfiguration": {"action": "glue:PutDataCatalogExportConfiguration", "types": [], "resources": []},
|
||||
"glue:PutDataQualityProfileAnnotation": {"action": "glue:PutDataQualityProfileAnnotation", "types": ["dataQualityRuleset", "job"], "resources": []},
|
||||
"glue:PutFormType": {"action": "glue:PutFormType", "types": [], "resources": []},
|
||||
"glue:PutResourcePolicy": {"action": "glue:PutResourcePolicy", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"types": ["catalog", "database", "rootcatalog", "table"], "arn": "ResourceArn"}]},
|
||||
"glue:PutSchemaVersionMetadata": {"action": "glue:PutSchemaVersionMetadata", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"types": ["schema"], "through": "SchemaVersionId"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:PutWorkflowRunProperties": {"action": "glue:PutWorkflowRunProperties", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:QuerySchemaVersionMetadata": {"action": "glue:QuerySchemaVersionMetadata", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"types": ["schema"], "through": "SchemaVersionId"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:RegisterConnectionType": {"action": "glue:RegisterConnectionType", "types": ["connectionType"], "resources": [{"type": "connectionType", "fill": {"ConnectionTypeName": "ConnectionType"}}]},
|
||||
"glue:RegisterSchemaVersion": {"action": "glue:RegisterSchemaVersion", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:RemoveSchemaVersionMetadata": {"action": "glue:RemoveSchemaVersionMetadata", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"types": ["schema"], "through": "SchemaVersionId"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:ResetJobBookmark": {"action": "glue:ResetJobBookmark", "types": [], "resources": []},
|
||||
"glue:ResumeWorkflowRun": {"action": "glue:ResumeWorkflowRun", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:RunStatement": {"action": "glue:RunStatement", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "SessionId"}}]},
|
||||
"glue:SearchAssets": {"action": "glue:SearchAssets", "types": [], "resources": []},
|
||||
"glue:SearchTables": {"action": "glue:SearchTables", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:StartBlueprintRun": {"action": "glue:StartBlueprintRun", "types": ["blueprint"], "resources": [{"types": ["blueprint"], "arn": "RoleArn"}, {"type": "blueprint", "fill": {"BlueprintName": "BlueprintName"}}]},
|
||||
"glue:StartColumnStatisticsTaskRun": {"action": "glue:StartColumnStatisticsTaskRun", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:StartColumnStatisticsTaskRunSchedule": {"action": "glue:StartColumnStatisticsTaskRunSchedule", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:StartCrawler": {"action": "glue:StartCrawler", "types": ["crawler"], "resources": [{"type": "crawler", "fill": {"CrawlerName": "Name"}}]},
|
||||
"glue:StartCrawlerSchedule": {"action": "glue:StartCrawlerSchedule", "types": [], "resources": []},
|
||||
"glue:StartDataQualityRuleRecommendationRun": {"action": "glue:StartDataQualityRuleRecommendationRun", "types": ["dataQualityRuleset"], "resources": [{"type": "dataQualityRuleset", "fill": {"RulesetName": "CreatedRulesetName"}}]},
|
||||
"glue:StartDataQualityRulesetEvaluationRun": {"action": "glue:StartDataQualityRulesetEvaluationRun", "types": ["dataQualityRuleset"], "resources": [{"type": "dataQualityRuleset", "fill": {"RulesetName": "RulesetNames[]"}}]},
|
||||
"glue:StartExportLabelsTaskRun": {"action": "glue:StartExportLabelsTaskRun", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}]},
|
||||
"glue:StartImportLabelsTaskRun": {"action": "glue:StartImportLabelsTaskRun", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}]},
|
||||
"glue:StartJobRun": {"action": "glue:StartJobRun", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:StartJobUpgradeAnalysis": {"action": "glue:StartJobUpgradeAnalysis", "types": ["job"], "resources": []},
|
||||
"glue:StartMLEvaluationTaskRun": {"action": "glue:StartMLEvaluationTaskRun", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}]},
|
||||
"glue:StartMLLabelingSetGenerationTaskRun": {"action": "glue:StartMLLabelingSetGenerationTaskRun", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}]},
|
||||
"glue:StartMaterializedViewRefreshTaskRun": {"action": "glue:StartMaterializedViewRefreshTaskRun", "types": [], "resources": []},
|
||||
"glue:StartTrigger": {"action": "glue:StartTrigger", "types": ["trigger"], "resources": [{"type": "trigger", "fill": {"TriggerName": "Name"}}]},
|
||||
"glue:StartWorkflowRun": {"action": "glue:StartWorkflowRun", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:StopColumnStatisticsTaskRun": {"action": "glue:StopColumnStatisticsTaskRun", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:StopColumnStatisticsTaskRunSchedule": {"action": "glue:StopColumnStatisticsTaskRunSchedule", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:StopCrawler": {"action": "glue:StopCrawler", "types": ["crawler"], "resources": [{"type": "crawler", "fill": {"CrawlerName": "Name"}}]},
|
||||
"glue:StopCrawlerSchedule": {"action": "glue:StopCrawlerSchedule", "types": [], "resources": []},
|
||||
"glue:StopJobUpgradeAnalysis": {"action": "glue:StopJobUpgradeAnalysis", "types": ["job"], "resources": []},
|
||||
"glue:StopMaterializedViewRefreshTaskRun": {"action": "glue:StopMaterializedViewRefreshTaskRun", "types": [], "resources": []},
|
||||
"glue:StopSession": {"action": "glue:StopSession", "types": ["session"], "resources": [{"type": "session", "fill": {"SessionId": "Id"}}]},
|
||||
"glue:StopTrigger": {"action": "glue:StopTrigger", "types": ["trigger"], "resources": [{"type": "trigger", "fill": {"TriggerName": "Name"}}]},
|
||||
"glue:StopWorkflowRun": {"action": "glue:StopWorkflowRun", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"glue:TagResource": {"action": "glue:TagResource", "types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityRuleset", "database", "devendpoint", "integration", "integrationResourceProperty", "job", "mlTransform", "registry", "schema", "session", "trigger", "usageProfile", "workflow"], "resources": [{"types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityRuleset", "database", "devendpoint", "integration", "integrationResourceProperty", "job", "mlTransform", "registry", "schema", "session", "trigger", "usageProfile", "workflow"], "arn": "ResourceArn"}]},
|
||||
"glue:TestConnection": {"action": "glue:TestConnection", "types": ["connection", "connectionType"], "resources": [{"type": "connection", "fill": {"ConnectionName": "ConnectionName"}}, {"type": "connectionType", "fill": {"ConnectionTypeName": "TestConnectionInput.ConnectionType"}}]},
|
||||
"glue:UntagResource": {"action": "glue:UntagResource", "types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityRuleset", "database", "devendpoint", "integration", "integrationResourceProperty", "job", "mlTransform", "registry", "schema", "session", "trigger", "usageProfile", "workflow"], "resources": [{"types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityRuleset", "database", "devendpoint", "integration", "integrationResourceProperty", "job", "mlTransform", "registry", "schema", "session", "trigger", "usageProfile", "workflow"], "arn": "ResourceArn"}]},
|
||||
"glue:UpdateAsset": {"action": "glue:UpdateAsset", "types": [], "resources": []},
|
||||
"glue:UpdateBlueprint": {"action": "glue:UpdateBlueprint", "types": ["blueprint"], "resources": [{"type": "blueprint", "fill": {"BlueprintName": "Name"}}]},
|
||||
"glue:UpdateCatalog": {"action": "glue:UpdateCatalog", "types": ["catalog", "rootcatalog"], "resources": [{"type": "rootcatalog", "fill": {}}, {"type": "catalog", "fill": {}, "find": ["CatalogId"]}]},
|
||||
"glue:UpdateClassifier": {"action": "glue:UpdateClassifier", "types": [], "resources": []},
|
||||
"glue:UpdateColumnStatisticsForPartition": {"action": "glue:UpdateColumnStatisticsForPartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:UpdateColumnStatisticsForTable": {"action": "glue:UpdateColumnStatisticsForTable", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:UpdateColumnStatisticsTaskSettings": {"action": "glue:UpdateColumnStatisticsTaskSettings", "types": ["database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:UpdateConnection": {"action": "glue:UpdateConnection", "types": ["connection", "connectionType", "rootcatalog"], "resources": [{"type": "connection", "fill": {"ConnectionName": "Name"}}, {"type": "rootcatalog", "fill": {}}, {"type": "connectionType", "fill": {"ConnectionTypeName": "ConnectionInput.ConnectionType"}}]},
|
||||
"glue:UpdateCrawler": {"action": "glue:UpdateCrawler", "types": ["crawler"], "resources": [{"type": "crawler", "fill": {"CrawlerName": "Name"}}]},
|
||||
"glue:UpdateCrawlerSchedule": {"action": "glue:UpdateCrawlerSchedule", "types": [], "resources": []},
|
||||
"glue:UpdateDataQualityEvaluationConfig": {"action": "glue:UpdateDataQualityEvaluationConfig", "types": [], "resources": []},
|
||||
"glue:UpdateDataQualityRuleset": {"action": "glue:UpdateDataQualityRuleset", "types": ["dataQualityRuleset"], "resources": [{"type": "dataQualityRuleset", "fill": {"RulesetName": "Ruleset"}}]},
|
||||
"glue:UpdateDatabase": {"action": "glue:UpdateDatabase", "types": ["catalog", "database", "rootcatalog"], "resources": [{"type": "database", "fill": {"DatabaseName": "Name"}}, {"type": "rootcatalog", "fill": {}}]},
|
||||
"glue:UpdateDevEndpoint": {"action": "glue:UpdateDevEndpoint", "types": ["devendpoint"], "resources": [{"type": "devendpoint", "fill": {"DevEndpointName": "EndpointName"}}]},
|
||||
"glue:UpdateGlossary": {"action": "glue:UpdateGlossary", "types": [], "resources": []},
|
||||
"glue:UpdateGlossaryTerm": {"action": "glue:UpdateGlossaryTerm", "types": [], "resources": []},
|
||||
"glue:UpdateGlueIdentityCenterConfiguration": {"action": "glue:UpdateGlueIdentityCenterConfiguration", "types": [], "resources": []},
|
||||
"glue:UpdateIntegrationResourceProperty": {"action": "glue:UpdateIntegrationResourceProperty", "types": ["catalog", "connection", "database", "integrationResourceProperty"], "resources": [{"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "ResourceArn"}, {"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "SourceProcessingProperties.RoleArn"}, {"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "TargetProcessingProperties.EventBusArn"}, {"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "TargetProcessingProperties.KmsArn"}, {"types": ["catalog", "connection", "database", "integrationResourceProperty"], "arn": "TargetProcessingProperties.RoleArn"}]},
|
||||
"glue:UpdateIntegrationTableProperties": {"action": "glue:UpdateIntegrationTableProperties", "types": ["catalog", "connection", "database"], "resources": [{"types": ["catalog", "connection", "database"], "arn": "ResourceArn"}]},
|
||||
"glue:UpdateJob": {"action": "glue:UpdateJob", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:UpdateJobFromSourceControl": {"action": "glue:UpdateJobFromSourceControl", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:UpdateMLTransform": {"action": "glue:UpdateMLTransform", "types": ["mlTransform"], "resources": [{"type": "mlTransform", "fill": {"TransformId": "TransformId"}}]},
|
||||
"glue:UpdatePartition": {"action": "glue:UpdatePartition", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:UpdateRegistry": {"action": "glue:UpdateRegistry", "types": ["registry"], "resources": [{"types": ["registry"], "arn": "RegistryId.RegistryArn"}, {"type": "registry", "fill": {"RegistryName": "RegistryId.RegistryName"}}]},
|
||||
"glue:UpdateSchema": {"action": "glue:UpdateSchema", "types": ["registry", "schema"], "resources": [{"types": ["registry", "schema"], "arn": "SchemaId.SchemaArn"}, {"type": "registry", "fill": {"RegistryName": "SchemaId.RegistryName"}}, {"type": "schema", "fill": {"SchemaName": "SchemaId.SchemaName"}}]},
|
||||
"glue:UpdateSourceControlFromJob": {"action": "glue:UpdateSourceControlFromJob", "types": ["job"], "resources": [{"type": "job", "fill": {"JobName": "JobName"}}]},
|
||||
"glue:UpdateTable": {"action": "glue:UpdateTable", "types": ["catalog", "database", "rootcatalog", "table"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "Name"}, "unless": {"Name": [null]}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableInput.Name"}, "when": {"Name": [null]}}]},
|
||||
"glue:UpdateTableOptimizer": {"action": "glue:UpdateTableOptimizer", "types": ["database", "rootcatalog", "table"], "resources": [{"types": ["database", "rootcatalog", "table"], "arn": "TableOptimizerConfiguration.roleArn"}, {"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "table", "fill": {"DatabaseName": "DatabaseName", "TableName": "TableName"}}]},
|
||||
"glue:UpdateTrigger": {"action": "glue:UpdateTrigger", "types": ["trigger"], "resources": [{"type": "trigger", "fill": {"TriggerName": "Name"}}]},
|
||||
"glue:UpdateUsageProfile": {"action": "glue:UpdateUsageProfile", "types": ["usageProfile"], "resources": [{"type": "usageProfile", "fill": {}, "find": ["Name"]}]},
|
||||
"glue:UpdateUserDefinedFunction": {"action": "glue:UpdateUserDefinedFunction", "types": ["catalog", "database", "rootcatalog", "userdefinedfunction"], "resources": [{"type": "database", "fill": {"DatabaseName": "DatabaseName"}}, {"type": "rootcatalog", "fill": {}}, {"type": "userdefinedfunction", "fill": {"DatabaseName": "DatabaseName", "UserDefinedFunctionName": "FunctionName"}}]},
|
||||
"glue:UpdateWorkflow": {"action": "glue:UpdateWorkflow", "types": ["workflow"], "resources": [{"type": "workflow", "fill": {"WorkflowName": "Name"}}]},
|
||||
"guardduty:AcceptAdministratorInvitation": {"action": "guardduty:AcceptAdministratorInvitation", "types": [], "resources": []},
|
||||
"guardduty:AcceptInvitation": {"action": "guardduty:AcceptInvitation", "types": [], "resources": []},
|
||||
"guardduty:ArchiveFindings": {"action": "guardduty:ArchiveFindings", "types": [], "resources": []},
|
||||
@@ -2981,7 +3295,7 @@
|
||||
"quicksight:CreateBrand": {"action": "quicksight:CreateBrand", "types": ["brand"], "resources": [{"type": "brand", "fill": {"ResourceId": "BrandId"}}], "located": {"BrandId": "{BrandId}"}},
|
||||
"quicksight:CreateCustomPermissions": {"action": "quicksight:CreateCustomPermissions", "types": ["custompermissions"], "resources": [{"type": "custompermissions", "fill": {}, "find": ["AwsAccountId", "CustomPermissionsName"]}], "located": {"AwsAccountId": "{AwsAccountId}"}},
|
||||
"quicksight:CreateDashboard": {"action": "quicksight:CreateDashboard", "types": ["dashboard"], "resources": [{"types": ["dashboard"], "arn": "FolderArns[]"}, {"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}},
|
||||
"quicksight:CreateDataSet": {"action": "quicksight:CreateDataSet", "types": ["datasource"], "resources": [{"types": ["datasource"], "arn": "FolderArns[]"}, {"types": ["datasource"], "arn": "LogicalTableMap{}.Source.DataSetArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.CustomSql.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.FileSource.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.RelationalTable.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.S3Source.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.SaaSTable.DataSourceArn"}]},
|
||||
"quicksight:CreateDataSet": {"action": "quicksight:CreateDataSet", "types": ["datasource"], "resources": [{"types": ["datasource"], "arn": "FolderArns[]"}, {"types": ["datasource"], "arn": "LogicalTableMap{}.Source.DataSetArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.CustomSql.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.FileSource.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.RelationalTable.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.S3Source.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.SaaSTable.DataSourceArn"}], "makes": [{"type": "dataset", "fill": {"ResourceId": "DataSetId"}}]},
|
||||
"quicksight:CreateDataSource": {"action": "quicksight:CreateDataSource", "types": [], "resources": [], "makes": [{"type": "datasource", "fill": {"ResourceId": "DataSourceId"}}]},
|
||||
"quicksight:CreateDlpSetting": {"action": "quicksight:CreateDlpSetting", "types": ["dlpSetting"], "resources": [{"type": "dlpSetting", "fill": {"ResourceId": "DlpSettingId"}}], "located": {"DlpSettingId": "{DlpSettingId}"}},
|
||||
"quicksight:CreateFlow": {"action": "quicksight:CreateFlow", "types": ["flow"], "resources": [{"type": "flow", "fill": {}}]},
|
||||
@@ -3002,7 +3316,7 @@
|
||||
"quicksight:CreateTemplateAlias": {"action": "quicksight:CreateTemplateAlias", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}},
|
||||
"quicksight:CreateTheme": {"action": "quicksight:CreateTheme", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}},
|
||||
"quicksight:CreateThemeAlias": {"action": "quicksight:CreateThemeAlias", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}},
|
||||
"quicksight:CreateTopic": {"action": "quicksight:CreateTopic", "types": ["dataset"], "resources": []},
|
||||
"quicksight:CreateTopic": {"action": "quicksight:CreateTopic", "types": ["dataset"], "resources": [], "makes": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}]},
|
||||
"quicksight:CreateTopicRefreshSchedule": {"action": "quicksight:CreateTopicRefreshSchedule", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}},
|
||||
"quicksight:CreateTopicV2": {"action": "quicksight:CreateTopic", "types": ["dataset"], "resources": [{"types": ["dataset"], "arn": "FolderArns[]"}]},
|
||||
"quicksight:CreateVPCConnection": {"action": "quicksight:CreateVPCConnection", "types": [], "resources": [], "makes": [{"type": "vpcconnection", "fill": {"ResourceId": "VPCConnectionId"}}]},
|
||||
@@ -3389,7 +3703,7 @@
|
||||
"redshift:AuthorizeEndpointAccess": {"action": "redshift:AuthorizeEndpointAccess", "types": ["cluster"], "resources": [{"type": "cluster", "fill": {"ClusterName": "ClusterIdentifier"}}]},
|
||||
"redshift:AuthorizeSnapshotAccess": {"action": "redshift:AuthorizeSnapshotAccess", "types": ["cluster", "snapshot"], "resources": [{"types": ["cluster", "snapshot"], "arn": "SnapshotArn"}, {"type": "cluster", "fill": {"ClusterName": "SnapshotClusterIdentifier"}}, {"type": "snapshot", "fill": {"ClusterName": "SnapshotClusterIdentifier", "SnapshotName": "SnapshotIdentifier"}, "unless": {"SnapshotIdentifier": [null]}}]},
|
||||
"redshift:BatchDeleteClusterSnapshots": {"action": "redshift:BatchDeleteClusterSnapshots", "types": ["snapshot"], "resources": []},
|
||||
"redshift:BatchModifyClusterSnapshots": {"action": "redshift:BatchModifyClusterSnapshots", "types": ["snapshot"], "resources": []},
|
||||
"redshift:BatchModifyClusterSnapshots": {"action": "redshift:BatchModifyClusterSnapshots", "types": ["snapshot"], "resources": [{"type": "snapshot", "fill": {"SnapshotName": "SnapshotIdentifierList[]"}}]},
|
||||
"redshift:CancelResize": {"action": "redshift:CancelResize", "types": ["cluster"], "resources": [{"type": "cluster", "fill": {"ClusterName": "ClusterIdentifier"}}]},
|
||||
"redshift:CopyClusterSnapshot": {"action": "redshift:CopyClusterSnapshot", "types": ["cluster", "snapshot"], "resources": [{"type": "cluster", "fill": {"ClusterName": "SourceSnapshotClusterIdentifier"}}, {"type": "snapshot", "fill": {"ClusterName": "SourceSnapshotClusterIdentifier", "SnapshotName": "SourceSnapshotIdentifier"}, "made": true}]},
|
||||
"redshift:CreateAuthenticationProfile": {"action": "redshift:CreateAuthenticationProfile", "types": [], "resources": []},
|
||||
|
||||
@@ -418,6 +418,12 @@ class RequestResourceMembersTest {
|
||||
Map.of(), Map.of(), null, Map.of(), false, null)),
|
||||
parseUnchecked("{\"namespaces\":{\"a\":[]}," + formats + ",\"operations\":{\"a:Op\":{\"types\":[],"
|
||||
+ "\"resources\":[]," + makes + "}}}").makes().get("a:Op"));
|
||||
// So does a create acting on other types alone (Glue's CreateConnection, on its connection type).
|
||||
String kinds = "\"arnFormats\":{\"a\":{\"thing\":\"arn:${Partition}:a:${Region}:${Account}:thing/${ThingName}\","
|
||||
+ "\"kind\":\"arn:${Partition}:a:${Region}:${Account}:kind/${KindName}\"}}";
|
||||
assertEquals(List.of("thing"), parseUnchecked("{\"namespaces\":{\"a\":[]}," + kinds
|
||||
+ ",\"operations\":{\"a:Op\":{\"types\":[\"kind\"],\"resources\":[]," + makes + "}}}")
|
||||
.makes().get("a:Op").getFirst().types());
|
||||
for (String bad : List.of("\"types\":[\"thing\"],\"resources\":[]," + makes, "\"types\":[],\"resources\":[],"
|
||||
+ "\"makes\":[{\"type\":\"thing\",\"fill\":{},\"made\":true}]", "\"types\":[],\"resources\":[],"
|
||||
+ "\"makes\":[{\"types\":[\"thing\"],\"arn\":\"ThingArn\"}]")) {
|
||||
@@ -546,11 +552,11 @@ class RequestResourceMembersTest {
|
||||
}
|
||||
|
||||
/**
|
||||
* Each resource a create whose action acts on no type makes, from a request naming it, is where its tags go, and
|
||||
* the create itself names none.
|
||||
* Each resource a create whose action acts on no type, or on other types alone, makes, from a request naming it,
|
||||
* is where its tags go, and a create acting on no type names nothing itself.
|
||||
*/
|
||||
@TestFactory
|
||||
Stream<DynamicTest> everyResourceACreateActingOnNoTypeMakesIsWhereItsTagsGo() {
|
||||
Stream<DynamicTest> everyResourceACreateMakesIsWhereItsTagsGo() {
|
||||
RequestResourceMembers.Table table = RequestResourceMembers.table();
|
||||
return table.makes().entrySet().stream().map(operation -> DynamicTest.dynamicTest(operation.getKey(), () -> {
|
||||
String namespace = operation.getKey().substring(0, operation.getKey().indexOf(':'));
|
||||
@@ -570,8 +576,10 @@ class RequestResourceMembersTest {
|
||||
"000000000000");
|
||||
assertEquals(List.of(expected), RequestResources.created(operation.getKey(), null, json(body.toString()),
|
||||
"aws", "us-east-1", "000000000000", labels), body + " " + labels);
|
||||
assertEquals(List.of(), RequestResources.of(operation.getKey(), json(body.toString()), "aws",
|
||||
"us-east-1", "000000000000", null, labels));
|
||||
if (table.types().getOrDefault(operation.getKey(), List.of()).isEmpty()) {
|
||||
assertEquals(List.of(), RequestResources.of(operation.getKey(), json(body.toString()), "aws",
|
||||
"us-east-1", "000000000000", null, labels));
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
|
||||
+131
@@ -1860,6 +1860,137 @@ class IamRequestResourceEnforcementIntegrationTest {
|
||||
}
|
||||
|
||||
/** The user's JSON-protocol request to the target, {@code <prefix>.<operation>}, with the body. */
|
||||
/**
|
||||
* A Glue table is checked on the account's catalog, its database and itself, the types AWS gives
|
||||
* {@code glue:GetTable}, so a grant on all three allows it, the same grant refuses another table of the database,
|
||||
* a grant leaving out the catalog refuses it, and a deny scoped to the table holds under an allow on everything.
|
||||
*/
|
||||
@Test
|
||||
void aGlueTableIsCheckedOnTheCatalogItsDatabaseAndItself() {
|
||||
String database = "res_db_" + suffix();
|
||||
String glueArn = "arn:aws:glue:" + REGION + ":" + ACCOUNT + ":";
|
||||
glue("CreateDatabase", "{\"DatabaseInput\":{\"Name\":\"" + database + "\"}}").statusCode(200);
|
||||
cleanup.register(() -> glue("DeleteDatabase", "{\"Name\":\"" + database + "\"}"));
|
||||
glue("CreateTable", "{\"DatabaseName\":\"" + database + "\",\"TableInput\":{\"Name\":\"orders\"}}")
|
||||
.statusCode(200);
|
||||
cleanup.register(() -> glue("DeleteTable", "{\"DatabaseName\":\"" + database + "\",\"Name\":\"orders\"}"));
|
||||
String catalog = allowOn("glue:GetTable", glueArn + "catalog");
|
||||
String scoped = allowOn("glue:GetTable", glueArn + "database/" + database) + ","
|
||||
+ allowOn("glue:GetTable", glueArn + "table/" + database + "/orders");
|
||||
|
||||
User user = user("res-glue-table");
|
||||
user.policy(catalog + "," + scoped);
|
||||
getTable(user, database, "orders").statusCode(200);
|
||||
refusedJson(getTable(user, database, "other"), "glue:GetTable");
|
||||
user.policy(scoped);
|
||||
refusedJson(getTable(user, database, "orders"), "glue:GetTable");
|
||||
user.policy(allowOn("glue:GetTable", "*") + ",{\"Effect\":\"Deny\",\"Action\":\"glue:GetTable\",\"Resource\":\""
|
||||
+ glueArn + "table/" + database + "/orders\"}");
|
||||
refusedJson(getTable(user, database, "orders"), "glue:GetTable");
|
||||
}
|
||||
|
||||
/** A Glue database is checked on the catalog and {@code database/<name>}, and a job on {@code job/<name>}. */
|
||||
@Test
|
||||
void aGlueDatabaseAndAJobAreCheckedOnTheArnsGlueGivesThem() {
|
||||
String database = "res_db_" + suffix();
|
||||
String job = "res-job-" + suffix();
|
||||
String glueArn = "arn:aws:glue:" + REGION + ":" + ACCOUNT + ":";
|
||||
glue("CreateDatabase", "{\"DatabaseInput\":{\"Name\":\"" + database + "\"}}").statusCode(200);
|
||||
cleanup.register(() -> glue("DeleteDatabase", "{\"Name\":\"" + database + "\"}"));
|
||||
glue("CreateJob", "{\"Name\":\"" + job + "\",\"Role\":\"arn:aws:iam::" + ACCOUNT + ":role/glue\","
|
||||
+ "\"Command\":{\"Name\":\"glueetl\",\"ScriptLocation\":\"s3://scripts/job.py\"}}").statusCode(200);
|
||||
cleanup.register(() -> glue("DeleteJob", "{\"JobName\":\"" + job + "\"}"));
|
||||
|
||||
User user = user("res-glue-db");
|
||||
user.policy(allowOn("glue:GetDatabase", glueArn + "catalog") + ","
|
||||
+ allowOn("glue:GetDatabase", glueArn + "database/" + database) + ","
|
||||
+ allowOn("glue:GetJob", glueArn + "job/" + job));
|
||||
send(user, "glue", "AWSGlue.GetDatabase", "1.1", "{\"Name\":\"" + database + "\"}").statusCode(200);
|
||||
refusedJson(send(user, "glue", "AWSGlue.GetDatabase", "1.1", "{\"Name\":\"" + database + "_other\"}"),
|
||||
"glue:GetDatabase");
|
||||
send(user, "glue", "AWSGlue.GetJob", "1.1", "{\"JobName\":\"" + job + "\"}").statusCode(200);
|
||||
refusedJson(send(user, "glue", "AWSGlue.GetJob", "1.1", "{\"JobName\":\"" + job + "-other\"}"), "glue:GetJob");
|
||||
}
|
||||
|
||||
/**
|
||||
* What Glue's batch deletes name, the tables of {@code TablesToDelete} and the connections of
|
||||
* {@code ConnectionNameList}, is checked one by one, so a deny scoped to one of them holds under an allow on
|
||||
* everything.
|
||||
*/
|
||||
@Test
|
||||
void aGlueBatchDeleteIsCheckedOnEachTableAndConnectionItNames() {
|
||||
String database = "res_db_" + suffix();
|
||||
String glueArn = "arn:aws:glue:" + REGION + ":" + ACCOUNT + ":";
|
||||
glue("CreateDatabase", "{\"DatabaseInput\":{\"Name\":\"" + database + "\"}}").statusCode(200);
|
||||
cleanup.register(() -> glue("DeleteDatabase", "{\"Name\":\"" + database + "\"}"));
|
||||
|
||||
User user = user("res-glue-batch");
|
||||
user.policy(allowOn("glue:*", "*") + ",{\"Effect\":\"Deny\",\"Action\":[\"glue:BatchDeleteTable\","
|
||||
+ "\"glue:BatchDeleteConnection\"],\"Resource\":[\"" + glueArn + "table/" + database + "/kept\",\""
|
||||
+ glueArn + "connection/kept-" + database + "\"]}");
|
||||
refusedJson(send(user, "glue", "AWSGlue.BatchDeleteTable", "1.1", "{\"DatabaseName\":\"" + database
|
||||
+ "\",\"TablesToDelete\":[\"gone\",\"kept\"]}"), "glue:BatchDeleteTable");
|
||||
send(user, "glue", "AWSGlue.BatchDeleteTable", "1.1", "{\"DatabaseName\":\"" + database
|
||||
+ "\",\"TablesToDelete\":[\"gone\"]}").statusCode(200);
|
||||
refusedJson(send(user, "glue", "AWSGlue.BatchDeleteConnection", "1.1", "{\"ConnectionNameList\":[\"gone-"
|
||||
+ database + "\",\"kept-" + database + "\"]}"), "glue:BatchDeleteConnection");
|
||||
send(user, "glue", "AWSGlue.BatchDeleteConnection", "1.1", "{\"ConnectionNameList\":[\"gone-" + database
|
||||
+ "\"]}").statusCode(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* A Glue database's creation is checked on the catalog and the database its {@code DatabaseInput.Name} names, and
|
||||
* a connection's tags on the connection its {@code ConnectionInput.Name} names, the resource they go on.
|
||||
*/
|
||||
@Test
|
||||
void aGlueCreateIsCheckedOnWhatItsInputNames() {
|
||||
String database = "res_db_" + suffix();
|
||||
String connection = "res-conn-" + suffix();
|
||||
String glueArn = "arn:aws:glue:" + REGION + ":" + ACCOUNT + ":";
|
||||
cleanup.register(() -> glue("DeleteDatabase", "{\"Name\":\"" + database + "\"}"));
|
||||
cleanup.register(() -> glue("DeleteConnection", "{\"ConnectionName\":\"" + connection + "\"}"));
|
||||
|
||||
User user = user("res-glue-create");
|
||||
user.policy(allowOn("glue:CreateDatabase", glueArn + "catalog") + ","
|
||||
+ allowOn("glue:CreateDatabase", glueArn + "database/" + database));
|
||||
refusedJson(send(user, "glue", "AWSGlue.CreateDatabase", "1.1",
|
||||
"{\"DatabaseInput\":{\"Name\":\"" + database + "_other\"}}"), "glue:CreateDatabase");
|
||||
send(user, "glue", "AWSGlue.CreateDatabase", "1.1", "{\"DatabaseInput\":{\"Name\":\"" + database + "\"}}")
|
||||
.statusCode(200);
|
||||
|
||||
String create = "{\"ConnectionInput\":{\"Name\":\"" + connection + "\",\"ConnectionType\":\"JDBC\","
|
||||
+ "\"ConnectionProperties\":{\"JDBC_CONNECTION_URL\":\"jdbc:postgresql://db:5432/app\"}},"
|
||||
+ "\"Tags\":{\"team\":\"data\"}}";
|
||||
user.policy(allowOn("glue:CreateConnection", "*") + "," + allowOn("glue:TagResource", "*")
|
||||
+ ",{\"Effect\":\"Deny\",\"Action\":\"glue:TagResource\",\"Resource\":\"" + glueArn + "connection/"
|
||||
+ connection + "\"}");
|
||||
refusedJson(send(user, "glue", "AWSGlue.CreateConnection", "1.1", create), "glue:TagResource");
|
||||
user.policy(allowOn("glue:CreateConnection", "*") + ","
|
||||
+ allowOn("glue:TagResource", glueArn + "connection/" + connection));
|
||||
send(user, "glue", "AWSGlue.CreateConnection", "1.1", create).statusCode(200);
|
||||
}
|
||||
|
||||
/** A Glue workflow run is checked on the workflow its {@code Name} names. */
|
||||
@Test
|
||||
void aGlueWorkflowRunIsCheckedOnItsWorkflow() {
|
||||
String workflow = "res-wf-" + suffix();
|
||||
User user = user("res-glue-run");
|
||||
user.policy(allowOn("glue:GetWorkflowRun", "arn:aws:glue:" + REGION + ":" + ACCOUNT + ":workflow/" + workflow));
|
||||
refusedJson(send(user, "glue", "AWSGlue.GetWorkflowRun", "1.1",
|
||||
"{\"Name\":\"" + workflow + "-other\",\"RunId\":\"wr_0\"}"), "glue:GetWorkflowRun");
|
||||
send(user, "glue", "AWSGlue.GetWorkflowRun", "1.1", "{\"Name\":\"" + workflow + "\",\"RunId\":\"wr_0\"}")
|
||||
.body(not(containsString("AccessDeniedException")));
|
||||
}
|
||||
|
||||
private static ValidatableResponse glue(String operation, String body) {
|
||||
return adminJson("glue", "AWSGlue." + operation).body(body).post("/").then();
|
||||
}
|
||||
|
||||
private static ValidatableResponse getTable(User user, String database, String table) {
|
||||
return send(user, "glue", "AWSGlue.GetTable", "1.1",
|
||||
"{\"DatabaseName\":\"" + database + "\",\"Name\":\"" + table + "\"}");
|
||||
}
|
||||
|
||||
private static ValidatableResponse send(User user, String service, String target, String version, String body) {
|
||||
return user.json(service, target, version).body(body).post("/").then();
|
||||
}
|
||||
|
||||
@@ -28,15 +28,16 @@ strings, or, for an ARN, a member of a structure or of each element of a list of
|
||||
and a value names a resource of a type when it matches the type's ARN format, so an ARN of
|
||||
something the action does not act on is not checked.
|
||||
- fills one of the variables of the type's ARN format: its stem (the name lowercased, `Arn`, `Name`,
|
||||
`Id`, `Identifier` and a plural dropped) is the variable's, ends with it or is the end of it, four
|
||||
`Id`, `Identifier`, `Config`, `Input`, `List` and a plural dropped) is the variable's, ends with it or is the end of it, four
|
||||
letters at least (`AutoScalingGroupName` fills `${GroupFriendlyName}`, `GroupId` fills
|
||||
`${SecurityGroupId}`), and it is a name for a name and an id for an id (an `Identifier` either),
|
||||
or the member is a bare `Name`, `Id` or `Identifier`, the variable is named after the type and the
|
||||
operation is about the type, its name past the verb the type's (`DescribeTargetGroups`, but not
|
||||
`StartExecution` for a state machine, whose `name` is the execution's), and no member holds its ARN,
|
||||
or, when no member does either, a string member whose botocore shape is named after the type (Parameter Store's
|
||||
`GetParametersByPath` names a hierarchy by a `Path` holding a `PSParameterName`, as `GetParameterHistory` names a
|
||||
parameter by its `Name`).
|
||||
or, when no member does either, a string or list member whose botocore shape is named after the type (Parameter
|
||||
Store's `GetParametersByPath` names a hierarchy by a `Path` holding a `PSParameterName`, as `GetParameterHistory`
|
||||
names a parameter by its `Name`, and Glue's `BatchDeleteTable` its tables by `TablesToDelete`, a
|
||||
`BatchDeleteTableNameList`).
|
||||
Of several members that could fill a variable, one naming the type before the variable wins over a
|
||||
bare one: the snapshot `RestoreFromClusterSnapshot` restores has the cluster its
|
||||
`SnapshotClusterIdentifier` names, not the `ClusterIdentifier` of the cluster it creates, and the
|
||||
@@ -68,7 +69,14 @@ one id appended (`CreateListener` acts on a load balancer and makes `listener/ap
|
||||
tagging action a create's tags need is checked on it, as AWS checks it on the resource being tagged. A create
|
||||
that names another resource beside the one it makes, the pipeline a webhook connects to or the namespace a
|
||||
service is made in, marks the one it makes `made`, of a type, or with an ARN format's leading resource word,
|
||||
related to its name past the verb, so its tags are checked there alone.
|
||||
related to its name past the verb, so its tags are checked there alone. A create whose request carries tags,
|
||||
whose action acts on other types alone, makes the resource of the type it is named after when the request names
|
||||
every variable of it, a field of a top-level structure included (`makes`): Glue's `CreateConnection` acts on its
|
||||
connection type and the catalog, and its tags go on `connection/<ConnectionInput.Name>`.
|
||||
|
||||
A type of no variables of its own, the account's one (Glue's `catalog`), is named by every request, so it is no
|
||||
alternative to the unnamed type a create makes: `CreateDatabase` is checked on it and on the database its
|
||||
`DatabaseInput.Name` names.
|
||||
|
||||
An optional member holding the ARN of a type whose format has no variable of its own, Security Hub's `HubArn` and
|
||||
`hub/default`, also names that type when the request leaves it out: there is one such resource in the caller's
|
||||
@@ -272,7 +280,7 @@ NAMESPACES = ("access-analyzer", "account", "acm", "application-autoscaling", "a
|
||||
"payment-cryptography", "quicksight", "ram", "redshift", "redshift-data", "redshift-serverless",
|
||||
"rekognition", "resource-explorer-2", "route53", "s3tables", "s3vectors", "servicediscovery",
|
||||
"servicequotas", "ssm", "sso", "states", "textract", "timestream-influxdb", "translate", "signer", "xray",
|
||||
"securityhub", "guardduty", "secretsmanager", "scheduler", "lambda", "cloudformation")
|
||||
"securityhub", "guardduty", "secretsmanager", "scheduler", "lambda", "cloudformation", "glue")
|
||||
|
||||
# The namespaces whose resources ResourceArnBuilder builds itself.
|
||||
HAND_BUILT = ("apigateway", "bedrock", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "logs", "pipes",
|
||||
@@ -414,7 +422,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"or EnvironmentId alone, so reading it needs the stored environment those find",
|
||||
"elasticfilesystem": _REST,
|
||||
"execute-api": _REST,
|
||||
"glue": _LATER,
|
||||
"identitystore": _LATER,
|
||||
"iot": _LATER,
|
||||
"kafka": _REST,
|
||||
@@ -496,7 +503,7 @@ DOC_MINTED_SUFFIX_RE = re.compile(r"\badds an? (?P<separator>hyphen|dash|undersc
|
||||
r"characters after the (?P<word>[a-z][a-z -]*?) name at the end of the arn\b")
|
||||
SEPARATORS = {"hyphen": "-", "dash": "-", "underscore": "_", "period": "."}
|
||||
COUNTS = {"one": 1, "two": 2, "three": 3, "four": 4, "five": 5, "six": 6, "seven": 7, "eight": 8, "nine": 9, "ten": 10}
|
||||
STEM_SUFFIX_RE = re.compile(r"(arns|arn|names|name|identifiers|identifier|ids|id|config|s)$")
|
||||
STEM_SUFFIX_RE = re.compile(r"(arns|arn|names|name|identifiers|identifier|ids|id|config|input|list|s)$")
|
||||
# A bare member that names the resource of the type its operation acts on.
|
||||
BARE = {"name", "names", "id", "ids", "identifier", "identifiers"}
|
||||
# The patterns botocore gives a string shape that holds an account id.
|
||||
@@ -518,8 +525,9 @@ LOCATED_RE = re.compile(r"^(\{[A-Za-z0-9_]+\}|\?[A-Za-z0-9_.-]+)$")
|
||||
|
||||
def stem(name: str) -> str:
|
||||
"""The name lowercased, without what is not a letter or digit, and without a trailing `Arn`,
|
||||
`Name`, `Id`, `Identifier`, `Config` or plural, twice over (`TargetGroupArns` is `targetgroup`,
|
||||
`DistributionConfig` is `distribution`)."""
|
||||
`Name`, `Id`, `Identifier`, `Config`, `Input`, `List` or plural, twice over (`TargetGroupArns` is `targetgroup`,
|
||||
`DistributionConfig` is `distribution`, Glue's `DatabaseInput` is `database` and `ConnectionNameList`
|
||||
`connection`)."""
|
||||
value = re.sub(r"[^a-z0-9]", "", name.lower())
|
||||
for _ in range(2):
|
||||
value = STEM_SUFFIX_RE.sub("", value)
|
||||
@@ -730,7 +738,7 @@ def with_absent_account(resources: list[dict], formats: dict[str, str], accounts
|
||||
# --------------------------------------------------------------------------- #
|
||||
# Words that end a type's name in a member's documentation: "The name of the pipeline to start".
|
||||
DOC_STOP = {"to", "that", "you", "for", "which", "created", "from", "in", "of", "about", "whose", "with", "on",
|
||||
"belonging", "the", "a", "an", "is", "are", "and", "or", "by", "used", "will", "should", "can", ""}
|
||||
"belonging", "being", "the", "a", "an", "is", "are", "and", "or", "by", "used", "will", "should", "can", ""}
|
||||
# "The name of the pipeline", "Specifies the name or the CloudTrail ARN of the trail", "The ID of the delivery".
|
||||
DOC_NAMES_RE = re.compile(r"^(?:specifies )?(?:the |a |an )?(?:unique )?(?:name|id|identifier)"
|
||||
r"(?: or (?:the )?(?:[a-z]+ )?arn)? (?:of|for) (?:the |a |an )?(?P<phrase>.+)$")
|
||||
@@ -1730,6 +1738,11 @@ def resources_for(operation: str, types: list[str], formats: dict[str, str], mem
|
||||
if len(kinds) == 1 or not by_members_key_is_empty(kinds, filled):
|
||||
full = [kind for kind in kinds if complete[kind]]
|
||||
kept += kinds if len(kinds) == 1 else (full if len(full) == 1 else [])
|
||||
else:
|
||||
# A type of no variables of its own is the account's one, which every request names, never an
|
||||
# alternative to a create's own type: Glue's `catalog` beside the database `CreateDatabase` makes.
|
||||
kept += [kind for kind in kinds if not [v for v in VARIABLE_RE.findall(formats[kind])
|
||||
if v not in KNOWN_VARIABLES]]
|
||||
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(), shapes)
|
||||
@@ -1837,25 +1850,51 @@ def creates_for(operation: str, types: list[str], formats: dict[str, str], membe
|
||||
|
||||
def makes_for(operation: str, types: list[str], formats: dict[str, str], members: dict[str, str],
|
||||
arn_members: set[str] | None = None, labels: dict[str, str] | None = None,
|
||||
aliased: set[str] | None = None) -> list[dict]:
|
||||
aliased: set[str] | None = None, models: dict[str, dict] | None = None) -> list[dict]:
|
||||
"""The resource a create whose action acts on no resource type makes: of the one type of its namespace named as
|
||||
the operation is past its verb, or else related to that name, named as the rule names a type an action acts on,
|
||||
its variables nothing fills open. AWS checks the tagging action a create's tags need on the resource being
|
||||
tagged, so they are checked there (`CreateView` makes `view/<ViewName>/*`, `CreateSink` `sink/*`), and the create
|
||||
itself stays checked on `*`."""
|
||||
itself stays checked on `*`. So is the resource a create whose request carries tags makes when its action acts
|
||||
on other types alone and the request names it in full, a field of a top-level structure included (`ConnectionInput.Name`
|
||||
for the connection Glue's `CreateConnection` makes, whose action acts on its connection type and catalog), the
|
||||
create itself staying checked on those."""
|
||||
name = operation.split(":", 1)[1]
|
||||
if types or not CREATING_RE.match(name):
|
||||
if not CREATING_RE.match(name):
|
||||
return []
|
||||
created = stem(CREATING_RE.sub("", name))
|
||||
kinds = [kind for kind in formats if stem(kind) == created] \
|
||||
or [kind for kind in formats if related(created, stem(kind))]
|
||||
if len(kinds) != 1:
|
||||
return []
|
||||
if types:
|
||||
return made_by_a_create_of_other_types(operation, types, formats, kinds[0], members, arn_members, labels,
|
||||
aliased, models)
|
||||
return [resource for resource in resources_for(operation, kinds, formats, members, arn_members, labels,
|
||||
aliased=aliased)
|
||||
if resource.get("type") == kinds[0]][:1]
|
||||
|
||||
|
||||
def made_by_a_create_of_other_types(operation: str, types: list[str], formats: dict[str, str], kind: str,
|
||||
members: dict[str, str], arn_members: set[str] | None,
|
||||
labels: dict[str, str] | None, aliased: set[str] | None,
|
||||
models: dict[str, dict] | None) -> list[dict]:
|
||||
"""The resource of the type a create whose action acts on other types alone makes, when its request carries tags
|
||||
(a top-level member named `Tags`, `TagList` or the like) and names every variable of it, as the rules name a type
|
||||
an action acts on and from the fields of a top-level structure its documentation reads; none otherwise."""
|
||||
name = operation.split(":", 1)[1]
|
||||
if kind in types or any(related(stem(CREATING_RE.sub("", name)), stem(other)) for other in types) or not models:
|
||||
return []
|
||||
shapes = member_shapes(models, name)
|
||||
if not any(stem(member) == "tag" for member in shapes):
|
||||
return []
|
||||
found = with_documented(operation, [kind], formats, models,
|
||||
resources_for(operation, [kind], formats, members, arn_members, labels, shapes, aliased))
|
||||
variables = [v for v in VARIABLE_RE.findall(formats[kind]) if v not in KNOWN_VARIABLES]
|
||||
return [resource for resource in found if resource.get("type") == kind and variables
|
||||
and set(resource.get("fill", {})) == set(variables) and set(resource) == {"type", "fill"}][:1]
|
||||
|
||||
|
||||
def by_members_key_is_empty(kinds: list[str], filled: dict[str, dict[str, str]]) -> bool:
|
||||
"""Whether the types are named by no member at all: each a create's own type, all ids minted."""
|
||||
return all(not filled[kind] for kind in kinds)
|
||||
@@ -1866,10 +1905,10 @@ def _filling(variable: str, kind_stem: str, variables: int, names: dict[str, str
|
||||
shapes: dict[str, str] | None = None) -> str | None:
|
||||
"""The member that fills the variable: one of a compatible kind whose stem relates to the variable's,
|
||||
or, for the variable named after the type or a type's only one, a member named after the type, or a
|
||||
bare `Name` or `Id` among those `bare` gives, of a compatible kind, or else a string member whose botocore
|
||||
shape is named after the type, of a compatible kind (Parameter Store's `Path` and `GetParameterHistory`'s
|
||||
`Name` hold a `PSParameterName`); the closest of them, one qualified by the type's own name first (a
|
||||
snapshot's `SnapshotClusterIdentifier` before `ClusterIdentifier`), and a string before a list. A variable the
|
||||
bare `Name` or `Id` among those `bare` gives, of a compatible kind, or else a string or list member whose
|
||||
botocore shape is named after the type, of a compatible kind (Parameter Store's `Path` and
|
||||
`GetParameterHistory`'s `Name` hold a `PSParameterName`, Glue's `TablesToDelete` a `BatchDeleteTableNameList`);
|
||||
the closest of them, one qualified by the type's own name first (a snapshot's `SnapshotClusterIdentifier` before `ClusterIdentifier`), and a string before a list. A variable the
|
||||
reference names `ResourceId` is the type's own id (`ingestion/${ResourceId}`)."""
|
||||
# A `ResourceId` variable is filled by a member named so (CreateOpsMetadata's, `opsmetadata/${ResourceId}`) before
|
||||
# one named after the type; a bare `Id` is not, being whatever the operation is about.
|
||||
@@ -1890,7 +1929,10 @@ def _filling(variable: str, kind_stem: str, variables: int, names: dict[str, str
|
||||
candidates = [member for member in names if compatible(member, variable)
|
||||
and member in bare and member.lower() in BARE]
|
||||
if not candidates and (related(variable_stem, kind_stem) or variables == 1):
|
||||
candidates = [member for member in names if member in (shapes or {}) and not names[member].endswith("[]")
|
||||
# A list names the type when its own list shape is named for the type's names (`BatchDeleteTableNameList`),
|
||||
# not when it holds a name's shape.
|
||||
candidates = [member for member in names if member in (shapes or {})
|
||||
and (not names[member].endswith("[]") or shapes[member].endswith("List"))
|
||||
and "." not in member and stem(shapes[member]) and related(stem(shapes[member]), kind_stem)
|
||||
and compatible(shapes[member], variable) and compatible(member, variable)]
|
||||
if not candidates:
|
||||
@@ -2136,7 +2178,8 @@ def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: d
|
||||
if creates:
|
||||
entry["creates"] = creates
|
||||
makes = makes_for(operation, types, formats, members, arn_members,
|
||||
path_labels(models, operation.split(":", 1)[1]), alias_members(models, operation.split(":", 1)[1]))
|
||||
path_labels(models, operation.split(":", 1)[1]), alias_members(models, operation.split(":", 1)[1]),
|
||||
models)
|
||||
if makes:
|
||||
entry["makes"] = makes
|
||||
named = _named(resources) | _named(creates) | _named(makes)
|
||||
@@ -3292,8 +3335,9 @@ def validate(document: dict) -> list[str]:
|
||||
for created in entry.get("creates", []) if isinstance(entry.get("creates", []), list) else [None]:
|
||||
problems += _created_problems(operation, created, set(types), formats.get(namespace, {}))
|
||||
for made in entry.get("makes", []) if isinstance(entry.get("makes", []), list) else [None]:
|
||||
if types or not isinstance(made, dict) or set(made) != {"type", "fill"}:
|
||||
problems.append(f"{operation} makes {made!r}, which is no type's variables of a create acting on none")
|
||||
if not isinstance(made, dict) or set(made) != {"type", "fill"} or made.get("type") in types:
|
||||
problems.append(f"{operation} makes {made!r}, which is no type's variables of a create acting on "
|
||||
"none or on other types alone")
|
||||
else:
|
||||
problems += _resource_problems(operation, made, {made["type"]}, formats.get(namespace, {}))
|
||||
targets = entry.get("targets")
|
||||
|
||||
@@ -2368,3 +2368,62 @@ def test_clients_sharing_an_endpoint_keep_every_type_an_arn_member_may_name_and_
|
||||
assert r.narrowed(resources, set(), tags, "TagResource", formats) == [
|
||||
{"types": ["eventSourceMapping", "function"], "arn": "Resource"}]
|
||||
assert r.narrowed(resources, set(), tags, "TagResource", formats, arn_types=False) == resources
|
||||
|
||||
|
||||
def test_input_and_list_suffixes_stem_away_like_the_others():
|
||||
# Glue names what a create makes in a `<Type>Input` structure, and a batch's names in a `<Type>NameList`.
|
||||
assert r.stem("DatabaseInput") == "database"
|
||||
assert r.stem("ConnectionNameList") == "connection"
|
||||
assert r.resources_for("svc:BatchDeleteThing", ["thing"], FORMATS, members("ThingNameList[]")) == [
|
||||
{"type": "thing", "fill": {"ThingName": "ThingNameList[]"}}]
|
||||
|
||||
|
||||
def test_a_list_whose_botocore_shape_is_named_after_the_type_fills_it():
|
||||
# Glue's BatchDeleteTable names its tables by TablesToDelete, a BatchDeleteTableNameList.
|
||||
assert r.resources_for("svc:BatchDeleteThing", ["thing"], FORMATS, members("ThingsToDelete[]"),
|
||||
shapes={"ThingsToDelete": "BatchDeleteThingNameList"}) == [
|
||||
{"type": "thing", "fill": {"ThingName": "ThingsToDelete[]"}}]
|
||||
# A list whose shape is named after nothing the action acts on names nothing.
|
||||
assert r.resources_for("svc:BatchDeleteThing", ["thing"], FORMATS, members("ThingsToDelete[]"),
|
||||
shapes={"ThingsToDelete": "BatchDeleteNameList"}) == []
|
||||
|
||||
|
||||
def test_a_type_of_no_variables_stays_beside_a_creates_own_unnamed_type():
|
||||
# Glue's CreateDatabase names its database only in a field the documented rule reads; the account's catalog,
|
||||
# of no variables, is checked all the same rather than dropped as its alternative.
|
||||
assert r.resources_for("svc:CreatePool", ["catalog", "pool"], FORMATS, members("Description")) == [
|
||||
{"type": "catalog", "fill": {}}]
|
||||
|
||||
|
||||
def test_being_ends_a_types_name_in_documentation():
|
||||
# "Name of the workflow being run", Glue's GetWorkflowRun's Name.
|
||||
formats = {"workflow": "arn:${Partition}:svc:${Region}:${Account}:workflow/${WorkflowName}"}
|
||||
assert r.doc_names("name of the workflow being run", "workflow", formats)
|
||||
assert not r.doc_names("name of the workflowrun being run", "workflow", formats)
|
||||
|
||||
|
||||
def widget_model(tags: bool) -> dict:
|
||||
"""A create whose action acts on the widget's kind alone, naming the widget it makes in `WidgetInput.Name`, and
|
||||
carrying tags when asked, as Glue's CreateConnection does."""
|
||||
service = model({"CreateWidget": {"KindName": "String"}})
|
||||
service["shapes"]["WidgetInput"] = {"type": "structure", "members": {
|
||||
"Name": {"shape": "String", "documentation": "<p>The name of the widget.</p>"},
|
||||
"Description": {"shape": "String", "documentation": "<p>The description of the widget.</p>"}}}
|
||||
service["shapes"]["Tags"] = {"type": "map", "key": {"shape": "String"}, "value": {"shape": "String"}}
|
||||
service["shapes"]["CreateWidgetIn"]["members"]["WidgetInput"] = {"shape": "WidgetInput"}
|
||||
if tags:
|
||||
service["shapes"]["CreateWidgetIn"]["members"]["Tags"] = {"shape": "Tags"}
|
||||
return {"svc": service}
|
||||
|
||||
|
||||
def test_a_create_acting_on_other_types_alone_tags_what_it_makes_when_it_names_it_in_full():
|
||||
formats = {"widget": "arn:${Partition}:svc:${Region}:${Account}:widget/${WidgetName}",
|
||||
"kind": "arn:${Partition}:svc:${Region}:${Account}:kind/${KindName}"}
|
||||
made = r.makes_for("svc:CreateWidget", ["kind"], formats, members("KindName"), models=widget_model(True))
|
||||
assert made == [{"type": "widget", "fill": {"WidgetName": "WidgetInput.Name"}}]
|
||||
# Without tags, what it makes is not needed; and a create acting on the type it makes is checked on it.
|
||||
assert r.makes_for("svc:CreateWidget", ["kind"], formats, members("KindName"), models=widget_model(False)) == []
|
||||
assert r.makes_for("svc:CreateWidget", ["widget"], formats, members("KindName"), models=widget_model(True)) == []
|
||||
# One whose request does not name every variable of what it makes leaves it to the action's own resources.
|
||||
formats["widget"] = "arn:${Partition}:svc:${Region}:${Account}:widget/${WidgetName}/${WidgetId}"
|
||||
assert r.makes_for("svc:CreateWidget", ["kind"], formats, members("KindName"), models=widget_model(True)) == []
|
||||
Reference in new issue
Block a user