mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(cloudfront): generate IAM routes and request resources (#7991)
CloudFront's REST routes were not in the vendored route table and its namespace's resources were not read, so under IAM enforcement no CloudFront request was checked: a caller with no permissions could create, change and delete distributions, cache policies, functions and the rest. Its botocore model is now in regen_rest_routes.MODELS and its namespace in regen_iam_request_resources.NAMESPACES, so each request is checked as the action of the operation its route names, on the resources the request names. regen_iam_request_resources read requests of the JSON, Query, CBOR and REST-JSON protocols only, so a REST-XML request named no resource. It now reads a REST-XML request's path labels and query parameters, which RequestResources reads whatever the protocol, and not its body, which is not one it reads. Creation tags stay unread: CloudFront wraps them in a Tags structure holding Items, which regen_iam_tag_on_create does not read yet. Three CloudFront operation shapes were still checked on `*` or as no IAM action: - `stem` drops a trailing `config`, so a bare `Id` names the resource whose config an operation reads (GetDistributionConfig and the other ...Config reads, and GetFieldLevelEncryption, whose type is field-level-encryption-config). - A member whose pattern takes only an ARN counts as an ARN when it is named `Resource`, as well as when it is an identifier, so the tagging calls are checked on the resource their ?Resource names. Members naming another resource (a role, a monitor, a target) still do not. - An operation whose own name is no action, and which several actions authorize, is the one its name starts with as a word: CreateDistributionWithTags is checked as cloudfront:CreateDistribution. The same rule maps Keyspaces' CreateKeyspace, CreateTable, CreateType and RestoreTable to cassandra:Create and cassandra:Restore, and QuickSight's CreateTopicV2 and UpdateTopicV2 to quicksight:CreateTopic and quicksight:UpdateTopic. A plural is no such word: S3's DeleteObjects is checked for each object it deletes.
This commit is contained in:
1 parent
c9d9ba24f4
commit
e13bb4e1ec
11 files changed
+698
-19
No files matched your search
@@ -162,12 +162,19 @@
|
||||
"BatchUpdateCase": "cases:UpdateCase"
|
||||
},
|
||||
"cassandra": {
|
||||
"CreateKeyspace": "cassandra:Create",
|
||||
"CreateTable": "cassandra:Create",
|
||||
"CreateType": "cassandra:Create",
|
||||
"GetKeyspace": "cassandra:Select",
|
||||
"GetTable": "cassandra:Select",
|
||||
"GetType": "cassandra:Select",
|
||||
"ListKeyspaces": "cassandra:Select",
|
||||
"ListTables": "cassandra:Select",
|
||||
"ListTypes": "cassandra:Select"
|
||||
"ListTypes": "cassandra:Select",
|
||||
"RestoreTable": "cassandra:Restore"
|
||||
},
|
||||
"cloudfront": {
|
||||
"CreateDistributionWithTags": "cloudfront:CreateDistribution"
|
||||
},
|
||||
"connect": {
|
||||
"UpdateUserConfig": "connect:UpdateUserPhoneConfig"
|
||||
@@ -238,6 +245,7 @@
|
||||
"CreatePresignedUrl": "qapps:ImportDocument"
|
||||
},
|
||||
"quicksight": {
|
||||
"CreateTopicV2": "quicksight:CreateTopic",
|
||||
"DeleteTopicV2": "quicksight:DeleteTopic",
|
||||
"DescribeAnalysisDefinition": "quicksight:DescribeAnalysis",
|
||||
"DescribeDashboardDefinition": "quicksight:DescribeDashboard",
|
||||
@@ -246,7 +254,8 @@
|
||||
"DescribeTopicV2": "quicksight:DescribeTopic",
|
||||
"ListTopicsV2": "quicksight:ListTopics",
|
||||
"SearchTopicsV2": "quicksight:SearchTopics",
|
||||
"UpdateTopicPermissionsV2": "quicksight:UpdateTopicPermissions"
|
||||
"UpdateTopicPermissionsV2": "quicksight:UpdateTopicPermissions",
|
||||
"UpdateTopicV2": "quicksight:UpdateTopic"
|
||||
},
|
||||
"redshift-data": {
|
||||
"GetStatementResultV2": "redshift-data:GetStatementResult"
|
||||
@@ -343,6 +352,80 @@
|
||||
"StartPolicyGeneration",
|
||||
"ValidatePolicy"
|
||||
],
|
||||
"cloudfront": [
|
||||
"CreateAnycastIpList",
|
||||
"CreateCachePolicy",
|
||||
"CreateCloudFrontOriginAccessIdentity",
|
||||
"CreateConnectionFunction",
|
||||
"CreateConnectionGroup",
|
||||
"CreateContinuousDeploymentPolicy",
|
||||
"CreateDistribution",
|
||||
"CreateDistributionTenant",
|
||||
"CreateFieldLevelEncryptionConfig",
|
||||
"CreateFieldLevelEncryptionProfile",
|
||||
"CreateFunction",
|
||||
"CreateKeyGroup",
|
||||
"CreateKeyValueStore",
|
||||
"CreateMonitoringSubscription",
|
||||
"CreateOriginAccessControl",
|
||||
"CreateOriginRequestPolicy",
|
||||
"CreatePublicKey",
|
||||
"CreateRealtimeLogConfig",
|
||||
"CreateResponseHeadersPolicy",
|
||||
"CreateSavingsPlan",
|
||||
"CreateStreamingDistribution",
|
||||
"CreateStreamingDistributionWithTags",
|
||||
"CreateTrustStore",
|
||||
"CreateVpcOrigin",
|
||||
"DeleteKeyGroup",
|
||||
"DeleteMonitoringSubscription",
|
||||
"DeletePublicKey",
|
||||
"GetKeyGroup",
|
||||
"GetKeyGroupConfig",
|
||||
"GetMonitoringSubscription",
|
||||
"GetPublicKey",
|
||||
"GetPublicKeyConfig",
|
||||
"GetSavingsPlan",
|
||||
"ListAnycastIpLists",
|
||||
"ListCachePolicies",
|
||||
"ListCloudFrontOriginAccessIdentities",
|
||||
"ListConnectionFunctions",
|
||||
"ListConnectionGroups",
|
||||
"ListContinuousDeploymentPolicies",
|
||||
"ListDistributionTenants",
|
||||
"ListDistributionTenantsByCustomization",
|
||||
"ListDistributions",
|
||||
"ListDistributionsByAnycastIpListId",
|
||||
"ListDistributionsByCachePolicyId",
|
||||
"ListDistributionsByConnectionMode",
|
||||
"ListDistributionsByKeyGroup",
|
||||
"ListDistributionsByLambdaFunction",
|
||||
"ListDistributionsByOriginRequestPolicyId",
|
||||
"ListDistributionsByRealtimeLogConfig",
|
||||
"ListDistributionsByResponseHeadersPolicyId",
|
||||
"ListDistributionsByVpcOriginId",
|
||||
"ListDistributionsByWebACLId",
|
||||
"ListFieldLevelEncryptionConfigs",
|
||||
"ListFieldLevelEncryptionProfiles",
|
||||
"ListFunctions",
|
||||
"ListKeyGroups",
|
||||
"ListKeyValueStores",
|
||||
"ListOriginAccessControls",
|
||||
"ListOriginRequestPolicies",
|
||||
"ListPublicKeys",
|
||||
"ListRateCards",
|
||||
"ListRealtimeLogConfigs",
|
||||
"ListResponseHeadersPolicies",
|
||||
"ListSavingsPlans",
|
||||
"ListStreamingDistributions",
|
||||
"ListTrustStores",
|
||||
"ListUsages",
|
||||
"ListVpcOrigins",
|
||||
"UpdateFieldLevelEncryptionConfig",
|
||||
"UpdateKeyGroup",
|
||||
"UpdatePublicKey",
|
||||
"UpdateSavingsPlan"
|
||||
],
|
||||
"controltower": [
|
||||
"CreateLandingZone",
|
||||
"CreateManagedAccount",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-11", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalyticsv2"], "logs": ["logs"], "macie2": ["macie2"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudfront": ["cloudfront"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalyticsv2"], "logs": ["logs"], "macie2": ["macie2"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"clientsNotRead": {"kinesisanalytics": "Kinesis Data Analytics v1, SQL applications on the KinesisAnalytics_20150814 target, which Floci does not serve (it serves v2, kinesisanalyticsv2); its operations share v2's names and name their resources by other members"},
|
||||
"handBuilt": ["apigateway", "bedrock", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "lambda", "logs", "pipes", "resource-groups", "s3", "scheduler", "secretsmanager", "sns", "sqs", "ssm", "sts"],
|
||||
"notCovered": {"account": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<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", "cloudformation": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "cloudfront": "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 rule does not fill a name from, so nearly every operation needs a correction", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<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", "controlcatalog": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its Line truncated
|
||||
"notCovered": {"account": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<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", "cloudformation": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rule does not fill a name from, so nearly every operation needs a correction", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<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", "controlcatalog": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ec2-instance-connect": "not read yet: a later batch, with the tests that show its ARNs are the ones itsLine 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", "cloudfront-keyvaluestore", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "emr-containers", "end-user-messaging", "entityresolution", "evs", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "ssmmessages", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web"],
|
||||
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudtrail": {"channel": "arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId}", "dashboard": "arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName}", "eventdatastore": "arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId}", "trail": "arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName}"}, "codebuild": {"build": "arn:${Partition}:codebuild:${Region}:${Account}:build/${BuildId}", "build-batch": "arn:${Partition}:codebuild:${Region}:${Account}:build-batch/${BuildBatchId}", "fleet": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}", "project": "arn:${Partition}:codebuild:${Region}:${Account}:project/${ProjectName}", "report": "arn:${Partition}:codebuild:${Region}:${Account}:report/${ReportGroupName}:${ReportId}", "report-group": "arn:${Partition}:codebuild:${Region}:${Account}:report-group/${ReportGroupName}", "sandbox": "arn:${Partition}:codebuild:${Region}:${Account}:sandbox/${SandboxId}"}, "codepipeline": {"action": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}/${ActionName}", "actiontype": "arn:${Partition}:codepipeline:${Region}:${Account}:actiontype:${Owner}/${Category}/${Provider}/${Version}", "pipeline": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}", "stage": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}", "webhook": "arn:${Partition}:codepipeline:${Region}:${Account}:webhook:${WebhookName}"}, "cognito-identity": {"identitypool": "arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}"}, "cognito-idp": {"userpool": "arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}", "webacl": "arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id}"}, "controltower": {"Baseline": "arn:${Partition}:controltower:${Region}::baseline/${BaselineId}", "EnabledBaseline": "arn:${Partition}:controltower:${Region}:${Account}:enabledbaseline/${EnabledBaselineId}", "EnabledControl": "arn:${Partition}:controltower:${Region}:${Account}:enabledcontrol/${EnabledControlId}", "LandingZone": "arn:${Partition}:controltower:${Region}:${Account}:landingzone/${LandingZoneId}"}, "cur": {"cur": "arn:${Partition}:cur:${Region}:${Account}:definition/${ReportName}"}, "datasync": {"agent": "arn:${Partition}:datasync:${Region}:${Account}:agent/${AgenLine 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}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudfront": {"anycast-ip-list": "arn:${Partition}:cloudfront::${Account}:anycast-ip-list/${Id}", "cache-policy": "arn:${Partition}:cloudfront::${Account}:cache-policy/${Id}", "connection-function": "arn:${Partition}:cloudfront::${Account}:connection-function/${Id}", "connection-group": "arn:${Partition}:cloudfront::${Account}:connection-group/${Id}", "continuous-deployment-policy": "arn:${Partition}:cloudfront::${Account}:continuous-deployment-policy/${Id}", "distribution": "arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}", "distribution-tenant": "arn:${Partition}:cloudfront::${Account}:distribution-tenant/${Id}", "field-level-encryption-config": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-config/${Id}", "field-level-encryption-profile": "arn:${Partition}:cloudfront::${Account}:field-level-encryption-profile/${Id}", "function": "arn:${Partition}:cloudfront::${Account}:function/${Name}", "key-value-store": "arn:${Partition}:cloudfront::${Account}:key-value-store/${Name}", "origin-access-control": "arn:${Partition}:cloudfront::${Account}:origin-access-control/${Id}", "origin-access-identity": "arn:${Partition}:cloudfront::${Account}:origin-access-identity/${Id}", "origin-request-policy": "arn:${Partition}:cloudfront::${Account}:origin-request-policy/${Id}", "realtime-log-config": "arn:${Partition}:cloudfront::${Account}:realtime-log-config/${Name}", "response-headers-policy": "arn:${Partition}:cloudfront::${Account}:response-headers-policy/${Id}", "streaming-distribution": "arn:${Partition}:cloudfront::${Account}:streaming-distribution/${DistributionId}", "trust-store": "arn:${Partition}:cloudfront::${Account}:trust-store/${Id}", "vpcorigin": "arn:${Partition}:cloudfront::${Account}:vpcorigin/${Id}"}, "cloudtrail": {"channel": "arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId}", "dashboard": "arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName}", "eventdatastore": "arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId}", "trail": "arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName}"}, "codebuild": {"build": "arn:${Partition}:codebuild:${Region}:${Account}:build/${BuildId}", "build-batch": "arn:${Partition}:codebuild:${Region}:${Account}:build-batch/${BuildBatchId}", "fleet": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}", "pLine truncated
|
||||
"unqualified": {"states": ["statemachine"]},
|
||||
"mintedIds": {"events": ["api-destination", "connection"]},
|
||||
"operations": {
|
||||
@@ -298,6 +298,174 @@
|
||||
"ce:UpdateAnomalySubscription": {"action": "ce:UpdateAnomalySubscription", "types": ["anomalysubscription"], "resources": [{"types": ["anomalysubscription"], "arn": "SubscriptionArn"}]},
|
||||
"ce:UpdateCostAllocationTagsStatus": {"action": "ce:UpdateCostAllocationTagsStatus", "types": [], "resources": []},
|
||||
"ce:UpdateCostCategoryDefinition": {"action": "ce:UpdateCostCategoryDefinition", "types": ["costcategory"], "resources": [{"types": ["costcategory"], "arn": "CostCategoryArn"}]},
|
||||
"cloudfront:AssociateAlias": {"action": "cloudfront:AssociateAlias", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "TargetDistributionId"}}], "located": {"TargetDistributionId": "{TargetDistributionId}"}},
|
||||
"cloudfront:AssociateDistributionTenantWebACL": {"action": "cloudfront:AssociateDistributionTenantWebACL", "types": ["distribution-tenant"], "resources": []},
|
||||
"cloudfront:AssociateDistributionWebACL": {"action": "cloudfront:AssociateDistributionWebACL", "types": ["distribution"], "resources": []},
|
||||
"cloudfront:CopyDistribution": {"action": "cloudfront:CopyDistribution", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "PrimaryDistributionId"}}], "located": {"PrimaryDistributionId": "{PrimaryDistributionId}"}},
|
||||
"cloudfront:CreateAnycastIpList": {"action": "cloudfront:CreateAnycastIpList", "types": [], "resources": []},
|
||||
"cloudfront:CreateCachePolicy": {"action": "cloudfront:CreateCachePolicy", "types": [], "resources": []},
|
||||
"cloudfront:CreateCloudFrontOriginAccessIdentity": {"action": "cloudfront:CreateCloudFrontOriginAccessIdentity", "types": [], "resources": []},
|
||||
"cloudfront:CreateConnectionFunction": {"action": "cloudfront:CreateConnectionFunction", "types": [], "resources": []},
|
||||
"cloudfront:CreateConnectionGroup": {"action": "cloudfront:CreateConnectionGroup", "types": [], "resources": []},
|
||||
"cloudfront:CreateContinuousDeploymentPolicy": {"action": "cloudfront:CreateContinuousDeploymentPolicy", "types": [], "resources": []},
|
||||
"cloudfront:CreateDistribution": {"action": "cloudfront:CreateDistribution", "types": [], "resources": []},
|
||||
"cloudfront:CreateDistributionTenant": {"action": "cloudfront:CreateDistributionTenant", "types": [], "resources": []},
|
||||
"cloudfront:CreateDistributionWithTags": {"action": "cloudfront:CreateDistribution", "types": [], "resources": []},
|
||||
"cloudfront:CreateFieldLevelEncryptionConfig": {"action": "cloudfront:CreateFieldLevelEncryptionConfig", "types": [], "resources": []},
|
||||
"cloudfront:CreateFieldLevelEncryptionProfile": {"action": "cloudfront:CreateFieldLevelEncryptionProfile", "types": [], "resources": []},
|
||||
"cloudfront:CreateFunction": {"action": "cloudfront:CreateFunction", "types": [], "resources": []},
|
||||
"cloudfront:CreateInvalidation": {"action": "cloudfront:CreateInvalidation", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "DistributionId"}}], "located": {"DistributionId": "{DistributionId}"}},
|
||||
"cloudfront:CreateInvalidationForDistributionTenant": {"action": "cloudfront:CreateInvalidationForDistributionTenant", "types": ["distribution-tenant"], "resources": [{"type": "distribution-tenant", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:CreateKeyGroup": {"action": "cloudfront:CreateKeyGroup", "types": [], "resources": []},
|
||||
"cloudfront:CreateKeyValueStore": {"action": "cloudfront:CreateKeyValueStore", "types": [], "resources": []},
|
||||
"cloudfront:CreateMonitoringSubscription": {"action": "cloudfront:CreateMonitoringSubscription", "types": [], "resources": []},
|
||||
"cloudfront:CreateOriginAccessControl": {"action": "cloudfront:CreateOriginAccessControl", "types": [], "resources": []},
|
||||
"cloudfront:CreateOriginRequestPolicy": {"action": "cloudfront:CreateOriginRequestPolicy", "types": [], "resources": []},
|
||||
"cloudfront:CreatePublicKey": {"action": "cloudfront:CreatePublicKey", "types": [], "resources": []},
|
||||
"cloudfront:CreateRealtimeLogConfig": {"action": "cloudfront:CreateRealtimeLogConfig", "types": [], "resources": []},
|
||||
"cloudfront:CreateResponseHeadersPolicy": {"action": "cloudfront:CreateResponseHeadersPolicy", "types": [], "resources": []},
|
||||
"cloudfront:CreateStreamingDistribution": {"action": "cloudfront:CreateStreamingDistribution", "types": [], "resources": []},
|
||||
"cloudfront:CreateStreamingDistributionWithTags": {"action": "cloudfront:CreateStreamingDistributionWithTags", "types": [], "resources": []},
|
||||
"cloudfront:CreateTrustStore": {"action": "cloudfront:CreateTrustStore", "types": [], "resources": []},
|
||||
"cloudfront:CreateVpcOrigin": {"action": "cloudfront:CreateVpcOrigin", "types": [], "resources": []},
|
||||
"cloudfront:DeleteAnycastIpList": {"action": "cloudfront:DeleteAnycastIpList", "types": ["anycast-ip-list"], "resources": [{"type": "anycast-ip-list", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteCachePolicy": {"action": "cloudfront:DeleteCachePolicy", "types": ["cache-policy"], "resources": [{"type": "cache-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteCloudFrontOriginAccessIdentity": {"action": "cloudfront:DeleteCloudFrontOriginAccessIdentity", "types": ["origin-access-identity"], "resources": [{"type": "origin-access-identity", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteConnectionFunction": {"action": "cloudfront:DeleteConnectionFunction", "types": ["connection-function"], "resources": [{"type": "connection-function", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteConnectionGroup": {"action": "cloudfront:DeleteConnectionGroup", "types": ["connection-group"], "resources": [{"type": "connection-group", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteContinuousDeploymentPolicy": {"action": "cloudfront:DeleteContinuousDeploymentPolicy", "types": ["continuous-deployment-policy"], "resources": [{"type": "continuous-deployment-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteDistribution": {"action": "cloudfront:DeleteDistribution", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteDistributionTenant": {"action": "cloudfront:DeleteDistributionTenant", "types": ["distribution-tenant"], "resources": [{"type": "distribution-tenant", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteFieldLevelEncryptionConfig": {"action": "cloudfront:DeleteFieldLevelEncryptionConfig", "types": ["field-level-encryption-config"], "resources": [{"type": "field-level-encryption-config", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteFieldLevelEncryptionProfile": {"action": "cloudfront:DeleteFieldLevelEncryptionProfile", "types": ["field-level-encryption-profile"], "resources": [{"type": "field-level-encryption-profile", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteFunction": {"action": "cloudfront:DeleteFunction", "types": ["function"], "resources": [{"type": "function", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}},
|
||||
"cloudfront:DeleteKeyGroup": {"action": "cloudfront:DeleteKeyGroup", "types": [], "resources": []},
|
||||
"cloudfront:DeleteKeyValueStore": {"action": "cloudfront:DeleteKeyValueStore", "types": ["key-value-store"], "resources": [{"type": "key-value-store", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}},
|
||||
"cloudfront:DeleteMonitoringSubscription": {"action": "cloudfront:DeleteMonitoringSubscription", "types": [], "resources": []},
|
||||
"cloudfront:DeleteOriginAccessControl": {"action": "cloudfront:DeleteOriginAccessControl", "types": ["origin-access-control"], "resources": [{"type": "origin-access-control", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteOriginRequestPolicy": {"action": "cloudfront:DeleteOriginRequestPolicy", "types": ["origin-request-policy"], "resources": [{"type": "origin-request-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeletePublicKey": {"action": "cloudfront:DeletePublicKey", "types": [], "resources": []},
|
||||
"cloudfront:DeleteRealtimeLogConfig": {"action": "cloudfront:DeleteRealtimeLogConfig", "types": ["realtime-log-config"], "resources": []},
|
||||
"cloudfront:DeleteResourcePolicy": {"action": "cloudfront:DeleteResourcePolicy", "types": ["vpcorigin"], "resources": []},
|
||||
"cloudfront:DeleteResponseHeadersPolicy": {"action": "cloudfront:DeleteResponseHeadersPolicy", "types": ["response-headers-policy"], "resources": [{"type": "response-headers-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteServiceLinkedRole": {"action": "cloudfront:DeleteServiceLinkedRole", "types": [], "resources": []},
|
||||
"cloudfront:DeleteStreamingDistribution": {"action": "cloudfront:DeleteStreamingDistribution", "types": ["streaming-distribution"], "resources": [{"type": "streaming-distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteTrustStore": {"action": "cloudfront:DeleteTrustStore", "types": ["trust-store"], "resources": [{"type": "trust-store", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DeleteVpcOrigin": {"action": "cloudfront:DeleteVpcOrigin", "types": ["vpcorigin"], "resources": [{"type": "vpcorigin", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:DescribeConnectionFunction": {"action": "cloudfront:DescribeConnectionFunction", "types": ["connection-function"], "resources": [{"type": "connection-function", "fill": {"Id": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"cloudfront:DescribeFunction": {"action": "cloudfront:DescribeFunction", "types": ["function"], "resources": [{"type": "function", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}},
|
||||
"cloudfront:DescribeKeyValueStore": {"action": "cloudfront:DescribeKeyValueStore", "types": ["key-value-store"], "resources": [{"type": "key-value-store", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}},
|
||||
"cloudfront:DisassociateDistributionTenantWebACL": {"action": "cloudfront:DisassociateDistributionTenantWebACL", "types": ["distribution-tenant"], "resources": []},
|
||||
"cloudfront:DisassociateDistributionWebACL": {"action": "cloudfront:DisassociateDistributionWebACL", "types": ["distribution"], "resources": []},
|
||||
"cloudfront:GetAnycastIpList": {"action": "cloudfront:GetAnycastIpList", "types": ["anycast-ip-list"], "resources": [{"type": "anycast-ip-list", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetCachePolicy": {"action": "cloudfront:GetCachePolicy", "types": ["cache-policy"], "resources": [{"type": "cache-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetCachePolicyConfig": {"action": "cloudfront:GetCachePolicyConfig", "types": ["cache-policy"], "resources": [{"type": "cache-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetCloudFrontOriginAccessIdentity": {"action": "cloudfront:GetCloudFrontOriginAccessIdentity", "types": ["origin-access-identity"], "resources": [{"type": "origin-access-identity", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetCloudFrontOriginAccessIdentityConfig": {"action": "cloudfront:GetCloudFrontOriginAccessIdentityConfig", "types": ["origin-access-identity"], "resources": [{"type": "origin-access-identity", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetConnectionFunction": {"action": "cloudfront:GetConnectionFunction", "types": ["connection-function"], "resources": [{"type": "connection-function", "fill": {"Id": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"cloudfront:GetConnectionGroup": {"action": "cloudfront:GetConnectionGroup", "types": ["connection-group"], "resources": [{"type": "connection-group", "fill": {"Id": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"cloudfront:GetConnectionGroupByRoutingEndpoint": {"action": "cloudfront:GetConnectionGroupByRoutingEndpoint", "types": ["connection-group"], "resources": []},
|
||||
"cloudfront:GetContinuousDeploymentPolicy": {"action": "cloudfront:GetContinuousDeploymentPolicy", "types": ["continuous-deployment-policy"], "resources": [{"type": "continuous-deployment-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetContinuousDeploymentPolicyConfig": {"action": "cloudfront:GetContinuousDeploymentPolicyConfig", "types": ["continuous-deployment-policy"], "resources": [{"type": "continuous-deployment-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetDistribution": {"action": "cloudfront:GetDistribution", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetDistributionConfig": {"action": "cloudfront:GetDistributionConfig", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetDistributionTenant": {"action": "cloudfront:GetDistributionTenant", "types": ["distribution-tenant"], "resources": [{"type": "distribution-tenant", "fill": {"Id": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"cloudfront:GetDistributionTenantByDomain": {"action": "cloudfront:GetDistributionTenantByDomain", "types": ["distribution-tenant"], "resources": []},
|
||||
"cloudfront:GetFieldLevelEncryption": {"action": "cloudfront:GetFieldLevelEncryption", "types": ["field-level-encryption-config"], "resources": [{"type": "field-level-encryption-config", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetFieldLevelEncryptionConfig": {"action": "cloudfront:GetFieldLevelEncryptionConfig", "types": ["field-level-encryption-config"], "resources": [{"type": "field-level-encryption-config", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetFieldLevelEncryptionProfile": {"action": "cloudfront:GetFieldLevelEncryptionProfile", "types": ["field-level-encryption-profile"], "resources": [{"type": "field-level-encryption-profile", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetFieldLevelEncryptionProfileConfig": {"action": "cloudfront:GetFieldLevelEncryptionProfileConfig", "types": ["field-level-encryption-profile"], "resources": [{"type": "field-level-encryption-profile", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetFunction": {"action": "cloudfront:GetFunction", "types": ["function"], "resources": [{"type": "function", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}},
|
||||
"cloudfront:GetInvalidation": {"action": "cloudfront:GetInvalidation", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "DistributionId"}}], "located": {"DistributionId": "{DistributionId}"}},
|
||||
"cloudfront:GetInvalidationForDistributionTenant": {"action": "cloudfront:GetInvalidationForDistributionTenant", "types": ["distribution-tenant"], "resources": [{"type": "distribution-tenant", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetKeyGroup": {"action": "cloudfront:GetKeyGroup", "types": [], "resources": []},
|
||||
"cloudfront:GetKeyGroupConfig": {"action": "cloudfront:GetKeyGroupConfig", "types": [], "resources": []},
|
||||
"cloudfront:GetManagedCertificateDetails": {"action": "cloudfront:GetManagedCertificateDetails", "types": ["distribution-tenant"], "resources": []},
|
||||
"cloudfront:GetMonitoringSubscription": {"action": "cloudfront:GetMonitoringSubscription", "types": [], "resources": []},
|
||||
"cloudfront:GetOriginAccessControl": {"action": "cloudfront:GetOriginAccessControl", "types": ["origin-access-control"], "resources": [{"type": "origin-access-control", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetOriginAccessControlConfig": {"action": "cloudfront:GetOriginAccessControlConfig", "types": ["origin-access-control"], "resources": [{"type": "origin-access-control", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetOriginRequestPolicy": {"action": "cloudfront:GetOriginRequestPolicy", "types": ["origin-request-policy"], "resources": [{"type": "origin-request-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetOriginRequestPolicyConfig": {"action": "cloudfront:GetOriginRequestPolicyConfig", "types": ["origin-request-policy"], "resources": [{"type": "origin-request-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetPublicKey": {"action": "cloudfront:GetPublicKey", "types": [], "resources": []},
|
||||
"cloudfront:GetPublicKeyConfig": {"action": "cloudfront:GetPublicKeyConfig", "types": [], "resources": []},
|
||||
"cloudfront:GetRealtimeLogConfig": {"action": "cloudfront:GetRealtimeLogConfig", "types": ["realtime-log-config"], "resources": []},
|
||||
"cloudfront:GetResourcePolicy": {"action": "cloudfront:GetResourcePolicy", "types": ["vpcorigin"], "resources": []},
|
||||
"cloudfront:GetResponseHeadersPolicy": {"action": "cloudfront:GetResponseHeadersPolicy", "types": ["response-headers-policy"], "resources": [{"type": "response-headers-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetResponseHeadersPolicyConfig": {"action": "cloudfront:GetResponseHeadersPolicyConfig", "types": ["response-headers-policy"], "resources": [{"type": "response-headers-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetStreamingDistribution": {"action": "cloudfront:GetStreamingDistribution", "types": ["streaming-distribution"], "resources": [{"type": "streaming-distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetStreamingDistributionConfig": {"action": "cloudfront:GetStreamingDistributionConfig", "types": ["streaming-distribution"], "resources": [{"type": "streaming-distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:GetTrustStore": {"action": "cloudfront:GetTrustStore", "types": ["trust-store"], "resources": [{"type": "trust-store", "fill": {"Id": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"cloudfront:GetVpcOrigin": {"action": "cloudfront:GetVpcOrigin", "types": ["vpcorigin"], "resources": [{"type": "vpcorigin", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:ListAnycastIpLists": {"action": "cloudfront:ListAnycastIpLists", "types": [], "resources": []},
|
||||
"cloudfront:ListCachePolicies": {"action": "cloudfront:ListCachePolicies", "types": [], "resources": []},
|
||||
"cloudfront:ListCloudFrontOriginAccessIdentities": {"action": "cloudfront:ListCloudFrontOriginAccessIdentities", "types": [], "resources": []},
|
||||
"cloudfront:ListConflictingAliases": {"action": "cloudfront:ListConflictingAliases", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "DistributionId"}}], "located": {"DistributionId": "?DistributionId"}},
|
||||
"cloudfront:ListConnectionFunctions": {"action": "cloudfront:ListConnectionFunctions", "types": [], "resources": []},
|
||||
"cloudfront:ListConnectionGroups": {"action": "cloudfront:ListConnectionGroups", "types": [], "resources": []},
|
||||
"cloudfront:ListContinuousDeploymentPolicies": {"action": "cloudfront:ListContinuousDeploymentPolicies", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionTenants": {"action": "cloudfront:ListDistributionTenants", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionTenantsByCustomization": {"action": "cloudfront:ListDistributionTenantsByCustomization", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributions": {"action": "cloudfront:ListDistributions", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByAnycastIpListId": {"action": "cloudfront:ListDistributionsByAnycastIpListId", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByCachePolicyId": {"action": "cloudfront:ListDistributionsByCachePolicyId", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByConnectionFunction": {"action": "cloudfront:ListDistributionsByConnectionFunction", "types": ["connection-function"], "resources": [{"type": "connection-function", "fill": {"Id": "ConnectionFunctionIdentifier"}}], "located": {"ConnectionFunctionIdentifier": "?ConnectionFunctionIdentifier"}},
|
||||
"cloudfront:ListDistributionsByConnectionMode": {"action": "cloudfront:ListDistributionsByConnectionMode", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByKeyGroup": {"action": "cloudfront:ListDistributionsByKeyGroup", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByOriginRequestPolicyId": {"action": "cloudfront:ListDistributionsByOriginRequestPolicyId", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByOwnedResource": {"action": "cloudfront:ListDistributionsByOwnedResource", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByRealtimeLogConfig": {"action": "cloudfront:ListDistributionsByRealtimeLogConfig", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByResponseHeadersPolicyId": {"action": "cloudfront:ListDistributionsByResponseHeadersPolicyId", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByTrustStore": {"action": "cloudfront:ListDistributionsByTrustStore", "types": ["trust-store"], "resources": [{"type": "trust-store", "fill": {"Id": "TrustStoreIdentifier"}}], "located": {"TrustStoreIdentifier": "?TrustStoreIdentifier"}},
|
||||
"cloudfront:ListDistributionsByVpcOriginId": {"action": "cloudfront:ListDistributionsByVpcOriginId", "types": [], "resources": []},
|
||||
"cloudfront:ListDistributionsByWebACLId": {"action": "cloudfront:ListDistributionsByWebACLId", "types": [], "resources": []},
|
||||
"cloudfront:ListDomainConflicts": {"action": "cloudfront:ListDomainConflicts", "types": ["distribution", "distribution-tenant"], "resources": []},
|
||||
"cloudfront:ListFieldLevelEncryptionConfigs": {"action": "cloudfront:ListFieldLevelEncryptionConfigs", "types": [], "resources": []},
|
||||
"cloudfront:ListFieldLevelEncryptionProfiles": {"action": "cloudfront:ListFieldLevelEncryptionProfiles", "types": [], "resources": []},
|
||||
"cloudfront:ListFunctions": {"action": "cloudfront:ListFunctions", "types": [], "resources": []},
|
||||
"cloudfront:ListInvalidations": {"action": "cloudfront:ListInvalidations", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "DistributionId"}}], "located": {"DistributionId": "{DistributionId}"}},
|
||||
"cloudfront:ListInvalidationsForDistributionTenant": {"action": "cloudfront:ListInvalidationsForDistributionTenant", "types": ["distribution-tenant"], "resources": [{"type": "distribution-tenant", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:ListKeyGroups": {"action": "cloudfront:ListKeyGroups", "types": [], "resources": []},
|
||||
"cloudfront:ListKeyValueStores": {"action": "cloudfront:ListKeyValueStores", "types": [], "resources": []},
|
||||
"cloudfront:ListOriginAccessControls": {"action": "cloudfront:ListOriginAccessControls", "types": [], "resources": []},
|
||||
"cloudfront:ListOriginRequestPolicies": {"action": "cloudfront:ListOriginRequestPolicies", "types": [], "resources": []},
|
||||
"cloudfront:ListPublicKeys": {"action": "cloudfront:ListPublicKeys", "types": [], "resources": []},
|
||||
"cloudfront:ListRealtimeLogConfigs": {"action": "cloudfront:ListRealtimeLogConfigs", "types": [], "resources": []},
|
||||
"cloudfront:ListResponseHeadersPolicies": {"action": "cloudfront:ListResponseHeadersPolicies", "types": [], "resources": []},
|
||||
"cloudfront:ListStreamingDistributions": {"action": "cloudfront:ListStreamingDistributions", "types": [], "resources": []},
|
||||
"cloudfront:ListTagsForResource": {"action": "cloudfront:ListTagsForResource", "types": ["anycast-ip-list", "connection-function", "connection-group", "distribution", "distribution-tenant", "function", "key-value-store", "trust-store", "vpcorigin"], "resources": [{"types": ["anycast-ip-list", "connection-function", "connection-group", "distribution", "distribution-tenant", "function", "key-value-store", "trust-store", "vpcorigin"], "arn": "Resource"}], "located": {"Resource": "?Resource"}},
|
||||
"cloudfront:ListTrustStores": {"action": "cloudfront:ListTrustStores", "types": [], "resources": []},
|
||||
"cloudfront:ListVpcOrigins": {"action": "cloudfront:ListVpcOrigins", "types": [], "resources": []},
|
||||
"cloudfront:PublishConnectionFunction": {"action": "cloudfront:PublishConnectionFunction", "types": ["connection-function"], "resources": [{"type": "connection-function", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:PublishFunction": {"action": "cloudfront:PublishFunction", "types": ["function"], "resources": [{"type": "function", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}},
|
||||
"cloudfront:PutResourcePolicy": {"action": "cloudfront:PutResourcePolicy", "types": ["vpcorigin"], "resources": []},
|
||||
"cloudfront:TagResource": {"action": "cloudfront:TagResource", "types": ["anycast-ip-list", "connection-function", "connection-group", "distribution", "distribution-tenant", "function", "key-value-store", "streaming-distribution", "trust-store", "vpcorigin"], "resources": [{"types": ["anycast-ip-list", "connection-function", "connection-group", "distribution", "distribution-tenant", "function", "key-value-store", "streaming-distribution", "trust-store", "vpcorigin"], "arn": "Resource"}], "located": {"Resource": "?Resource"}},
|
||||
"cloudfront:TestConnectionFunction": {"action": "cloudfront:TestConnectionFunction", "types": ["connection-function"], "resources": [{"type": "connection-function", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:TestFunction": {"action": "cloudfront:TestFunction", "types": ["function"], "resources": [{"type": "function", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}},
|
||||
"cloudfront:UntagResource": {"action": "cloudfront:UntagResource", "types": ["anycast-ip-list", "connection-function", "connection-group", "distribution", "distribution-tenant", "function", "key-value-store", "streaming-distribution", "trust-store", "vpcorigin"], "resources": [{"types": ["anycast-ip-list", "connection-function", "connection-group", "distribution", "distribution-tenant", "function", "key-value-store", "streaming-distribution", "trust-store", "vpcorigin"], "arn": "Resource"}], "located": {"Resource": "?Resource"}},
|
||||
"cloudfront:UpdateAnycastIpList": {"action": "cloudfront:UpdateAnycastIpList", "types": ["anycast-ip-list"], "resources": [{"type": "anycast-ip-list", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateCachePolicy": {"action": "cloudfront:UpdateCachePolicy", "types": ["cache-policy"], "resources": [{"type": "cache-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateCloudFrontOriginAccessIdentity": {"action": "cloudfront:UpdateCloudFrontOriginAccessIdentity", "types": ["origin-access-identity"], "resources": [{"type": "origin-access-identity", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateConnectionFunction": {"action": "cloudfront:UpdateConnectionFunction", "types": ["connection-function"], "resources": [{"type": "connection-function", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateConnectionGroup": {"action": "cloudfront:UpdateConnectionGroup", "types": ["connection-group"], "resources": [{"type": "connection-group", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateContinuousDeploymentPolicy": {"action": "cloudfront:UpdateContinuousDeploymentPolicy", "types": ["continuous-deployment-policy"], "resources": [{"type": "continuous-deployment-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateDistribution": {"action": "cloudfront:UpdateDistribution", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateDistributionTenant": {"action": "cloudfront:UpdateDistributionTenant", "types": ["distribution-tenant"], "resources": [{"type": "distribution-tenant", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateDistributionWithStagingConfig": {"action": "cloudfront:UpdateDistributionWithStagingConfig", "types": ["distribution"], "resources": [{"type": "distribution", "fill": {"DistributionId": "StagingDistributionId"}}], "located": {"StagingDistributionId": "?StagingDistributionId"}},
|
||||
"cloudfront:UpdateDomainAssociation": {"action": "cloudfront:UpdateDomainAssociation", "types": ["distribution", "distribution-tenant"], "resources": []},
|
||||
"cloudfront:UpdateFieldLevelEncryptionConfig": {"action": "cloudfront:UpdateFieldLevelEncryptionConfig", "types": [], "resources": []},
|
||||
"cloudfront:UpdateFieldLevelEncryptionProfile": {"action": "cloudfront:UpdateFieldLevelEncryptionProfile", "types": ["field-level-encryption-profile"], "resources": [{"type": "field-level-encryption-profile", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateFunction": {"action": "cloudfront:UpdateFunction", "types": ["function"], "resources": [{"type": "function", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}},
|
||||
"cloudfront:UpdateKeyGroup": {"action": "cloudfront:UpdateKeyGroup", "types": [], "resources": []},
|
||||
"cloudfront:UpdateKeyValueStore": {"action": "cloudfront:UpdateKeyValueStore", "types": ["key-value-store"], "resources": [{"type": "key-value-store", "fill": {"Name": "Name"}}], "located": {"Name": "{Name}"}},
|
||||
"cloudfront:UpdateOriginAccessControl": {"action": "cloudfront:UpdateOriginAccessControl", "types": ["origin-access-control"], "resources": [{"type": "origin-access-control", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateOriginRequestPolicy": {"action": "cloudfront:UpdateOriginRequestPolicy", "types": ["origin-request-policy"], "resources": [{"type": "origin-request-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdatePublicKey": {"action": "cloudfront:UpdatePublicKey", "types": [], "resources": []},
|
||||
"cloudfront:UpdateRealtimeLogConfig": {"action": "cloudfront:UpdateRealtimeLogConfig", "types": ["realtime-log-config"], "resources": []},
|
||||
"cloudfront:UpdateResponseHeadersPolicy": {"action": "cloudfront:UpdateResponseHeadersPolicy", "types": ["response-headers-policy"], "resources": [{"type": "response-headers-policy", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateStreamingDistribution": {"action": "cloudfront:UpdateStreamingDistribution", "types": ["streaming-distribution"], "resources": [{"type": "streaming-distribution", "fill": {"DistributionId": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateTrustStore": {"action": "cloudfront:UpdateTrustStore", "types": ["trust-store"], "resources": [{"type": "trust-store", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:UpdateVpcOrigin": {"action": "cloudfront:UpdateVpcOrigin", "types": ["vpcorigin"], "resources": [{"type": "vpcorigin", "fill": {"Id": "Id"}}], "located": {"Id": "{Id}"}},
|
||||
"cloudfront:VerifyDnsConfiguration": {"action": "cloudfront:VerifyDnsConfiguration", "types": ["distribution-tenant"], "resources": []},
|
||||
"cloudtrail:AddTags": {"action": "cloudtrail:AddTags", "types": ["channel", "dashboard", "eventdatastore", "trail"], "resources": [{"types": ["channel", "dashboard", "eventdatastore", "trail"], "arn": "ResourceId"}]},
|
||||
"cloudtrail:CancelQuery": {"action": "cloudtrail:CancelQuery", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:CreateChannel": {"action": "cloudtrail:CreateChannel", "types": ["channel", "eventdatastore"], "resources": [{"type": "channel", "fill": {}}]},
|
||||
@@ -2372,7 +2540,7 @@
|
||||
"quicksight:CreateThemeAlias": {"action": "quicksight:CreateThemeAlias", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}},
|
||||
"quicksight:CreateTopic": {"action": "quicksight:CreateTopic", "types": ["dataset"], "resources": [{"types": ["dataset"], "arn": "FolderArns[]"}]},
|
||||
"quicksight:CreateTopicRefreshSchedule": {"action": "quicksight:CreateTopicRefreshSchedule", "types": ["topic"], "resources": [{"types": ["topic"], "arn": "DatasetArn"}, {"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}},
|
||||
"quicksight:CreateTopicV2": {"action": "quicksight:CreateTopicV2", "types": [], "resources": []},
|
||||
"quicksight:CreateTopicV2": {"action": "quicksight:CreateTopic", "types": ["dataset"], "resources": [{"types": ["dataset"], "arn": "FolderArns[]"}]},
|
||||
"quicksight:CreateVPCConnection": {"action": "quicksight:CreateVPCConnection", "types": [], "resources": []},
|
||||
"quicksight:DeleteAccountCustomPermission": {"action": "quicksight:DeleteAccountCustomPermission", "types": [], "resources": []},
|
||||
"quicksight:DeleteAccountCustomization": {"action": "quicksight:DeleteAccountCustomization", "types": ["customization"], "resources": []},
|
||||
@@ -2632,7 +2800,7 @@
|
||||
"quicksight:UpdateTopicPermissions": {"action": "quicksight:UpdateTopicPermissions", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}},
|
||||
"quicksight:UpdateTopicPermissionsV2": {"action": "quicksight:UpdateTopicPermissions", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}},
|
||||
"quicksight:UpdateTopicRefreshSchedule": {"action": "quicksight:UpdateTopicRefreshSchedule", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}},
|
||||
"quicksight:UpdateTopicV2": {"action": "quicksight:UpdateTopicV2", "types": [], "resources": []},
|
||||
"quicksight:UpdateTopicV2": {"action": "quicksight:UpdateTopic", "types": ["dataset", "topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}},
|
||||
"quicksight:UpdateUser": {"action": "quicksight:UpdateUser", "types": ["user"], "resources": []},
|
||||
"quicksight:UpdateUserCustomPermission": {"action": "quicksight:UpdateUserCustomPermission", "types": ["user"], "resources": []},
|
||||
"quicksight:UpdateVPCConnection": {"action": "quicksight:UpdateVPCConnection", "types": ["vpcconnection"], "resources": [{"types": ["vpcconnection"], "arn": "RoleArn"}, {"type": "vpcconnection", "fill": {"ResourceId": "VPCConnectionId"}}], "located": {"VPCConnectionId": "{VPCConnectionId}"}},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_tag_on_create.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-11", "note": "make iam-tag-on-create-check re-derives every member from botocore; make iam-tag-on-create-verify checks every operation against AWS."},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
|
||||
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "emr-serverless": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "oam": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "ram": "REST routes no rule maps yet", "resource-explorer-2": "REST routes no rule maps yet", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "s3tables": "REST routes no rule maps yet", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
|
||||
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "emr-serverless": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "oam": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "ram": "REST routes no rule maps yet", "resource-explorer-2": "REST routes no rule maps yet", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "s3tables": "REST routes no rule maps yet", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
|
||||
"otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "applicationinsights", "appmesh", "apprunner", "appstream", "arc-region-switch", "artifact", "auditmanager", "b2bi", "backup-gateway", "backup-search", "bcm-dashboards", "billing", "billingconductor", "braket", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "connect-campaigns", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "directconnect", "docdb-elastic", "drs", "ds", "ebs", "ecr-public", "elemental-inference", "emr-containers", "entityresolution", "evs", "fms", "forecast", "frauddetector", "fsx", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "ivs", "ivschat", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "m2", "managedblockchain", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgn", "migrationhub-orchestrator", "mobiletargeting", "mpa", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "notifications", "notifications-contacts", "observabilityadmin", "odb", "omics", "opensearch", "osis", "outposts", "partnercentral", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "profile", "proton", "qbusiness", "rbin", "refactor-spaces", "repostspace", "resiliencehub", "rolesanywhere", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3files", "sagemaker-geospatial", "savingsplans", "schemas", "scn", "security-ir", "securityagent", "securitylake", "shield", "sms-voice", "snow-device-management", "social-messaging", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "voiceid", "vpc-lattice", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workspaces", "workspaces-instances", "workspaces-web"],
|
||||
"resourceArns": {"ec2": {"application-status-check": "arn:${Partition}:ec2:${Region}:${Account}:application-status-check/*", "capacity-block": "arn:${Partition}:ec2:${Region}:${Account}:capacity-block/*", "capacity-manager-data-export": "arn:${Partition}:ec2:${Region}:${Account}:capacity-manager-data-export/*", "capacity-reservation": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/*", "capacity-reservation-cancellation-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-cancellation-quote/*", "capacity-reservation-fleet": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-fleet/*", "capacity-reservation-modification-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-modification-quote/*", "carrier-gateway": "arn:${Partition}:ec2:${Region}:${Account}:carrier-gateway/*", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/*", "client-vpn-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:client-vpn-endpoint/*", "coip-pool": "arn:${Partition}:ec2:${Region}:${Account}:coip-pool/*", "customer-gateway": "arn:${Partition}:ec2:${Region}:${Account}:customer-gateway/*", "declarative-policies-report": "arn:${Partition}:ec2:${Region}:${Account}:declarative-policies-report/*", "dedicated-host": "arn:${Partition}:ec2:${Region}:${Account}:dedicated-host/*", "dhcp-options": "arn:${Partition}:ec2:${Region}:${Account}:dhcp-options/*", "egress-only-internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:egress-only-internet-gateway/*", "elastic-gpu": "arn:${Partition}:ec2:${Region}:${Account}:elastic-gpu/*", "elastic-inference": "arn:${Partition}:elastic-inference:${Region}:${Account}:elastic-inference-accelerator/*", "elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/*", "export-image-task": "arn:${Partition}:ec2:${Region}:${Account}:export-image-task/*", "export-instance-task": "arn:${Partition}:ec2:${Region}:${Account}:export-instance-task/*", "fleet": "arn:${Partition}:ec2:${Region}:${Account}:fleet/*", "fpga-image": "arn:${Partition}:ec2:${Region}:${Account}:fpga-image/*", "group": "arn:${Partition}:resource-groups:${Region}:${Account}:group/*", "host-reservation": "arn:${Partition}:ec2:${Region}:${Account}:host-reservation/*", "image": "arn:${Partition}:ec2:${Region}::image/*", "image-usage-report": "arn:${Partition}:ec2:${Region}:${Account}:image-usage-report/*", "import-image-task": "arn:${Partition}:ec2:${Region}:${Account}:import-image-task/*", "import-snapshot-task": "arn:${Partition}:ec2:${Region}:${Account}:import-snapshot-task/*", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/*", "instance-connect-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:instance-connect-endpoint/*", "instance-event-window": "arn:${Partition}:ec2:${Region}:${Account}:instance-event-window/*", "internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:internet-gateway/*", "ipam": "arn:${Partition}:ec2::${Account}:ipam/*", "ipam-external-resource-verification-token": "arn:${Partition}:ec2::${Account}:ipam-external-resource-verification-token/*", "ipam-internet-registry-association": "arn:${Partition}:ec2::${Account}:ipam-internet-registry-association/*", "ipam-policy": "arn:${Partition}:ec2::${Account}:ipam-policy/*", "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/*", "ipam-pool-allocation": "arn:${Partition}:ec2:${Region}:${Account}:ipam-pool-allocation/*", "ipam-prefix-list-resolver": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver/*", "ipam-prefix-list-resolver-target": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver-target/*", "ipam-resource-discovery": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery/*", "ipam-resource-discovery-association": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery-association/*", "ipam-scope": "arn:${Partition}:ec2::${Account}:ipam-scope/*", "ipv4pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv4pool-ec2/*", "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/*", "key-pair": "arn:${Partition}:ec2:${Region}:${Account}:key-pair/*", "launch-template": "arn:${Partition}:ec2:${Region}:${Account}:launch-template/*", "license-configuration": "arn:${Partition}:license-manager:${Region}:${Account}:license-configuration:*", "local-gateway": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway/*", "local-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table/*", "local-gateway-route-table-virtual-interface-group-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-virtual-interface-group-association/*", "local-gateway-route-table-vpc-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-vpc-association/*", "local-gateway-virtual-interface": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface/*", "local-gateway-virtual-interface-group": "arn:${Partition}:ec2:${Region}:${Account}:Line truncated
|
||||
"operations": {
|
||||
|
||||
@@ -291,6 +291,180 @@
|
||||
"UpdateVpcLink": {"method": "PATCH", "requestUri": "/v2/vpclinks/{vpcLinkId}"}
|
||||
}
|
||||
},
|
||||
"cloudfront": {
|
||||
"credentialScope": "cloudfront",
|
||||
"apiVersion": "2020-05-31",
|
||||
"accessDeniedStatus": 403,
|
||||
"operations": {
|
||||
"AssociateAlias": {"method": "PUT", "requestUri": "/2020-05-31/distribution/{TargetDistributionId}/associate-alias"},
|
||||
"AssociateDistributionTenantWebACL": {"method": "PUT", "requestUri": "/2020-05-31/distribution-tenant/{Id}/associate-web-acl"},
|
||||
"AssociateDistributionWebACL": {"method": "PUT", "requestUri": "/2020-05-31/distribution/{Id}/associate-web-acl"},
|
||||
"CopyDistribution": {"method": "POST", "requestUri": "/2020-05-31/distribution/{PrimaryDistributionId}/copy"},
|
||||
"CreateAnycastIpList": {"method": "POST", "requestUri": "/2020-05-31/anycast-ip-list"},
|
||||
"CreateCachePolicy": {"method": "POST", "requestUri": "/2020-05-31/cache-policy"},
|
||||
"CreateCloudFrontOriginAccessIdentity": {"method": "POST", "requestUri": "/2020-05-31/origin-access-identity/cloudfront"},
|
||||
"CreateConnectionFunction": {"method": "POST", "requestUri": "/2020-05-31/connection-function"},
|
||||
"CreateConnectionGroup": {"method": "POST", "requestUri": "/2020-05-31/connection-group"},
|
||||
"CreateContinuousDeploymentPolicy": {"method": "POST", "requestUri": "/2020-05-31/continuous-deployment-policy"},
|
||||
"CreateDistribution": {"method": "POST", "requestUri": "/2020-05-31/distribution"},
|
||||
"CreateDistributionTenant": {"method": "POST", "requestUri": "/2020-05-31/distribution-tenant"},
|
||||
"CreateDistributionWithTags": {"method": "POST", "requestUri": "/2020-05-31/distribution?WithTags"},
|
||||
"CreateFieldLevelEncryptionConfig": {"method": "POST", "requestUri": "/2020-05-31/field-level-encryption"},
|
||||
"CreateFieldLevelEncryptionProfile": {"method": "POST", "requestUri": "/2020-05-31/field-level-encryption-profile"},
|
||||
"CreateFunction": {"method": "POST", "requestUri": "/2020-05-31/function"},
|
||||
"CreateInvalidation": {"method": "POST", "requestUri": "/2020-05-31/distribution/{DistributionId}/invalidation"},
|
||||
"CreateInvalidationForDistributionTenant": {"method": "POST", "requestUri": "/2020-05-31/distribution-tenant/{Id}/invalidation"},
|
||||
"CreateKeyGroup": {"method": "POST", "requestUri": "/2020-05-31/key-group"},
|
||||
"CreateKeyValueStore": {"method": "POST", "requestUri": "/2020-05-31/key-value-store"},
|
||||
"CreateMonitoringSubscription": {"method": "POST", "requestUri": "/2020-05-31/distributions/{DistributionId}/monitoring-subscription"},
|
||||
"CreateOriginAccessControl": {"method": "POST", "requestUri": "/2020-05-31/origin-access-control"},
|
||||
"CreateOriginRequestPolicy": {"method": "POST", "requestUri": "/2020-05-31/origin-request-policy"},
|
||||
"CreatePublicKey": {"method": "POST", "requestUri": "/2020-05-31/public-key"},
|
||||
"CreateRealtimeLogConfig": {"method": "POST", "requestUri": "/2020-05-31/realtime-log-config"},
|
||||
"CreateResponseHeadersPolicy": {"method": "POST", "requestUri": "/2020-05-31/response-headers-policy"},
|
||||
"CreateStreamingDistribution": {"method": "POST", "requestUri": "/2020-05-31/streaming-distribution"},
|
||||
"CreateStreamingDistributionWithTags": {"method": "POST", "requestUri": "/2020-05-31/streaming-distribution?WithTags"},
|
||||
"CreateTrustStore": {"method": "POST", "requestUri": "/2020-05-31/trust-store"},
|
||||
"CreateVpcOrigin": {"method": "POST", "requestUri": "/2020-05-31/vpc-origin"},
|
||||
"DeleteAnycastIpList": {"method": "DELETE", "requestUri": "/2020-05-31/anycast-ip-list/{Id}"},
|
||||
"DeleteCachePolicy": {"method": "DELETE", "requestUri": "/2020-05-31/cache-policy/{Id}"},
|
||||
"DeleteCloudFrontOriginAccessIdentity": {"method": "DELETE", "requestUri": "/2020-05-31/origin-access-identity/cloudfront/{Id}"},
|
||||
"DeleteConnectionFunction": {"method": "DELETE", "requestUri": "/2020-05-31/connection-function/{Id}"},
|
||||
"DeleteConnectionGroup": {"method": "DELETE", "requestUri": "/2020-05-31/connection-group/{Id}"},
|
||||
"DeleteContinuousDeploymentPolicy": {"method": "DELETE", "requestUri": "/2020-05-31/continuous-deployment-policy/{Id}"},
|
||||
"DeleteDistribution": {"method": "DELETE", "requestUri": "/2020-05-31/distribution/{Id}"},
|
||||
"DeleteDistributionTenant": {"method": "DELETE", "requestUri": "/2020-05-31/distribution-tenant/{Id}"},
|
||||
"DeleteFieldLevelEncryptionConfig": {"method": "DELETE", "requestUri": "/2020-05-31/field-level-encryption/{Id}"},
|
||||
"DeleteFieldLevelEncryptionProfile": {"method": "DELETE", "requestUri": "/2020-05-31/field-level-encryption-profile/{Id}"},
|
||||
"DeleteFunction": {"method": "DELETE", "requestUri": "/2020-05-31/function/{Name}"},
|
||||
"DeleteKeyGroup": {"method": "DELETE", "requestUri": "/2020-05-31/key-group/{Id}"},
|
||||
"DeleteKeyValueStore": {"method": "DELETE", "requestUri": "/2020-05-31/key-value-store/{Name}"},
|
||||
"DeleteMonitoringSubscription": {"method": "DELETE", "requestUri": "/2020-05-31/distributions/{DistributionId}/monitoring-subscription"},
|
||||
"DeleteOriginAccessControl": {"method": "DELETE", "requestUri": "/2020-05-31/origin-access-control/{Id}"},
|
||||
"DeleteOriginRequestPolicy": {"method": "DELETE", "requestUri": "/2020-05-31/origin-request-policy/{Id}"},
|
||||
"DeletePublicKey": {"method": "DELETE", "requestUri": "/2020-05-31/public-key/{Id}"},
|
||||
"DeleteRealtimeLogConfig": {"method": "POST", "requestUri": "/2020-05-31/delete-realtime-log-config"},
|
||||
"DeleteResourcePolicy": {"method": "POST", "requestUri": "/2020-05-31/delete-resource-policy"},
|
||||
"DeleteResponseHeadersPolicy": {"method": "DELETE", "requestUri": "/2020-05-31/response-headers-policy/{Id}"},
|
||||
"DeleteStreamingDistribution": {"method": "DELETE", "requestUri": "/2020-05-31/streaming-distribution/{Id}"},
|
||||
"DeleteTrustStore": {"method": "DELETE", "requestUri": "/2020-05-31/trust-store/{Id}"},
|
||||
"DeleteVpcOrigin": {"method": "DELETE", "requestUri": "/2020-05-31/vpc-origin/{Id}"},
|
||||
"DescribeConnectionFunction": {"method": "GET", "requestUri": "/2020-05-31/connection-function/{Identifier}/describe"},
|
||||
"DescribeFunction": {"method": "GET", "requestUri": "/2020-05-31/function/{Name}/describe"},
|
||||
"DescribeKeyValueStore": {"method": "GET", "requestUri": "/2020-05-31/key-value-store/{Name}"},
|
||||
"DisassociateDistributionTenantWebACL": {"method": "PUT", "requestUri": "/2020-05-31/distribution-tenant/{Id}/disassociate-web-acl"},
|
||||
"DisassociateDistributionWebACL": {"method": "PUT", "requestUri": "/2020-05-31/distribution/{Id}/disassociate-web-acl"},
|
||||
"GetAnycastIpList": {"method": "GET", "requestUri": "/2020-05-31/anycast-ip-list/{Id}"},
|
||||
"GetCachePolicy": {"method": "GET", "requestUri": "/2020-05-31/cache-policy/{Id}"},
|
||||
"GetCachePolicyConfig": {"method": "GET", "requestUri": "/2020-05-31/cache-policy/{Id}/config"},
|
||||
"GetCloudFrontOriginAccessIdentity": {"method": "GET", "requestUri": "/2020-05-31/origin-access-identity/cloudfront/{Id}"},
|
||||
"GetCloudFrontOriginAccessIdentityConfig": {"method": "GET", "requestUri": "/2020-05-31/origin-access-identity/cloudfront/{Id}/config"},
|
||||
"GetConnectionFunction": {"method": "GET", "requestUri": "/2020-05-31/connection-function/{Identifier}"},
|
||||
"GetConnectionGroup": {"method": "GET", "requestUri": "/2020-05-31/connection-group/{Identifier}"},
|
||||
"GetConnectionGroupByRoutingEndpoint": {"method": "GET", "requestUri": "/2020-05-31/connection-group"},
|
||||
"GetContinuousDeploymentPolicy": {"method": "GET", "requestUri": "/2020-05-31/continuous-deployment-policy/{Id}"},
|
||||
"GetContinuousDeploymentPolicyConfig": {"method": "GET", "requestUri": "/2020-05-31/continuous-deployment-policy/{Id}/config"},
|
||||
"GetDistribution": {"method": "GET", "requestUri": "/2020-05-31/distribution/{Id}"},
|
||||
"GetDistributionConfig": {"method": "GET", "requestUri": "/2020-05-31/distribution/{Id}/config"},
|
||||
"GetDistributionTenant": {"method": "GET", "requestUri": "/2020-05-31/distribution-tenant/{Identifier}"},
|
||||
"GetDistributionTenantByDomain": {"method": "GET", "requestUri": "/2020-05-31/distribution-tenant"},
|
||||
"GetFieldLevelEncryption": {"method": "GET", "requestUri": "/2020-05-31/field-level-encryption/{Id}"},
|
||||
"GetFieldLevelEncryptionConfig": {"method": "GET", "requestUri": "/2020-05-31/field-level-encryption/{Id}/config"},
|
||||
"GetFieldLevelEncryptionProfile": {"method": "GET", "requestUri": "/2020-05-31/field-level-encryption-profile/{Id}"},
|
||||
"GetFieldLevelEncryptionProfileConfig": {"method": "GET", "requestUri": "/2020-05-31/field-level-encryption-profile/{Id}/config"},
|
||||
"GetFunction": {"method": "GET", "requestUri": "/2020-05-31/function/{Name}"},
|
||||
"GetInvalidation": {"method": "GET", "requestUri": "/2020-05-31/distribution/{DistributionId}/invalidation/{Id}"},
|
||||
"GetInvalidationForDistributionTenant": {"method": "GET", "requestUri": "/2020-05-31/distribution-tenant/{DistributionTenantId}/invalidation/{Id}"},
|
||||
"GetKeyGroup": {"method": "GET", "requestUri": "/2020-05-31/key-group/{Id}"},
|
||||
"GetKeyGroupConfig": {"method": "GET", "requestUri": "/2020-05-31/key-group/{Id}/config"},
|
||||
"GetManagedCertificateDetails": {"method": "GET", "requestUri": "/2020-05-31/managed-certificate/{Identifier}"},
|
||||
"GetMonitoringSubscription": {"method": "GET", "requestUri": "/2020-05-31/distributions/{DistributionId}/monitoring-subscription"},
|
||||
"GetOriginAccessControl": {"method": "GET", "requestUri": "/2020-05-31/origin-access-control/{Id}"},
|
||||
"GetOriginAccessControlConfig": {"method": "GET", "requestUri": "/2020-05-31/origin-access-control/{Id}/config"},
|
||||
"GetOriginRequestPolicy": {"method": "GET", "requestUri": "/2020-05-31/origin-request-policy/{Id}"},
|
||||
"GetOriginRequestPolicyConfig": {"method": "GET", "requestUri": "/2020-05-31/origin-request-policy/{Id}/config"},
|
||||
"GetPublicKey": {"method": "GET", "requestUri": "/2020-05-31/public-key/{Id}"},
|
||||
"GetPublicKeyConfig": {"method": "GET", "requestUri": "/2020-05-31/public-key/{Id}/config"},
|
||||
"GetRealtimeLogConfig": {"method": "POST", "requestUri": "/2020-05-31/get-realtime-log-config"},
|
||||
"GetResourcePolicy": {"method": "POST", "requestUri": "/2020-05-31/get-resource-policy"},
|
||||
"GetResponseHeadersPolicy": {"method": "GET", "requestUri": "/2020-05-31/response-headers-policy/{Id}"},
|
||||
"GetResponseHeadersPolicyConfig": {"method": "GET", "requestUri": "/2020-05-31/response-headers-policy/{Id}/config"},
|
||||
"GetStreamingDistribution": {"method": "GET", "requestUri": "/2020-05-31/streaming-distribution/{Id}"},
|
||||
"GetStreamingDistributionConfig": {"method": "GET", "requestUri": "/2020-05-31/streaming-distribution/{Id}/config"},
|
||||
"GetTrustStore": {"method": "GET", "requestUri": "/2020-05-31/trust-store/{Identifier}"},
|
||||
"GetVpcOrigin": {"method": "GET", "requestUri": "/2020-05-31/vpc-origin/{Id}"},
|
||||
"ListAnycastIpLists": {"method": "GET", "requestUri": "/2020-05-31/anycast-ip-list"},
|
||||
"ListCachePolicies": {"method": "GET", "requestUri": "/2020-05-31/cache-policy"},
|
||||
"ListCloudFrontOriginAccessIdentities": {"method": "GET", "requestUri": "/2020-05-31/origin-access-identity/cloudfront"},
|
||||
"ListConflictingAliases": {"method": "GET", "requestUri": "/2020-05-31/conflicting-alias"},
|
||||
"ListConnectionFunctions": {"method": "POST", "requestUri": "/2020-05-31/connection-functions"},
|
||||
"ListConnectionGroups": {"method": "POST", "requestUri": "/2020-05-31/connection-groups"},
|
||||
"ListContinuousDeploymentPolicies": {"method": "GET", "requestUri": "/2020-05-31/continuous-deployment-policy"},
|
||||
"ListDistributionTenants": {"method": "POST", "requestUri": "/2020-05-31/distribution-tenants"},
|
||||
"ListDistributionTenantsByCustomization": {"method": "POST", "requestUri": "/2020-05-31/distribution-tenants-by-customization"},
|
||||
"ListDistributions": {"method": "GET", "requestUri": "/2020-05-31/distribution"},
|
||||
"ListDistributionsByAnycastIpListId": {"method": "GET", "requestUri": "/2020-05-31/distributionsByAnycastIpListId/{AnycastIpListId}"},
|
||||
"ListDistributionsByCachePolicyId": {"method": "GET", "requestUri": "/2020-05-31/distributionsByCachePolicyId/{CachePolicyId}"},
|
||||
"ListDistributionsByConnectionFunction": {"method": "GET", "requestUri": "/2020-05-31/distributionsByConnectionFunction"},
|
||||
"ListDistributionsByConnectionMode": {"method": "GET", "requestUri": "/2020-05-31/distributionsByConnectionMode/{ConnectionMode}"},
|
||||
"ListDistributionsByKeyGroup": {"method": "GET", "requestUri": "/2020-05-31/distributionsByKeyGroupId/{KeyGroupId}"},
|
||||
"ListDistributionsByOriginRequestPolicyId": {"method": "GET", "requestUri": "/2020-05-31/distributionsByOriginRequestPolicyId/{OriginRequestPolicyId}"},
|
||||
"ListDistributionsByOwnedResource": {"method": "GET", "requestUri": "/2020-05-31/distributionsByOwnedResource/{ResourceArn}"},
|
||||
"ListDistributionsByRealtimeLogConfig": {"method": "POST", "requestUri": "/2020-05-31/distributionsByRealtimeLogConfig"},
|
||||
"ListDistributionsByResponseHeadersPolicyId": {"method": "GET", "requestUri": "/2020-05-31/distributionsByResponseHeadersPolicyId/{ResponseHeadersPolicyId}"},
|
||||
"ListDistributionsByTrustStore": {"method": "GET", "requestUri": "/2020-05-31/distributionsByTrustStore"},
|
||||
"ListDistributionsByVpcOriginId": {"method": "GET", "requestUri": "/2020-05-31/distributionsByVpcOriginId/{VpcOriginId}"},
|
||||
"ListDistributionsByWebACLId": {"method": "GET", "requestUri": "/2020-05-31/distributionsByWebACLId/{WebACLId}"},
|
||||
"ListDomainConflicts": {"method": "POST", "requestUri": "/2020-05-31/domain-conflicts"},
|
||||
"ListFieldLevelEncryptionConfigs": {"method": "GET", "requestUri": "/2020-05-31/field-level-encryption"},
|
||||
"ListFieldLevelEncryptionProfiles": {"method": "GET", "requestUri": "/2020-05-31/field-level-encryption-profile"},
|
||||
"ListFunctions": {"method": "GET", "requestUri": "/2020-05-31/function"},
|
||||
"ListInvalidations": {"method": "GET", "requestUri": "/2020-05-31/distribution/{DistributionId}/invalidation"},
|
||||
"ListInvalidationsForDistributionTenant": {"method": "GET", "requestUri": "/2020-05-31/distribution-tenant/{Id}/invalidation"},
|
||||
"ListKeyGroups": {"method": "GET", "requestUri": "/2020-05-31/key-group"},
|
||||
"ListKeyValueStores": {"method": "GET", "requestUri": "/2020-05-31/key-value-store"},
|
||||
"ListOriginAccessControls": {"method": "GET", "requestUri": "/2020-05-31/origin-access-control"},
|
||||
"ListOriginRequestPolicies": {"method": "GET", "requestUri": "/2020-05-31/origin-request-policy"},
|
||||
"ListPublicKeys": {"method": "GET", "requestUri": "/2020-05-31/public-key"},
|
||||
"ListRealtimeLogConfigs": {"method": "GET", "requestUri": "/2020-05-31/realtime-log-config"},
|
||||
"ListResponseHeadersPolicies": {"method": "GET", "requestUri": "/2020-05-31/response-headers-policy"},
|
||||
"ListStreamingDistributions": {"method": "GET", "requestUri": "/2020-05-31/streaming-distribution"},
|
||||
"ListTagsForResource": {"method": "GET", "requestUri": "/2020-05-31/tagging"},
|
||||
"ListTrustStores": {"method": "POST", "requestUri": "/2020-05-31/trust-stores"},
|
||||
"ListVpcOrigins": {"method": "GET", "requestUri": "/2020-05-31/vpc-origin"},
|
||||
"PublishConnectionFunction": {"method": "POST", "requestUri": "/2020-05-31/connection-function/{Id}/publish"},
|
||||
"PublishFunction": {"method": "POST", "requestUri": "/2020-05-31/function/{Name}/publish"},
|
||||
"PutResourcePolicy": {"method": "POST", "requestUri": "/2020-05-31/put-resource-policy"},
|
||||
"TagResource": {"method": "POST", "requestUri": "/2020-05-31/tagging?Operation=Tag"},
|
||||
"TestConnectionFunction": {"method": "POST", "requestUri": "/2020-05-31/connection-function/{Id}/test"},
|
||||
"TestFunction": {"method": "POST", "requestUri": "/2020-05-31/function/{Name}/test"},
|
||||
"UntagResource": {"method": "POST", "requestUri": "/2020-05-31/tagging?Operation=Untag"},
|
||||
"UpdateAnycastIpList": {"method": "PUT", "requestUri": "/2020-05-31/anycast-ip-list/{Id}"},
|
||||
"UpdateCachePolicy": {"method": "PUT", "requestUri": "/2020-05-31/cache-policy/{Id}"},
|
||||
"UpdateCloudFrontOriginAccessIdentity": {"method": "PUT", "requestUri": "/2020-05-31/origin-access-identity/cloudfront/{Id}/config"},
|
||||
"UpdateConnectionFunction": {"method": "PUT", "requestUri": "/2020-05-31/connection-function/{Id}"},
|
||||
"UpdateConnectionGroup": {"method": "PUT", "requestUri": "/2020-05-31/connection-group/{Id}"},
|
||||
"UpdateContinuousDeploymentPolicy": {"method": "PUT", "requestUri": "/2020-05-31/continuous-deployment-policy/{Id}"},
|
||||
"UpdateDistribution": {"method": "PUT", "requestUri": "/2020-05-31/distribution/{Id}/config"},
|
||||
"UpdateDistributionTenant": {"method": "PUT", "requestUri": "/2020-05-31/distribution-tenant/{Id}"},
|
||||
"UpdateDistributionWithStagingConfig": {"method": "PUT", "requestUri": "/2020-05-31/distribution/{Id}/promote-staging-config"},
|
||||
"UpdateDomainAssociation": {"method": "POST", "requestUri": "/2020-05-31/domain-association"},
|
||||
"UpdateFieldLevelEncryptionConfig": {"method": "PUT", "requestUri": "/2020-05-31/field-level-encryption/{Id}/config"},
|
||||
"UpdateFieldLevelEncryptionProfile": {"method": "PUT", "requestUri": "/2020-05-31/field-level-encryption-profile/{Id}/config"},
|
||||
"UpdateFunction": {"method": "PUT", "requestUri": "/2020-05-31/function/{Name}"},
|
||||
"UpdateKeyGroup": {"method": "PUT", "requestUri": "/2020-05-31/key-group/{Id}"},
|
||||
"UpdateKeyValueStore": {"method": "PUT", "requestUri": "/2020-05-31/key-value-store/{Name}"},
|
||||
"UpdateOriginAccessControl": {"method": "PUT", "requestUri": "/2020-05-31/origin-access-control/{Id}/config"},
|
||||
"UpdateOriginRequestPolicy": {"method": "PUT", "requestUri": "/2020-05-31/origin-request-policy/{Id}"},
|
||||
"UpdatePublicKey": {"method": "PUT", "requestUri": "/2020-05-31/public-key/{Id}/config"},
|
||||
"UpdateRealtimeLogConfig": {"method": "PUT", "requestUri": "/2020-05-31/realtime-log-config"},
|
||||
"UpdateResponseHeadersPolicy": {"method": "PUT", "requestUri": "/2020-05-31/response-headers-policy/{Id}"},
|
||||
"UpdateStreamingDistribution": {"method": "PUT", "requestUri": "/2020-05-31/streaming-distribution/{Id}/config"},
|
||||
"UpdateTrustStore": {"method": "PUT", "requestUri": "/2020-05-31/trust-store/{Id}"},
|
||||
"UpdateVpcOrigin": {"method": "PUT", "requestUri": "/2020-05-31/vpc-origin/{Id}"},
|
||||
"VerifyDnsConfiguration": {"method": "POST", "requestUri": "/2020-05-31/verify-dns-configuration"}
|
||||
}
|
||||
},
|
||||
"controltower": {
|
||||
"credentialScope": "controltower",
|
||||
"apiVersion": "2018-05-10",
|
||||
|
||||
@@ -0,0 +1,156 @@
|
||||
package io.floci.aws.services.cloudfront;
|
||||
|
||||
import io.floci.aws.testing.SignedIamEnforcementProfile;
|
||||
import io.floci.aws.testing.SignedIamUsers;
|
||||
import io.floci.aws.testutil.AwsRequestSigner;
|
||||
import io.quarkus.test.common.http.TestHTTPResource;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.TestProfile;
|
||||
import io.restassured.response.Response;
|
||||
import io.restassured.specification.RequestSpecification;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.net.URI;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.not;
|
||||
|
||||
/**
|
||||
* CloudFront requests are checked against the caller's policies through its generated routes and request
|
||||
* resources: as the action of the operation each route names, on the resource its path names
|
||||
* ({@code arn:aws:cloudfront::<account>:cache-policy/<id>} for a cache policy), before the handler changes anything.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(SignedIamEnforcementProfile.class)
|
||||
class CloudFrontIamIntegrationTest {
|
||||
|
||||
private static final String API = "/2020-05-31";
|
||||
private static final String CACHE_POLICY = """
|
||||
<CachePolicyConfig xmlns="http://cloudfront.amazonaws.com/doc/2020-05-31/">
|
||||
<Name>%s</Name>
|
||||
<MinTTL>1</MinTTL>
|
||||
<ParametersInCacheKeyAndForwardedToOrigin>
|
||||
<EnableAcceptEncodingGzip>false</EnableAcceptEncodingGzip>
|
||||
<HeadersConfig><HeaderBehavior>none</HeaderBehavior></HeadersConfig>
|
||||
<CookiesConfig><CookieBehavior>none</CookieBehavior></CookiesConfig>
|
||||
<QueryStringsConfig><QueryStringBehavior>none</QueryStringBehavior></QueryStringsConfig>
|
||||
</ParametersInCacheKeyAndForwardedToOrigin>
|
||||
</CachePolicyConfig>""";
|
||||
|
||||
private final AwsRequestSigner admin = AwsRequestSigner.signedAs("test", "test", "cloudfront");
|
||||
|
||||
@TestHTTPResource("/")
|
||||
URI endpoint;
|
||||
|
||||
@Test
|
||||
void callerWithoutPermissionsIsRefusedBeforeAnythingIsCreated() throws Exception {
|
||||
String name = "iam-none-" + UUID.randomUUID().toString().substring(0, 8);
|
||||
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "cf-iam-")) {
|
||||
denied(send(user.signer("cloudfront"), "POST", API + "/cache-policy", CACHE_POLICY.formatted(name)),
|
||||
"cloudfront:CreateCachePolicy");
|
||||
denied(send(user.signer("cloudfront"), "GET", API + "/distribution", null), "cloudfront:ListDistributions");
|
||||
// CreateDistributionWithTags is no IAM action: AWS checks it as CreateDistribution.
|
||||
denied(send(user.signer("cloudfront"), "POST", API + "/distribution?WithTags", "<DistributionConfigWithTags/>"),
|
||||
"cloudfront:CreateDistribution");
|
||||
}
|
||||
send(admin, "GET", API + "/cache-policy?Type=custom", null).then().statusCode(200)
|
||||
.body(not(containsString(name)));
|
||||
}
|
||||
|
||||
@Test
|
||||
void cachePolicyScopedAllowReadsThatPolicyAndRefusesAnother() throws Exception {
|
||||
String allowed = createCachePolicy();
|
||||
String other = createCachePolicy();
|
||||
try (SignedIamUsers.User user = user("Allow", "[\"cloudfront:GetCachePolicy\",\"cloudfront:GetCachePolicyConfig\"]",
|
||||
cachePolicyArn(allowed))) {
|
||||
send(user.signer("cloudfront"), "GET", API + "/cache-policy/" + allowed, null).then().statusCode(200)
|
||||
.body(containsString("<Id>" + allowed + "</Id>"));
|
||||
denied(send(user.signer("cloudfront"), "GET", API + "/cache-policy/" + other, null),
|
||||
"cloudfront:GetCachePolicy");
|
||||
// A config read is checked on the policy its path names, as the policy's read is.
|
||||
send(user.signer("cloudfront"), "GET", API + "/cache-policy/" + allowed + "/config", null).then()
|
||||
.statusCode(200).body(containsString("<CachePolicyConfig"));
|
||||
denied(send(user.signer("cloudfront"), "GET", API + "/cache-policy/" + other + "/config", null),
|
||||
"cloudfront:GetCachePolicyConfig");
|
||||
} finally {
|
||||
deleteCachePolicy(allowed);
|
||||
deleteCachePolicy(other);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void explicitDenyKeepsACachePolicyFromBeingDeleted() throws Exception {
|
||||
String id = createCachePolicy();
|
||||
try (SignedIamUsers.User user = user("Deny", "cloudfront:DeleteCachePolicy", cachePolicyArn(id))) {
|
||||
String etag = send(admin, "GET", API + "/cache-policy/" + id, null).then().statusCode(200)
|
||||
.extract().header("ETag");
|
||||
denied(send(user.signer("cloudfront"), "DELETE", API + "/cache-policy/" + id, null, Map.of("if-match", etag)),
|
||||
"cloudfront:DeleteCachePolicy");
|
||||
send(admin, "GET", API + "/cache-policy/" + id, null).then().statusCode(200);
|
||||
} finally {
|
||||
deleteCachePolicy(id);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void listingNeedsTheListActionNotTheGetAction() throws Exception {
|
||||
try (SignedIamUsers.User user = user("Allow", "cloudfront:GetCachePolicy", "*")) {
|
||||
denied(send(user.signer("cloudfront"), "GET", API + "/cache-policy", null), "cloudfront:ListCachePolicies");
|
||||
}
|
||||
try (SignedIamUsers.User user = user("Allow", "cloudfront:ListCachePolicies", "*")) {
|
||||
send(user.signer("cloudfront"), "GET", API + "/cache-policy", null).then().statusCode(200)
|
||||
.body(containsString("<CachePolicyList"));
|
||||
}
|
||||
}
|
||||
|
||||
private String createCachePolicy() throws Exception {
|
||||
String name = "iam-" + UUID.randomUUID().toString().substring(0, 8);
|
||||
return send(admin, "POST", API + "/cache-policy", CACHE_POLICY.formatted(name)).then().statusCode(201)
|
||||
.extract().xmlPath().getString("CachePolicy.Id");
|
||||
}
|
||||
|
||||
private void deleteCachePolicy(String id) throws Exception {
|
||||
Response current = send(admin, "GET", API + "/cache-policy/" + id, null);
|
||||
if (current.statusCode() == 200) {
|
||||
send(admin, "DELETE", API + "/cache-policy/" + id, null, Map.of("if-match", current.header("ETag")))
|
||||
.then().statusCode(204);
|
||||
}
|
||||
}
|
||||
|
||||
private static String cachePolicyArn(String id) {
|
||||
return "arn:aws:cloudfront::000000000000:cache-policy/" + id;
|
||||
}
|
||||
|
||||
private SignedIamUsers.User user(String effect, String action, String resource) throws Exception {
|
||||
String allow = "Deny".equals(effect) ? "{\"Effect\":\"Allow\",\"Action\":\"cloudfront:*\",\"Resource\":\"*\"}," : "";
|
||||
return SignedIamUsers.createUser(endpoint, "cf-iam-", "access",
|
||||
"{\"Version\":\"2012-10-17\",\"Statement\":[" + allow + "{\"Effect\":\"" + effect
|
||||
+ "\",\"Action\":" + (action.startsWith("[") ? action : "\"" + action + "\"")
|
||||
+ ",\"Resource\":\"" + resource + "\"}]}");
|
||||
}
|
||||
|
||||
private Response send(AwsRequestSigner signer, String method, String path, String body) throws Exception {
|
||||
return send(signer, method, path, body, Map.of());
|
||||
}
|
||||
|
||||
private Response send(AwsRequestSigner signer, String method, String path, String body, Map<String, String> headers)
|
||||
throws Exception {
|
||||
URI uri = endpoint.resolve(path);
|
||||
byte[] bytes = body == null ? new byte[0] : body.getBytes(StandardCharsets.UTF_8);
|
||||
// The signer signs the extra headers but returns only its own, so the request carries both.
|
||||
RequestSpecification request = given().urlEncodingEnabled(false).headers(headers)
|
||||
.headers(signer.headersFor(method, uri, headers, bytes));
|
||||
if (body != null) {
|
||||
request = request.contentType("application/xml").body(bytes);
|
||||
}
|
||||
return request.request(method, uri);
|
||||
}
|
||||
|
||||
private static void denied(Response response, String action) {
|
||||
response.then().statusCode(403).body(containsString("not authorized to perform: " + action));
|
||||
}
|
||||
}
|
||||
@@ -150,7 +150,8 @@ def fetch_references(source_dir: Path | None) -> tuple[list[dict], str]:
|
||||
def authorized_actions_from(documents: list[dict]) -> dict[str, dict[str, str]]:
|
||||
"""Each namespace's operations authorized by one action of another name, sorted.
|
||||
|
||||
An operation keeps its own name when the reference gives it no single answer: when it is listed
|
||||
An operation whose own name is no action and that several authorize is the one its name starts
|
||||
with as a word, when one does. An operation keeps its own name when the reference gives it no single answer: when it is listed
|
||||
for several SDK clients, which the reference gives one action between them although AWS can
|
||||
authorize each client's call differently (S3's GetPublicAccessBlock is
|
||||
s3:GetBucketPublicAccessBlock, S3 Control's is the account's), or when its name is listed more
|
||||
@@ -168,6 +169,16 @@ def authorized_actions_from(documents: list[dict]) -> dict[str, dict[str, str]]:
|
||||
if not isinstance(name, str) or not NAME_RE.match(name):
|
||||
raise ValueError(f"{namespace}: operation entry without a usable 'Name': {operation!r}")
|
||||
authorized = _counted_actions(namespace, _authorized_actions(namespace, operation))
|
||||
if len(authorized) > 1 and name.lower() not in own_actions:
|
||||
# An operation whose own name is no action and that several authorize is the one of them its
|
||||
# name starts with as a word (CloudFront's CreateDistributionWithTags is
|
||||
# cloudfront:CreateDistribution), the others being what AWS checks beside it. A plural is no
|
||||
# such word: S3's DeleteObjects is checked for each object it deletes.
|
||||
prefixed = [(service, action) for service, action in authorized
|
||||
if service == namespace and action != name and name.startswith(action)
|
||||
and (name[len(action)].isupper() or name[len(action)].isdigit())]
|
||||
if len(prefixed) == 1:
|
||||
authorized = prefixed
|
||||
mapped = None
|
||||
if len(authorized) == 1 and len(_sdk_clients(namespace, operation)) <= 1:
|
||||
service, action = authorized[0]
|
||||
|
||||
@@ -171,7 +171,7 @@ OUTPUT = REPO_ROOT / "src/main/resources/aws/iam-request-resources.json"
|
||||
# The namespaces read, in batches: each moves here from NOT_COVERED with the tests that show its ARNs
|
||||
# are the ones its handlers mint.
|
||||
NAMESPACES = ("access-analyzer", "acm", "application-autoscaling", "athena", "bcm-data-exports",
|
||||
"bcm-pricing-calculator", "budgets", "ce", "cloudtrail", "codebuild", "codepipeline", "cognito-identity",
|
||||
"bcm-pricing-calculator", "budgets", "ce", "cloudfront", "cloudtrail", "codebuild", "codepipeline", "cognito-identity",
|
||||
"cognito-idp", "controltower", "cur", "datasync", "ec2", "ecr", "elasticloadbalancing", "elasticmapreduce", "es", "events",
|
||||
"firehose", "globalaccelerator", "inspector2", "kinesisanalytics", "macie2", "payment-cryptography",
|
||||
"quicksight", "redshift", "redshift-data", "redshift-serverless", "rekognition", "servicediscovery",
|
||||
@@ -231,7 +231,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"batch": _REST,
|
||||
"bedrock-agentcore": _REST,
|
||||
"cloudformation": _LATER,
|
||||
"cloudfront": _REST,
|
||||
"cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and "
|
||||
"${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the "
|
||||
"rule does not fill a name from, so nearly every operation needs a correction",
|
||||
@@ -659,7 +658,7 @@ ID_TARGETS = {"ec2": {"member": "Resources", "prefixes": {"instance": "i-"}}}
|
||||
# An ARN format's account given as `${AccountId}`, the account `${Account}` gives in every other format.
|
||||
ACCOUNT_ID_SLOT_RE = re.compile(r"^(arn:[^:]*:[^:]*:[^:]*:)\$\{AccountId}:")
|
||||
VARIABLE_RE = re.compile(r"\$\{(\w+)}")
|
||||
STEM_SUFFIX_RE = re.compile(r"(arns|arn|names|name|identifiers|identifier|ids|id|s)$")
|
||||
STEM_SUFFIX_RE = re.compile(r"(arns|arn|names|name|identifiers|identifier|ids|id|config|s)$")
|
||||
# A bare member that names the resource of the type its operation acts on.
|
||||
BARE = {"name", "names", "id", "ids", "identifier", "identifiers"}
|
||||
# The patterns botocore gives a string shape that holds an account id.
|
||||
@@ -670,6 +669,9 @@ CREATING_RE = re.compile(r"^(Create|Run|Allocate|Register|Put|Import|Copy|Reques
|
||||
SUBJECT_RE = re.compile(r"^[A-Z][a-z]+")
|
||||
# The protocols whose requests RequestResources reads: form parameters or a JSON or CBOR body.
|
||||
READ_PROTOCOLS = {"json", "query", "ec2", "smithy-rpc-v2-cbor", "rest-json"}
|
||||
# Protocols whose requests are read for the members a request carries in its path and query alone: RequestResources
|
||||
# reads those the same way whatever the protocol, while a REST-XML body is not one it reads.
|
||||
LOCATED_ONLY_PROTOCOLS = {"rest-xml"}
|
||||
BODY_LOCATIONS = (None, "")
|
||||
# Where a REST request carries a member outside its body, as the file writes it: a label of its path, `{Name}`, or a
|
||||
# parameter of its query, `?name`.
|
||||
@@ -678,7 +680,8 @@ LOCATED_RE = re.compile(r"^(\{[A-Za-z0-9_]+\}|\?[A-Za-z0-9_.-]+)$")
|
||||
|
||||
def stem(name: str) -> str:
|
||||
"""The name lowercased, without what is not a letter or digit, and without a trailing `Arn`,
|
||||
`Name`, `Id`, `Identifier` or plural, twice over (`TargetGroupArns` is `targetgroup`)."""
|
||||
`Name`, `Id`, `Identifier`, `Config` or plural, twice over (`TargetGroupArns` is `targetgroup`,
|
||||
`DistributionConfig` is `distribution`)."""
|
||||
value = re.sub(r"[^a-z0-9]", "", name.lower())
|
||||
for _ in range(2):
|
||||
value = STEM_SUFFIX_RE.sub("", value)
|
||||
@@ -767,6 +770,14 @@ def optional_members(models: dict[str, dict], operation: str) -> set[str]:
|
||||
return found
|
||||
|
||||
|
||||
def _reading(model: dict) -> str | None:
|
||||
"""How a model's requests are read: "all" of their members, only the "located" ones, or None, not at all."""
|
||||
protocols = _protocols(model)
|
||||
if READ_PROTOCOLS & protocols:
|
||||
return "all"
|
||||
return "located" if LOCATED_ONLY_PROTOCOLS & protocols else None
|
||||
|
||||
|
||||
def request_members(models: dict[str, dict], operation: str) -> dict[str, str]:
|
||||
"""The top-level members of the operation's request that hold a string (`Name`) or a list of
|
||||
strings (`Name[]`), by name, and the ARN members one level inside one (`Name.FieldArn`,
|
||||
@@ -775,12 +786,15 @@ def request_members(models: dict[str, dict], operation: str) -> dict[str, str]:
|
||||
found: dict[str, str] = {}
|
||||
for model in models.values():
|
||||
spec = model["operations"].get(operation)
|
||||
if spec is None or "input" not in spec or not READ_PROTOCOLS & _protocols(model):
|
||||
reading = _reading(model)
|
||||
if spec is None or "input" not in spec or reading is None:
|
||||
continue
|
||||
root = model["shapes"][spec["input"]["shape"]]
|
||||
for name, member in root.get("members", {}).items():
|
||||
if member.get("location") not in BODY_LOCATIONS and _located(member) is None:
|
||||
continue
|
||||
if reading == "located" and member.get("location") in BODY_LOCATIONS:
|
||||
continue
|
||||
shape = model["shapes"][member["shape"]]
|
||||
if _strings(model, shape) is not None:
|
||||
found.setdefault(name, name + _strings(model, shape))
|
||||
@@ -794,11 +808,14 @@ def string_patterns(models: dict[str, dict], operation: str) -> dict[str, set[st
|
||||
found: dict[str, set[str | None]] = {}
|
||||
for model in models.values():
|
||||
spec = model["operations"].get(operation)
|
||||
if spec is None or "input" not in spec or not READ_PROTOCOLS & _protocols(model):
|
||||
reading = _reading(model)
|
||||
if spec is None or "input" not in spec or reading is None:
|
||||
continue
|
||||
for name, member in model["shapes"][spec["input"]["shape"]].get("members", {}).items():
|
||||
if member.get("location") not in BODY_LOCATIONS and _located(member) is None:
|
||||
continue
|
||||
if reading == "located" and member.get("location") in BODY_LOCATIONS:
|
||||
continue
|
||||
shape = model["shapes"][member["shape"]]
|
||||
if _strings(model, shape) is None:
|
||||
continue
|
||||
@@ -839,7 +856,7 @@ def located_members(models: dict[str, dict], operation: str) -> dict[str, str]:
|
||||
found: dict[str, str] = {}
|
||||
for client, model in sorted(models.items()):
|
||||
spec = model["operations"].get(operation)
|
||||
if spec is None or "input" not in spec or "rest-json" not in _protocols(model):
|
||||
if spec is None or "input" not in spec or not ({"rest-json"} | LOCATED_ONLY_PROTOCOLS) & _protocols(model):
|
||||
continue
|
||||
for name, member in model["shapes"][spec["input"]["shape"]].get("members", {}).items():
|
||||
where = _located(member)
|
||||
@@ -1231,8 +1248,11 @@ def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: d
|
||||
types = upstream["types"] or []
|
||||
members = request_members(models, operation.split(":", 1)[1])
|
||||
patterns = string_patterns(models, operation.split(":", 1)[1])
|
||||
arn_members = {member for member, values in patterns.items() if kind_of(member) == "identifier"
|
||||
and all(only_arn(value) for value in values)}
|
||||
# A member whose pattern takes only an ARN holds one when it is an identifier, or names whatever the action acts on
|
||||
# (`Resource`, as CloudFront's tagging calls do); another such member names a resource of a type of its own.
|
||||
arn_members = {member for member, values in patterns.items()
|
||||
if (kind_of(member) == "identifier" or stem(member) in ("", "resource"))
|
||||
and values and all(only_arn(value) for value in values)}
|
||||
if namespace_of(operation) in ID_TARGETS:
|
||||
entry = {"action": upstream["action"], "types": types, "resources": []}
|
||||
targets = id_targets(operation, types, formats, models)
|
||||
|
||||
@@ -123,7 +123,8 @@ NOT_COVERED = {
|
||||
"airflow": _NO_ROUTES, "app-integrations": _NO_ROUTES, "appconfig": _NO_ROUTES, "appsync": _NO_ROUTES,
|
||||
"aps": _NO_ROUTES, "aws-marketplace": _NO_ROUTES, "backup": _NO_ROUTES,
|
||||
"batch": _NO_ROUTES, "bedrock": _NO_ROUTES, "bedrock-agentcore": _NO_ROUTES,
|
||||
"cloudfront": _NO_ROUTES, "codeguru-reviewer": _NO_ROUTES, "connect": _NO_ROUTES,
|
||||
"cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet",
|
||||
"codeguru-reviewer": _NO_ROUTES, "connect": _NO_ROUTES,
|
||||
"detective": _NO_ROUTES, "dlm": _NO_ROUTES,
|
||||
"elasticfilesystem": _NO_ROUTES, "emr-serverless": _NO_ROUTES, "fis": _NO_ROUTES,
|
||||
"inspector2": _NO_ROUTES, "iot": _NO_ROUTES, "kafka": _NO_ROUTES,
|
||||
|
||||
@@ -54,6 +54,7 @@ MODELS: dict[str, str] = {
|
||||
"accessanalyzer": "access-analyzer",
|
||||
"apigateway": "apigateway",
|
||||
"apigatewayv2": "apigateway",
|
||||
"cloudfront": "cloudfront",
|
||||
"controltower": "controltower",
|
||||
"dsql": "dsql",
|
||||
"eks": "eks",
|
||||
|
||||
@@ -117,6 +117,30 @@ def test_a_tagging_action_beside_several_leaves_them_several():
|
||||
assert found == {}
|
||||
|
||||
|
||||
def test_an_operation_named_for_no_action_is_the_one_of_its_actions_its_name_starts_with():
|
||||
# CloudFront's CreateDistributionWithTags is no IAM action: AWS checks cloudfront:CreateDistribution, and the
|
||||
# others it lists only for what the request adds (a connection group, a VPC origin, its tags).
|
||||
found = r.authorized_actions_from([service("cloudfront", {"CreateDistributionWithTags": [
|
||||
"cloudfront:CreateConnectionGroup", "cloudfront:CreateDistribution", "cloudfront:GetVpcOrigin",
|
||||
"cloudfront:TagResource"]}, ["CreateConnectionGroup", "CreateDistribution", "GetVpcOrigin", "TagResource"])])
|
||||
assert found == {"cloudfront": {"CreateDistributionWithTags": "cloudfront:CreateDistribution"}}
|
||||
|
||||
|
||||
def test_an_action_matching_a_name_only_in_case_is_not_its_prefix():
|
||||
# API Gateway names its actions for HTTP verbs: PutIntegration lists apigateway:PUT beside others, which is no
|
||||
# prefix of its name.
|
||||
found = r.authorized_actions_from([service("apigateway", {"PutIntegration": [
|
||||
"apigateway:PUT", "apigateway:POST"]}, ["PUT", "POST"])])
|
||||
assert found == {}
|
||||
|
||||
|
||||
def test_a_plural_of_an_action_is_not_named_for_it():
|
||||
# S3's DeleteObjects deletes several objects, each checked as s3:DeleteObject where it is deleted.
|
||||
found = r.authorized_actions_from([service("s3", {"DeleteObjects": [
|
||||
"s3:DeleteObject", "s3:DeleteObjectVersion"]}, ["DeleteObject", "DeleteObjectVersion"])])
|
||||
assert found == {}
|
||||
|
||||
|
||||
def test_namespaces_and_operations_are_sorted():
|
||||
found = r.authorized_actions_from([
|
||||
service("sqs", {"SendMessageBatch": ["sqs:SendMessage"],
|
||||
|
||||
@@ -117,6 +117,22 @@ def test_a_create_of_a_child_of_a_type_its_action_acts_on_names_it_from_the_pare
|
||||
assert r.creates_for("svc:CreateListener", ["loadbalancer/app/"], LISTENERS, members("RoleArn")) == []
|
||||
|
||||
|
||||
def test_a_rest_xml_request_is_read_for_its_path_and_query_members_alone():
|
||||
# RequestResources reads a path label or a query parameter whatever the protocol, but not a REST-XML body.
|
||||
shapes = {"String": {"type": "string"},
|
||||
"In": {"type": "structure", "members": {
|
||||
"Id": {"shape": "String", "location": "uri", "locationName": "Id"},
|
||||
"Marker": {"shape": "String", "location": "querystring", "locationName": "Marker"},
|
||||
"Comment": {"shape": "String"}}}}
|
||||
for protocol, read in (("rest-xml", {"Id": "Id", "Marker": "Marker"}),
|
||||
("rest-json", {"Id": "Id", "Marker": "Marker", "Comment": "Comment"})):
|
||||
models = {"svc": {"metadata": {"protocol": protocol}, "operations": {"GetThing": {"input": {"shape": "In"}}},
|
||||
"shapes": shapes}}
|
||||
assert r.request_members(models, "GetThing") == read, protocol
|
||||
assert set(r.string_patterns(models, "GetThing")) == set(read), protocol
|
||||
assert r.located_members(models, "GetThing") == {"Id": "{Id}", "Marker": "?Marker"}, protocol
|
||||
|
||||
|
||||
def test_an_arn_inside_a_structure_or_a_lists_structures_is_read_by_its_path():
|
||||
shapes = {"String": {"type": "string"}, "Strings": {"type": "list", "member": {"shape": "String"}},
|
||||
"Priority": {"type": "structure", "members": {"RuleArn": {"shape": "String"}, "Priority": {"shape": "String"},
|
||||
@@ -182,6 +198,31 @@ def test_stems_drop_the_suffixes_names_carry():
|
||||
# A plural's s goes, from a type's name and a member's alike, so they still meet.
|
||||
assert r.related(r.stem("EventBusName"), r.stem("event-bus"))
|
||||
assert r.related("autoscalinggroup", "group") and not r.related("ab", "b")
|
||||
# A read of a resource's config is a read of the resource, and a type may carry the config in its name.
|
||||
assert r.stem("DistributionConfig") == "distribution"
|
||||
assert r.related(r.stem("FieldLevelEncryption"), r.stem("field-level-encryption-config"))
|
||||
|
||||
|
||||
def test_a_bare_id_names_the_resource_whose_config_an_operation_reads():
|
||||
formats = {"distribution": "arn:${Partition}:cloudfront::${Account}:distribution/${DistributionId}"}
|
||||
assert r.resources_for("cloudfront:GetDistributionConfig", ["distribution"], formats, {"Id": "Id"}) == [
|
||||
{"type": "distribution", "fill": {"DistributionId": "Id"}}]
|
||||
|
||||
|
||||
def test_a_resource_member_taking_only_an_arn_holds_the_resource_the_action_acts_on():
|
||||
model = {
|
||||
"metadata": {"protocol": "rest-xml", "endpointPrefix": "svc"},
|
||||
"operations": {"TagResource": {"input": {"shape": "Input"}}},
|
||||
"shapes": {"Input": {"type": "structure", "members": {
|
||||
"Resource": {"shape": "Value", "location": "querystring", "locationName": "Resource"}}},
|
||||
"Value": {"type": "string", "pattern": "arn:aws(-cn)?:svc::[0-9]+:.*"}},
|
||||
}
|
||||
formats = {"distribution": "arn:${Partition}:svc::${Account}:distribution/${DistributionId}",
|
||||
"function": "arn:${Partition}:svc::${Account}:function/${Name}"}
|
||||
entry = r.entry_for("svc:TagResource", {"action": "svc:TagResource", "types": ["distribution", "function"]},
|
||||
formats, {"svc": model})
|
||||
assert entry["resources"] == [{"types": ["distribution", "function"], "arn": "Resource"}]
|
||||
assert entry["located"] == {"Resource": "?Resource"}
|
||||
|
||||
|
||||
def reference(namespace: str, operations: dict[str, list[str]], resources: dict[str, str]) -> dict:
|
||||
|
||||
Reference in new issue
Block a user