mirror of
https://github.com/floci-io/floci.git
synced 2026-11-28 08:09:43 -05:00
refactor(iam): state the restore kms:Decrypt check in MEASURED, not in a FORWARDED table of its own (#8649)
The request-resources generator stated facts by hand in two places: MEASURED, what AWS checks where neither botocore nor the Service Reference says it, and FORWARDED, added by #8309 for the Redshift and Redshift Serverless restores asking KMS to decrypt with the snapshot's key. The Redshift Management Guide sentences that entry cites are MEASURED evidence, so the two restore entries are now MEASURED entries naming another action AWS checks the caller for ({"action", "of"}), admitted under the checks FORWARDED had, and FORWARDED is gone. MEASURED is again the only hand-stated part of the file. The generated table, the enforcement and the restore check are unchanged. The table is also regenerated from today's Service Reference, which added Glue's dataQualityEvaluationConfig and Lambda's runtime, runtimeAlias and runtimeVersion resource types.
This commit is contained in:
1 parent
6e30baf46c
commit
0741baf9da
3 files changed
+101
-103
No files matched your search
@@ -4,8 +4,8 @@
|
||||
"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
|
||||
"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", "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"]},
|
||||
@@ -2491,7 +2491,7 @@
|
||||
"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:CreateDataQualityEvaluationConfig": {"action": "glue:CreateDataQualityEvaluationConfig", "types": ["dataQualityEvaluationConfig"], "resources": [{"type": "dataQualityEvaluationConfig", "fill": {}}]},
|
||||
"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"}}]},
|
||||
@@ -2529,7 +2529,7 @@
|
||||
"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:DeleteDataQualityEvaluationConfig": {"action": "glue:DeleteDataQualityEvaluationConfig", "types": ["dataQualityEvaluationConfig"], "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"}}]},
|
||||
@@ -2586,7 +2586,7 @@
|
||||
"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:GetDataQualityEvaluationConfig": {"action": "glue:GetDataQualityEvaluationConfig", "types": ["dataQualityEvaluationConfig"], "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": []},
|
||||
@@ -2641,7 +2641,7 @@
|
||||
"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:GetTags": {"action": "glue:GetTags", "types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityEvaluationConfig", "database", "devendpoint", "job", "trigger", "usageProfile", "workflow"], "resources": [{"types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityEvaluationConfig", "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": []},
|
||||
@@ -2662,7 +2662,7 @@
|
||||
"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:ListDataQualityEvaluationConfigs": {"action": "glue:ListDataQualityEvaluationConfigs", "types": ["dataQualityEvaluationConfig"], "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": []},
|
||||
@@ -2736,9 +2736,9 @@
|
||||
"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:TagResource": {"action": "glue:TagResource", "types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityEvaluationConfig", "dataQualityRuleset", "database", "devendpoint", "integration", "integrationResourceProperty", "job", "mlTransform", "registry", "schema", "session", "trigger", "usageProfile", "workflow"], "resources": [{"types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityEvaluationConfig", "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:UntagResource": {"action": "glue:UntagResource", "types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityEvaluationConfig", "dataQualityRuleset", "database", "devendpoint", "integration", "integrationResourceProperty", "job", "mlTransform", "registry", "schema", "session", "trigger", "usageProfile", "workflow"], "resources": [{"types": ["blueprint", "catalog", "connection", "connectionType", "crawler", "customEntityType", "dataQualityEvaluationConfig", "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"]}]},
|
||||
@@ -2749,7 +2749,7 @@
|
||||
"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:UpdateDataQualityEvaluationConfig": {"action": "glue:UpdateDataQualityEvaluationConfig", "types": ["dataQualityEvaluationConfig"], "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"}}]},
|
||||
@@ -3013,9 +3013,9 @@
|
||||
"lambda:CreateMicrovmImage": {"action": "lambda:CreateMicrovmImage", "types": [], "resources": [], "makes": [{"type": "microvmImage", "fill": {"MicrovmImageName": "name"}}]},
|
||||
"lambda:CreateMicrovmShellAuthToken": {"action": "lambda:CreateMicrovmShellAuthToken", "types": ["microvmImage"], "resources": [{"types": ["microvmImage"], "through": "microvmIdentifier"}], "located": {"microvmIdentifier": "{microvmIdentifier}"}},
|
||||
"lambda:CreateNetworkConnector": {"action": "lambda:CreateNetworkConnector", "types": ["networkConnector"], "resources": [{"type": "networkConnector", "fill": {}}]},
|
||||
"lambda:CreateRuntime": {"action": "lambda:CreateRuntime", "types": [], "resources": []},
|
||||
"lambda:CreateRuntimeAlias": {"action": "lambda:CreateRuntimeAlias", "types": [], "resources": []},
|
||||
"lambda:CreateRuntimeVersion": {"action": "lambda:CreateRuntimeVersion", "types": [], "resources": []},
|
||||
"lambda:CreateRuntime": {"action": "lambda:CreateRuntime", "types": ["runtime"], "resources": [{"type": "runtime", "fill": {}}]},
|
||||
"lambda:CreateRuntimeAlias": {"action": "lambda:CreateRuntimeAlias", "types": ["runtimeAlias"], "resources": [{"type": "runtimeAlias", "fill": {}}]},
|
||||
"lambda:CreateRuntimeVersion": {"action": "lambda:CreateRuntimeVersion", "types": ["runtimeVersion"], "resources": [{"type": "runtimeVersion", "fill": {}}]},
|
||||
"lambda:CreateWebFunction": {"action": "lambda:CreateWebFunction", "types": ["webFunction"], "resources": [{"type": "webFunction", "fill": {"FunctionName": "functionName"}}]},
|
||||
"lambda:CreateWebFunctionEndpoint": {"action": "lambda:CreateWebFunctionEndpoint", "types": ["webFunction"], "resources": [{"type": "webFunction", "fill": {"FunctionName": "functionName"}}], "located": {"functionName": "{functionName}"}},
|
||||
"lambda:CreateWebFunctionRevision": {"action": "lambda:CreateWebFunctionRevision", "types": ["webFunction"], "resources": [{"types": ["webFunction"], "arn": "serviceConfig.egressNetworkConnectorArn"}, {"type": "webFunction", "fill": {"FunctionName": "functionName"}}], "located": {"functionName": "{functionName}"}},
|
||||
@@ -3033,10 +3033,10 @@
|
||||
"lambda:DeleteMicrovmImageVersion": {"action": "lambda:DeleteMicrovmImageVersion", "types": ["microvmImage"], "resources": [{"type": "microvmImage", "fill": {"MicrovmImageName": "imageIdentifier"}}], "located": {"imageIdentifier": "{imageIdentifier}"}},
|
||||
"lambda:DeleteNetworkConnector": {"action": "lambda:DeleteNetworkConnector", "types": ["networkConnector"], "resources": [{"type": "networkConnector", "fill": {"NetworkConnectorId": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"lambda:DeleteProvisionedConcurrencyConfig": {"action": "lambda:DeleteProvisionedConcurrencyConfig", "types": ["function alias", "function version"], "resources": [{"type": "function alias", "fill": {"FunctionName": "FunctionName", "Alias": "Qualifier"}, "arnOf": {"FunctionName": "function"}, "partialArn": true}, {"type": "function version", "fill": {"FunctionName": "FunctionName", "Version": "Qualifier"}, "arnOf": {"FunctionName": "function"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}", "Qualifier": "?Qualifier"}},
|
||||
"lambda:DeleteResourcePolicy": {"action": "lambda:DeleteResourcePolicy", "types": ["function", "webFunction"], "resources": [{"types": ["function", "webFunction"], "arn": "ResourceArn"}, {"types": ["function", "webFunction"], "arn": "resourceArn"}], "located": {"ResourceArn": "{ResourceArn}", "resourceArn": "{resourceArn}"}},
|
||||
"lambda:DeleteRuntime": {"action": "lambda:DeleteRuntime", "types": [], "resources": []},
|
||||
"lambda:DeleteRuntimeAlias": {"action": "lambda:DeleteRuntimeAlias", "types": [], "resources": []},
|
||||
"lambda:DeleteRuntimeVersion": {"action": "lambda:DeleteRuntimeVersion", "types": [], "resources": []},
|
||||
"lambda:DeleteResourcePolicy": {"action": "lambda:DeleteResourcePolicy", "types": ["function", "runtime", "webFunction"], "resources": [{"types": ["function", "runtime", "webFunction"], "arn": "ResourceArn"}, {"types": ["function", "runtime", "webFunction"], "arn": "resourceArn"}], "located": {"ResourceArn": "{ResourceArn}", "resourceArn": "{resourceArn}"}},
|
||||
"lambda:DeleteRuntime": {"action": "lambda:DeleteRuntime", "types": ["runtime"], "resources": []},
|
||||
"lambda:DeleteRuntimeAlias": {"action": "lambda:DeleteRuntimeAlias", "types": ["runtimeAlias"], "resources": []},
|
||||
"lambda:DeleteRuntimeVersion": {"action": "lambda:DeleteRuntimeVersion", "types": ["runtimeVersion"], "resources": []},
|
||||
"lambda:DeleteWebFunction": {"action": "lambda:DeleteWebFunction", "types": ["webFunction"], "resources": [{"type": "webFunction", "fill": {"FunctionName": "functionName"}}], "located": {"functionName": "{functionName}"}},
|
||||
"lambda:DeleteWebFunctionEndpoint": {"action": "lambda:DeleteWebFunctionEndpoint", "types": ["webFunctionEndpoint"], "resources": [{"type": "webFunctionEndpoint", "fill": {"EndpointName": "endpointName", "FunctionName": "functionName"}, "arnOf": {"functionName": "webFunction"}}], "located": {"endpointName": "{endpointName}", "functionName": "{functionName}"}},
|
||||
"lambda:DeleteWebFunctionRevision": {"action": "lambda:DeleteWebFunctionRevision", "types": ["webFunctionRevision"], "resources": [{"type": "webFunctionRevision", "fill": {"FunctionName": "functionName", "RevisionId": "revisionId"}, "arnOf": {"functionName": "webFunction"}}], "located": {"functionName": "{functionName}", "revisionId": "{revisionId}"}},
|
||||
@@ -3067,11 +3067,11 @@
|
||||
"lambda:GetNetworkConnector": {"action": "lambda:GetNetworkConnector", "types": ["networkConnector"], "resources": [{"type": "networkConnector", "fill": {"NetworkConnectorId": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"lambda:GetPolicy": {"action": "lambda:GetPolicy", "types": ["function"], "resources": [{"type": "function", "fill": {"FunctionName": "FunctionName"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}"}},
|
||||
"lambda:GetProvisionedConcurrencyConfig": {"action": "lambda:GetProvisionedConcurrencyConfig", "types": ["function alias", "function version"], "resources": [{"type": "function alias", "fill": {"FunctionName": "FunctionName", "Alias": "Qualifier"}, "arnOf": {"FunctionName": "function"}, "partialArn": true}, {"type": "function version", "fill": {"FunctionName": "FunctionName", "Version": "Qualifier"}, "arnOf": {"FunctionName": "function"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}", "Qualifier": "?Qualifier"}},
|
||||
"lambda:GetResourcePolicy": {"action": "lambda:GetResourcePolicy", "types": ["function", "webFunction"], "resources": [{"types": ["function", "webFunction"], "arn": "ResourceArn"}, {"types": ["function", "webFunction"], "arn": "resourceArn"}], "located": {"ResourceArn": "{ResourceArn}", "resourceArn": "{resourceArn}"}},
|
||||
"lambda:GetRuntime": {"action": "lambda:GetRuntime", "types": [], "resources": []},
|
||||
"lambda:GetRuntimeAlias": {"action": "lambda:GetRuntimeAlias", "types": [], "resources": []},
|
||||
"lambda:GetResourcePolicy": {"action": "lambda:GetResourcePolicy", "types": ["function", "runtime", "webFunction"], "resources": [{"types": ["function", "runtime", "webFunction"], "arn": "ResourceArn"}, {"types": ["function", "runtime", "webFunction"], "arn": "resourceArn"}], "located": {"ResourceArn": "{ResourceArn}", "resourceArn": "{resourceArn}"}},
|
||||
"lambda:GetRuntime": {"action": "lambda:GetRuntime", "types": ["runtime"], "resources": []},
|
||||
"lambda:GetRuntimeAlias": {"action": "lambda:GetRuntimeAlias", "types": ["runtimeAlias"], "resources": []},
|
||||
"lambda:GetRuntimeManagementConfig": {"action": "lambda:GetRuntimeManagementConfig", "types": ["function"], "resources": [{"type": "function", "fill": {"FunctionName": "FunctionName"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}"}},
|
||||
"lambda:GetRuntimeVersion": {"action": "lambda:GetRuntimeVersion", "types": [], "resources": []},
|
||||
"lambda:GetRuntimeVersion": {"action": "lambda:GetRuntimeVersion", "types": ["runtimeVersion"], "resources": []},
|
||||
"lambda:GetWebAccountSettings": {"action": "lambda:GetWebAccountSettings", "types": [], "resources": []},
|
||||
"lambda:GetWebFunction": {"action": "lambda:GetWebFunction", "types": ["webFunction"], "resources": [{"type": "webFunction", "fill": {"FunctionName": "functionName"}}], "located": {"functionName": "{functionName}"}},
|
||||
"lambda:GetWebFunctionEndpoint": {"action": "lambda:GetWebFunctionEndpoint", "types": ["webFunctionEndpoint"], "resources": [{"type": "webFunctionEndpoint", "fill": {"EndpointName": "endpointName", "FunctionName": "functionName"}, "arnOf": {"functionName": "webFunction"}}], "located": {"endpointName": "{endpointName}", "functionName": "{functionName}"}},
|
||||
@@ -3101,10 +3101,10 @@
|
||||
"lambda:ListNetworkConnectorVersions": {"action": "lambda:ListNetworkConnectorVersions", "types": ["networkConnector"], "resources": [{"type": "networkConnector", "fill": {"NetworkConnectorId": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"lambda:ListNetworkConnectors": {"action": "lambda:ListNetworkConnectors", "types": [], "resources": []},
|
||||
"lambda:ListProvisionedConcurrencyConfigs": {"action": "lambda:ListProvisionedConcurrencyConfigs", "types": ["function"], "resources": [{"type": "function", "fill": {"FunctionName": "FunctionName"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}"}},
|
||||
"lambda:ListRuntimeAliases": {"action": "lambda:ListRuntimeAliases", "types": [], "resources": []},
|
||||
"lambda:ListRuntimeVersions": {"action": "lambda:ListRuntimeVersions", "types": [], "resources": []},
|
||||
"lambda:ListRuntimeAliases": {"action": "lambda:ListRuntimeAliases", "types": ["runtime"], "resources": []},
|
||||
"lambda:ListRuntimeVersions": {"action": "lambda:ListRuntimeVersions", "types": ["runtime"], "resources": []},
|
||||
"lambda:ListRuntimes": {"action": "lambda:ListRuntimes", "types": [], "resources": []},
|
||||
"lambda:ListTags": {"action": "lambda:ListTags", "types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "webFunction"], "resources": [{"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "webFunction"], "arn": "Resource"}, {"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "webFunction"], "arn": "resource"}], "located": {"Resource": "{Resource}", "resource": "{resource}"}},
|
||||
"lambda:ListTags": {"action": "lambda:ListTags", "types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "runtime", "webFunction"], "resources": [{"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "runtime", "webFunction"], "arn": "Resource"}, {"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "runtime", "webFunction"], "arn": "resource"}], "located": {"Resource": "{Resource}", "resource": "{resource}"}},
|
||||
"lambda:ListVersionsByFunction": {"action": "lambda:ListVersionsByFunction", "types": ["function"], "resources": [{"type": "function", "fill": {"FunctionName": "FunctionName"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}"}},
|
||||
"lambda:ListWebFunctionEndpoints": {"action": "lambda:ListWebFunctionEndpoints", "types": ["webFunction"], "resources": [{"type": "webFunction", "fill": {"FunctionName": "functionName"}}], "located": {"functionName": "{functionName}"}},
|
||||
"lambda:ListWebFunctionRevisions": {"action": "lambda:ListWebFunctionRevisions", "types": ["webFunction"], "resources": [{"type": "webFunction", "fill": {"FunctionName": "functionName"}}], "located": {"functionName": "{functionName}"}},
|
||||
@@ -3117,12 +3117,12 @@
|
||||
"lambda:PutFunctionRecursionConfig": {"action": "lambda:PutFunctionRecursionConfig", "types": ["function"], "resources": [{"type": "function", "fill": {"FunctionName": "FunctionName"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}"}},
|
||||
"lambda:PutFunctionScalingConfig": {"action": "lambda:PutFunctionScalingConfig", "types": ["function"], "resources": [{"type": "function", "fill": {"FunctionName": "FunctionName"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}"}},
|
||||
"lambda:PutProvisionedConcurrencyConfig": {"action": "lambda:PutProvisionedConcurrencyConfig", "types": ["function alias", "function version"], "resources": [{"type": "function alias", "fill": {"FunctionName": "FunctionName", "Alias": "Qualifier"}, "arnOf": {"FunctionName": "function"}, "partialArn": true}, {"type": "function version", "fill": {"FunctionName": "FunctionName", "Version": "Qualifier"}, "arnOf": {"FunctionName": "function"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}", "Qualifier": "?Qualifier"}},
|
||||
"lambda:PutResourcePolicy": {"action": "lambda:PutResourcePolicy", "types": ["function", "webFunction"], "resources": [{"types": ["function", "webFunction"], "arn": "ResourceArn"}, {"types": ["function", "webFunction"], "arn": "resourceArn"}], "located": {"ResourceArn": "{ResourceArn}", "resourceArn": "{resourceArn}"}},
|
||||
"lambda:PutResourcePolicy": {"action": "lambda:PutResourcePolicy", "types": ["function", "runtime", "webFunction"], "resources": [{"types": ["function", "runtime", "webFunction"], "arn": "ResourceArn"}, {"types": ["function", "runtime", "webFunction"], "arn": "resourceArn"}], "located": {"ResourceArn": "{ResourceArn}", "resourceArn": "{resourceArn}"}},
|
||||
"lambda:PutRuntimeManagementConfig": {"action": "lambda:PutRuntimeManagementConfig", "types": ["function"], "resources": [{"types": ["function"], "arn": "RuntimeVersionArn"}, {"type": "function", "fill": {"FunctionName": "FunctionName"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}"}},
|
||||
"lambda:RemoveEventSource": {"action": "lambda:RemoveEventSource", "types": [], "resources": []},
|
||||
"lambda:RemoveLayerVersionPermission": {"action": "lambda:RemoveLayerVersionPermission", "types": ["layerVersion"], "resources": [{"type": "layerVersion", "fill": {"LayerName": "LayerName", "LayerVersion": "VersionNumber"}, "arnOf": {"LayerName": "layer"}}], "located": {"LayerName": "{LayerName}", "VersionNumber": "{VersionNumber}"}},
|
||||
"lambda:RemovePermission": {"action": "lambda:RemovePermission", "types": ["function"], "resources": [{"type": "function", "fill": {"FunctionName": "FunctionName"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}"}},
|
||||
"lambda:RestoreRuntime": {"action": "lambda:RestoreRuntime", "types": [], "resources": []},
|
||||
"lambda:RestoreRuntime": {"action": "lambda:RestoreRuntime", "types": ["runtime"], "resources": []},
|
||||
"lambda:ResumeMicrovm": {"action": "lambda:ResumeMicrovm", "types": ["microvmImage"], "resources": [{"types": ["microvmImage"], "through": "microvmIdentifier"}], "located": {"microvmIdentifier": "{microvmIdentifier}"}},
|
||||
"lambda:RunMicrovm": {"action": "lambda:RunMicrovm", "types": ["microvmImage"], "resources": [{"type": "microvmImage", "fill": {"MicrovmImageName": "imageIdentifier"}}]},
|
||||
"lambda:SendDurableExecutionCallbackFailure": {"action": "lambda:SendDurableExecutionCallbackFailure", "types": ["durable execution"], "resources": [{"types": ["durable execution"], "through": "CallbackId"}], "located": {"CallbackId": "{CallbackId}"}},
|
||||
@@ -3130,9 +3130,9 @@
|
||||
"lambda:SendDurableExecutionCallbackSuccess": {"action": "lambda:SendDurableExecutionCallbackSuccess", "types": ["durable execution"], "resources": [{"types": ["durable execution"], "through": "CallbackId"}], "located": {"CallbackId": "{CallbackId}"}},
|
||||
"lambda:StopDurableExecution": {"action": "lambda:StopDurableExecution", "types": ["durable execution"], "resources": [{"types": ["durable execution"], "arn": "DurableExecutionArn"}], "located": {"DurableExecutionArn": "{DurableExecutionArn}"}},
|
||||
"lambda:SuspendMicrovm": {"action": "lambda:SuspendMicrovm", "types": ["microvmImage"], "resources": [{"types": ["microvmImage"], "through": "microvmIdentifier"}], "located": {"microvmIdentifier": "{microvmIdentifier}"}},
|
||||
"lambda:TagResource": {"action": "lambda:TagResource", "types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "webFunction"], "resources": [{"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "webFunction"], "arn": "Resource"}, {"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "webFunction"], "arn": "resource"}], "located": {"Resource": "{Resource}", "resource": "{resource}"}},
|
||||
"lambda:TagResource": {"action": "lambda:TagResource", "types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "runtime", "webFunction"], "resources": [{"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "runtime", "webFunction"], "arn": "Resource"}, {"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "runtime", "webFunction"], "arn": "resource"}], "located": {"Resource": "{Resource}", "resource": "{resource}"}},
|
||||
"lambda:TerminateMicrovm": {"action": "lambda:TerminateMicrovm", "types": ["microvmImage"], "resources": [{"types": ["microvmImage"], "through": "microvmIdentifier"}], "located": {"microvmIdentifier": "{microvmIdentifier}"}},
|
||||
"lambda:UntagResource": {"action": "lambda:UntagResource", "types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "webFunction"], "resources": [{"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "webFunction"], "arn": "Resource"}, {"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "webFunction"], "arn": "resource"}], "located": {"Resource": "{Resource}", "resource": "{resource}"}},
|
||||
"lambda:UntagResource": {"action": "lambda:UntagResource", "types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "runtime", "webFunction"], "resources": [{"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "runtime", "webFunction"], "arn": "Resource"}, {"types": ["capacityProvider", "code signing config", "eventSourceMapping", "function", "microvmImage", "networkConnector", "runtime", "webFunction"], "arn": "resource"}], "located": {"Resource": "{Resource}", "resource": "{resource}"}},
|
||||
"lambda:UpdateAlias": {"action": "lambda:UpdateAlias", "types": ["function"], "resources": [{"type": "function", "fill": {"FunctionName": "FunctionName"}, "partialArn": true}], "located": {"FunctionName": "{FunctionName}"}},
|
||||
"lambda:UpdateCapacityProvider": {"action": "lambda:UpdateCapacityProvider", "types": ["capacityProvider"], "resources": [{"type": "capacityProvider", "fill": {"CapacityProviderName": "CapacityProviderName"}, "arnOf": {"CapacityProviderName": "capacityProvider"}}], "located": {"CapacityProviderName": "{CapacityProviderName}"}},
|
||||
"lambda:UpdateCodeSigningConfig": {"action": "lambda:UpdateCodeSigningConfig", "types": ["code signing config"], "resources": [{"types": ["code signing config"], "arn": "AllowedPublishers.SigningProfileVersionArns[]"}, {"types": ["code signing config"], "arn": "CodeSigningConfigArn"}], "located": {"CodeSigningConfigArn": "{CodeSigningConfigArn}"}},
|
||||
@@ -3144,9 +3144,9 @@
|
||||
"lambda:UpdateMicrovmImage": {"action": "lambda:UpdateMicrovmImage", "types": ["microvmImage"], "resources": [{"types": ["microvmImage"], "arn": "baseImageArn"}, {"type": "microvmImage", "fill": {"MicrovmImageName": "imageIdentifier"}}], "located": {"imageIdentifier": "{imageIdentifier}"}},
|
||||
"lambda:UpdateMicrovmImageVersion": {"action": "lambda:UpdateMicrovmImageVersion", "types": ["microvmImage"], "resources": [{"type": "microvmImage", "fill": {"MicrovmImageName": "imageIdentifier"}}], "located": {"imageIdentifier": "{imageIdentifier}"}},
|
||||
"lambda:UpdateNetworkConnector": {"action": "lambda:UpdateNetworkConnector", "types": ["networkConnector"], "resources": [{"type": "networkConnector", "fill": {"NetworkConnectorId": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"lambda:UpdateRuntime": {"action": "lambda:UpdateRuntime", "types": [], "resources": []},
|
||||
"lambda:UpdateRuntimeAlias": {"action": "lambda:UpdateRuntimeAlias", "types": [], "resources": []},
|
||||
"lambda:UpdateRuntimeVersion": {"action": "lambda:UpdateRuntimeVersion", "types": [], "resources": []},
|
||||
"lambda:UpdateRuntime": {"action": "lambda:UpdateRuntime", "types": ["runtime"], "resources": []},
|
||||
"lambda:UpdateRuntimeAlias": {"action": "lambda:UpdateRuntimeAlias", "types": ["runtimeAlias"], "resources": []},
|
||||
"lambda:UpdateRuntimeVersion": {"action": "lambda:UpdateRuntimeVersion", "types": ["runtimeVersion"], "resources": []},
|
||||
"lambda:UpdateWebFunctionEndpoint": {"action": "lambda:UpdateWebFunctionEndpoint", "types": ["webFunctionEndpoint"], "resources": [{"type": "webFunctionEndpoint", "fill": {"EndpointName": "endpointName", "FunctionName": "functionName"}, "arnOf": {"functionName": "webFunction"}}], "located": {"endpointName": "{endpointName}", "functionName": "{functionName}"}},
|
||||
"lambda:UploadFunction": {"action": "lambda:UploadFunction", "types": [], "resources": []},
|
||||
"logs:CreateDelivery": {"action": "logs:CreateDelivery", "types": ["delivery", "delivery-destination", "delivery-source"], "resources": [{"types": ["delivery", "delivery-destination", "delivery-source"], "arn": "deliveryDestinationArn"}, {"type": "delivery", "fill": {}, "made": true}, {"type": "delivery-source", "fill": {"DeliverySourceName": "deliverySourceName"}}]},
|
||||
|
||||
@@ -175,7 +175,7 @@ resource its handler uses for a member left out (Athena's `primary` workgroup, E
|
||||
`default` cluster). No service says what an operation acts on.
|
||||
|
||||
`MEASURED` holds what AWS checks where neither botocore nor the Service Reference says it, and nothing else. It
|
||||
and `FORWARDED` are the only parts of the file stated by hand, and an entry is admitted only with evidence from AWS
|
||||
is the only part of the file stated by hand, and an entry is admitted only with evidence from AWS
|
||||
itself (a policy probe against real AWS published in a Floci pull request, AWS's AccessDenied message recorded
|
||||
verbatim, or AWS's documentation saying it in so many words, quoted), for resource types the reference does not
|
||||
list for the action, giving what the rules do not already give, and linking to its evidence; the generator refuses
|
||||
@@ -188,8 +188,8 @@ operation's type holds in the member named after the action's namespace and the
|
||||
acts on (a Redshift snapshot's `KmsKeyId`: `kms` and `key/${KeyId}`), which the reader asks the type's service for
|
||||
and then the action's service to find, with `aws:ViaAWSService` and, where the Service Reference lists the
|
||||
namespace's `ViaService` key for the action, that key naming the operation's endpoint. Which operations do this,
|
||||
neither botocore nor the Service Reference says, so `FORWARDED` states it under `MEASURED`'s rules, its evidence
|
||||
cited and the action not one the reference lists for the operation, which a rule would read instead: a Redshift or
|
||||
neither botocore nor the Service Reference says, so `MEASURED` states it, its evidence cited and the action not
|
||||
one the reference lists for the operation, which a rule would read instead: a Redshift or
|
||||
Redshift Serverless restore asks KMS to decrypt with the snapshot's key. `forwardedActions` records what the
|
||||
reference gives each such action, the type it acts on, that type's ARN format and the `ViaService` key, which
|
||||
`--verify` checks against AWS.
|
||||
@@ -320,10 +320,19 @@ READ_IN_HAND_BUILT["logs:PutDestination"] = (
|
||||
# rule, a botocore bump or a reference update makes redundant is taken out rather than kept.
|
||||
# 4. Cited. Its evidence names where the measurement is, with at least one https:// link to it.
|
||||
#
|
||||
# An entry may instead name another action AWS checks the caller for, as the request the operation's service makes
|
||||
# as the caller (`{"action", "of"}`), on what botocore's record of the operation's type `of` holds in the member
|
||||
# named after the action's namespace and the variable of the type the action acts on; everything else is read: the
|
||||
# type and ARN format the reference gives the action, that member, the operation's endpoint prefix, and the
|
||||
# namespace's `ViaService` key where the reference lists it for the action. Rules 1 and 4 hold for it as for any
|
||||
# entry; for 2, the reference does not list the action among the operation's authorized actions, and for 3, the
|
||||
# action acts on one resource type with an ARN format, `of` is a type the operation's action acts on, and botocore's
|
||||
# record of it has the member (`check_forwarded`, `forwarded_actions`, `forwarded_for`).
|
||||
#
|
||||
# The generator enforces 2 to 4 (`measured_resources`); review enforces 1. Never add an entry to make a check pass,
|
||||
# to keep Floci's existing behaviour, or because a handler acts on a resource: find what AWS does first, or leave the
|
||||
# operation to the rules. Floci services never state what an operation acts on either (`StoredResourceArns` only
|
||||
# looks up what a service holds), so this table and `FORWARDED` are the whole of the hand-stated part of the file.
|
||||
# looks up what a service holds), so this table is the whole of the hand-stated part of the file.
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
_SEND_TASK_EVIDENCE = (
|
||||
"real AWS probes in https://github.com/floci-io/floci/pull/7277 (boto3 against us-east-1 on 2026-11-02, a fresh "
|
||||
@@ -333,6 +342,18 @@ _SEND_TASK_EVIDENCE = (
|
||||
"<stateMachineArn>' (https://github.com/aws/aws-emulator/blob/main/issues/things-that-do-not-work/"
|
||||
"20261109T171600Z-stepfunctions-step-functions-the-accessdeniedexception-for-states-sendtasksuccess-names.md); "
|
||||
"the Service Reference lists no resource type for the action, and the token is resolved by the service (find)")
|
||||
_SNAPSHOT_KEY_EVIDENCE = (
|
||||
"the Redshift Management Guide, 'Sharing a snapshot' "
|
||||
"(https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshot-share-snapshot.html): 'When you provide "
|
||||
"access to an encrypted snapshot, Redshift requires that the AWS KMS customer managed key used to create the "
|
||||
"snapshot is shared with the account or accounts performing the restore. If the key isn't shared, attempting to "
|
||||
"restore the snapshot results in an access-denied error', the key policy naming the restoring account and "
|
||||
"allowing 'the kms:Decrypt action'; and 'Authorizing use of an AWS KMS customer managed key with Amazon Redshift "
|
||||
"(Provisioned) and Amazon Redshift Serverless' "
|
||||
"(https://docs.aws.amazon.com/redshift/latest/mgmt/authorizing-kms-customer-managed-key.html): 'To create and use "
|
||||
"an Amazon Redshift provisioned cluster or an Amazon Redshift Serverless resource that is encrypted with a "
|
||||
"customer managed key, a user must have permission to call the following operations on the customer managed key', "
|
||||
"kms:Decrypt among them; the Service Reference lists no KMS action for either restore")
|
||||
MEASURED: dict[str, tuple[list[dict], str]] = {
|
||||
"dynamodb:ListTables": (
|
||||
[{"type": "table", "fill": {}}],
|
||||
@@ -346,40 +367,8 @@ MEASURED: dict[str, tuple[list[dict], str]] = {
|
||||
**{f"states:{operation}": ([{"type": kind, "fill": {}, "find": ["taskToken"]} for kind in ("activity", "statemachine")],
|
||||
_SEND_TASK_EVIDENCE)
|
||||
for operation in ("SendTaskSuccess", "SendTaskFailure", "SendTaskHeartbeat")},
|
||||
}
|
||||
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
# FORWARDED: what an operation's service asks another service to do as the caller, where neither botocore nor the
|
||||
# Service Reference says it.
|
||||
#
|
||||
# Each entry names the action the service sends and `of`, the operation's resource type whose record holds the
|
||||
# resource that action acts on; everything else is read: the type and ARN format the reference gives the action, the
|
||||
# member of botocore's record of `of` named after the action's namespace and that format's variable, the operation's
|
||||
# endpoint prefix, and the namespace's `ViaService` key where the reference lists it for the action. An entry is
|
||||
# admitted only under `MEASURED`'s rule 1 (evidence from AWS) and when ALL of these hold, which the generator
|
||||
# enforces (`check_forwarded`, `forwarded_actions`, `forwarded_for`):
|
||||
#
|
||||
# - Absent from the metadata. The reference does not list the action among the operation's authorized actions,
|
||||
# which a rule would read instead.
|
||||
# - Read. The action acts on one resource type with an ARN format, `of` is a type the operation's action acts on,
|
||||
# and botocore's record of it has the member.
|
||||
# - Cited. Its evidence names where AWS says it, with at least one https:// link to it.
|
||||
# ---------------------------------------------------------------------------------------------------------------------
|
||||
_SNAPSHOT_KEY_EVIDENCE = (
|
||||
"the Redshift Management Guide, 'Sharing a snapshot' "
|
||||
"(https://docs.aws.amazon.com/redshift/latest/mgmt/working-with-snapshot-share-snapshot.html): 'When you provide "
|
||||
"access to an encrypted snapshot, Redshift requires that the AWS KMS customer managed key used to create the "
|
||||
"snapshot is shared with the account or accounts performing the restore. If the key isn't shared, attempting to "
|
||||
"restore the snapshot results in an access-denied error', the key policy naming the restoring account and "
|
||||
"allowing 'the kms:Decrypt action'; and 'Authorizing use of an AWS KMS customer managed key with Amazon Redshift "
|
||||
"(Provisioned) and Amazon Redshift Serverless' "
|
||||
"(https://docs.aws.amazon.com/redshift/latest/mgmt/authorizing-kms-customer-managed-key.html): 'To create and use "
|
||||
"an Amazon Redshift provisioned cluster or an Amazon Redshift Serverless resource that is encrypted with a "
|
||||
"customer managed key, a user must have permission to call the following operations on the customer managed key', "
|
||||
"kms:Decrypt among them; the Service Reference lists no KMS action for either restore")
|
||||
FORWARDED: dict[str, tuple[list[dict], str]] = {
|
||||
operation: ([{"action": "kms:Decrypt", "of": "snapshot"}], _SNAPSHOT_KEY_EVIDENCE)
|
||||
for operation in ("redshift:RestoreFromClusterSnapshot", "redshift-serverless:RestoreFromSnapshot")
|
||||
**{operation: ([{"action": "kms:Decrypt", "of": "snapshot"}], _SNAPSHOT_KEY_EVIDENCE)
|
||||
for operation in ("redshift:RestoreFromClusterSnapshot", "redshift-serverless:RestoreFromSnapshot")},
|
||||
}
|
||||
|
||||
_LATER ="not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint"
|
||||
@@ -2194,7 +2183,7 @@ def ec2_query_members(operation: str, models: dict[str, dict], named: set[str])
|
||||
|
||||
def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: dict[str, dict],
|
||||
known: dict[str, str] | None = None, forwarded: dict[str, dict] | None = None) -> dict:
|
||||
"""What the file says for one operation, `forwarded` being what the file records of each action `FORWARDED`
|
||||
"""What the file says for one operation, `forwarded` being what the file records of each action a `MEASURED` entry
|
||||
names."""
|
||||
types = upstream["types"] or []
|
||||
members = request_members(models, operation.split(":", 1)[1])
|
||||
@@ -2210,7 +2199,9 @@ def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: d
|
||||
resources = by_client(operation, models, lambda read: read_resources(operation, types, formats, read), formats)
|
||||
resources = with_documented_creation(resources, operation, types, formats, models)
|
||||
resources = with_made(resources, operation, formats)
|
||||
if operation in MEASURED:
|
||||
uses = MEASURED.get(operation, (None, ""))[0]
|
||||
# An entry naming only another action AWS checks gives the operation no resources of its own.
|
||||
if uses is not None and not (uses and all("action" in use for use in uses)):
|
||||
resources = measured_resources(operation, types, formats, resources)
|
||||
entry = {"action": upstream["action"], "types": types, "resources": resources}
|
||||
creates = creates_for(operation, types, formats, members)
|
||||
@@ -2229,7 +2220,7 @@ def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: d
|
||||
if member in named}
|
||||
if located:
|
||||
entry["located"] = located
|
||||
if operation in FORWARDED:
|
||||
if operation in measured_actions():
|
||||
entry["forwarded"] = forwarded_for(operation, types, models, forwarded or {})
|
||||
return entry
|
||||
|
||||
@@ -2238,7 +2229,8 @@ def measured_resources(operation: str, types: list[str], formats: dict[str, str]
|
||||
"""The resources `MEASURED` gives the operation, refused unless its admission rules hold: its evidence links to
|
||||
the measurement, the Service Reference lists none of its types for the action, each has an ARN format, and the
|
||||
rules, which gave `derived`, do not already give them."""
|
||||
resources, evidence = MEASURED[operation]
|
||||
resources = [resource for resource in MEASURED[operation][0] if "action" not in resource]
|
||||
evidence = MEASURED[operation][1]
|
||||
kinds = {kind for resource in resources for kind in _kinds(resource)}
|
||||
if "https://" not in evidence:
|
||||
raise ValueError(f"MEASURED gives {operation} with no link to the measurement of AWS it rests on")
|
||||
@@ -2254,22 +2246,29 @@ def measured_resources(operation: str, types: list[str], formats: dict[str, str]
|
||||
return resources
|
||||
|
||||
|
||||
def measured_actions() -> dict[str, tuple[list[dict], str]]:
|
||||
"""The `MEASURED` entries naming another action AWS checks the caller for, by operation, with their evidence."""
|
||||
return {operation: ([use for use in uses if "action" in use], evidence)
|
||||
for operation, (uses, evidence) in MEASURED.items() if any("action" in use for use in uses)}
|
||||
|
||||
|
||||
def forwarded_actions(documents: list[dict]) -> dict[str, dict]:
|
||||
"""For each action `FORWARDED` names, what the Service Reference gives it: the one resource type it acts on, that
|
||||
type's ARN format, and its namespace's `ViaService` condition key where the reference lists that for the action."""
|
||||
"""For each action a `MEASURED` entry names, what the Service Reference gives it: the one resource type it acts
|
||||
on, that type's ARN format, and its namespace's `ViaService` condition key where the reference lists that for the
|
||||
action."""
|
||||
by_name = {document["Name"]: document for document in documents}
|
||||
found: dict[str, dict] = {}
|
||||
for action in sorted({use["action"] for uses, _ in FORWARDED.values() for use in uses}):
|
||||
for action in sorted({use["action"] for uses, _ in measured_actions().values() for use in uses}):
|
||||
namespace, name = action.split(":", 1)
|
||||
document = by_name.get(namespace, {})
|
||||
listed = next((entry for entry in document.get("Actions", []) if entry["Name"] == name), None)
|
||||
if listed is None:
|
||||
raise ValueError(f"FORWARDED names {action}, which the Service Reference does not list")
|
||||
raise ValueError(f"MEASURED names {action}, which the Service Reference does not list")
|
||||
kinds = [resource["Name"] for resource in listed.get("Resources") or []]
|
||||
formats = arn_formats([document], {namespace}).get(namespace, {})
|
||||
if len(kinds) != 1 or kinds[0] not in formats \
|
||||
or len(set(VARIABLE_RE.findall(formats[kinds[0]])) - KNOWN_VARIABLES) != 1:
|
||||
raise ValueError(f"FORWARDED names {action}, which acts on {kinds}, not one resource type whose ARN format "
|
||||
raise ValueError(f"MEASURED names {action}, which acts on {kinds}, not one resource type whose ARN format "
|
||||
f"has one variable of its own")
|
||||
entry = {"type": kinds[0], "format": formats[kinds[0]]}
|
||||
if f"{namespace}:ViaService" in (listed.get("ActionConditionKeys") or []):
|
||||
@@ -2286,14 +2285,15 @@ def authorized_by(documents: list[dict]) -> dict[str, set[str]]:
|
||||
|
||||
|
||||
def check_forwarded(authorized: dict[str, set[str]]) -> None:
|
||||
"""`FORWARDED`'s rules that do not need botocore: each entry links to its evidence, and names no action the
|
||||
"""The rules for a `MEASURED` entry naming another action that do not need botocore: it links to its evidence,
|
||||
and names no action the
|
||||
Service Reference lists for its operation, which a rule would read instead."""
|
||||
for operation, (uses, evidence) in sorted(FORWARDED.items()):
|
||||
for operation, (uses, evidence) in sorted(measured_actions().items()):
|
||||
if "https://" not in evidence:
|
||||
raise ValueError(f"FORWARDED gives {operation} with no link to the evidence of AWS it rests on")
|
||||
raise ValueError(f"MEASURED gives {operation} with no link to the evidence of AWS it rests on")
|
||||
listed = sorted({use["action"] for use in uses} & authorized.get(operation, set()))
|
||||
if listed:
|
||||
raise ValueError(f"FORWARDED gives {operation} {listed}, which the Service Reference lists for it: "
|
||||
raise ValueError(f"MEASURED gives {operation} {listed}, which the Service Reference lists for it: "
|
||||
f"a rule reads those, so take it out")
|
||||
|
||||
|
||||
@@ -2311,26 +2311,26 @@ def record_member(models: dict[str, dict], kind: str, word: str) -> str | None:
|
||||
|
||||
|
||||
def forwarded_for(operation: str, types: list[str], models: dict[str, dict], actions: dict[str, dict]) -> list[dict]:
|
||||
"""What the operation's service asks another to do as the caller (`FORWARDED`): each action, on the resource
|
||||
"""What the operation's service asks another to do as the caller (`MEASURED`): each action, on the resource
|
||||
botocore's record of `of` holds in the member named after the action's namespace and the variable of the format
|
||||
of the type it acts on (`kms` and `${KeyId}`, a snapshot's `KmsKeyId`), sent from the operation's endpoint prefix."""
|
||||
uses, _ = FORWARDED[operation]
|
||||
uses, _ = measured_actions()[operation]
|
||||
prefixes = {model.get("metadata", {}).get("endpointPrefix") for model in models.values()}
|
||||
if len(prefixes) != 1 or None in prefixes:
|
||||
raise ValueError(f"FORWARDED gives {operation}, whose clients have no one endpoint prefix")
|
||||
raise ValueError(f"MEASURED gives {operation}, whose clients have no one endpoint prefix")
|
||||
endpoint = next(iter(prefixes))
|
||||
found = []
|
||||
for use in uses:
|
||||
action = actions.get(use["action"])
|
||||
if action is None:
|
||||
raise ValueError(f"FORWARDED gives {operation} {use['action']}, for which the file records no type")
|
||||
raise ValueError(f"MEASURED gives {operation} {use['action']}, for which the file records no type")
|
||||
if use["of"] not in types:
|
||||
raise ValueError(f"FORWARDED gives {operation} {use['action']} on what a {use['of']} holds, no type its "
|
||||
raise ValueError(f"MEASURED gives {operation} {use['action']} on what a {use['of']} holds, no type its "
|
||||
f"action acts on")
|
||||
variable = next(iter(set(VARIABLE_RE.findall(action["format"])) - KNOWN_VARIABLES))
|
||||
member = record_member(models, use["of"], namespace_of(use["action"]) + variable)
|
||||
if member is None:
|
||||
raise ValueError(f"FORWARDED gives {operation} {use['action']} on what a {use['of']} holds, which "
|
||||
raise ValueError(f"MEASURED gives {operation} {use['action']} on what a {use['of']} holds, which "
|
||||
f"botocore's record of it has no {namespace_of(use['action'])}{variable} member for")
|
||||
found.append({"action": use["action"], "of": use["of"], "member": member, "endpoint": endpoint})
|
||||
return found
|
||||
@@ -3264,8 +3264,6 @@ def _check_overrides(covered: dict[str, dict]) -> None:
|
||||
if operation not in covered]
|
||||
stale += [f"MEASURED gives {operation}, which READ_IN_HAND_BUILT reads by the rules" for operation in MEASURED
|
||||
if operation in READ_IN_HAND_BUILT]
|
||||
stale += [f"FORWARDED gives {operation}, which the file does not read" for operation in FORWARDED
|
||||
if operation not in covered]
|
||||
stale += [f"READ_IN_HAND_BUILT names {operation}, outside HAND_BUILT" for operation in READ_IN_HAND_BUILT
|
||||
if namespace_of(operation) not in HAND_BUILT]
|
||||
for left, right in (("NAMESPACES", "HAND_BUILT"), ("NAMESPACES", "NOT_COVERED"), ("HAND_BUILT", "NOT_COVERED")):
|
||||
@@ -3597,9 +3595,9 @@ def derive(document: dict, data: Path) -> list[str]:
|
||||
if document.get("mintedSuffixes") != suffixes:
|
||||
problems.append(f"the file gives {json.dumps(document.get('mintedSuffixes'))} a minted suffix, botocore's "
|
||||
f"documentation gives {json.dumps(suffixes)}")
|
||||
named = sorted({use["action"] for uses, _ in FORWARDED.values() for use in uses})
|
||||
named = sorted({use["action"] for uses, _ in measured_actions().values() for use in uses})
|
||||
if sorted(document["forwardedActions"]) != named:
|
||||
problems.append(f"the file records {sorted(document['forwardedActions'])} as forwarded actions, FORWARDED "
|
||||
problems.append(f"the file records {sorted(document['forwardedActions'])} as forwarded actions, MEASURED "
|
||||
f"names {named}")
|
||||
prefixes = {namespace: namespace_id_prefixes(namespace, load_models(data, set(document["namespaces"][namespace])),
|
||||
load_examples(data, set(document["namespaces"][namespace])))
|
||||
@@ -3630,7 +3628,8 @@ def verify_forwarded(vendored: dict, documents: list[dict]) -> list[str]:
|
||||
for operation, entry in vendored["operations"].items():
|
||||
listed = sorted({use["action"] for use in entry.get("forwarded", [])} & authorized.get(operation, set()))
|
||||
if listed:
|
||||
untrue.append(f"AWS now lists {listed} for {operation}: a rule reads those, so FORWARDED should not give them")
|
||||
untrue.append(f"AWS now lists {listed} for {operation}: a rule reads those, so MEASURED should not "
|
||||
f"give them")
|
||||
return untrue
|
||||
|
||||
|
||||
|
||||
@@ -372,7 +372,6 @@ def isolated(monkeypatch):
|
||||
monkeypatch.setattr(r, "NOT_COVERED", {"later": "a later batch"})
|
||||
monkeypatch.setattr(r, "READ_IN_HAND_BUILT", {})
|
||||
monkeypatch.setattr(r, "MEASURED", {})
|
||||
monkeypatch.setattr(r, "FORWARDED", {})
|
||||
return monkeypatch
|
||||
|
||||
|
||||
@@ -1233,7 +1232,7 @@ def forwarding_documents(tmp_path, record_member: str = "KeysKeyId", listed: boo
|
||||
|
||||
|
||||
def test_a_forwarded_operation_is_also_checked_as_the_action_on_what_its_record_holds(isolated, tmp_path):
|
||||
isolated.setattr(r, "FORWARDED", {"svc:GetThing": ([{"action": "keys:Decrypt", "of": "thing"}], GUIDE_SAYS)})
|
||||
isolated.setattr(r, "MEASURED", {"svc:GetThing": ([{"action": "keys:Decrypt", "of": "thing"}], GUIDE_SAYS)})
|
||||
document = r.build(forwarding_documents(tmp_path), "test", tmp_path, "botocore test")
|
||||
# The member is the record's, named after the action's namespace and its type's variable, whatever its case.
|
||||
assert document["operations"]["svc:GetThing"]["forwarded"] == [
|
||||
@@ -1266,14 +1265,14 @@ def test_a_forwarded_operation_is_also_checked_as_the_action_on_what_its_record_
|
||||
def test_a_forwarded_entry_is_refused_unless_it_cites_aws_for_what_the_metadata_does_not_say_and_is_read(
|
||||
isolated, tmp_path, forwarded, change, problem):
|
||||
(action, of), evidence = forwarded
|
||||
isolated.setattr(r, "FORWARDED", {"svc:GetThing": ([{"action": action, "of": of}], evidence)})
|
||||
isolated.setattr(r, "MEASURED", {"svc:GetThing": ([{"action": action, "of": of}], evidence)})
|
||||
with pytest.raises(ValueError, match=problem):
|
||||
r.build(forwarding_documents(tmp_path, **change), "test", tmp_path, "botocore test")
|
||||
|
||||
|
||||
def test_a_forwarded_entry_must_name_an_operation_the_file_reads(isolated, tmp_path):
|
||||
isolated.setattr(r, "FORWARDED", {"svc:Gone": ([{"action": "keys:Decrypt", "of": "thing"}], GUIDE_SAYS)})
|
||||
with pytest.raises(ValueError, match="FORWARDED gives svc:Gone, which the file does not read"):
|
||||
isolated.setattr(r, "MEASURED", {"svc:Gone": ([{"action": "keys:Decrypt", "of": "thing"}], GUIDE_SAYS)})
|
||||
with pytest.raises(ValueError, match="MEASURED gives svc:Gone, which the file does not read"):
|
||||
r.build(forwarding_documents(tmp_path), "test", tmp_path, "botocore test")
|
||||
|
||||
|
||||
@@ -1304,7 +1303,7 @@ def test_a_malformed_forwarded_entry_is_rejected(change, problem):
|
||||
|
||||
|
||||
def test_verify_fails_when_aws_changes_what_it_gives_a_forwarded_action_or_lists_it_for_the_operation(isolated):
|
||||
isolated.setattr(r, "FORWARDED", {"svc:A": ([{"action": "keys:Decrypt", "of": "thing"}], GUIDE_SAYS)})
|
||||
isolated.setattr(r, "MEASURED", {"svc:A": ([{"action": "keys:Decrypt", "of": "thing"}], GUIDE_SAYS)})
|
||||
document = forwarding_document()
|
||||
documents = [reference("svc", {"A": ["thing"]}, {"thing": FORMATS["thing"]}), keys_reference()]
|
||||
assert r.verify_forwarded(document, documents) == []
|
||||
@@ -1313,16 +1312,16 @@ def test_verify_fails_when_aws_changes_what_it_gives_a_forwarded_action_or_lists
|
||||
'{"type": "key", "format": "' + KEY_FORMAT + '", "viaService": "keys:ViaService"}']
|
||||
documents[0]["Operations"][0]["AuthorizedActions"].append({"Service": "keys", "Name": "Decrypt"})
|
||||
assert r.verify_forwarded(document, documents) == [
|
||||
"AWS now lists ['keys:Decrypt'] for svc:A: a rule reads those, so FORWARDED should not give them"]
|
||||
"AWS now lists ['keys:Decrypt'] for svc:A: a rule reads those, so MEASURED should not give them"]
|
||||
|
||||
|
||||
def test_check_fails_when_the_file_records_other_forwarded_actions_than_forwarded_names(isolated, tmp_path):
|
||||
isolated.setattr(r, "FORWARDED", {"svc:GetThing": ([{"action": "keys:Decrypt", "of": "thing"}], GUIDE_SAYS)})
|
||||
isolated.setattr(r, "MEASURED", {"svc:GetThing": ([{"action": "keys:Decrypt", "of": "thing"}], GUIDE_SAYS)})
|
||||
document = r.build(forwarding_documents(tmp_path), "test", tmp_path, "botocore test")
|
||||
isolated.setattr(r, "FORWARDED", {})
|
||||
isolated.setattr(r, "MEASURED", {})
|
||||
document["operations"]["svc:GetThing"].pop("forwarded")
|
||||
assert r.derive(document, tmp_path) == [
|
||||
"the file records ['keys:Decrypt'] as forwarded actions, FORWARDED names []"]
|
||||
"the file records ['keys:Decrypt'] as forwarded actions, MEASURED names []"]
|
||||
|
||||
|
||||
def test_a_variable_no_member_fills_takes_the_one_value_of_its_enum_the_operations_name_gives():
|
||||
|
||||
Reference in new issue
Block a user