mirror of
https://github.com/floci-io/floci.git
synced 2026-11-23 06:00:46 -05:00
fix(iam): check five more services on the resources their requests name (#6927)
Under IAM enforcement, Budgets, Cost and Usage Reports, Service Quotas, Textract and Translate requests were checked on `*`, so a grant scoped to a budget, a report definition, a quota, an adapter or a terminology was refused, and a deny scoped to one never applied. The generated table of the resources requests name now reads them, 103 operations, from AWS's Service Reference and botocore as it reads the first three batches: their namespaces move from the generator's NOT_COVERED to NAMESPACES and the table is regenerated, nothing in it edited by hand; 717 operations over 17 namespaces. Each resource type's ARN format is the one Floci mints or reads: `budget/<name>` with no Region (Budgets' tag handler parses it), `definition/<name>`, and `<service code>/<quota code>` (Service Quotas' QuotaArn). Three corrections, each with its reason: CreateBudget and UpdateBudget name their budget by Budget.BudgetName and NewBudget.BudgetName, and PutReportDefinition its report by ReportDefinition.ReportName, inside a structure the rule does not read. Without them UpdateBudget and PutReportDefinition were checked only on their BillingViewArn, a billing view's ARN by botocore's pattern, so a caller allowed on one budget or report could give its ARN there and name another. Verified Permissions minted a policy store's ARN with a Region, where AWS gives none: its CreatePolicyStore example answers arn:aws:verifiedpermissions::123456789012:policy-store/PSEXAMPLEabcdefg111111, the Service Reference's format alike. It now mints it without one, in the Region's partition. Not read yet, each with its reason in NOT_COVERED: Verified Permissions, whose policyStoreId may name a store by its alias, which AWS authorizes as the action on the store the alias points to and GetPolicyStoreAlias on the alias, and whose aliasName carries the `policy-store-alias/` its format already gives; Auto Scaling, whose group and launch configuration ARNs Floci mints without AWS's id (`autoScalingGroup:<name>` for `autoScalingGroup:<id>:autoScalingGroupName/<name>`), which ECS reads back; SWF, whose domain format the Service Reference gives no Region while the SWF Developer Guide gives one; and CloudHSM, whose formats end in names while its requests give ids.
This commit is contained in:
1 parent
34269655ba
commit
078931597e
8 files changed
+241
-21
No files matched your search
@@ -1527,8 +1527,9 @@ A request is checked against the resources it names. Floci builds their ARNs its
|
||||
SQS, SNS, DynamoDB, Kinesis, SSM, KMS, IAM, Resource Groups, EventBridge Scheduler, EventBridge
|
||||
Pipes, Aurora DSQL, EKS, 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 and Amazon Managed Service for Apache Flink (Kinesis Data Analytics v2)
|
||||
they come from a table generated from AWS's Service
|
||||
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
|
||||
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
|
||||
@@ -1560,7 +1561,10 @@ being `Custom`, which the request does not give. Cloud Map's `CreateService` is
|
||||
namespace its `NamespaceId` names or, when it gives none or a JSON null, the one its
|
||||
`DnsConfig.NamespaceId` names, as Cloud Map reads them, and on the service it creates. A CodeBuild build is checked on its
|
||||
project, which its id names before its `:` (`<project>:<id>`), as CodeBuild authorizes
|
||||
`BatchGetBuilds`, `StopBuild`, `RetryBuild` and `BatchDeleteBuilds`. An EventBridge rule is on the event bus
|
||||
`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` on the report its `ReportDefinition.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
|
||||
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
|
||||
|
||||
@@ -125,6 +125,10 @@ resolved AWS Region and are wrapped by the normal account-aware storage layer, p
|
||||
account and Region isolation. `/_floci/reset` clears policy stores, policies, templates,
|
||||
aliases, identity sources, and idempotency records with other resettable service state.
|
||||
|
||||
A policy store's ARN carries no Region, `arn:aws:verifiedpermissions::<account>:policy-store/<id>`,
|
||||
as AWS gives it; a policy store alias's does,
|
||||
`arn:aws:verifiedpermissions:<region>:<account>:policy-store-alias/<name>`.
|
||||
|
||||
## Limitations
|
||||
|
||||
- Token verification currently supports RS256 JWT signatures. Other OIDC signing algorithms are
|
||||
|
||||
+7
-1
@@ -1061,8 +1061,14 @@ public class VerifiedPermissionsService implements Resettable {
|
||||
.forEach(a -> aliases.delete(aliasKey(region, a.aliasName())));
|
||||
}
|
||||
|
||||
/**
|
||||
* A policy store's ARN carries no Region, as AWS gives it
|
||||
* ({@code arn:aws:verifiedpermissions::123456789012:policy-store/PSEXAMPLEabcdefg111111}), in the partition of the
|
||||
* Region the store is in.
|
||||
*/
|
||||
private String storeArn(String region, String id) {
|
||||
return AwsArnUtils.Arn.of("verifiedpermissions", region, regionResolver.getAccountId(), "policy-store/" + id).toString();
|
||||
return AwsArnUtils.Arn.global(regionResolver.partitionForRegion(region), "verifiedpermissions",
|
||||
regionResolver.getAccountId(), "policy-store/" + id).toString();
|
||||
}
|
||||
|
||||
private String aliasArn(String region, String aliasName) {
|
||||
|
||||
@@ -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"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "events": ["events"], "firehose": ["firehose"], "kinesisanalytics": ["kinesisanalyticsv2"], "servicediscovery": ["servicediscovery"], "states": ["stepfunctions"]},
|
||||
"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"]},
|
||||
"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": ["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", "apigateway": "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: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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", "budgets": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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", "cur": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "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 RequestResouLine 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", "apigateway": "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 onLine 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}"}, "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}"}, "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}:target/reboot-instance", "replay": "arn:${Partition}:events:${Region}:${Account}:replay/${ReplayName}", "rule-on-custom-event-bus": "arn:${Partition}:events:${Region}:${Account}:rule/${EventBusName}/${RuleName}", "rule-on-default-event-bus": "arn:${Partition}:events:${Line 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}"}, "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
|
||||
"unqualified": {"states": ["statemachine"]},
|
||||
"mintedIds": {"events": ["api-destination", "connection"]},
|
||||
"operations": {
|
||||
@@ -49,6 +49,32 @@
|
||||
"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"}]},
|
||||
"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"}]},
|
||||
"budgets:CreateSubscriber": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DeleteBudget": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DeleteBudgetAction": {"action": "budgets:DeleteBudgetAction", "types": ["budgetAction"], "resources": [{"type": "budgetAction", "fill": {"ActionId": "ActionId", "BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DeleteNotification": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DeleteSubscriber": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DescribeBudget": {"action": "budgets:ViewBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DescribeBudgetAction": {"action": "budgets:DescribeBudgetAction", "types": ["budgetAction"], "resources": [{"type": "budgetAction", "fill": {"ActionId": "ActionId", "BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DescribeBudgetActionHistories": {"action": "budgets:DescribeBudgetActionHistories", "types": ["budgetAction"], "resources": [{"type": "budgetAction", "fill": {"ActionId": "ActionId", "BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DescribeBudgetActionsForAccount": {"action": "budgets:DescribeBudgetActionsForAccount", "types": [], "resources": []},
|
||||
"budgets:DescribeBudgetActionsForBudget": {"action": "budgets:DescribeBudgetActionsForBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DescribeBudgetNotificationsForAccount": {"action": "budgets:ViewBudget", "types": ["budget"], "resources": []},
|
||||
"budgets:DescribeBudgetPerformanceHistory": {"action": "budgets:ViewBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DescribeBudgets": {"action": "budgets:ViewBudget", "types": ["budget"], "resources": []},
|
||||
"budgets:DescribeNotificationsForBudget": {"action": "budgets:ViewBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:DescribeSubscribersForNotification": {"action": "budgets:ViewBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:ExecuteBudgetAction": {"action": "budgets:ExecuteBudgetAction", "types": ["budgetAction"], "resources": [{"type": "budgetAction", "fill": {"ActionId": "ActionId", "BudgetName": "BudgetName"}, "account": "AccountId"}]},
|
||||
"budgets:ListTagsForResource": {"action": "budgets:ListTagsForResource", "types": ["budget", "budgetAction"], "resources": [{"types": ["budget", "budgetAction"], "arn": "ResourceARN"}]},
|
||||
"budgets:TagResource": {"action": "budgets:TagResource", "types": ["budget", "budgetAction"], "resources": [{"types": ["budget", "budgetAction"], "arn": "ResourceARN"}]},
|
||||
"budgets:UntagResource": {"action": "budgets:UntagResource", "types": ["budget", "budgetAction"], "resources": [{"types": ["budget", "budgetAction"], "arn": "ResourceARN"}]},
|
||||
"budgets:UpdateBudget": {"action": "budgets:ModifyBudget", "types": ["budget"], "resources": [{"type": "budget", "fill": {"BudgetName": "NewBudget.BudgetName"}, "account": "AccountId"}]},
|
||||
"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"}]},
|
||||
"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": ":"}]},
|
||||
@@ -307,6 +333,13 @@
|
||||
"cognito-idp:UpdateUserPoolReplica": {"action": "cognito-idp:UpdateUserPoolReplica", "types": ["userpool"], "resources": [{"type": "userpool", "fill": {"UserPoolId": "UserPoolId"}}]},
|
||||
"cognito-idp:VerifySoftwareToken": {"action": "cognito-idp:VerifySoftwareToken", "types": [], "resources": []},
|
||||
"cognito-idp:VerifyUserAttribute": {"action": "cognito-idp:VerifyUserAttribute", "types": [], "resources": []},
|
||||
"cur:DeleteReportDefinition": {"action": "cur:DeleteReportDefinition", "types": ["cur"], "resources": [{"type": "cur", "fill": {"ReportName": "ReportName"}}]},
|
||||
"cur:DescribeReportDefinitions": {"action": "cur:DescribeReportDefinitions", "types": [], "resources": []},
|
||||
"cur:ListTagsForResource": {"action": "cur:ListTagsForResource", "types": ["cur"], "resources": [{"type": "cur", "fill": {"ReportName": "ReportName"}}]},
|
||||
"cur:ModifyReportDefinition": {"action": "cur:ModifyReportDefinition", "types": ["cur"], "resources": [{"types": ["cur"], "arn": "ReportDefinition.BillingViewArn"}, {"type": "cur", "fill": {"ReportName": "ReportName"}}]},
|
||||
"cur:PutReportDefinition": {"action": "cur:PutReportDefinition", "types": ["cur"], "resources": [{"type": "cur", "fill": {"ReportName": "ReportDefinition.ReportName"}}]},
|
||||
"cur:TagResource": {"action": "cur:TagResource", "types": ["cur"], "resources": [{"type": "cur", "fill": {"ReportName": "ReportName"}}]},
|
||||
"cur:UntagResource": {"action": "cur:UntagResource", "types": ["cur"], "resources": [{"type": "cur", "fill": {"ReportName": "ReportName"}}]},
|
||||
"ecr:BatchCheckLayerAvailability": {"action": "ecr:BatchCheckLayerAvailability", "types": ["repository"], "resources": [{"type": "repository", "fill": {"RepositoryName": "repositoryName"}, "account": "registryId"}]},
|
||||
"ecr:BatchDeleteImage": {"action": "ecr:BatchDeleteImage", "types": ["repository"], "resources": [{"type": "repository", "fill": {"RepositoryName": "repositoryName"}, "account": "registryId"}]},
|
||||
"ecr:BatchGetImage": {"action": "ecr:BatchGetImage", "types": ["repository"], "resources": [{"type": "repository", "fill": {"RepositoryName": "repositoryName"}, "account": "registryId"}]},
|
||||
@@ -586,6 +619,32 @@
|
||||
"servicediscovery:UpdatePublicDnsNamespace": {"action": "servicediscovery:UpdatePublicDnsNamespace", "types": ["namespace"], "resources": [{"type": "namespace", "fill": {"NamespaceId": "Id"}}]},
|
||||
"servicediscovery:UpdateService": {"action": "servicediscovery:UpdateService", "types": ["service"], "resources": [{"type": "service", "fill": {"ServiceId": "Id"}}]},
|
||||
"servicediscovery:UpdateServiceAttributes": {"action": "servicediscovery:UpdateServiceAttributes", "types": ["service"], "resources": [{"type": "service", "fill": {"ServiceId": "ServiceId"}}]},
|
||||
"servicequotas:AssociateServiceQuotaTemplate": {"action": "servicequotas:AssociateServiceQuotaTemplate", "types": [], "resources": []},
|
||||
"servicequotas:CreateSupportCase": {"action": "servicequotas:CreateSupportCase", "types": [], "resources": []},
|
||||
"servicequotas:DeleteServiceQuotaIncreaseRequestFromTemplate": {"action": "servicequotas:DeleteServiceQuotaIncreaseRequestFromTemplate", "types": [], "resources": []},
|
||||
"servicequotas:DisassociateServiceQuotaTemplate": {"action": "servicequotas:DisassociateServiceQuotaTemplate", "types": [], "resources": []},
|
||||
"servicequotas:GetAWSDefaultServiceQuota": {"action": "servicequotas:GetAWSDefaultServiceQuota", "types": [], "resources": []},
|
||||
"servicequotas:GetAssociationForServiceQuotaTemplate": {"action": "servicequotas:GetAssociationForServiceQuotaTemplate", "types": [], "resources": []},
|
||||
"servicequotas:GetAutoManagementConfiguration": {"action": "servicequotas:GetAutoManagementConfiguration", "types": [], "resources": []},
|
||||
"servicequotas:GetQuotaUtilizationReport": {"action": "servicequotas:GetQuotaUtilizationReport", "types": [], "resources": []},
|
||||
"servicequotas:GetRequestedServiceQuotaChange": {"action": "servicequotas:GetRequestedServiceQuotaChange", "types": [], "resources": []},
|
||||
"servicequotas:GetServiceQuota": {"action": "servicequotas:GetServiceQuota", "types": ["quota"], "resources": [{"type": "quota", "fill": {"QuotaCode": "QuotaCode", "ServiceCode": "ServiceCode"}}]},
|
||||
"servicequotas:GetServiceQuotaIncreaseRequestFromTemplate": {"action": "servicequotas:GetServiceQuotaIncreaseRequestFromTemplate", "types": ["quota"], "resources": [{"type": "quota", "fill": {"QuotaCode": "QuotaCode", "ServiceCode": "ServiceCode"}}]},
|
||||
"servicequotas:ListAWSDefaultServiceQuotas": {"action": "servicequotas:ListAWSDefaultServiceQuotas", "types": [], "resources": []},
|
||||
"servicequotas:ListRequestedServiceQuotaChangeHistory": {"action": "servicequotas:ListRequestedServiceQuotaChangeHistory", "types": [], "resources": []},
|
||||
"servicequotas:ListRequestedServiceQuotaChangeHistoryByQuota": {"action": "servicequotas:ListRequestedServiceQuotaChangeHistoryByQuota", "types": ["quota"], "resources": [{"type": "quota", "fill": {"QuotaCode": "QuotaCode", "ServiceCode": "ServiceCode"}}]},
|
||||
"servicequotas:ListServiceQuotaIncreaseRequestsInTemplate": {"action": "servicequotas:ListServiceQuotaIncreaseRequestsInTemplate", "types": [], "resources": []},
|
||||
"servicequotas:ListServiceQuotas": {"action": "servicequotas:ListServiceQuotas", "types": [], "resources": []},
|
||||
"servicequotas:ListServices": {"action": "servicequotas:ListServices", "types": [], "resources": []},
|
||||
"servicequotas:ListTagsForResource": {"action": "servicequotas:ListTagsForResource", "types": [], "resources": []},
|
||||
"servicequotas:PutServiceQuotaIncreaseRequestIntoTemplate": {"action": "servicequotas:PutServiceQuotaIncreaseRequestIntoTemplate", "types": ["quota"], "resources": [{"type": "quota", "fill": {"QuotaCode": "QuotaCode", "ServiceCode": "ServiceCode"}}]},
|
||||
"servicequotas:RequestServiceQuotaIncrease": {"action": "servicequotas:RequestServiceQuotaIncrease", "types": ["quota"], "resources": [{"type": "quota", "fill": {"QuotaCode": "QuotaCode", "ServiceCode": "ServiceCode"}}]},
|
||||
"servicequotas:StartAutoManagement": {"action": "servicequotas:StartAutoManagement", "types": [], "resources": []},
|
||||
"servicequotas:StartQuotaUtilizationReport": {"action": "servicequotas:StartQuotaUtilizationReport", "types": [], "resources": []},
|
||||
"servicequotas:StopAutoManagement": {"action": "servicequotas:StopAutoManagement", "types": [], "resources": []},
|
||||
"servicequotas:TagResource": {"action": "servicequotas:TagResource", "types": [], "resources": []},
|
||||
"servicequotas:UntagResource": {"action": "servicequotas:UntagResource", "types": [], "resources": []},
|
||||
"servicequotas:UpdateAutoManagement": {"action": "servicequotas:UpdateAutoManagement", "types": [], "resources": []},
|
||||
"states:CreateActivity": {"action": "states:CreateActivity", "types": ["activity"], "resources": [{"type": "activity", "fill": {"ActivityName": "name"}}]},
|
||||
"states:CreateStateMachine": {"action": "states:CreateStateMachine", "types": ["statemachine"], "resources": [{"types": ["statemachine"], "arn": "roleArn"}, {"type": "statemachine", "fill": {"StateMachineName": "name"}}]},
|
||||
"states:CreateStateMachineAlias": {"action": "states:CreateStateMachineAlias", "types": ["statemachine"], "resources": [{"types": ["statemachine"], "arn": "routingConfiguration[].stateMachineVersionArn"}]},
|
||||
@@ -622,6 +681,50 @@
|
||||
"states:UpdateMapRun": {"action": "states:UpdateMapRun", "types": ["maprun"], "resources": [{"types": ["maprun"], "arn": "mapRunArn"}]},
|
||||
"states:UpdateStateMachine": {"action": "states:UpdateStateMachine", "types": ["statemachine"], "resources": [{"types": ["statemachine"], "arn": "roleArn"}, {"types": ["statemachine"], "arn": "stateMachineArn"}]},
|
||||
"states:UpdateStateMachineAlias": {"action": "states:UpdateStateMachineAlias", "types": ["statemachine"], "resources": [{"types": ["statemachine"], "arn": "routingConfiguration[].stateMachineVersionArn"}, {"types": ["statemachine"], "arn": "stateMachineAliasArn"}]},
|
||||
"states:ValidateStateMachineDefinition": {"action": "states:ValidateStateMachineDefinition", "types": [], "resources": []}
|
||||
"states:ValidateStateMachineDefinition": {"action": "states:ValidateStateMachineDefinition", "types": [], "resources": []},
|
||||
"textract:AnalyzeDocument": {"action": "textract:AnalyzeDocument", "types": [], "resources": []},
|
||||
"textract:AnalyzeExpense": {"action": "textract:AnalyzeExpense", "types": [], "resources": []},
|
||||
"textract:AnalyzeID": {"action": "textract:AnalyzeID", "types": [], "resources": []},
|
||||
"textract:CreateAdapter": {"action": "textract:CreateAdapter", "types": [], "resources": []},
|
||||
"textract:CreateAdapterVersion": {"action": "textract:CreateAdapterVersion", "types": ["adapter"], "resources": [{"type": "adapter", "fill": {"AdapterId": "AdapterId"}}]},
|
||||
"textract:DeleteAdapter": {"action": "textract:DeleteAdapter", "types": ["adapter"], "resources": [{"type": "adapter", "fill": {"AdapterId": "AdapterId"}}]},
|
||||
"textract:DeleteAdapterVersion": {"action": "textract:DeleteAdapterVersion", "types": ["adapterversion"], "resources": [{"type": "adapterversion", "fill": {"AdapterId": "AdapterId", "AdapterVersion": "AdapterVersion"}}]},
|
||||
"textract:DetectDocumentText": {"action": "textract:DetectDocumentText", "types": [], "resources": []},
|
||||
"textract:GetAdapter": {"action": "textract:GetAdapter", "types": ["adapter"], "resources": [{"type": "adapter", "fill": {"AdapterId": "AdapterId"}}]},
|
||||
"textract:GetAdapterVersion": {"action": "textract:GetAdapterVersion", "types": ["adapterversion"], "resources": [{"type": "adapterversion", "fill": {"AdapterId": "AdapterId", "AdapterVersion": "AdapterVersion"}}]},
|
||||
"textract:GetDocumentAnalysis": {"action": "textract:GetDocumentAnalysis", "types": [], "resources": []},
|
||||
"textract:GetDocumentTextDetection": {"action": "textract:GetDocumentTextDetection", "types": [], "resources": []},
|
||||
"textract:GetExpenseAnalysis": {"action": "textract:GetExpenseAnalysis", "types": [], "resources": []},
|
||||
"textract:GetLendingAnalysis": {"action": "textract:GetLendingAnalysis", "types": [], "resources": []},
|
||||
"textract:GetLendingAnalysisSummary": {"action": "textract:GetLendingAnalysisSummary", "types": [], "resources": []},
|
||||
"textract:ListAdapterVersions": {"action": "textract:ListAdapterVersions", "types": [], "resources": []},
|
||||
"textract:ListAdapters": {"action": "textract:ListAdapters", "types": [], "resources": []},
|
||||
"textract:ListTagsForResource": {"action": "textract:ListTagsForResource", "types": ["adapter", "adapterversion"], "resources": [{"types": ["adapter", "adapterversion"], "arn": "ResourceARN"}]},
|
||||
"textract:StartDocumentAnalysis": {"action": "textract:StartDocumentAnalysis", "types": [], "resources": []},
|
||||
"textract:StartDocumentTextDetection": {"action": "textract:StartDocumentTextDetection", "types": [], "resources": []},
|
||||
"textract:StartExpenseAnalysis": {"action": "textract:StartExpenseAnalysis", "types": [], "resources": []},
|
||||
"textract:StartLendingAnalysis": {"action": "textract:StartLendingAnalysis", "types": [], "resources": []},
|
||||
"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"}}]},
|
||||
"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"}}]},
|
||||
"translate:DescribeTextTranslationJob": {"action": "translate:DescribeTextTranslationJob", "types": [], "resources": []},
|
||||
"translate:GetParallelData": {"action": "translate:GetParallelData", "types": ["parallel-data"], "resources": [{"type": "parallel-data", "fill": {"ResourceName": "Name"}}]},
|
||||
"translate:GetTerminology": {"action": "translate:GetTerminology", "types": ["terminology"], "resources": [{"type": "terminology", "fill": {"ResourceName": "Name"}}]},
|
||||
"translate:ImportTerminology": {"action": "translate:ImportTerminology", "types": ["terminology"], "resources": [{"type": "terminology", "fill": {"ResourceName": "Name"}}]},
|
||||
"translate:ListLanguages": {"action": "translate:ListLanguages", "types": [], "resources": []},
|
||||
"translate:ListParallelData": {"action": "translate:ListParallelData", "types": [], "resources": []},
|
||||
"translate:ListTagsForResource": {"action": "translate:ListTagsForResource", "types": ["parallel-data", "terminology"], "resources": [{"types": ["parallel-data", "terminology"], "arn": "ResourceArn"}]},
|
||||
"translate:ListTerminologies": {"action": "translate:ListTerminologies", "types": [], "resources": []},
|
||||
"translate:ListTextTranslationJobs": {"action": "translate:ListTextTranslationJobs", "types": [], "resources": []},
|
||||
"translate:StartTextTranslationJob": {"action": "translate:StartTextTranslationJob", "types": ["parallel-data", "terminology"], "resources": [{"types": ["parallel-data", "terminology"], "arn": "DataAccessRoleArn"}, {"type": "parallel-data", "fill": {"ResourceName": "ParallelDataNames[]"}}, {"type": "terminology", "fill": {"ResourceName": "TerminologyNames[]"}}]},
|
||||
"translate:StopTextTranslationJob": {"action": "translate:StopTextTranslationJob", "types": [], "resources": []},
|
||||
"translate:TagResource": {"action": "translate:TagResource", "types": ["parallel-data", "terminology"], "resources": [{"types": ["parallel-data", "terminology"], "arn": "ResourceArn"}]},
|
||||
"translate:TranslateDocument": {"action": "translate:TranslateDocument", "types": ["terminology"], "resources": [{"type": "terminology", "fill": {"ResourceName": "TerminologyNames[]"}}]},
|
||||
"translate:TranslateText": {"action": "translate:TranslateText", "types": ["parallel-data", "terminology"], "resources": [{"type": "terminology", "fill": {"ResourceName": "TerminologyNames[]"}}]},
|
||||
"translate:UntagResource": {"action": "translate:UntagResource", "types": ["parallel-data", "terminology"], "resources": [{"types": ["parallel-data", "terminology"], "arn": "ResourceArn"}]},
|
||||
"translate:UpdateParallelData": {"action": "translate:UpdateParallelData", "types": ["parallel-data"], "resources": [{"type": "parallel-data", "fill": {"ResourceName": "Name"}}]}
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -1223,7 +1223,7 @@ class PartitionCrossServiceSmokeIntegrationTest {
|
||||
String policyStoreId = created.jsonPath().getString("policyStoreId");
|
||||
cleanup.register(() -> json10(region, "verifiedpermissions", "VerifiedPermissions.DeletePolicyStore",
|
||||
"{\"policyStoreId\":\"" + policyStoreId + "\"}").when().post("/"));
|
||||
PartitionMatrix.assertArnIn(partitionCase, created.jsonPath().getString("arn"));
|
||||
PartitionMatrix.assertGlobalArnIn(partitionCase, created.jsonPath().getString("arn"));
|
||||
}
|
||||
|
||||
@ParameterizedTest
|
||||
|
||||
+89
@@ -776,6 +776,95 @@ class IamRequestResourceEnforcementIntegrationTest {
|
||||
refusedJson(describeApplication(user, name + "-other"), "kinesisanalytics:DescribeApplication");
|
||||
}
|
||||
|
||||
/**
|
||||
* 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.
|
||||
*/
|
||||
@Test
|
||||
void aBudgetIsCheckedOnTheArnItsNameGives() {
|
||||
String name = "res-budget-" + suffix();
|
||||
String other = name + "-other";
|
||||
for (String budget : List.of(name, other)) {
|
||||
adminJson("budgets", "AWSBudgetServiceGateway.CreateBudget")
|
||||
.body("{\"AccountId\":\"" + ACCOUNT + "\",\"Budget\":" + budget(budget, null) + "}").post("/")
|
||||
.then().statusCode(200);
|
||||
cleanup.register(() -> adminJson("budgets", "AWSBudgetServiceGateway.DeleteBudget")
|
||||
.body("{\"AccountId\":\"" + ACCOUNT + "\",\"BudgetName\":\"" + budget + "\"}").post("/"));
|
||||
}
|
||||
String arn = "arn:aws:budgets::" + ACCOUNT + ":budget/" + name;
|
||||
adminJson("budgets", "AWSBudgetServiceGateway.TagResource").body("{\"ResourceARN\":\"" + arn
|
||||
+ "\",\"ResourceTags\":[{\"Key\":\"a\",\"Value\":\"b\"}]}").post("/").then().statusCode(200);
|
||||
|
||||
User user = user("res-budget");
|
||||
user.policy(allowOn("budgets:ViewBudget", arn) + "," + allowOn("budgets:ModifyBudget", arn));
|
||||
budgets(user, "DescribeBudget", "{\"AccountId\":\"" + ACCOUNT + "\",\"BudgetName\":\"" + name + "\"}")
|
||||
.statusCode(200);
|
||||
refusedJson(budgets(user, "DescribeBudget", "{\"AccountId\":\"" + ACCOUNT + "\",\"BudgetName\":\"" + other
|
||||
+ "\"}"), "budgets:ViewBudget");
|
||||
refusedJson(budgets(user, "UpdateBudget", "{\"AccountId\":\"" + ACCOUNT + "\",\"NewBudget\":"
|
||||
+ budget(other, arn) + "}"), "budgets:ModifyBudget");
|
||||
budgets(user, "UpdateBudget", "{\"AccountId\":\"" + ACCOUNT + "\",\"NewBudget\":" + budget(name, null) + "}")
|
||||
.statusCode(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* A Cost and Usage Report definition is checked on {@code definition/<name>}, a put on the one its
|
||||
* {@code ReportDefinition.ReportName} names, not on one its billing view ARN gives.
|
||||
*/
|
||||
@Test
|
||||
void aReportDefinitionIsCheckedOnTheArnItsNameGives() {
|
||||
String name = "res-report-" + suffix();
|
||||
String arn = "arn:aws:cur:" + REGION + ":" + ACCOUNT + ":definition/" + name;
|
||||
User user = user("res-report");
|
||||
user.policy(allowOn("cur:PutReportDefinition", arn) + "," + allowOn("cur:DeleteReportDefinition", arn));
|
||||
refusedJson(cur(user, "PutReportDefinition", "{\"ReportDefinition\":" + reportDefinition(name + "-other", arn)
|
||||
+ "}"), "cur:PutReportDefinition");
|
||||
cur(user, "PutReportDefinition", "{\"ReportDefinition\":" + reportDefinition(name, null) + "}").statusCode(200);
|
||||
cur(user, "DeleteReportDefinition", "{\"ReportName\":\"" + name + "\"}").statusCode(200);
|
||||
}
|
||||
|
||||
/** A service quota is checked on {@code <service code>/<quota code>}, the ARN Service Quotas gives it. */
|
||||
@Test
|
||||
void aServiceQuotaIsCheckedOnItsArn() {
|
||||
String arn = adminJson("servicequotas", "ServiceQuotasV20190624.GetServiceQuota")
|
||||
.body("{\"ServiceCode\":\"codebuild\",\"QuotaCode\":\"L-2DC20C30\"}").post("/").then().statusCode(200)
|
||||
.extract().path("Quota.QuotaArn");
|
||||
assertEquals("arn:aws:servicequotas:" + REGION + ":" + ACCOUNT + ":codebuild/L-2DC20C30", arn);
|
||||
|
||||
User user = user("res-quota");
|
||||
user.policy(allowOn("servicequotas:GetServiceQuota", arn));
|
||||
serviceQuota(user, "L-2DC20C30").statusCode(200);
|
||||
refusedJson(serviceQuota(user, "L-00000000"), "servicequotas:GetServiceQuota");
|
||||
}
|
||||
|
||||
/** A monthly cost budget of the name, with a billing view ARN when one is given. */
|
||||
private static String budget(String name, String billingViewArn) {
|
||||
return "{\"BudgetName\":\"" + name + "\",\"BudgetType\":\"COST\",\"TimeUnit\":\"MONTHLY\",\"BudgetLimit\":"
|
||||
+ "{\"Amount\":\"100\",\"Unit\":\"USD\"}" + (billingViewArn == null ? ""
|
||||
: ",\"BillingViewArn\":\"" + billingViewArn + "\"") + "}";
|
||||
}
|
||||
|
||||
/** A daily Parquet report definition of the name, with a billing view ARN when one is given. */
|
||||
private static String reportDefinition(String name, String billingViewArn) {
|
||||
return "{\"ReportName\":\"" + name + "\",\"TimeUnit\":\"DAILY\",\"Format\":\"Parquet\",\"Compression\":\"Parquet\","
|
||||
+ "\"AdditionalSchemaElements\":[\"RESOURCES\"],\"S3Bucket\":\"my-bucket\",\"S3Prefix\":\"reports/\","
|
||||
+ "\"S3Region\":\"" + REGION + "\"" + (billingViewArn == null ? ""
|
||||
: ",\"BillingViewArn\":\"" + billingViewArn + "\"") + "}";
|
||||
}
|
||||
|
||||
private static ValidatableResponse budgets(User user, String operation, String body) {
|
||||
return user.json("budgets", "AWSBudgetServiceGateway." + operation, "1.1").body(body).post("/").then();
|
||||
}
|
||||
|
||||
private static ValidatableResponse cur(User user, String operation, String body) {
|
||||
return user.json("cur", "AWSOrigamiServiceGatewayService." + operation, "1.1").body(body).post("/").then();
|
||||
}
|
||||
|
||||
private static ValidatableResponse serviceQuota(User user, String quotaCode) {
|
||||
return user.json("servicequotas", "ServiceQuotasV20190624.GetServiceQuota", "1.1")
|
||||
.body("{\"ServiceCode\":\"codebuild\",\"QuotaCode\":\"" + quotaCode + "\"}").post("/").then();
|
||||
}
|
||||
|
||||
private static ValidatableResponse codeBuild(User user, String operation, String body) {
|
||||
return user.json("codebuild", "CodeBuild_20161006." + operation, "1.1").body(body).post("/").then();
|
||||
}
|
||||
|
||||
+1
-1
@@ -47,7 +47,7 @@ class VerifiedPermissionsIntegrationTest {
|
||||
givenAws("GetPolicyStore", "{\"policyStoreId\":\"" + policyStoreId + "\",\"tags\":true}")
|
||||
.then().statusCode(200)
|
||||
.body("policyStoreId", equalTo(policyStoreId))
|
||||
.body("arn", matchesPattern("arn:aws:verifiedpermissions:us-east-1:111122223333:policy-store/PS[A-Za-z0-9]+"))
|
||||
.body("arn", matchesPattern("arn:aws:verifiedpermissions::111122223333:policy-store/PS[A-Za-z0-9]+"))
|
||||
.body("validationSettings.mode", equalTo("OFF"))
|
||||
.body("cedarVersion", equalTo("CEDAR_4"))
|
||||
.body("deletionProtection", equalTo("DISABLED"));
|
||||
|
||||
@@ -119,8 +119,9 @@ 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", "codebuild", "codepipeline", "cognito-identity", "cognito-idp", "ecr", "elasticloadbalancing",
|
||||
"events", "firehose", "kinesisanalytics", "servicediscovery", "states")
|
||||
NAMESPACES = ("acm", "budgets", "codebuild", "codepipeline", "cognito-identity", "cognito-idp", "cur", "ecr",
|
||||
"elasticloadbalancing", "events", "firehose", "kinesisanalytics", "servicediscovery", "servicequotas",
|
||||
"states", "textract", "translate")
|
||||
|
||||
# SDK clients the reference lists for a namespace's operations whose requests Floci does not serve, and why: their
|
||||
# members are not read.
|
||||
@@ -156,7 +157,9 @@ NOT_COVERED: dict[str, str] = {
|
||||
"appsync": _REST,
|
||||
"aps": _REST,
|
||||
"athena": _LATER,
|
||||
"autoscaling": _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,
|
||||
@@ -164,11 +167,12 @@ NOT_COVERED: dict[str, str] = {
|
||||
"bcm-pricing-calculator": _LATER,
|
||||
"bedrock": _LATER,
|
||||
"bedrock-agentcore": _REST,
|
||||
"budgets": _LATER,
|
||||
"ce": _LATER,
|
||||
"cloudformation": _LATER,
|
||||
"cloudfront": _REST,
|
||||
"cloudhsm": _LATER,
|
||||
"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,
|
||||
@@ -179,7 +183,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"connect": _REST,
|
||||
"controlcatalog": _REST,
|
||||
"controltower": _REST,
|
||||
"cur": _LATER,
|
||||
"datasync": _LATER,
|
||||
"detective": _REST,
|
||||
"dlm": _REST,
|
||||
@@ -224,18 +227,20 @@ NOT_COVERED: dict[str, str] = {
|
||||
"sagemaker": _LATER,
|
||||
"securityhub": _REST,
|
||||
"servicecatalog": _LATER,
|
||||
"servicequotas": _LATER,
|
||||
"ses": _LATER,
|
||||
"signin": _REST,
|
||||
"sso": _LATER,
|
||||
"sso-oauth": _REST,
|
||||
"swf": _LATER,
|
||||
"textract": _LATER,
|
||||
"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,
|
||||
"translate": _LATER,
|
||||
"verifiedpermissions": _LATER,
|
||||
"verifiedpermissions": "not read yet: a policyStoreId may name its store by an alias, `policy-store-alias/<name>`, "
|
||||
"which AWS authorizes as the action on the store the alias points to and "
|
||||
"GetPolicyStoreAlias on the alias, and an aliasName carries the `policy-store-alias/` its "
|
||||
"format already gives; reading it needs both",
|
||||
"wafv2": _LATER,
|
||||
}
|
||||
|
||||
@@ -249,12 +254,21 @@ CORRECTIONS: dict[str, tuple[list[dict], str]] = {
|
||||
{"type": "loadbalancer/net/", "fill": {"LoadBalancerName": "Name"}, "when": {"Type": ["network"]}},
|
||||
], "the classic API names its load balancer by LoadBalancerName; the v2 API by Name, its type by Type, "
|
||||
"an application load balancer when it gives none, which the rule cannot tell apart"),
|
||||
**{f"budgets:{operation}": ([{"type": "budget", "fill": {"BudgetName": member}}],
|
||||
f"the request names the budget by {member} ('The name of a budget'), which the rule "
|
||||
"does not read inside a structure; its BillingViewArn is a billing view's ARN "
|
||||
"(arn:aws:billing::<account>:billingview/...), never a budget's")
|
||||
for operation, member in (("CreateBudget", "Budget.BudgetName"), ("UpdateBudget", "NewBudget.BudgetName"))},
|
||||
**{f"codebuild:{operation}": ([{"type": "project", "fill": {"ProjectName": member}, "before": ":"}],
|
||||
"a build is checked on its project (the CodeBuild User Guide's permissions reference "
|
||||
"gives each of these the resource project/project-name), which its id names before "
|
||||
"its ':' (CODEBUILD_BUILD_ID, for example codebuild-demo-project:b1e6661e-...)")
|
||||
for operation, member in (("BatchDeleteBuilds", "ids[]"), ("BatchGetBuilds", "ids[]"), ("RetryBuild", "id"),
|
||||
("StopBuild", "id"))},
|
||||
"cur:PutReportDefinition": ([{"type": "cur", "fill": {"ReportName": "ReportDefinition.ReportName"}}],
|
||||
"the request names the report by ReportDefinition.ReportName ('The name of the report "
|
||||
"that you want to create'), which the rule does not read inside a structure; its "
|
||||
"BillingViewArn is a billing view's ARN, never a report definition's"),
|
||||
**{f"codepipeline:{operation}": ([{"type": "pipeline", "fill": {"PipelineName": "pipeline.name"}}],
|
||||
"the request names the pipeline by its pipeline structure's name, which the "
|
||||
"rule does not read inside a structure; its roleArn is the role CodePipeline "
|
||||
|
||||
Reference in new issue
Block a user