mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
fix(iam): check seven more services on the resources their requests name (#6976)
Under IAM enforcement, Athena, Data Exports, Pricing Calculator, Cost
Explorer, CloudTrail, Global Accelerator and Timestream for InfluxDB
requests were checked on `*`, so a grant scoped to a workgroup, an
export, a workload estimate, an anomaly monitor, a trail, an
accelerator or a parameter group was refused, and a deny scoped to one
never applied.
The generated table of the resources requests name now reads them, 305
operations, from AWS's Service Reference and botocore as it reads the
first four batches: their namespaces move from the generator's
NOT_COVERED to NAMESPACES and the table is regenerated, nothing in it
edited by hand; 1022 operations over 24 namespaces. Each resource
type's ARN format is the one Floci mints or reads: Athena's
`workgroup/<name>` and `datacatalog/<name>` (its tag handler parses
them), `export/<name>`, Cost Explorer's `anomalymonitor/<id>` and
Global Accelerator's `accelerator/<id>` with no Region, listeners and
endpoint groups under the accelerator's, `trail/<name>`, and Timestream
for InfluxDB's `<type>/<id>`.
Corrections, each with its reason:
- Athena's StartQueryExecution, ListQueryExecutions and ListNamedQueries
naming no workgroup are checked on the primary one, where Athena runs
and lists them ("If a workgroup is not specified, returns a list of
query execution IDs for the primary workgroup"), and so is
GetWorkGroup, which Floci answers with the primary one then. Floci's
StartQueryExecution and GetWorkGroup handlers now read a JSON null
WorkGroup as none, as ListQueryExecutions does, rather than as a
workgroup named "null", so the workgroup checked is the one acted on.
- Athena's ListDatabases, ListTableMetadata and GetTableMetadata are
checked on AwsDataCatalog, the Glue Data Catalog Floci reads
whichever catalog they name, as well as on the one their CatalogName
names.
- Cost Explorer's nine cost and usage reads are checked on `*`, not on
their BillingViewArn: Floci serves no billing views and answers the
account's costs whichever view is named, so a grant scoped to one
must not reach them.
- Data Exports' CreateExport is not checked on its Export.ExportArn,
the ARN "for this export", which the request creates; its pattern
takes a table's, so a caller could choose the table checked.
- CloudTrail's StartLogging, StopLogging and GetTrailStatus name their
trail by a bare Name, a name or an ARN, AddTags, RemoveTags and
ListTags their resources by the ARNs in ResourceId and
ResourceIdList, members whose names do not end in Arn, and the
dashboard operations their dashboard by DashboardId, a name or an
ARN.
- Cost Explorer's GetAnomalyMonitors and GetAnomalySubscriptions name
their monitors and subscriptions by the ARNs in MonitorArnList and
SubscriptionArnList; GetAnomalySubscriptions' MonitorArn, a
monitor's ARN, is not read as a subscription's.
- Timestream for InfluxDB's RebootDbCluster is checked on each member
instance its instanceIds names as well as on the cluster.
- Global Accelerator's ListCustomRoutingPortMappings is checked on its
accelerator alone: its EndpointGroupArn extends the accelerator's ARN
and so matched the accelerator's format.
Not read yet, each with its reason in NOT_COVERED: CodeDeploy, whose
on-premises instance format the Service Reference gives as
`instance:${InstanceName}` while the CodeDeploy permissions reference
gives `instance/instance-ID` and AWS's GetOnPremisesInstance example
answers `instance/<name>_<id>`; Redshift Data, whose serverless
workgroup's ARN ends in an id the service mints while its requests name
the workgroup by WorkgroupName; and Service Catalog, whose
*PortfolioShare requests give in AccountId the account a portfolio is
shared with, whose imported portfolios and products keep their owner's
account while requests name them by id, and whose AppRegistry half is
named in the path.
This commit is contained in:
1 parent
931b2d26a7
commit
ca3599f8c9
7 files changed
+703
-24
No files matched your search
+20
-4
@@ -1595,9 +1595,9 @@ SQS, SNS, DynamoDB, Kinesis, SSM, KMS, IAM, Resource Groups, EventBridge Schedul
|
||||
Pipes, Aurora DSQL, EKS, API Gateway, CloudWatch Logs, Secrets Manager and STS. For Elastic Load Balancing, ECR,
|
||||
Step Functions, EventBridge, Amazon Cognito user pools and identity pools, Amazon Data Firehose, Cloud
|
||||
Map, ACM, CodePipeline, CodeBuild, Amazon Managed Service for Apache Flink (Kinesis Data Analytics v2),
|
||||
AWS Budgets, Cost and Usage Reports, Service Quotas, Amazon Textract and Amazon Translate they come from a
|
||||
table generated from AWS's Service
|
||||
Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each
|
||||
AWS Budgets, Cost and Usage Reports, Service Quotas, Amazon Textract, Amazon Translate, Amazon Athena,
|
||||
AWS Data Exports, AWS Pricing Calculator, Cost Explorer, CloudTrail, Global Accelerator and Amazon
|
||||
Timestream for InfluxDB they come from a table generated from AWS's Service Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each
|
||||
operation's action, the resource types that action acts on with their ARN formats, and the request
|
||||
members that name them: a member holding a resource's ARN, which counts when it matches the format
|
||||
of a type the action acts on, or members filling the variables of a type's format. A member holding
|
||||
@@ -1631,7 +1631,23 @@ project, which its id names before its `:` (`<project>:<id>`), as CodeBuild auth
|
||||
`BatchGetBuilds`, `StopBuild`, `RetryBuild` and `BatchDeleteBuilds`. `CreateBudget` and `UpdateBudget`
|
||||
are checked on the budget their `Budget.BudgetName` or `NewBudget.BudgetName` names, and Cost and Usage
|
||||
Reports' `PutReportDefinition` and `ModifyReportDefinition` on the report their `ReportDefinition.ReportName`
|
||||
or `ReportName` names, not on the billing view ARN each may carry, which names no budget or report. An EventBridge rule is on the event bus
|
||||
or `ReportName` names, not on the billing view ARN each may carry, which names no budget or report. An Athena request
|
||||
naming no workgroup is checked on `workgroup/primary`, where `StartQueryExecution` runs its query,
|
||||
`ListQueryExecutions` and `ListNamedQueries` list, and `GetWorkGroup` answers. Athena's
|
||||
`ListDatabases`, `ListTableMetadata` and `GetTableMetadata` are checked on the catalog their
|
||||
`CatalogName` names and on `datacatalog/AwsDataCatalog`, the Glue Data Catalog Floci reads whichever
|
||||
catalog they name. Cost Explorer's cost and usage reads are checked on `*`, not on the billing view
|
||||
their `BillingViewArn` gives: Floci serves no billing views and answers the account's costs whichever
|
||||
one is named. Data Exports' `CreateExport` is not checked on the
|
||||
ARN its `Export.ExportArn` gives, which is the new export's own. CloudTrail's `StartLogging`,
|
||||
`StopLogging` and `GetTrailStatus` are checked on the trail their bare `Name` names, by name or by
|
||||
ARN, its tag operations on the resource whose ARN their `ResourceId` gives, and its dashboard
|
||||
operations on the dashboard their `DashboardId` names, by name or by ARN.
|
||||
Cost Explorer's `GetAnomalyMonitors` and `GetAnomalySubscriptions` are checked on each ARN their
|
||||
`MonitorArnList` or `SubscriptionArnList` gives, and Timestream for InfluxDB's `RebootDbCluster` on the
|
||||
cluster and on each member instance its `instanceIds` names. Global
|
||||
Accelerator's `ListCustomRoutingPortMappings` is checked on its accelerator alone, not on the
|
||||
endpoint group its `EndpointGroupArn` gives, whose ARN extends the accelerator's. An EventBridge rule is on the event bus
|
||||
its request's `EventBusName` names, by name or by ARN, and on the default bus when it names none
|
||||
or gives a null, whose rules are `rule/<name>`, with no bus; a bus ARN of another account, the
|
||||
default bus's included, names that account's rule, checked as given and as the caller's own, which
|
||||
|
||||
@@ -37,7 +37,8 @@ public class AthenaJsonHandler {
|
||||
return switch (action) {
|
||||
case "StartQueryExecution" -> {
|
||||
String query = request.get("QueryString").asText();
|
||||
String workGroup = request.has("WorkGroup") ? request.get("WorkGroup").asText() : "primary";
|
||||
String named = text(request, "WorkGroup");
|
||||
String workGroup = named != null ? named : "primary";
|
||||
|
||||
QueryExecutionContext context = null;
|
||||
if (request.has("QueryExecutionContext")) {
|
||||
@@ -83,7 +84,8 @@ public class AthenaJsonHandler {
|
||||
yield Response.ok(Map.of()).build();
|
||||
}
|
||||
case "GetWorkGroup" -> {
|
||||
String name = request.has("WorkGroup") ? request.get("WorkGroup").asText() : "primary";
|
||||
String named = text(request, "WorkGroup");
|
||||
String name = named != null ? named : "primary";
|
||||
yield Response.ok(Map.of("WorkGroup", athenaService.getWorkGroup(name, region))).build();
|
||||
}
|
||||
case "ListWorkGroups" -> {
|
||||
|
||||
@@ -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.113 (installed package)", "retrieved": "2026-10-29", "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": {"acm": ["acm"], "budgets": ["budgets"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "cur": ["cur"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "events": ["events"], "firehose": ["firehose"], "kinesisanalytics": ["kinesisanalyticsv2"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "states": ["stepfunctions"], "textract": ["textract"], "translate": ["translate"]},
|
||||
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.113 (installed package)", "retrieved": "2026-10-30", "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": {"acm": ["acm"], "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"], "cur": ["cur"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "events": ["events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "kinesisanalytics": ["kinesisanalyticsv2"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"]},
|
||||
"clientsNotRead": {"eventbridgev2": "EventBridge V2, the AWSEventsV2 target over Smithy RPC v2 CBOR on the eventsv2 endpoint, which Floci does not serve; its operations share EventBridge's names and name their resources by other members", "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", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "lambda", "logs", "pipes", "resource-groups", "s3", "scheduler", "secretsmanager", "sns", "sqs", "ssm", "sts"],
|
||||
"notCovered": {"access-analyzer": "REST: its requests name their resources in the path, which RequestResources does not read yet", "account": "REST: its requests name their resources in the path, which RequestResources does not read yet", "airflow": "REST: its requests name their resources in the path, which RequestResources does not read yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources does not read yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources does not read yet", "application-autoscaling": "not read yet: a scalable target's ARN ends in an id the service mints, `scalable-target/<id>`, while its requests name the target by ServiceNamespace, ResourceId and ScalableDimension, so its resource is the stored ARN those three find, which RequestResources has no lookup for yet; read as a member, ResourceId would fill that id", "appsync": "REST: its requests name their resources in the path, which RequestResources does not read yet", "aps": "REST: its requests name their resources in the path, which RequestResources does not read yet", "athena": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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 does not read yet", "batch": "REST: its requests name their resources in the path, which RequestResources does not read yet", "bcm-data-exports": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "bcm-pricing-calculator": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "bedrock": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources does not read yet", "ce": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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 does not read 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", "cloudtrail": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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 does not read yet", "codedeploy": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources does not read 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 does not read yet", "controlcatalog": "REST: its requests name their resources in the path, which RequestResources does not read yet", "controltower": "REST: its requests name their resources in the path, which RequestResources does not read yet", "datasync": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "detective": "REST: its requests name their resources in the path, which RequestResources does not read yet", "dlm": "REST: its requests name their resources in the path, which RequestResources does not read yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ec2": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ecs": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestLine truncated
|
||||
"notCovered": {"access-analyzer": "REST: its requests name their resources in the path, which RequestResources does not read yet", "account": "REST: its requests name their resources in the path, which RequestResources does not read yet", "airflow": "REST: its requests name their resources in the path, which RequestResources does not read yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources does not read yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources does not read yet", "application-autoscaling": "not read yet: a scalable target's ARN ends in an id the service mints, `scalable-target/<id>`, while its requests name the target by ServiceNamespace, ResourceId and ScalableDimension, so its resource is the stored ARN those three find, which RequestResources has no lookup for yet; read as a member, ResourceId would fill that id", "appsync": "REST: its requests name their resources in the path, which RequestResources does not read yet", "aps": "REST: its requests name their resources in the path, which RequestResources does not read 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 does not read yet", "batch": "REST: its requests name their resources in the path, which RequestResources does not read yet", "bedrock": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources does not read 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 does not read 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 does not read 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 does not read 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 does not read yet", "controlcatalog": "REST: its requests name their resources in the path, which RequestResources does not read yet", "controltower": "REST: its requests name their resources in the path, which RequestResources does not read yet", "datasync": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "detective": "REST: its requests name their resources in the path, which RequestResources does not read yet", "dlm": "REST: its requests name their resources in the path, which RequestResources does not read yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ec2": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ecs": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestResources does not read yet", "elasticmapreduce": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "emr-serverless": "REST: its requests name their resources in the path, which RequestResources does not read yet", "es": "REST: its requests name theLine 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", "ec2-instance-connect", "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", "payment-cryptography", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "quicksight", "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", "signer", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "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", "xray"],
|
||||
"arnFormats": {"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}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "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}"}, "cur": {"cur": "arn:${Partition}:cur:${Region}:${Account}:definition/${ReportName}"}, "ecr": {"repository": "arn:${Partition}:ecr:${Region}:${Account}:repository/${RepositoryName}"}, "elasticloadbalancing": {"listener-rule/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener-rule/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/gwy": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/gwy/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "loadbalancer": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/${LoadBalancerName}", "loadbalancer/app/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/app/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/gwy/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/gwy/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/net/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/net/${LoadBalancerName}/${LoadBalancerId}", "targetgroup": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:targetgroup/${TargetGroupName}/${TargetGroupId}", "truststore": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:truststore/${TrustStoreName}/${TrustStoreId}"}, "events": {"alias": "arn:${Partition}:kms:${Region}:${Account}:alias/${Alias}", "api-destination": "arn:${Partition}:events:${Region}:${Account}:api-destination/${ApiDestinationName}", "archive": "arn:${Partition}:events:${Region}:${Account}:archive/${ArchiveName}", "connection": "arn:${Partition}:events:${Region}:${Account}:connection/${ConnectionName}", "create-snapshot": "arn:${Partition}:events:${Region}:${Account}:target/create-snapshot", "endpoint": "arn:${Partition}:events:${Region}:${Account}:endpoint/${EndpointName}", "event-bus": "arn:${Partition}:events:${Region}:${Account}:event-bus/${EventBusName}", "event-busv2": "arn:${Partition}:events:${Region}:${Account}:event-busv2/${EventBusName}/${OpaqueId}", "event-source": "arn:${Partition}:events:${Region}::event-source/${EventSourceName}", "event-sourcev2": "arn:${Partition}:events:${Region}:${Account}:event-sourcev2/${SourceType}/${EventSourceName}/${OpaqueId}", "key": "arn:${Partition}:kms:${Region}:${Account}:key/${KeyId}", "reboot-instance": "arn:${Partition}:events:${Region}:${Account}:tarLine truncated
|
||||
"arnFormats": {"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}"}, "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}", "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}"}, "cur": {"cur": "arn:${Partition}:cur:${Region}:${Account}:definition/${ReportName}"}, "ecr": {"repository": "arn:${Partition}:ecr:${Region}:${Account}:repository/${RepositoryName}"}, "elasticloadbalancing": {"listener-rule/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener-rule/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/gwy": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/gwy/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "loadbalancer": "arn:${Partition}:elasticloadbalancing:${Region}:${AccLine truncated
|
||||
"unqualified": {"states": ["statemachine"]},
|
||||
"mintedIds": {"events": ["api-destination", "connection"]},
|
||||
"operations": {
|
||||
@@ -49,6 +49,124 @@
|
||||
"acm:UpdateAcmeDomainValidation": {"action": "acm:UpdateAcmeDomainValidation", "types": ["acme-domain-validation"], "resources": [{"types": ["acme-domain-validation"], "arn": "AcmeDomainValidationArn"}]},
|
||||
"acm:UpdateAcmeEndpoint": {"action": "acm:UpdateAcmeEndpoint", "types": ["acme-endpoint"], "resources": [{"types": ["acme-endpoint"], "arn": "AcmeEndpointArn"}]},
|
||||
"acm:UpdateCertificateOptions": {"action": "acm:UpdateCertificateOptions", "types": ["certificate"], "resources": [{"types": ["certificate"], "arn": "CertificateArn"}]},
|
||||
"athena:BatchGetNamedQuery": {"action": "athena:BatchGetNamedQuery", "types": ["workgroup"], "resources": []},
|
||||
"athena:BatchGetPreparedStatement": {"action": "athena:BatchGetPreparedStatement", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:BatchGetQueryExecution": {"action": "athena:BatchGetQueryExecution", "types": ["workgroup"], "resources": []},
|
||||
"athena:CancelCapacityReservation": {"action": "athena:CancelCapacityReservation", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationName": "Name"}}]},
|
||||
"athena:CreateCapacityReservation": {"action": "athena:CreateCapacityReservation", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationName": "Name"}}]},
|
||||
"athena:CreateDataCatalog": {"action": "athena:CreateDataCatalog", "types": ["datacatalog"], "resources": [{"type": "datacatalog", "fill": {"DataCatalogName": "Name"}}]},
|
||||
"athena:CreateNamedQuery": {"action": "athena:CreateNamedQuery", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:CreateNotebook": {"action": "athena:CreateNotebook", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:CreatePreparedStatement": {"action": "athena:CreatePreparedStatement", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:CreatePresignedNotebookUrl": {"action": "athena:CreatePresignedNotebookUrl", "types": ["workgroup"], "resources": []},
|
||||
"athena:CreateWorkGroup": {"action": "athena:CreateWorkGroup", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "Name"}}]},
|
||||
"athena:DeleteCapacityReservation": {"action": "athena:DeleteCapacityReservation", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationName": "Name"}}]},
|
||||
"athena:DeleteDataCatalog": {"action": "athena:DeleteDataCatalog", "types": ["datacatalog"], "resources": [{"type": "datacatalog", "fill": {"DataCatalogName": "Name"}}]},
|
||||
"athena:DeleteNamedQuery": {"action": "athena:DeleteNamedQuery", "types": ["workgroup"], "resources": []},
|
||||
"athena:DeleteNotebook": {"action": "athena:DeleteNotebook", "types": ["workgroup"], "resources": []},
|
||||
"athena:DeletePreparedStatement": {"action": "athena:DeletePreparedStatement", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:DeleteWorkGroup": {"action": "athena:DeleteWorkGroup", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:ExportNotebook": {"action": "athena:ExportNotebook", "types": ["workgroup"], "resources": []},
|
||||
"athena:GetCalculationExecution": {"action": "athena:GetCalculationExecution", "types": ["workgroup"], "resources": []},
|
||||
"athena:GetCalculationExecutionCode": {"action": "athena:GetCalculationExecutionCode", "types": ["workgroup"], "resources": []},
|
||||
"athena:GetCalculationExecutionStatus": {"action": "athena:GetCalculationExecutionStatus", "types": ["workgroup"], "resources": []},
|
||||
"athena:GetCapacityAssignmentConfiguration": {"action": "athena:GetCapacityAssignmentConfiguration", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationName": "CapacityReservationName"}}]},
|
||||
"athena:GetCapacityReservation": {"action": "athena:GetCapacityReservation", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationName": "Name"}}]},
|
||||
"athena:GetDataCatalog": {"action": "athena:GetDataCatalog", "types": ["datacatalog"], "resources": [{"type": "datacatalog", "fill": {"DataCatalogName": "Name"}}]},
|
||||
"athena:GetDatabase": {"action": "athena:GetDatabase", "types": ["datacatalog"], "resources": [{"type": "datacatalog", "fill": {"DataCatalogName": "CatalogName"}}]},
|
||||
"athena:GetNamedQuery": {"action": "athena:GetNamedQuery", "types": ["workgroup"], "resources": []},
|
||||
"athena:GetNotebookMetadata": {"action": "athena:GetNotebookMetadata", "types": ["workgroup"], "resources": []},
|
||||
"athena:GetPreparedStatement": {"action": "athena:GetPreparedStatement", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:GetQueryExecution": {"action": "athena:GetQueryExecution", "types": ["workgroup"], "resources": []},
|
||||
"athena:GetQueryResults": {"action": "athena:GetQueryResults", "types": ["workgroup"], "resources": []},
|
||||
"athena:GetQueryRuntimeStatistics": {"action": "athena:GetQueryRuntimeStatistics", "types": ["workgroup"], "resources": []},
|
||||
"athena:GetResourceDashboard": {"action": "athena:GetResourceDashboard", "types": ["session", "workgroup"], "resources": [{"types": ["session", "workgroup"], "arn": "ResourceARN"}]},
|
||||
"athena:GetSession": {"action": "athena:GetSession", "types": ["session", "workgroup"], "resources": [{"type": "session", "fill": {"SessionId": "SessionId"}}]},
|
||||
"athena:GetSessionEndpoint": {"action": "athena:GetSessionEndpoint", "types": ["session", "workgroup"], "resources": [{"type": "session", "fill": {"SessionId": "SessionId"}}]},
|
||||
"athena:GetSessionStatus": {"action": "athena:GetSessionStatus", "types": ["session", "workgroup"], "resources": [{"type": "session", "fill": {"SessionId": "SessionId"}}]},
|
||||
"athena:GetTableMetadata": {"action": "athena:GetTableMetadata", "types": ["datacatalog"], "resources": [{"type": "datacatalog", "fill": {"DataCatalogName": "CatalogName"}}, {"type": "datacatalog", "fill": {}, "fixed": {"DataCatalogName": "AwsDataCatalog"}}]},
|
||||
"athena:GetWorkGroup": {"action": "athena:GetWorkGroup", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}, "absent": {"WorkGroup": "primary"}}]},
|
||||
"athena:ImportNotebook": {"action": "athena:ImportNotebook", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:ListApplicationDPUSizes": {"action": "athena:ListApplicationDPUSizes", "types": [], "resources": []},
|
||||
"athena:ListCalculationExecutions": {"action": "athena:ListCalculationExecutions", "types": ["workgroup"], "resources": []},
|
||||
"athena:ListCapacityReservations": {"action": "athena:ListCapacityReservations", "types": [], "resources": []},
|
||||
"athena:ListDataCatalogs": {"action": "athena:ListDataCatalogs", "types": [], "resources": []},
|
||||
"athena:ListDatabases": {"action": "athena:ListDatabases", "types": ["datacatalog"], "resources": [{"type": "datacatalog", "fill": {"DataCatalogName": "CatalogName"}}, {"type": "datacatalog", "fill": {}, "fixed": {"DataCatalogName": "AwsDataCatalog"}}]},
|
||||
"athena:ListEngineVersions": {"action": "athena:ListEngineVersions", "types": [], "resources": []},
|
||||
"athena:ListExecutors": {"action": "athena:ListExecutors", "types": [], "resources": []},
|
||||
"athena:ListNamedQueries": {"action": "athena:ListNamedQueries", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}, "absent": {"WorkGroup": "primary"}}]},
|
||||
"athena:ListNotebookMetadata": {"action": "athena:ListNotebookMetadata", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:ListNotebookSessions": {"action": "athena:ListNotebookSessions", "types": ["workgroup"], "resources": []},
|
||||
"athena:ListPreparedStatements": {"action": "athena:ListPreparedStatements", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:ListQueryExecutions": {"action": "athena:ListQueryExecutions", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}, "absent": {"WorkGroup": "primary"}}]},
|
||||
"athena:ListSessions": {"action": "athena:ListSessions", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:ListTableMetadata": {"action": "athena:ListTableMetadata", "types": ["datacatalog"], "resources": [{"type": "datacatalog", "fill": {"DataCatalogName": "CatalogName"}}, {"type": "datacatalog", "fill": {}, "fixed": {"DataCatalogName": "AwsDataCatalog"}}]},
|
||||
"athena:ListTagsForResource": {"action": "athena:ListTagsForResource", "types": ["capacity-reservation", "datacatalog", "session", "workgroup"], "resources": [{"types": ["capacity-reservation", "datacatalog", "session", "workgroup"], "arn": "ResourceARN"}]},
|
||||
"athena:ListWorkGroups": {"action": "athena:ListWorkGroups", "types": [], "resources": []},
|
||||
"athena:PutCapacityAssignmentConfiguration": {"action": "athena:PutCapacityAssignmentConfiguration", "types": ["capacity-reservation", "workgroup"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationName": "CapacityReservationName"}}]},
|
||||
"athena:StartCalculationExecution": {"action": "athena:StartCalculationExecution", "types": ["workgroup"], "resources": []},
|
||||
"athena:StartQueryExecution": {"action": "athena:StartQueryExecution", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}, "absent": {"WorkGroup": "primary"}}]},
|
||||
"athena:StartSession": {"action": "athena:StartSession", "types": ["session", "workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:StopCalculationExecution": {"action": "athena:StopCalculationExecution", "types": ["workgroup"], "resources": []},
|
||||
"athena:StopQueryExecution": {"action": "athena:StopQueryExecution", "types": ["workgroup"], "resources": []},
|
||||
"athena:TagResource": {"action": "athena:TagResource", "types": ["capacity-reservation", "datacatalog", "session", "workgroup"], "resources": [{"types": ["capacity-reservation", "datacatalog", "session", "workgroup"], "arn": "ResourceARN"}]},
|
||||
"athena:TerminateSession": {"action": "athena:TerminateSession", "types": ["session", "workgroup"], "resources": [{"type": "session", "fill": {"SessionId": "SessionId"}}]},
|
||||
"athena:UntagResource": {"action": "athena:UntagResource", "types": ["capacity-reservation", "datacatalog", "session", "workgroup"], "resources": [{"types": ["capacity-reservation", "datacatalog", "session", "workgroup"], "arn": "ResourceARN"}]},
|
||||
"athena:UpdateCapacityReservation": {"action": "athena:UpdateCapacityReservation", "types": ["capacity-reservation"], "resources": [{"type": "capacity-reservation", "fill": {"CapacityReservationName": "Name"}}]},
|
||||
"athena:UpdateDataCatalog": {"action": "athena:UpdateDataCatalog", "types": ["datacatalog"], "resources": [{"type": "datacatalog", "fill": {"DataCatalogName": "Name"}}]},
|
||||
"athena:UpdateNamedQuery": {"action": "athena:UpdateNamedQuery", "types": ["workgroup"], "resources": []},
|
||||
"athena:UpdateNotebook": {"action": "athena:UpdateNotebook", "types": ["workgroup"], "resources": []},
|
||||
"athena:UpdateNotebookMetadata": {"action": "athena:UpdateNotebookMetadata", "types": ["workgroup"], "resources": []},
|
||||
"athena:UpdatePreparedStatement": {"action": "athena:UpdatePreparedStatement", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:UpdateWorkGroup": {"action": "athena:UpdateWorkGroup", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"bcm-data-exports:CreateExport": {"action": "bcm-data-exports:CreateExport", "types": ["billingview", "table"], "resources": []},
|
||||
"bcm-data-exports:DeleteExport": {"action": "bcm-data-exports:DeleteExport", "types": ["export"], "resources": [{"types": ["export"], "arn": "ExportArn"}]},
|
||||
"bcm-data-exports:GetExecution": {"action": "bcm-data-exports:GetExecution", "types": ["export"], "resources": [{"types": ["export"], "arn": "ExportArn"}]},
|
||||
"bcm-data-exports:GetExport": {"action": "bcm-data-exports:GetExport", "types": ["export"], "resources": [{"types": ["export"], "arn": "ExportArn"}]},
|
||||
"bcm-data-exports:GetTable": {"action": "bcm-data-exports:GetTable", "types": ["table"], "resources": []},
|
||||
"bcm-data-exports:ListExecutions": {"action": "bcm-data-exports:ListExecutions", "types": ["export"], "resources": [{"types": ["export"], "arn": "ExportArn"}]},
|
||||
"bcm-data-exports:ListExports": {"action": "bcm-data-exports:ListExports", "types": [], "resources": []},
|
||||
"bcm-data-exports:ListTables": {"action": "bcm-data-exports:ListTables", "types": [], "resources": []},
|
||||
"bcm-data-exports:ListTagsForResource": {"action": "bcm-data-exports:ListTagsForResource", "types": ["export"], "resources": [{"types": ["export"], "arn": "ResourceArn"}]},
|
||||
"bcm-data-exports:TagResource": {"action": "bcm-data-exports:TagResource", "types": ["export"], "resources": [{"types": ["export"], "arn": "ResourceArn"}]},
|
||||
"bcm-data-exports:UntagResource": {"action": "bcm-data-exports:UntagResource", "types": ["export"], "resources": [{"types": ["export"], "arn": "ResourceArn"}]},
|
||||
"bcm-data-exports:UpdateExport": {"action": "bcm-data-exports:UpdateExport", "types": ["billingview", "export", "table"], "resources": [{"types": ["billingview", "export", "table"], "arn": "Export.ExportArn"}, {"types": ["billingview", "export", "table"], "arn": "ExportArn"}]},
|
||||
"bcm-pricing-calculator:BatchCreateBillScenarioCommitmentModification": {"action": "bcm-pricing-calculator:CreateBillScenarioCommitmentModification", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "billScenarioId"}}]},
|
||||
"bcm-pricing-calculator:BatchCreateBillScenarioUsageModification": {"action": "bcm-pricing-calculator:CreateBillScenarioUsageModification", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "billScenarioId"}}]},
|
||||
"bcm-pricing-calculator:BatchCreateWorkloadEstimateUsage": {"action": "bcm-pricing-calculator:CreateWorkloadEstimateUsage", "types": ["workload-estimate"], "resources": [{"type": "workload-estimate", "fill": {"WorkloadEstimateId": "workloadEstimateId"}}]},
|
||||
"bcm-pricing-calculator:BatchDeleteBillScenarioCommitmentModification": {"action": "bcm-pricing-calculator:DeleteBillScenarioCommitmentModification", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "billScenarioId"}}]},
|
||||
"bcm-pricing-calculator:BatchDeleteBillScenarioUsageModification": {"action": "bcm-pricing-calculator:DeleteBillScenarioUsageModification", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "billScenarioId"}}]},
|
||||
"bcm-pricing-calculator:BatchDeleteWorkloadEstimateUsage": {"action": "bcm-pricing-calculator:DeleteWorkloadEstimateUsage", "types": ["workload-estimate"], "resources": [{"type": "workload-estimate", "fill": {"WorkloadEstimateId": "workloadEstimateId"}}]},
|
||||
"bcm-pricing-calculator:BatchUpdateBillScenarioCommitmentModification": {"action": "bcm-pricing-calculator:UpdateBillScenarioCommitmentModification", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "billScenarioId"}}]},
|
||||
"bcm-pricing-calculator:BatchUpdateBillScenarioUsageModification": {"action": "bcm-pricing-calculator:UpdateBillScenarioUsageModification", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "billScenarioId"}}]},
|
||||
"bcm-pricing-calculator:BatchUpdateWorkloadEstimateUsage": {"action": "bcm-pricing-calculator:UpdateWorkloadEstimateUsage", "types": ["workload-estimate"], "resources": [{"type": "workload-estimate", "fill": {"WorkloadEstimateId": "workloadEstimateId"}}]},
|
||||
"bcm-pricing-calculator:CreateBillEstimate": {"action": "bcm-pricing-calculator:CreateBillEstimate", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "billScenarioId"}}]},
|
||||
"bcm-pricing-calculator:CreateBillScenario": {"action": "bcm-pricing-calculator:CreateBillScenario", "types": [], "resources": []},
|
||||
"bcm-pricing-calculator:CreateWorkloadEstimate": {"action": "bcm-pricing-calculator:CreateWorkloadEstimate", "types": [], "resources": []},
|
||||
"bcm-pricing-calculator:DeleteBillEstimate": {"action": "bcm-pricing-calculator:DeleteBillEstimate", "types": ["bill-estimate"], "resources": [{"type": "bill-estimate", "fill": {"BillEstimateId": "identifier"}}]},
|
||||
"bcm-pricing-calculator:DeleteBillScenario": {"action": "bcm-pricing-calculator:DeleteBillScenario", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "identifier"}}]},
|
||||
"bcm-pricing-calculator:DeleteWorkloadEstimate": {"action": "bcm-pricing-calculator:DeleteWorkloadEstimate", "types": ["workload-estimate"], "resources": [{"type": "workload-estimate", "fill": {"WorkloadEstimateId": "identifier"}}]},
|
||||
"bcm-pricing-calculator:GetBillEstimate": {"action": "bcm-pricing-calculator:GetBillEstimate", "types": ["bill-estimate"], "resources": [{"type": "bill-estimate", "fill": {"BillEstimateId": "identifier"}}]},
|
||||
"bcm-pricing-calculator:GetBillScenario": {"action": "bcm-pricing-calculator:GetBillScenario", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "identifier"}}]},
|
||||
"bcm-pricing-calculator:GetPreferences": {"action": "bcm-pricing-calculator:GetPreferences", "types": [], "resources": []},
|
||||
"bcm-pricing-calculator:GetWorkloadEstimate": {"action": "bcm-pricing-calculator:GetWorkloadEstimate", "types": ["workload-estimate"], "resources": [{"type": "workload-estimate", "fill": {"WorkloadEstimateId": "identifier"}}]},
|
||||
"bcm-pricing-calculator:ListBillEstimateCommitments": {"action": "bcm-pricing-calculator:ListBillEstimateCommitments", "types": ["bill-estimate"], "resources": [{"type": "bill-estimate", "fill": {"BillEstimateId": "billEstimateId"}}]},
|
||||
"bcm-pricing-calculator:ListBillEstimateInputCommitmentModifications": {"action": "bcm-pricing-calculator:ListBillEstimateInputCommitmentModifications", "types": ["bill-estimate"], "resources": [{"type": "bill-estimate", "fill": {"BillEstimateId": "billEstimateId"}}]},
|
||||
"bcm-pricing-calculator:ListBillEstimateInputUsageModifications": {"action": "bcm-pricing-calculator:ListBillEstimateInputUsageModifications", "types": ["bill-estimate"], "resources": [{"type": "bill-estimate", "fill": {"BillEstimateId": "billEstimateId"}}]},
|
||||
"bcm-pricing-calculator:ListBillEstimateLineItems": {"action": "bcm-pricing-calculator:ListBillEstimateLineItems", "types": ["bill-estimate"], "resources": [{"type": "bill-estimate", "fill": {"BillEstimateId": "billEstimateId"}}]},
|
||||
"bcm-pricing-calculator:ListBillEstimates": {"action": "bcm-pricing-calculator:ListBillEstimates", "types": [], "resources": []},
|
||||
"bcm-pricing-calculator:ListBillScenarioCommitmentModifications": {"action": "bcm-pricing-calculator:ListBillScenarioCommitmentModifications", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "billScenarioId"}}]},
|
||||
"bcm-pricing-calculator:ListBillScenarioUsageModifications": {"action": "bcm-pricing-calculator:ListBillScenarioUsageModifications", "types": ["bill-scenario"], "resources": [{"type": "bill-scenario", "fill": {"BillScenarioId": "billScenarioId"}}]},
|
||||
"bcm-pricing-calculator:ListBillScenarios": {"action": "bcm-pricing-calculator:ListBillScenarios", "types": [], "resources": []},
|
||||
"bcm-pricing-calculator:ListTagsForResource": {"action": "bcm-pricing-calculator:ListTagsForResource", "types": [], "resources": []},
|
||||
"bcm-pricing-calculator:ListWorkloadEstimateUsage": {"action": "bcm-pricing-calculator:ListWorkloadEstimateUsage", "types": ["workload-estimate"], "resources": [{"type": "workload-estimate", "fill": {"WorkloadEstimateId": "workloadEstimateId"}}]},
|
||||
"bcm-pricing-calculator:ListWorkloadEstimates": {"action": "bcm-pricing-calculator:ListWorkloadEstimates", "types": [], "resources": []},
|
||||
"bcm-pricing-calculator:TagResource": {"action": "bcm-pricing-calculator:TagResource", "types": ["bill-scenario", "workload-estimate"], "resources": [{"types": ["bill-scenario", "workload-estimate"], "arn": "arn"}]},
|
||||
"bcm-pricing-calculator:UntagResource": {"action": "bcm-pricing-calculator:UntagResource", "types": ["bill-scenario", "workload-estimate"], "resources": [{"types": ["bill-scenario", "workload-estimate"], "arn": "arn"}]},
|
||||
"bcm-pricing-calculator:UpdateBillEstimate": {"action": "bcm-pricing-calculator:UpdateBillEstimate", "types": ["bill-estimate"], "resources": [{"type": "bill-estimate", "fill": {"BillEstimateId": "identifier"}}]},
|
||||
"bcm-pricing-calculator:UpdateBillScenario": {"action": "bcm-pricing-calculator:UpdateBillScenario", "types": ["bill-scenario"], "resources": [{"types": ["bill-scenario"], "arn": "costCategoryGroupSharingPreferenceArn"}, {"type": "bill-scenario", "fill": {"BillScenarioId": "identifier"}}]},
|
||||
"bcm-pricing-calculator:UpdatePreferences": {"action": "bcm-pricing-calculator:UpdatePreferences", "types": [], "resources": []},
|
||||
"bcm-pricing-calculator:UpdateWorkloadEstimate": {"action": "bcm-pricing-calculator:UpdateWorkloadEstimate", "types": ["workload-estimate"], "resources": [{"type": "workload-estimate", "fill": {"WorkloadEstimateId": "identifier"}}]},
|
||||
"budgets:CreateBudget": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "Budget.BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:CreateBudgetAction": {"action": "budgets:CreateBudgetAction", "types": ["budgetAction"], "resources": [{"types": ["budgetAction"], "arn": "ExecutionRoleArn"}, {"type": "budgetAction", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:CreateNotification": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
@@ -75,6 +193,113 @@
|
||||
"budgets:UpdateBudgetAction": {"action": "budgets:UpdateBudgetAction", "types": ["budgetAction"], "resources": [{"types": ["budgetAction"], "arn": "ExecutionRoleArn"}, {"type": "budgetAction", "fill": {"ActionId": "ActionId", "BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:UpdateNotification": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:UpdateSubscriber": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"ce:CreateAnomalyMonitor": {"action": "ce:CreateAnomalyMonitor", "types": [], "resources": []},
|
||||
"ce:CreateAnomalySubscription": {"action": "ce:CreateAnomalySubscription", "types": [], "resources": []},
|
||||
"ce:CreateCostCategoryDefinition": {"action": "ce:CreateCostCategoryDefinition", "types": [], "resources": []},
|
||||
"ce:DeleteAnomalyMonitor": {"action": "ce:DeleteAnomalyMonitor", "types": ["anomalymonitor"], "resources": [{"types": ["anomalymonitor"], "arn": "MonitorArn"}]},
|
||||
"ce:DeleteAnomalySubscription": {"action": "ce:DeleteAnomalySubscription", "types": ["anomalysubscription"], "resources": [{"types": ["anomalysubscription"], "arn": "SubscriptionArn"}]},
|
||||
"ce:DeleteCostCategoryDefinition": {"action": "ce:DeleteCostCategoryDefinition", "types": ["costcategory"], "resources": [{"types": ["costcategory"], "arn": "CostCategoryArn"}]},
|
||||
"ce:DescribeCostCategoryDefinition": {"action": "ce:DescribeCostCategoryDefinition", "types": ["costcategory"], "resources": [{"types": ["costcategory"], "arn": "CostCategoryArn"}]},
|
||||
"ce:GetAnomalies": {"action": "ce:GetAnomalies", "types": ["anomalymonitor"], "resources": [{"types": ["anomalymonitor"], "arn": "MonitorArn"}]},
|
||||
"ce:GetAnomalyMonitors": {"action": "ce:GetAnomalyMonitors", "types": ["anomalymonitor"], "resources": [{"types": ["anomalymonitor"], "arn": "MonitorArnList[]"}]},
|
||||
"ce:GetAnomalySubscriptions": {"action": "ce:GetAnomalySubscriptions", "types": ["anomalysubscription"], "resources": [{"types": ["anomalysubscription"], "arn": "SubscriptionArnList[]"}]},
|
||||
"ce:GetApproximateUsageRecords": {"action": "ce:GetApproximateUsageRecords", "types": [], "resources": []},
|
||||
"ce:GetCommitmentPurchaseAnalysis": {"action": "ce:GetCommitmentPurchaseAnalysis", "types": [], "resources": []},
|
||||
"ce:GetCostAndUsage": {"action": "ce:GetCostAndUsage", "types": ["billingview"], "resources": []},
|
||||
"ce:GetCostAndUsageComparisons": {"action": "ce:GetCostAndUsageComparisons", "types": ["billingview"], "resources": []},
|
||||
"ce:GetCostAndUsageWithResources": {"action": "ce:GetCostAndUsageWithResources", "types": ["billingview"], "resources": []},
|
||||
"ce:GetCostCategories": {"action": "ce:GetCostCategories", "types": ["billingview"], "resources": []},
|
||||
"ce:GetCostComparisonDrivers": {"action": "ce:GetCostComparisonDrivers", "types": ["billingview"], "resources": []},
|
||||
"ce:GetCostForecast": {"action": "ce:GetCostForecast", "types": ["billingview"], "resources": []},
|
||||
"ce:GetDimensionValues": {"action": "ce:GetDimensionValues", "types": ["billingview"], "resources": []},
|
||||
"ce:GetReservationCoverage": {"action": "ce:GetReservationCoverage", "types": [], "resources": []},
|
||||
"ce:GetReservationPurchaseRecommendation": {"action": "ce:GetReservationPurchaseRecommendation", "types": [], "resources": []},
|
||||
"ce:GetReservationUtilization": {"action": "ce:GetReservationUtilization", "types": [], "resources": []},
|
||||
"ce:GetRightsizingRecommendation": {"action": "ce:GetRightsizingRecommendation", "types": [], "resources": []},
|
||||
"ce:GetSavingsPlanPurchaseRecommendationDetails": {"action": "ce:GetSavingsPlanPurchaseRecommendationDetails", "types": [], "resources": []},
|
||||
"ce:GetSavingsPlansCoverage": {"action": "ce:GetSavingsPlansCoverage", "types": [], "resources": []},
|
||||
"ce:GetSavingsPlansPurchaseRecommendation": {"action": "ce:GetSavingsPlansPurchaseRecommendation", "types": [], "resources": []},
|
||||
"ce:GetSavingsPlansUtilization": {"action": "ce:GetSavingsPlansUtilization", "types": [], "resources": []},
|
||||
"ce:GetSavingsPlansUtilizationDetails": {"action": "ce:GetSavingsPlansUtilizationDetails", "types": [], "resources": []},
|
||||
"ce:GetTags": {"action": "ce:GetTags", "types": ["billingview"], "resources": []},
|
||||
"ce:GetUsageForecast": {"action": "ce:GetUsageForecast", "types": ["billingview"], "resources": []},
|
||||
"ce:ListCommitmentPurchaseAnalyses": {"action": "ce:ListCommitmentPurchaseAnalyses", "types": [], "resources": []},
|
||||
"ce:ListCostAllocationTagBackfillHistory": {"action": "ce:ListCostAllocationTagBackfillHistory", "types": [], "resources": []},
|
||||
"ce:ListCostAllocationTags": {"action": "ce:ListCostAllocationTags", "types": [], "resources": []},
|
||||
"ce:ListCostCategoryDefinitions": {"action": "ce:ListCostCategoryDefinitions", "types": [], "resources": []},
|
||||
"ce:ListCostCategoryResourceAssociations": {"action": "ce:ListCostCategoryResourceAssociations", "types": [], "resources": []},
|
||||
"ce:ListSavingsPlansPurchaseRecommendationGeneration": {"action": "ce:ListSavingsPlansPurchaseRecommendationGeneration", "types": [], "resources": []},
|
||||
"ce:ListTagsForResource": {"action": "ce:ListTagsForResource", "types": ["anomalymonitor", "anomalysubscription", "costcategory"], "resources": [{"types": ["anomalymonitor", "anomalysubscription", "costcategory"], "arn": "ResourceArn"}]},
|
||||
"ce:ProvideAnomalyFeedback": {"action": "ce:ProvideAnomalyFeedback", "types": [], "resources": []},
|
||||
"ce:StartCommitmentPurchaseAnalysis": {"action": "ce:StartCommitmentPurchaseAnalysis", "types": [], "resources": []},
|
||||
"ce:StartCostAllocationTagBackfill": {"action": "ce:StartCostAllocationTagBackfill", "types": [], "resources": []},
|
||||
"ce:StartSavingsPlansPurchaseRecommendationGeneration": {"action": "ce:StartSavingsPlansPurchaseRecommendationGeneration", "types": [], "resources": []},
|
||||
"ce:TagResource": {"action": "ce:TagResource", "types": ["anomalymonitor", "anomalysubscription", "costcategory"], "resources": [{"types": ["anomalymonitor", "anomalysubscription", "costcategory"], "arn": "ResourceArn"}]},
|
||||
"ce:UntagResource": {"action": "ce:UntagResource", "types": ["anomalymonitor", "anomalysubscription", "costcategory"], "resources": [{"types": ["anomalymonitor", "anomalysubscription", "costcategory"], "arn": "ResourceArn"}]},
|
||||
"ce:UpdateAnomalyMonitor": {"action": "ce:UpdateAnomalyMonitor", "types": ["anomalymonitor"], "resources": [{"types": ["anomalymonitor"], "arn": "MonitorArn"}]},
|
||||
"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"}]},
|
||||
"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": {}}]},
|
||||
"cloudtrail:CreateDashboard": {"action": "cloudtrail:CreateDashboard", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"DashboardName": "Name"}}]},
|
||||
"cloudtrail:CreateEventDataStore": {"action": "cloudtrail:CreateEventDataStore", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {}}]},
|
||||
"cloudtrail:CreateTrail": {"action": "cloudtrail:CreateTrail", "types": ["trail"], "resources": [{"types": ["trail"], "arn": "CloudWatchLogsLogGroupArn"}, {"types": ["trail"], "arn": "CloudWatchLogsRoleArn"}, {"type": "trail", "fill": {"TrailName": "Name"}}]},
|
||||
"cloudtrail:DeleteChannel": {"action": "cloudtrail:DeleteChannel", "types": ["channel"], "resources": [{"type": "channel", "fill": {"ChannelId": "Channel"}}]},
|
||||
"cloudtrail:DeleteDashboard": {"action": "cloudtrail:DeleteDashboard", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"DashboardName": "DashboardId"}}]},
|
||||
"cloudtrail:DeleteEventDataStore": {"action": "cloudtrail:DeleteEventDataStore", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:DeleteResourcePolicy": {"action": "cloudtrail:DeleteResourcePolicy", "types": ["channel", "dashboard", "eventdatastore"], "resources": [{"types": ["channel", "dashboard", "eventdatastore"], "arn": "ResourceArn"}]},
|
||||
"cloudtrail:DeleteTrail": {"action": "cloudtrail:DeleteTrail", "types": ["trail"], "resources": [{"type": "trail", "fill": {"TrailName": "Name"}}]},
|
||||
"cloudtrail:DeregisterOrganizationDelegatedAdmin": {"action": "cloudtrail:DeregisterOrganizationDelegatedAdmin", "types": [], "resources": []},
|
||||
"cloudtrail:DescribeQuery": {"action": "cloudtrail:DescribeQuery", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:DescribeTrails": {"action": "cloudtrail:DescribeTrails", "types": [], "resources": []},
|
||||
"cloudtrail:DisableFederation": {"action": "cloudtrail:DisableFederation", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:EnableFederation": {"action": "cloudtrail:EnableFederation", "types": ["eventdatastore"], "resources": [{"types": ["eventdatastore"], "arn": "FederationRoleArn"}, {"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:GenerateQuery": {"action": "cloudtrail:GenerateQuery", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStores[]"}}]},
|
||||
"cloudtrail:GetChannel": {"action": "cloudtrail:GetChannel", "types": ["channel"], "resources": [{"type": "channel", "fill": {"ChannelId": "Channel"}}]},
|
||||
"cloudtrail:GetDashboard": {"action": "cloudtrail:GetDashboard", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"DashboardName": "DashboardId"}}]},
|
||||
"cloudtrail:GetEventConfiguration": {"action": "cloudtrail:GetEventConfiguration", "types": ["eventdatastore", "trail"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}, {"type": "trail", "fill": {"TrailName": "TrailName"}}]},
|
||||
"cloudtrail:GetEventDataStore": {"action": "cloudtrail:GetEventDataStore", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:GetEventSelectors": {"action": "cloudtrail:GetEventSelectors", "types": ["trail"], "resources": [{"type": "trail", "fill": {"TrailName": "TrailName"}}]},
|
||||
"cloudtrail:GetImport": {"action": "cloudtrail:GetImport", "types": [], "resources": []},
|
||||
"cloudtrail:GetInsightSelectors": {"action": "cloudtrail:GetInsightSelectors", "types": ["eventdatastore", "trail"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}, {"type": "trail", "fill": {"TrailName": "TrailName"}}]},
|
||||
"cloudtrail:GetQueryResults": {"action": "cloudtrail:GetQueryResults", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:GetResourcePolicy": {"action": "cloudtrail:GetResourcePolicy", "types": ["channel", "dashboard", "eventdatastore"], "resources": [{"types": ["channel", "dashboard", "eventdatastore"], "arn": "ResourceArn"}]},
|
||||
"cloudtrail:GetTrail": {"action": "cloudtrail:GetTrail", "types": ["trail"], "resources": [{"type": "trail", "fill": {"TrailName": "Name"}}]},
|
||||
"cloudtrail:GetTrailStatus": {"action": "cloudtrail:GetTrailStatus", "types": ["trail"], "resources": [{"type": "trail", "fill": {"TrailName": "Name"}}]},
|
||||
"cloudtrail:ListChannels": {"action": "cloudtrail:ListChannels", "types": [], "resources": []},
|
||||
"cloudtrail:ListDashboards": {"action": "cloudtrail:ListDashboards", "types": [], "resources": []},
|
||||
"cloudtrail:ListEventDataStores": {"action": "cloudtrail:ListEventDataStores", "types": [], "resources": []},
|
||||
"cloudtrail:ListImportFailures": {"action": "cloudtrail:ListImportFailures", "types": [], "resources": []},
|
||||
"cloudtrail:ListImports": {"action": "cloudtrail:ListImports", "types": [], "resources": []},
|
||||
"cloudtrail:ListInsightsData": {"action": "cloudtrail:ListInsightsData", "types": ["trail"], "resources": []},
|
||||
"cloudtrail:ListInsightsMetricData": {"action": "cloudtrail:ListInsightsMetricData", "types": [], "resources": []},
|
||||
"cloudtrail:ListPublicKeys": {"action": "cloudtrail:ListPublicKeys", "types": [], "resources": []},
|
||||
"cloudtrail:ListQueries": {"action": "cloudtrail:ListQueries", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:ListTags": {"action": "cloudtrail:ListTags", "types": ["channel", "dashboard", "eventdatastore", "trail"], "resources": [{"types": ["channel", "dashboard", "eventdatastore", "trail"], "arn": "ResourceIdList[]"}]},
|
||||
"cloudtrail:ListTrails": {"action": "cloudtrail:ListTrails", "types": [], "resources": []},
|
||||
"cloudtrail:LookupEvents": {"action": "cloudtrail:LookupEvents", "types": [], "resources": []},
|
||||
"cloudtrail:PutEventConfiguration": {"action": "cloudtrail:PutEventConfiguration", "types": ["eventdatastore", "trail"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}, {"type": "trail", "fill": {"TrailName": "TrailName"}}]},
|
||||
"cloudtrail:PutEventSelectors": {"action": "cloudtrail:PutEventSelectors", "types": ["trail"], "resources": [{"type": "trail", "fill": {"TrailName": "TrailName"}}]},
|
||||
"cloudtrail:PutInsightSelectors": {"action": "cloudtrail:PutInsightSelectors", "types": ["eventdatastore", "trail"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}, {"type": "trail", "fill": {"TrailName": "TrailName"}}]},
|
||||
"cloudtrail:PutResourcePolicy": {"action": "cloudtrail:PutResourcePolicy", "types": ["channel", "dashboard", "eventdatastore"], "resources": [{"types": ["channel", "dashboard", "eventdatastore"], "arn": "ResourceArn"}]},
|
||||
"cloudtrail:RegisterOrganizationDelegatedAdmin": {"action": "cloudtrail:RegisterOrganizationDelegatedAdmin", "types": [], "resources": []},
|
||||
"cloudtrail:RemoveTags": {"action": "cloudtrail:RemoveTags", "types": ["channel", "dashboard", "eventdatastore", "trail"], "resources": [{"types": ["channel", "dashboard", "eventdatastore", "trail"], "arn": "ResourceId"}]},
|
||||
"cloudtrail:RestoreEventDataStore": {"action": "cloudtrail:RestoreEventDataStore", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:SearchSampleQueries": {"action": "cloudtrail:SearchSampleQueries", "types": [], "resources": []},
|
||||
"cloudtrail:StartDashboardRefresh": {"action": "cloudtrail:StartDashboardRefresh", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"DashboardName": "DashboardId"}}]},
|
||||
"cloudtrail:StartEventDataStoreIngestion": {"action": "cloudtrail:StartEventDataStoreIngestion", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:StartImport": {"action": "cloudtrail:StartImport", "types": [], "resources": []},
|
||||
"cloudtrail:StartLogging": {"action": "cloudtrail:StartLogging", "types": ["trail"], "resources": [{"type": "trail", "fill": {"TrailName": "Name"}}]},
|
||||
"cloudtrail:StartQuery": {"action": "cloudtrail:StartQuery", "types": ["eventdatastore"], "resources": []},
|
||||
"cloudtrail:StopEventDataStoreIngestion": {"action": "cloudtrail:StopEventDataStoreIngestion", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:StopImport": {"action": "cloudtrail:StopImport", "types": [], "resources": []},
|
||||
"cloudtrail:StopLogging": {"action": "cloudtrail:StopLogging", "types": ["trail"], "resources": [{"type": "trail", "fill": {"TrailName": "Name"}}]},
|
||||
"cloudtrail:UpdateChannel": {"action": "cloudtrail:UpdateChannel", "types": ["channel"], "resources": [{"type": "channel", "fill": {"ChannelId": "Channel"}}]},
|
||||
"cloudtrail:UpdateDashboard": {"action": "cloudtrail:UpdateDashboard", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"DashboardName": "DashboardId"}}]},
|
||||
"cloudtrail:UpdateEventDataStore": {"action": "cloudtrail:UpdateEventDataStore", "types": ["eventdatastore"], "resources": [{"type": "eventdatastore", "fill": {"EventDataStoreId": "EventDataStore"}}]},
|
||||
"cloudtrail:UpdateTrail": {"action": "cloudtrail:UpdateTrail", "types": ["trail"], "resources": [{"types": ["trail"], "arn": "CloudWatchLogsLogGroupArn"}, {"types": ["trail"], "arn": "CloudWatchLogsRoleArn"}, {"type": "trail", "fill": {"TrailName": "Name"}}]},
|
||||
"codebuild:BatchDeleteBuilds": {"action": "codebuild:BatchDeleteBuilds", "types": ["project"], "resources": [{"type": "project", "fill": {"ProjectName": "ids[]"}, "before": ":"}]},
|
||||
"codebuild:BatchGetBuildBatches": {"action": "codebuild:BatchGetBuildBatches", "types": ["project"], "resources": []},
|
||||
"codebuild:BatchGetBuilds": {"action": "codebuild:BatchGetBuilds", "types": ["project"], "resources": [{"type": "project", "fill": {"ProjectName": "ids[]"}, "before": ":"}]},
|
||||
@@ -556,6 +781,62 @@
|
||||
"firehose:TagDeliveryStream": {"action": "firehose:TagDeliveryStream", "types": ["deliverystream"], "resources": [{"type": "deliverystream", "fill": {"DeliveryStreamName": "DeliveryStreamName"}}]},
|
||||
"firehose:UntagDeliveryStream": {"action": "firehose:UntagDeliveryStream", "types": ["deliverystream"], "resources": [{"type": "deliverystream", "fill": {"DeliveryStreamName": "DeliveryStreamName"}}]},
|
||||
"firehose:UpdateDestination": {"action": "firehose:UpdateDestination", "types": ["deliverystream"], "resources": [{"types": ["deliverystream"], "arn": "AmazonOpenSearchServerlessDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "AmazonopensearchserviceDestinationUpdate.DomainARN"}, {"types": ["deliverystream"], "arn": "AmazonopensearchserviceDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "ElasticsearchDestinationUpdate.DomainARN"}, {"types": ["deliverystream"], "arn": "ElasticsearchDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "ExtendedS3DestinationUpdate.BucketARN"}, {"types": ["deliverystream"], "arn": "ExtendedS3DestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "HttpEndpointDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "IcebergDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "RedshiftDestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "S3DestinationUpdate.BucketARN"}, {"types": ["deliverystream"], "arn": "S3DestinationUpdate.RoleARN"}, {"types": ["deliverystream"], "arn": "SnowflakeDestinationUpdate.RoleARN"}, {"type": "deliverystream", "fill": {"DeliveryStreamName": "DeliveryStreamName"}}]},
|
||||
"globalaccelerator:AddCustomRoutingEndpoints": {"action": "globalaccelerator:AddCustomRoutingEndpoints", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointConfigurations[].AttachmentArn"}, {"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:AddEndpoints": {"action": "globalaccelerator:AddEndpoints", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointConfigurations[].AttachmentArn"}, {"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:AdvertiseByoipCidr": {"action": "globalaccelerator:AdvertiseByoipCidr", "types": [], "resources": []},
|
||||
"globalaccelerator:AllowCustomRoutingTraffic": {"action": "globalaccelerator:AllowCustomRoutingTraffic", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:CreateAccelerator": {"action": "globalaccelerator:CreateAccelerator", "types": [], "resources": []},
|
||||
"globalaccelerator:CreateCrossAccountAttachment": {"action": "globalaccelerator:CreateCrossAccountAttachment", "types": [], "resources": []},
|
||||
"globalaccelerator:CreateCustomRoutingAccelerator": {"action": "globalaccelerator:CreateCustomRoutingAccelerator", "types": [], "resources": []},
|
||||
"globalaccelerator:CreateCustomRoutingEndpointGroup": {"action": "globalaccelerator:CreateCustomRoutingEndpointGroup", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:CreateCustomRoutingListener": {"action": "globalaccelerator:CreateCustomRoutingListener", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:CreateEndpointGroup": {"action": "globalaccelerator:CreateEndpointGroup", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "EndpointConfigurations[].AttachmentArn"}, {"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:CreateListener": {"action": "globalaccelerator:CreateListener", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:DeleteAccelerator": {"action": "globalaccelerator:DeleteAccelerator", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:DeleteCrossAccountAttachment": {"action": "globalaccelerator:DeleteCrossAccountAttachment", "types": ["attachment"], "resources": [{"types": ["attachment"], "arn": "AttachmentArn"}]},
|
||||
"globalaccelerator:DeleteCustomRoutingAccelerator": {"action": "globalaccelerator:DeleteCustomRoutingAccelerator", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:DeleteCustomRoutingEndpointGroup": {"action": "globalaccelerator:DeleteCustomRoutingEndpointGroup", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:DeleteCustomRoutingListener": {"action": "globalaccelerator:DeleteCustomRoutingListener", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:DeleteEndpointGroup": {"action": "globalaccelerator:DeleteEndpointGroup", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:DeleteListener": {"action": "globalaccelerator:DeleteListener", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:DenyCustomRoutingTraffic": {"action": "globalaccelerator:DenyCustomRoutingTraffic", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:DeprovisionByoipCidr": {"action": "globalaccelerator:DeprovisionByoipCidr", "types": [], "resources": []},
|
||||
"globalaccelerator:DescribeAccelerator": {"action": "globalaccelerator:DescribeAccelerator", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:DescribeAcceleratorAttributes": {"action": "globalaccelerator:DescribeAcceleratorAttributes", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:DescribeCrossAccountAttachment": {"action": "globalaccelerator:DescribeCrossAccountAttachment", "types": ["attachment"], "resources": [{"types": ["attachment"], "arn": "AttachmentArn"}]},
|
||||
"globalaccelerator:DescribeCustomRoutingAccelerator": {"action": "globalaccelerator:DescribeCustomRoutingAccelerator", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:DescribeCustomRoutingAcceleratorAttributes": {"action": "globalaccelerator:DescribeCustomRoutingAcceleratorAttributes", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:DescribeCustomRoutingEndpointGroup": {"action": "globalaccelerator:DescribeCustomRoutingEndpointGroup", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:DescribeCustomRoutingListener": {"action": "globalaccelerator:DescribeCustomRoutingListener", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:DescribeEndpointGroup": {"action": "globalaccelerator:DescribeEndpointGroup", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:DescribeListener": {"action": "globalaccelerator:DescribeListener", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:ListAccelerators": {"action": "globalaccelerator:ListAccelerators", "types": [], "resources": []},
|
||||
"globalaccelerator:ListByoipCidrs": {"action": "globalaccelerator:ListByoipCidrs", "types": [], "resources": []},
|
||||
"globalaccelerator:ListCrossAccountAttachments": {"action": "globalaccelerator:ListCrossAccountAttachments", "types": [], "resources": []},
|
||||
"globalaccelerator:ListCrossAccountResourceAccounts": {"action": "globalaccelerator:ListCrossAccountResourceAccounts", "types": [], "resources": []},
|
||||
"globalaccelerator:ListCrossAccountResources": {"action": "globalaccelerator:ListCrossAccountResources", "types": [], "resources": []},
|
||||
"globalaccelerator:ListCustomRoutingAccelerators": {"action": "globalaccelerator:ListCustomRoutingAccelerators", "types": [], "resources": []},
|
||||
"globalaccelerator:ListCustomRoutingEndpointGroups": {"action": "globalaccelerator:ListCustomRoutingEndpointGroups", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:ListCustomRoutingListeners": {"action": "globalaccelerator:ListCustomRoutingListeners", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:ListCustomRoutingPortMappings": {"action": "globalaccelerator:ListCustomRoutingPortMappings", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:ListCustomRoutingPortMappingsByDestination": {"action": "globalaccelerator:ListCustomRoutingPortMappingsByDestination", "types": [], "resources": []},
|
||||
"globalaccelerator:ListEndpointGroups": {"action": "globalaccelerator:ListEndpointGroups", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:ListListeners": {"action": "globalaccelerator:ListListeners", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:ListTagsForResource": {"action": "globalaccelerator:ListTagsForResource", "types": ["accelerator", "attachment"], "resources": [{"types": ["accelerator", "attachment"], "arn": "ResourceArn"}]},
|
||||
"globalaccelerator:ProvisionByoipCidr": {"action": "globalaccelerator:ProvisionByoipCidr", "types": [], "resources": []},
|
||||
"globalaccelerator:RemoveCustomRoutingEndpoints": {"action": "globalaccelerator:RemoveCustomRoutingEndpoints", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:RemoveEndpoints": {"action": "globalaccelerator:RemoveEndpoints", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:TagResource": {"action": "globalaccelerator:TagResource", "types": ["accelerator", "attachment"], "resources": [{"types": ["accelerator", "attachment"], "arn": "ResourceArn"}]},
|
||||
"globalaccelerator:UntagResource": {"action": "globalaccelerator:UntagResource", "types": ["accelerator", "attachment"], "resources": [{"types": ["accelerator", "attachment"], "arn": "ResourceArn"}]},
|
||||
"globalaccelerator:UpdateAccelerator": {"action": "globalaccelerator:UpdateAccelerator", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:UpdateAcceleratorAttributes": {"action": "globalaccelerator:UpdateAcceleratorAttributes", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:UpdateCrossAccountAttachment": {"action": "globalaccelerator:UpdateCrossAccountAttachment", "types": ["attachment"], "resources": [{"types": ["attachment"], "arn": "AttachmentArn"}]},
|
||||
"globalaccelerator:UpdateCustomRoutingAccelerator": {"action": "globalaccelerator:UpdateCustomRoutingAccelerator", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:UpdateCustomRoutingAcceleratorAttributes": {"action": "globalaccelerator:UpdateCustomRoutingAcceleratorAttributes", "types": ["accelerator"], "resources": [{"types": ["accelerator"], "arn": "AcceleratorArn"}]},
|
||||
"globalaccelerator:UpdateCustomRoutingListener": {"action": "globalaccelerator:UpdateCustomRoutingListener", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:UpdateEndpointGroup": {"action": "globalaccelerator:UpdateEndpointGroup", "types": ["endpointgroup"], "resources": [{"types": ["endpointgroup"], "arn": "EndpointConfigurations[].AttachmentArn"}, {"types": ["endpointgroup"], "arn": "EndpointGroupArn"}]},
|
||||
"globalaccelerator:UpdateListener": {"action": "globalaccelerator:UpdateListener", "types": ["listener"], "resources": [{"types": ["listener"], "arn": "ListenerArn"}]},
|
||||
"globalaccelerator:WithdrawByoipCidr": {"action": "globalaccelerator:WithdrawByoipCidr", "types": [], "resources": []},
|
||||
"kinesisanalytics:AddApplicationCloudWatchLoggingOption": {"action": "kinesisanalytics:AddApplicationCloudWatchLoggingOption", "types": ["application"], "resources": [{"types": ["application"], "arn": "CloudWatchLoggingOption.LogStreamARN"}, {"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]},
|
||||
"kinesisanalytics:AddApplicationInput": {"action": "kinesisanalytics:AddApplicationInput", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]},
|
||||
"kinesisanalytics:AddApplicationInputProcessingConfiguration": {"action": "kinesisanalytics:AddApplicationInputProcessingConfiguration", "types": ["application"], "resources": [{"type": "application", "fill": {"ApplicationName": "ApplicationName"}}]},
|
||||
@@ -707,6 +988,30 @@
|
||||
"textract:TagResource": {"action": "textract:TagResource", "types": ["adapter", "adapterversion"], "resources": [{"types": ["adapter", "adapterversion"], "arn": "ResourceARN"}]},
|
||||
"textract:UntagResource": {"action": "textract:UntagResource", "types": ["adapter", "adapterversion"], "resources": [{"types": ["adapter", "adapterversion"], "arn": "ResourceARN"}]},
|
||||
"textract:UpdateAdapter": {"action": "textract:UpdateAdapter", "types": ["adapter"], "resources": [{"type": "adapter", "fill": {"AdapterId": "AdapterId"}}]},
|
||||
"timestream-influxdb:CreateDbBackup": {"action": "timestream-influxdb:CreateDbBackup", "types": ["db-backup"], "resources": [{"type": "db-backup", "fill": {}}]},
|
||||
"timestream-influxdb:CreateDbCluster": {"action": "timestream-influxdb:CreateDbCluster", "types": ["db-parameter-group"], "resources": [{"type": "db-parameter-group", "fill": {"DbParameterGroupIdentifier": "dbParameterGroupIdentifier"}}]},
|
||||
"timestream-influxdb:CreateDbInstance": {"action": "timestream-influxdb:CreateDbInstance", "types": ["db-parameter-group"], "resources": [{"type": "db-parameter-group", "fill": {"DbParameterGroupIdentifier": "dbParameterGroupIdentifier"}}]},
|
||||
"timestream-influxdb:CreateDbParameterGroup": {"action": "timestream-influxdb:CreateDbParameterGroup", "types": [], "resources": []},
|
||||
"timestream-influxdb:DeleteDbBackup": {"action": "timestream-influxdb:DeleteDbBackup", "types": ["db-backup"], "resources": [{"type": "db-backup", "fill": {"DbBackupId": "identifier"}}]},
|
||||
"timestream-influxdb:DeleteDbCluster": {"action": "timestream-influxdb:DeleteDbCluster", "types": ["db-cluster"], "resources": [{"type": "db-cluster", "fill": {"DbClusterId": "dbClusterId"}}]},
|
||||
"timestream-influxdb:DeleteDbInstance": {"action": "timestream-influxdb:DeleteDbInstance", "types": ["db-instance"], "resources": [{"type": "db-instance", "fill": {"DbInstanceIdentifier": "identifier"}}]},
|
||||
"timestream-influxdb:GetDbBackup": {"action": "timestream-influxdb:GetDbBackup", "types": ["db-backup"], "resources": [{"type": "db-backup", "fill": {"DbBackupId": "identifier"}}]},
|
||||
"timestream-influxdb:GetDbCluster": {"action": "timestream-influxdb:GetDbCluster", "types": ["db-cluster"], "resources": [{"type": "db-cluster", "fill": {"DbClusterId": "dbClusterId"}}]},
|
||||
"timestream-influxdb:GetDbInstance": {"action": "timestream-influxdb:GetDbInstance", "types": ["db-instance"], "resources": [{"type": "db-instance", "fill": {"DbInstanceIdentifier": "identifier"}}]},
|
||||
"timestream-influxdb:GetDbParameterGroup": {"action": "timestream-influxdb:GetDbParameterGroup", "types": ["db-parameter-group"], "resources": [{"type": "db-parameter-group", "fill": {"DbParameterGroupIdentifier": "identifier"}}]},
|
||||
"timestream-influxdb:ListDbBackups": {"action": "timestream-influxdb:ListDbBackups", "types": [], "resources": []},
|
||||
"timestream-influxdb:ListDbClusters": {"action": "timestream-influxdb:ListDbClusters", "types": [], "resources": []},
|
||||
"timestream-influxdb:ListDbInstances": {"action": "timestream-influxdb:ListDbInstances", "types": [], "resources": []},
|
||||
"timestream-influxdb:ListDbInstancesForCluster": {"action": "timestream-influxdb:ListDbInstancesForCluster", "types": ["db-cluster"], "resources": [{"type": "db-cluster", "fill": {"DbClusterId": "dbClusterId"}}]},
|
||||
"timestream-influxdb:ListDbParameterGroups": {"action": "timestream-influxdb:ListDbParameterGroups", "types": [], "resources": []},
|
||||
"timestream-influxdb:ListTagsForResource": {"action": "timestream-influxdb:ListTagsForResource", "types": ["db-backup", "db-cluster", "db-instance", "db-parameter-group"], "resources": [{"types": ["db-backup", "db-cluster", "db-instance", "db-parameter-group"], "arn": "resourceArn"}]},
|
||||
"timestream-influxdb:RebootDbCluster": {"action": "timestream-influxdb:RebootDbCluster", "types": ["db-cluster", "db-instance"], "resources": [{"type": "db-cluster", "fill": {"DbClusterId": "dbClusterId"}}, {"type": "db-instance", "fill": {"DbInstanceIdentifier": "instanceIds[]"}}]},
|
||||
"timestream-influxdb:RebootDbInstance": {"action": "timestream-influxdb:RebootDbInstance", "types": ["db-instance"], "resources": [{"type": "db-instance", "fill": {"DbInstanceIdentifier": "identifier"}}]},
|
||||
"timestream-influxdb:RestoreFromDbBackup": {"action": "timestream-influxdb:RestoreFromDbBackup", "types": ["db-backup"], "resources": [{"type": "db-backup", "fill": {"DbBackupId": "dbBackupId"}}]},
|
||||
"timestream-influxdb:TagResource": {"action": "timestream-influxdb:TagResource", "types": ["db-backup", "db-cluster", "db-instance", "db-parameter-group"], "resources": [{"types": ["db-backup", "db-cluster", "db-instance", "db-parameter-group"], "arn": "resourceArn"}]},
|
||||
"timestream-influxdb:UntagResource": {"action": "timestream-influxdb:UntagResource", "types": ["db-backup", "db-cluster", "db-instance", "db-parameter-group"], "resources": [{"types": ["db-backup", "db-cluster", "db-instance", "db-parameter-group"], "arn": "resourceArn"}]},
|
||||
"timestream-influxdb:UpdateDbCluster": {"action": "timestream-influxdb:UpdateDbCluster", "types": ["db-cluster", "db-parameter-group"], "resources": [{"type": "db-cluster", "fill": {"DbClusterId": "dbClusterId"}}, {"type": "db-parameter-group", "fill": {"DbParameterGroupIdentifier": "dbParameterGroupIdentifier"}}]},
|
||||
"timestream-influxdb:UpdateDbInstance": {"action": "timestream-influxdb:UpdateDbInstance", "types": ["db-instance", "db-parameter-group"], "resources": [{"type": "db-instance", "fill": {"DbInstanceIdentifier": "identifier"}}, {"type": "db-parameter-group", "fill": {"DbParameterGroupIdentifier": "dbParameterGroupIdentifier"}}]},
|
||||
"translate:CreateParallelData": {"action": "translate:CreateParallelData", "types": ["parallel-data"], "resources": [{"type": "parallel-data", "fill": {"ResourceName": "Name"}}]},
|
||||
"translate:DeleteParallelData": {"action": "translate:DeleteParallelData", "types": ["parallel-data"], "resources": [{"type": "parallel-data", "fill": {"ResourceName": "Name"}}]},
|
||||
"translate:DeleteTerminology": {"action": "translate:DeleteTerminology", "types": ["terminology"], "resources": [{"type": "terminology", "fill": {"ResourceName": "Name"}}]},
|
||||
|
||||
+13
@@ -35,6 +35,19 @@ class AthenaGetWorkGroupIntegrationTest {
|
||||
equalTo("Athena engine version 3"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void getWorkGroupNamingNullReturnsPrimary() {
|
||||
given()
|
||||
.header("X-Amz-Target", "AmazonAthena.GetWorkGroup")
|
||||
.contentType(CONTENT_TYPE)
|
||||
.body("{ \"WorkGroup\": null }")
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body("WorkGroup.Name", equalTo("primary"));
|
||||
}
|
||||
|
||||
@Test
|
||||
void getWorkGroupReturnsCreatedWorkGroupDetails() {
|
||||
given()
|
||||
|
||||
@@ -554,4 +554,28 @@ class AthenaIntegrationTest {
|
||||
.statusCode(200)
|
||||
.body("QueryExecution.Status.State", equalTo("SUCCEEDED"));
|
||||
}
|
||||
|
||||
@Test
|
||||
@Order(17)
|
||||
void startQueryExecutionNamingNullRunsInPrimary() {
|
||||
String id = given()
|
||||
.header("X-Amz-Target", "AmazonAthena.StartQueryExecution")
|
||||
.contentType(CONTENT_TYPE)
|
||||
.body("{ \"QueryString\": \"SELECT 1\", \"WorkGroup\": null }")
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.extract().path("QueryExecutionId");
|
||||
|
||||
given()
|
||||
.header("X-Amz-Target", "AmazonAthena.GetQueryExecution")
|
||||
.contentType(CONTENT_TYPE)
|
||||
.body("{ \"QueryExecutionId\": \"" + id + "\" }")
|
||||
.when()
|
||||
.post("/")
|
||||
.then()
|
||||
.statusCode(200)
|
||||
.body("QueryExecution.WorkGroup", equalTo("primary"));
|
||||
}
|
||||
}
|
||||
+261
-1
@@ -778,6 +778,247 @@ class IamRequestResourceEnforcementIntegrationTest {
|
||||
refusedJson(describeApplication(user, name + "-other"), "kinesisanalytics:DescribeApplication");
|
||||
}
|
||||
|
||||
/**
|
||||
* An Athena query is checked on the workgroup its request names, the primary one when it names none, where Athena
|
||||
* runs and lists it.
|
||||
*/
|
||||
@Test
|
||||
void aQueryNamingNoWorkgroupIsCheckedOnThePrimaryOne() {
|
||||
String primary = "arn:aws:athena:" + REGION + ":" + ACCOUNT + ":workgroup/primary";
|
||||
User user = user("res-athena");
|
||||
user.policy(allowOn("athena:ListQueryExecutions", primary) + "," + allowOn("athena:GetWorkGroup", primary) + ","
|
||||
+ allowOn("athena:StartQueryExecution", "*") + ",{\"Effect\":\"Deny\",\"Action\":"
|
||||
+ "\"athena:StartQueryExecution\",\"Resource\":\"" + primary + "\"}");
|
||||
send(user, "athena", "AmazonAthena.ListQueryExecutions", "1.1", "{}").statusCode(200);
|
||||
send(user, "athena", "AmazonAthena.GetWorkGroup", "1.1", "{}").statusCode(200);
|
||||
send(user, "athena", "AmazonAthena.GetWorkGroup", "1.1", "{\"WorkGroup\":null}").statusCode(200)
|
||||
.body("WorkGroup.Name", equalTo("primary"));
|
||||
refusedJson(send(user, "athena", "AmazonAthena.ListQueryExecutions", "1.1", "{\"WorkGroup\":\"res-other\"}"),
|
||||
"athena:ListQueryExecutions");
|
||||
refusedJson(send(user, "athena", "AmazonAthena.StartQueryExecution", "1.1", "{\"QueryString\":\"SELECT 1\"}"),
|
||||
"athena:StartQueryExecution");
|
||||
}
|
||||
|
||||
/**
|
||||
* An Athena catalog read is checked on the catalog its {@code CatalogName} names and on {@code AwsDataCatalog},
|
||||
* the Glue Data Catalog Floci reads whichever it names, so a grant on another catalog alone does not reach it.
|
||||
*/
|
||||
@Test
|
||||
void aCatalogReadIsCheckedOnTheGlueCatalogFlociReads() {
|
||||
String catalogs = "arn:aws:athena:" + REGION + ":" + ACCOUNT + ":datacatalog/";
|
||||
User both = user("res-catalogs");
|
||||
both.policy(allowOn("athena:ListDatabases", catalogs + "AwsDataCatalog") + ","
|
||||
+ allowOn("athena:ListDatabases", catalogs + "res-allowed"));
|
||||
send(both, "athena", "AmazonAthena.ListDatabases", "1.1", "{\"CatalogName\":\"res-allowed\"}").statusCode(200);
|
||||
refusedJson(send(both, "athena", "AmazonAthena.ListDatabases", "1.1", "{\"CatalogName\":\"res-other\"}"),
|
||||
"athena:ListDatabases");
|
||||
User named = user("res-catalog");
|
||||
named.policy(allowOn("athena:ListDatabases", catalogs + "res-allowed"));
|
||||
refusedJson(send(named, "athena", "AmazonAthena.ListDatabases", "1.1", "{\"CatalogName\":\"res-allowed\"}"),
|
||||
"athena:ListDatabases");
|
||||
}
|
||||
|
||||
/**
|
||||
* A Data Exports export is checked on its ARN, and a create not on the ARN its {@code Export.ExportArn} gives,
|
||||
* which is the new export's own, so a table's there checks nothing.
|
||||
*/
|
||||
@Test
|
||||
void anExportIsCheckedOnItsArnNotOnATableItsExportArnGives() {
|
||||
String name = "res-export-" + suffix();
|
||||
String arn = adminJson("bcm-data-exports", "AWSBillingAndCostManagementDataExports.CreateExport")
|
||||
.body("{\"Export\":" + export(name, null) + "}").post("/").then().statusCode(200).extract()
|
||||
.path("ExportArn");
|
||||
cleanup.register(() -> adminJson("bcm-data-exports", "AWSBillingAndCostManagementDataExports.DeleteExport")
|
||||
.body("{\"ExportArn\":\"" + arn + "\"}").post("/"));
|
||||
String table = "arn:aws:bcm-data-exports:" + REGION + ":" + ACCOUNT + ":table/COST_AND_USAGE_REPORT";
|
||||
|
||||
User user = user("res-export");
|
||||
user.policy(allowOn("bcm-data-exports:GetExport", arn) + "," + allowOn("bcm-data-exports:CreateExport", table));
|
||||
send(user, "bcm-data-exports", "AWSBillingAndCostManagementDataExports.GetExport", "1.1",
|
||||
"{\"ExportArn\":\"" + arn + "\"}").statusCode(200);
|
||||
refusedJson(send(user, "bcm-data-exports", "AWSBillingAndCostManagementDataExports.GetExport", "1.1",
|
||||
"{\"ExportArn\":\"" + arn + "-other\"}"), "bcm-data-exports:GetExport");
|
||||
refusedJson(send(user, "bcm-data-exports", "AWSBillingAndCostManagementDataExports.CreateExport", "1.1",
|
||||
"{\"Export\":" + export(name + "-other", table) + "}"), "bcm-data-exports:CreateExport");
|
||||
}
|
||||
|
||||
/** A Pricing Calculator workload estimate is checked on {@code workload-estimate/<id>}, with no Region. */
|
||||
@Test
|
||||
void aWorkloadEstimateIsCheckedOnTheArnItsIdGives() {
|
||||
String id = adminJson("bcm-pricing-calculator", "AWSBCMPricingCalculator.CreateWorkloadEstimate", "1.0")
|
||||
.body("{\"name\":\"res-estimate\",\"clientToken\":\"" + suffix() + "\"}").post("/").then()
|
||||
.statusCode(200).extract().path("id");
|
||||
cleanup.register(() -> adminJson("bcm-pricing-calculator", "AWSBCMPricingCalculator.DeleteWorkloadEstimate",
|
||||
"1.0").body("{\"identifier\":\"" + id + "\"}").post("/"));
|
||||
|
||||
User user = user("res-estimate");
|
||||
user.policy(allowOn("bcm-pricing-calculator:GetWorkloadEstimate",
|
||||
"arn:aws:bcm-pricing-calculator::" + ACCOUNT + ":workload-estimate/" + id));
|
||||
send(user, "bcm-pricing-calculator", "AWSBCMPricingCalculator.GetWorkloadEstimate", "1.0",
|
||||
"{\"identifier\":\"" + id + "\"}").statusCode(200);
|
||||
refusedJson(send(user, "bcm-pricing-calculator", "AWSBCMPricingCalculator.GetWorkloadEstimate", "1.0",
|
||||
"{\"identifier\":\"" + UUID.randomUUID() + "\"}"), "bcm-pricing-calculator:GetWorkloadEstimate");
|
||||
}
|
||||
|
||||
/**
|
||||
* A Cost Explorer anomaly monitor or subscription is checked on its ARN, which carries no Region, and a list of
|
||||
* them on each ARN its list gives.
|
||||
*/
|
||||
@Test
|
||||
void anAnomalyMonitorOrSubscriptionIsCheckedOnItsArn() {
|
||||
String arn = adminJson("ce", "AWSInsightsIndexService.CreateAnomalyMonitor").body("{\"AnomalyMonitor\":"
|
||||
+ "{\"MonitorName\":\"res-monitor\",\"MonitorType\":\"DIMENSIONAL\",\"MonitorDimension\":\"SERVICE\"}}")
|
||||
.post("/").then().statusCode(200).extract().path("MonitorArn");
|
||||
cleanup.register(() -> adminJson("ce", "AWSInsightsIndexService.DeleteAnomalyMonitor")
|
||||
.body("{\"MonitorArn\":\"" + arn + "\"}").post("/"));
|
||||
assertTrue(arn.startsWith("arn:aws:ce::" + ACCOUNT + ":anomalymonitor/"), arn);
|
||||
String subscription = adminJson("ce", "AWSInsightsIndexService.CreateAnomalySubscription")
|
||||
.body("{\"AnomalySubscription\":{\"SubscriptionName\":\"res-subscription\",\"Frequency\":\"DAILY\","
|
||||
+ "\"MonitorArnList\":[\"" + arn + "\"],\"Subscribers\":[{\"Address\":\"alerts@example.com\","
|
||||
+ "\"Type\":\"EMAIL\"}],\"ThresholdExpression\":{\"Dimensions\":{\"Key\":"
|
||||
+ "\"ANOMALY_TOTAL_IMPACT_ABSOLUTE\",\"Values\":[\"100\"],\"MatchOptions\":"
|
||||
+ "[\"GREATER_THAN_OR_EQUAL\"]}}}}")
|
||||
.post("/").then().statusCode(200).extract().path("SubscriptionArn");
|
||||
cleanup.register(() -> adminJson("ce", "AWSInsightsIndexService.DeleteAnomalySubscription")
|
||||
.body("{\"SubscriptionArn\":\"" + subscription + "\"}").post("/"));
|
||||
String otherMonitor = arn.substring(0, arn.lastIndexOf('/') + 1) + UUID.randomUUID();
|
||||
String otherSubscription = subscription.substring(0, subscription.lastIndexOf('/') + 1) + UUID.randomUUID();
|
||||
|
||||
User user = user("res-monitor");
|
||||
user.policy(allowOn("ce:UpdateAnomalyMonitor", arn) + "," + allowOn("ce:GetAnomalyMonitors", arn) + ","
|
||||
+ allowOn("ce:GetAnomalySubscriptions", subscription));
|
||||
send(user, "ce", "AWSInsightsIndexService.UpdateAnomalyMonitor", "1.1", "{\"MonitorArn\":\"" + arn
|
||||
+ "\",\"MonitorName\":\"res-renamed\"}").statusCode(200);
|
||||
refusedJson(send(user, "ce", "AWSInsightsIndexService.UpdateAnomalyMonitor", "1.1", "{\"MonitorArn\":\""
|
||||
+ otherMonitor + "\",\"MonitorName\":\"res-renamed\"}"), "ce:UpdateAnomalyMonitor");
|
||||
send(user, "ce", "AWSInsightsIndexService.GetAnomalyMonitors", "1.1", "{\"MonitorArnList\":[\"" + arn
|
||||
+ "\"]}").statusCode(200);
|
||||
refusedJson(send(user, "ce", "AWSInsightsIndexService.GetAnomalyMonitors", "1.1", "{\"MonitorArnList\":[\""
|
||||
+ arn + "\",\"" + otherMonitor + "\"]}"), "ce:GetAnomalyMonitors");
|
||||
send(user, "ce", "AWSInsightsIndexService.GetAnomalySubscriptions", "1.1", "{\"SubscriptionArnList\":[\""
|
||||
+ subscription + "\"]}").statusCode(200);
|
||||
refusedJson(send(user, "ce", "AWSInsightsIndexService.GetAnomalySubscriptions", "1.1",
|
||||
"{\"SubscriptionArnList\":[\"" + otherSubscription + "\"]}"), "ce:GetAnomalySubscriptions");
|
||||
}
|
||||
|
||||
/**
|
||||
* A Cost Explorer cost read is checked on {@code *}, not on the billing view its {@code BillingViewArn} gives:
|
||||
* Floci serves no billing views and answers the account's costs whichever it names.
|
||||
*/
|
||||
@Test
|
||||
void aBillingViewGrantDoesNotReachTheAccountsCosts() {
|
||||
String view = "arn:aws:billing::" + ACCOUNT + ":billingview/res-view";
|
||||
User user = user("res-view");
|
||||
user.policy(allowOn("ce:GetCostAndUsage", view));
|
||||
refusedJson(send(user, "ce", "AWSInsightsIndexService.GetCostAndUsage", "1.1", "{\"TimePeriod\":{\"Start\":"
|
||||
+ "\"2026-01-01\",\"End\":\"2026-02-01\"},\"Granularity\":\"MONTHLY\",\"Metrics\":[\"UnblendedCost\"],"
|
||||
+ "\"BillingViewArn\":\"" + view + "\"}"), "ce:GetCostAndUsage");
|
||||
}
|
||||
|
||||
/**
|
||||
* A trail is checked on {@code trail/<name>}: its status on the one its bare {@code Name} names, by its name or its
|
||||
* ARN, and its tags on the one the ARN in its {@code ResourceId} gives.
|
||||
*/
|
||||
@Test
|
||||
void aTrailIsCheckedOnTheArnItsNameGives() {
|
||||
String name = "res-trail-" + suffix();
|
||||
String other = name + "-other";
|
||||
for (String trail : List.of(name, other)) {
|
||||
adminJson("cloudtrail", "CloudTrail_20131101.CreateTrail")
|
||||
.body("{\"Name\":\"" + trail + "\",\"S3BucketName\":\"res-trail-logs\"}").post("/").then()
|
||||
.statusCode(200);
|
||||
cleanup.register(() -> adminJson("cloudtrail", "CloudTrail_20131101.DeleteTrail")
|
||||
.body("{\"Name\":\"" + trail + "\"}").post("/"));
|
||||
}
|
||||
String arn = "arn:aws:cloudtrail:" + REGION + ":" + ACCOUNT + ":trail/" + name;
|
||||
|
||||
User user = user("res-trail");
|
||||
user.policy(allowOn("cloudtrail:GetTrailStatus", arn) + "," + allowOn("cloudtrail:AddTags", arn));
|
||||
send(user, "cloudtrail", "CloudTrail_20131101.GetTrailStatus", "1.1", "{\"Name\":\"" + name + "\"}")
|
||||
.statusCode(200);
|
||||
send(user, "cloudtrail", "CloudTrail_20131101.GetTrailStatus", "1.1", "{\"Name\":\"" + arn + "\"}")
|
||||
.statusCode(200);
|
||||
refusedJson(send(user, "cloudtrail", "CloudTrail_20131101.GetTrailStatus", "1.1",
|
||||
"{\"Name\":\"" + other + "\"}"), "cloudtrail:GetTrailStatus");
|
||||
String tags = "\",\"TagsList\":[{\"Key\":\"a\",\"Value\":\"b\"}]}";
|
||||
send(user, "cloudtrail", "CloudTrail_20131101.AddTags", "1.1", "{\"ResourceId\":\"" + arn + tags)
|
||||
.statusCode(200);
|
||||
refusedJson(send(user, "cloudtrail", "CloudTrail_20131101.AddTags", "1.1",
|
||||
"{\"ResourceId\":\"" + arn + "-other" + tags), "cloudtrail:AddTags");
|
||||
}
|
||||
|
||||
/** A CloudTrail dashboard is checked on the one its {@code DashboardId}, a name or an ARN, names. */
|
||||
@Test
|
||||
void aDashboardIsCheckedOnTheOneItsIdNames() {
|
||||
String dashboard = "arn:aws:cloudtrail:" + REGION + ":" + ACCOUNT + ":dashboard/res-denied";
|
||||
User user = user("res-dashboard");
|
||||
user.policy(allowOn("cloudtrail:GetDashboard", "*") + ",{\"Effect\":\"Deny\",\"Action\":"
|
||||
+ "\"cloudtrail:GetDashboard\",\"Resource\":\"" + dashboard + "\"}");
|
||||
refusedJson(send(user, "cloudtrail", "CloudTrail_20131101.GetDashboard", "1.1",
|
||||
"{\"DashboardId\":\"res-denied\"}"), "cloudtrail:GetDashboard");
|
||||
refusedJson(send(user, "cloudtrail", "CloudTrail_20131101.GetDashboard", "1.1",
|
||||
"{\"DashboardId\":\"" + dashboard + "\"}"), "cloudtrail:GetDashboard");
|
||||
send(user, "cloudtrail", "CloudTrail_20131101.GetDashboard", "1.1", "{\"DashboardId\":\"res-other\"}")
|
||||
.body(not(containsString("not authorized")));
|
||||
}
|
||||
|
||||
/**
|
||||
* A Global Accelerator accelerator is checked on its ARN, which carries no Region, and listing its custom routing
|
||||
* port mappings on it alone, not on the endpoint group whose ARN extends it.
|
||||
*/
|
||||
@Test
|
||||
void anAcceleratorIsCheckedOnItsArnNotOnAnEndpointGroupOfIt() {
|
||||
String arn = adminJson("globalaccelerator", "GlobalAccelerator_V20180706.CreateAccelerator")
|
||||
.body("{\"Name\":\"res-accelerator\",\"IdempotencyToken\":\"" + suffix() + "\",\"Enabled\":false}")
|
||||
.post("/").then().statusCode(200).extract().path("Accelerator.AcceleratorArn");
|
||||
cleanup.register(() -> adminJson("globalaccelerator", "GlobalAccelerator_V20180706.DeleteAccelerator")
|
||||
.body("{\"AcceleratorArn\":\"" + arn + "\"}").post("/"));
|
||||
assertTrue(arn.startsWith("arn:aws:globalaccelerator::" + ACCOUNT + ":accelerator/"), arn);
|
||||
|
||||
User user = user("res-accelerator");
|
||||
user.policy(allowOn("globalaccelerator:DescribeAccelerator", arn) + ","
|
||||
+ allowOn("globalaccelerator:ListCustomRoutingPortMappings", arn));
|
||||
send(user, "globalaccelerator", "GlobalAccelerator_V20180706.DescribeAccelerator", "1.1",
|
||||
"{\"AcceleratorArn\":\"" + arn + "\"}").statusCode(200);
|
||||
refusedJson(send(user, "globalaccelerator", "GlobalAccelerator_V20180706.DescribeAccelerator", "1.1",
|
||||
"{\"AcceleratorArn\":\"" + arn + "-other\"}"), "globalaccelerator:DescribeAccelerator");
|
||||
send(user, "globalaccelerator", "GlobalAccelerator_V20180706.ListCustomRoutingPortMappings", "1.1",
|
||||
"{\"AcceleratorArn\":\"" + arn + "\",\"EndpointGroupArn\":\"" + arn
|
||||
+ "/listener/0123abcd/endpoint-group/0123456789ab\"}")
|
||||
.body(not(containsString("not authorized")));
|
||||
}
|
||||
|
||||
/** A Timestream for InfluxDB parameter group is checked on {@code db-parameter-group/<id>}, the id it was given. */
|
||||
@Test
|
||||
void aParameterGroupIsCheckedOnTheArnItsIdGives() {
|
||||
String id = adminJson("timestream-influxdb", "AmazonTimestreamInfluxDB.CreateDbParameterGroup", "1.0")
|
||||
.body("{\"name\":\"res-group-" + suffix() + "\"}").post("/").then().statusCode(200).extract()
|
||||
.path("id");
|
||||
String arn = "arn:aws:timestream-influxdb:" + REGION + ":" + ACCOUNT + ":db-parameter-group/" + id;
|
||||
|
||||
User user = user("res-group");
|
||||
user.policy(allowOn("timestream-influxdb:GetDbParameterGroup", arn));
|
||||
send(user, "timestream-influxdb", "AmazonTimestreamInfluxDB.GetDbParameterGroup", "1.0",
|
||||
"{\"identifier\":\"" + id + "\"}").statusCode(200).body("arn", equalTo(arn));
|
||||
refusedJson(send(user, "timestream-influxdb", "AmazonTimestreamInfluxDB.GetDbParameterGroup", "1.0",
|
||||
"{\"identifier\":\"res" + suffix() + "\"}"), "timestream-influxdb:GetDbParameterGroup");
|
||||
}
|
||||
|
||||
/** A Timestream for InfluxDB cluster reboot is checked on each member instance its {@code instanceIds} names. */
|
||||
@Test
|
||||
void aClusterRebootIsCheckedOnTheInstancesItNames() {
|
||||
User user = user("res-reboot");
|
||||
user.policy(allowOn("timestream-influxdb:RebootDbCluster", "*") + ",{\"Effect\":\"Deny\",\"Action\":"
|
||||
+ "\"timestream-influxdb:RebootDbCluster\",\"Resource\":\"arn:aws:timestream-influxdb:" + REGION + ":"
|
||||
+ ACCOUNT + ":db-instance/resdenied\"}");
|
||||
refusedJson(send(user, "timestream-influxdb", "AmazonTimestreamInfluxDB.RebootDbCluster", "1.0",
|
||||
"{\"dbClusterId\":\"rescluster\",\"instanceIds\":[\"resallowed\",\"resdenied\"]}"),
|
||||
"timestream-influxdb:RebootDbCluster");
|
||||
send(user, "timestream-influxdb", "AmazonTimestreamInfluxDB.RebootDbCluster", "1.0",
|
||||
"{\"dbClusterId\":\"rescluster\",\"instanceIds\":[\"resallowed\"]}")
|
||||
.body(containsString("ResourceNotFoundException"));
|
||||
}
|
||||
|
||||
/**
|
||||
* A budget is checked on {@code budget/<name>}, with no Region, the ARN Budgets tags it under, and an update on the
|
||||
* budget its {@code NewBudget} names, not on one its billing view ARN gives.
|
||||
@@ -907,8 +1148,27 @@ class IamRequestResourceEnforcementIntegrationTest {
|
||||
.body("{\"ApplicationName\":\"" + name + "\"}").post("/").then();
|
||||
}
|
||||
|
||||
/** The user's JSON-protocol request to the target, {@code <prefix>.<operation>}, with the body. */
|
||||
private static ValidatableResponse send(User user, String service, String target, String version, String body) {
|
||||
return user.json(service, target, version).body(body).post("/").then();
|
||||
}
|
||||
|
||||
/** A Data Exports export of the name reading the cost and usage table, with an export ARN when one is given. */
|
||||
private static String export(String name, String exportArn) {
|
||||
return "{\"Name\":\"" + name + "\"," + (exportArn == null ? "" : "\"ExportArn\":\"" + exportArn + "\",")
|
||||
+ "\"DataQuery\":{\"QueryStatement\":\"SELECT * FROM COST_AND_USAGE_REPORT\"},"
|
||||
+ "\"DestinationConfigurations\":{\"S3Destination\":{\"S3Bucket\":\"my-bucket\",\"S3Prefix\":\"out/\","
|
||||
+ "\"S3Region\":\"" + REGION + "\",\"S3OutputConfigurations\":{\"Format\":\"PARQUET\",\"Compression\":"
|
||||
+ "\"PARQUET\",\"OutputType\":\"CUSTOM\",\"Overwrite\":\"OVERWRITE_REPORT\"}}},"
|
||||
+ "\"RefreshCadence\":{\"Frequency\":\"SYNCHRONOUS\"}}";
|
||||
}
|
||||
|
||||
private static RequestSpecification adminJson(String service, String target) {
|
||||
return admin(service).header("X-Amz-Target", target).contentType("application/x-amz-json-1.1");
|
||||
return adminJson(service, target, "1.1");
|
||||
}
|
||||
|
||||
private static RequestSpecification adminJson(String service, String target, String version) {
|
||||
return admin(service).header("X-Amz-Target", target).contentType("application/x-amz-json-" + version);
|
||||
}
|
||||
|
||||
private static ValidatableResponse describeDeliveryStream(User user, String name) {
|
||||
|
||||
@@ -119,9 +119,10 @@ 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 = ("acm", "budgets", "codebuild", "codepipeline", "cognito-identity", "cognito-idp", "cur", "ecr",
|
||||
"elasticloadbalancing", "events", "firehose", "kinesisanalytics", "servicediscovery", "servicequotas",
|
||||
"states", "textract", "translate")
|
||||
NAMESPACES = ("acm", "athena", "bcm-data-exports", "bcm-pricing-calculator", "budgets", "ce", "cloudtrail",
|
||||
"codebuild", "codepipeline", "cognito-identity", "cognito-idp", "cur", "ecr", "elasticloadbalancing",
|
||||
"events", "firehose", "globalaccelerator", "kinesisanalytics", "servicediscovery", "servicequotas",
|
||||
"states", "textract", "timestream-influxdb", "translate")
|
||||
|
||||
# SDK clients the reference lists for a namespace's operations whose requests Floci does not serve, and why: their
|
||||
# members are not read.
|
||||
@@ -155,28 +156,27 @@ NOT_COVERED: dict[str, str] = {
|
||||
"would fill that id",
|
||||
"appsync": _REST,
|
||||
"aps": _REST,
|
||||
"athena": _LATER,
|
||||
"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": _LATER,
|
||||
"backup": _REST,
|
||||
"batch": _REST,
|
||||
"bcm-data-exports": _LATER,
|
||||
"bcm-pricing-calculator": _LATER,
|
||||
"bedrock": _LATER,
|
||||
"bedrock-agentcore": _REST,
|
||||
"ce": _LATER,
|
||||
"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",
|
||||
"cloudtrail": _LATER,
|
||||
"cloudwatch": _LATER,
|
||||
"codeartifact": _REST,
|
||||
"codedeploy": _LATER,
|
||||
"codeguru-reviewer": _REST,
|
||||
"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",
|
||||
"comprehend": _LATER,
|
||||
"config": _LATER,
|
||||
"connect": _REST,
|
||||
@@ -196,7 +196,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"es": _REST,
|
||||
"execute-api": _REST,
|
||||
"fis": _REST,
|
||||
"globalaccelerator": _LATER,
|
||||
"glue": _LATER,
|
||||
"guardduty": _REST,
|
||||
"identitystore": _LATER,
|
||||
@@ -214,7 +213,9 @@ NOT_COVERED: dict[str, str] = {
|
||||
"rds": _LATER,
|
||||
"rds-data": _REST,
|
||||
"redshift": _LATER,
|
||||
"redshift-data": _LATER,
|
||||
"redshift-data": "not read yet: a serverless workgroup's ARN ends in an id the service mints, `workgroup/<id>`, "
|
||||
"while its requests name the workgroup by WorkgroupName, a name or an ARN, so its resource is the "
|
||||
"stored ARN that name finds, which RequestResources has no lookup for yet",
|
||||
"redshift-serverless": _LATER,
|
||||
"rekognition": _LATER,
|
||||
"resource-explorer-2": _REST,
|
||||
@@ -225,7 +226,11 @@ NOT_COVERED: dict[str, str] = {
|
||||
"s3vectors": _REST,
|
||||
"sagemaker": _LATER,
|
||||
"securityhub": _REST,
|
||||
"servicecatalog": _LATER,
|
||||
"servicecatalog": "not read yet: CreatePortfolioShare, UpdatePortfolioShare and DeletePortfolioShare give in "
|
||||
"AccountId the account a portfolio is shared with, which the rule reads as the portfolio's; a "
|
||||
"portfolio or product imported from another account keeps its owner's account in its ARN while "
|
||||
"requests name it by its id alone; and AppRegistry's applications and attribute groups are "
|
||||
"named in the path",
|
||||
"ses": _LATER,
|
||||
"signin": _REST,
|
||||
"sso": _LATER,
|
||||
@@ -233,7 +238,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"swf": "not read yet: the Service Reference gives a domain's ARN no Region, `swf::<account>:/domain/<name>`, "
|
||||
"while the SWF Developer Guide gives it as arn:aws:swf:Region:AccountID:/domain/DomainName, as Floci mints "
|
||||
"it; reading it needs that format corrected",
|
||||
"timestream-influxdb": _LATER,
|
||||
"transcribe": _LATER,
|
||||
"transfer": _LATER,
|
||||
"verifiedpermissions": "not read yet: a policyStoreId may name its store by an alias, `policy-store-alias/<name>`, "
|
||||
@@ -326,6 +330,61 @@ CORRECTIONS: dict[str, tuple[list[dict], str]] = {
|
||||
"Floci takes Step Functions Local's <stateMachineArn>#<test case> and runs the machine "
|
||||
"the part before the # names, so that part is the one checked")
|
||||
for operation in ("StartExecution", "StartSyncExecution")},
|
||||
**{f"athena:{operation}": ([{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"},
|
||||
"absent": {"WorkGroup": "primary"}}],
|
||||
"a request naming no workgroup acts in the primary one (ListQueryExecutions: 'If a "
|
||||
"workgroup is not specified, returns a list of query execution IDs for the primary "
|
||||
"workgroup', ListNamedQueries alike; the user guide has users without their own "
|
||||
"workgroup 'continue running queries in the primary workgroup'), and Floci's "
|
||||
"GetWorkGroup answers the primary one for a request naming none")
|
||||
for operation in ("GetWorkGroup", "ListNamedQueries", "ListQueryExecutions", "StartQueryExecution")},
|
||||
**{f"athena:{operation}": ([{"type": "datacatalog", "fill": {"DataCatalogName": "CatalogName"}},
|
||||
{"type": "datacatalog", "fill": {}, "fixed": {"DataCatalogName": "AwsDataCatalog"}}],
|
||||
"Floci's handler reads the account's Glue Data Catalog, AwsDataCatalog, whichever "
|
||||
"catalog CatalogName names, so that one is checked as well as the one named")
|
||||
for operation in ("GetTableMetadata", "ListDatabases", "ListTableMetadata")},
|
||||
**{f"ce:{operation}": ([], "Floci serves no billing views: it answers the account's costs whichever view "
|
||||
"BillingViewArn names, so the request is checked on `*`, as one naming no view, and a "
|
||||
"grant scoped to a view does not reach them")
|
||||
for operation in ("GetCostAndUsage", "GetCostAndUsageComparisons", "GetCostAndUsageWithResources",
|
||||
"GetCostCategories", "GetCostComparisonDrivers", "GetCostForecast", "GetDimensionValues",
|
||||
"GetTags", "GetUsageForecast")},
|
||||
"bcm-data-exports:CreateExport": ([], "its Export.ExportArn is the ARN 'for this export', the one the request "
|
||||
"creates, never a billing view's or a table's, although its pattern takes "
|
||||
"any bcm-data-exports ARN, a table's included; the request names its table "
|
||||
"in its query statement and its table configurations' keys, which the rule "
|
||||
"does not read"),
|
||||
**{f"cloudtrail:{operation}": ([{"type": "trail", "fill": {"TrailName": "Name"}}],
|
||||
"the request names the trail by a bare Name, 'the name or the CloudTrail ARN of "
|
||||
"the trail', which the rule reads only for an operation named after the type")
|
||||
for operation in ("GetTrailStatus", "StartLogging", "StopLogging")},
|
||||
**{f"cloudtrail:{operation}": ([{"types": ["channel", "dashboard", "eventdatastore", "trail"], "arn": member}],
|
||||
f"the request names the resource by its ARN in {member} ('the ARN of the trail, "
|
||||
"event data store, dashboard, or channel'), whose name does not end in Arn")
|
||||
for operation, member in (("AddTags", "ResourceId"), ("ListTags", "ResourceIdList[]"),
|
||||
("RemoveTags", "ResourceId"))},
|
||||
**{f"cloudtrail:{operation}": ([{"type": "dashboard", "fill": {"DashboardName": "DashboardId"}}],
|
||||
"the request names the dashboard by DashboardId, 'The name or ARN for the "
|
||||
"dashboard', which the rule does not take for a name")
|
||||
for operation in ("DeleteDashboard", "GetDashboard", "StartDashboardRefresh", "UpdateDashboard")},
|
||||
**{f"ce:{operation}": ([{"types": [kind], "arn": f"{member}[]"}],
|
||||
f"the request names the {noun} by the ARNs in {member} ('A list of cost anomaly {noun} "
|
||||
"ARNs'), whose name does not end in Arn" + extra)
|
||||
for operation, member, kind, noun, extra in (
|
||||
("GetAnomalyMonitors", "MonitorArnList", "anomalymonitor", "monitor", ""),
|
||||
("GetAnomalySubscriptions", "SubscriptionArnList", "anomalysubscription", "subscription",
|
||||
"; its MonitorArn narrows them to a monitor's, an anomaly monitor's ARN, never a subscription's"))},
|
||||
"timestream-influxdb:RebootDbCluster": ([
|
||||
{"type": "db-cluster", "fill": {"DbClusterId": "dbClusterId"}},
|
||||
{"type": "db-instance", "fill": {"DbInstanceIdentifier": "instanceIds[]"}},
|
||||
], "the request names the cluster's instances to reboot by instanceIds ('A list of service-generated unique DB "
|
||||
"Instance Ids belonging to the DB Cluster to reboot'), ids the rule does not take for an identifier"),
|
||||
"globalaccelerator:ListCustomRoutingPortMappings": ([{"types": ["accelerator"], "arn": "AcceleratorArn"}],
|
||||
"its EndpointGroupArn narrows the mappings to an endpoint "
|
||||
"group of the accelerator, whose ARN extends the "
|
||||
"accelerator's (accelerator/<id>/listener/<id>/"
|
||||
"endpoint-group/<id>) and so matches the accelerator's "
|
||||
"format, which the action acts on alone"),
|
||||
}
|
||||
|
||||
# Resource types whose ARN a request may give with a qualifier, one more `:<name>` past its format, which their
|
||||
|
||||
Reference in new issue
Block a user