mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(iam): check Security Hub and GuardDuty routes under enforcement (#7874)
Neither REST model was vendored in rest-routes.json and no rule mapped their routes, so under enforcement every Security Hub and GuardDuty request resolved to no action and was let through: a user with no policies could EnableSecurityHub or ListDetectors. - regen_rest_routes.MODELS reads securityhub and guardduty; rest-routes.json takes their routes from botocore 1.43.118, and iam-authorized-actions.json their actions of no resource type (securityhub 31, guardduty 70). Nothing else changed. - Both move from NOT_COVERED to NAMESPACES in the table of request resources: 228 operations, 3350 over 46 namespaces, no other entry changed. Security Hub's hub actions are checked on the caller's hub in the Region, hub/default, the ARN Security Hub gives it, and GuardDuty's detector and publishing destination operations on the detector their path names. - The generator gains a rule: an optional top-level member holding the ARN of a type whose format has no variable of its own also names that type when the request leaves it out. DescribeHub with no HubArn is so checked on hub/default, as AWS checks it, rather than on *, which would refuse a grant scoped to the hub. The rule changes no other operation. - Both move to NAMESPACES in the tag-on-create table too: an EnableSecurityHub carrying tags also needs securityhub:TagResource on the hub, a GuardDuty create carrying tags guardduty:TagResource, and the create is checked with aws:RequestTag and aws:TagKeys. Regenerated from the Service Reference retrieved 2026-11-11. It now also gives two Lake Formation operations, GetGlueFunctionSessionContext and GetTemporaryGlueFunctionCredentials, checked as lakeformation:GetDataAccess; they are left to the next sync, which --verify reports without failing. Macie is read by #7869. IamRestRouteEnforcementIntegrationTest checks both services: a caller with no grant refused, a grant scoped to the hub or detector let through, another Region's hub and another detector refused, and a deny holding under an allow on everything. IamTagOnCreateEnforcementIntegrationTest checks a hub enabled and a detector created with tags: TagResource needed, a request tag condition applied, and an untagged create needing its own action alone. All four fail on main. iam.md says so. Closes #7830
This commit is contained in:
1 parent
b3e5ecc486
commit
2fe25793c8
11 files changed
+814
-25
No files matched your search
+18
-6
@@ -1825,7 +1825,8 @@ Map, ACM, CodePipeline, CodeBuild, Amazon Managed Service for Apache Flink (Kine
|
||||
Application Auto Scaling, 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, Amazon
|
||||
Timestream for InfluxDB, Amazon Redshift, the Amazon Redshift Data API, AWS Payment Cryptography, AWS DataSync, Amazon EMR,
|
||||
Amazon Rekognition, IAM Identity Center, Amazon Inspector, Amazon Macie, Amazon OpenSearch Service and IAM Access Analyzer they come from a table generated from AWS's Service Reference and botocore, `src/main/resources/aws/iam-request-resources.json`, which gives each
|
||||
Amazon Rekognition, IAM Identity Center, Amazon Inspector, Amazon Macie, Amazon OpenSearch Service, IAM Access Analyzer,
|
||||
AWS Security Hub and Amazon GuardDuty 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
|
||||
@@ -2014,7 +2015,7 @@ the one after `/tags/` or `/v1/tags/`, the body's `resourceArn` on `POST /tags`,
|
||||
`resourceArn` query parameter on the other bare routes.
|
||||
|
||||
A REST request names its resources in its path and its query as well as its body. For the REST
|
||||
services the table reads, OpenSearch Service and IAM Access Analyzer among them, a member its path carries, the
|
||||
services the table reads, OpenSearch Service, IAM Access Analyzer, Security Hub and GuardDuty among them, a member its path carries, the
|
||||
`DomainName` of `/2021-01-01/opensearch/domain/{DomainName}` or the `analyzerName` of
|
||||
`/analyzer/{analyzerName}`, is read from the route the request matches in the vendored routes below,
|
||||
and one its query carries, the `arn` of `ListTags`, from the query, as members of the body are:
|
||||
@@ -2030,6 +2031,16 @@ Floci serves neither. Of Access Analyzer's, Floci serves the analyzer operations
|
||||
is checked on the analyzer its body names, and so are its tags, which also need
|
||||
`access-analyzer:TagResource` (below), and `GetAnalyzer` and `DeleteAnalyzer` on the one their path
|
||||
names.
|
||||
Security Hub checks most of its actions on the caller's hub in the Region, `hub/default`, which no
|
||||
member names: `EnableSecurityHub`, `DescribeStandards` and the organization and standards operations
|
||||
are checked on that hub, and `DescribeHub` on the hub its `HubArn` query names, or on that one when it
|
||||
names none: an optional member holding the ARN of a type whose format has no variable of its own names
|
||||
that type when it is left out. GuardDuty's detector operations are checked on `detector/<DetectorId>`
|
||||
from their path, and a publishing destination on
|
||||
`detector/<DetectorId>/publishingdestination/<DestinationId>`; its list, member and organization
|
||||
operations act on no resource type and are checked on `*`. An `EnableSecurityHub` or a GuardDuty
|
||||
create carrying tags also needs `securityhub:TagResource` on the hub or `guardduty:TagResource` on `*`,
|
||||
a detector's id being one GuardDuty mints (below).
|
||||
|
||||
A route no rule maps is the operation whose route it matches in botocore's model of its service,
|
||||
vendored in `src/main/resources/aws/rest-routes.json` (`make aws-data-sync` regenerates it): of the
|
||||
@@ -2041,9 +2052,10 @@ when the Service Reference gives the action no resource type, as AWS authorizes
|
||||
The actions of no resource type are vendored in `src/main/resources/aws/iam-authorized-actions.json`
|
||||
for each scope whose routes are read (`make iam-authorized-actions-sync` regenerates them). So
|
||||
OpenSearch Service's `ListDomainNames`, `ListVersions` and VPC endpoint operations, in both API
|
||||
versions, and Access Analyzer's `ListAnalyzers` and `ValidatePolicy` are checked by their routes, and
|
||||
so are OpenSearch Service's domain operations and Access Analyzer's analyzer operations, the table of
|
||||
request resources reading the domain or the analyzer they name. Every route Floci serves of AWS Lake
|
||||
versions, Access Analyzer's `ListAnalyzers` and `ValidatePolicy`, and GuardDuty's operations of no
|
||||
resource type are checked by their routes, and so are OpenSearch Service's domain operations, Access
|
||||
Analyzer's analyzer operations, Security Hub's hub operations and GuardDuty's detector operations, the
|
||||
table of request resources reading the resource they name. Every route Floci serves of AWS Lake
|
||||
Formation and Amazon Inspector is one AWS authorizes on no resource type, as is every one of Amazon Macie's but
|
||||
`CreateMember`, so those are checked by their routes alone. `CreateMember`, on `POST /members`, is checked on the
|
||||
member its `account.accountId` names, and needs `macie2:TagResource` when it carries tags. A route whose action AWS checks on a
|
||||
@@ -2336,7 +2348,7 @@ Region, as the Service Reference gives it the `function` resource, so a function
|
||||
there too, and a create of a service the table of request resources reads is checked on the resource
|
||||
it creates (a target group on `targetgroup/<Name>/*`, an application load balancer on
|
||||
`loadbalancer/app/<Name>/*`, an Access Analyzer analyzer on `analyzer/<analyzerName>`, an OpenSearch
|
||||
domain on `domain/<DomainName>`). A create of a resource under a parent its action acts on tags the new
|
||||
domain on `domain/<DomainName>`, a Security Hub hub on `hub/default`). A create of a resource under a parent its action acts on tags the new
|
||||
resource, so its tags are checked on that one, built from the parent's ARN with its own id open:
|
||||
`CreateListener` acts on a load balancer and its tags are checked on
|
||||
`listener/app/<load balancer name>/<load balancer id>/*`, and `CreateRule`'s on the new
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
"_source": {
|
||||
"generator": "tools/aws/regen_iam_authorized_actions.py",
|
||||
"reference": "https://servicereference.us-east-1.amazonaws.com/",
|
||||
"retrieved": "2026-11-10",
|
||||
"retrieved": "2026-11-11",
|
||||
"note": "make iam-authorized-actions-verify checks every entry against AWS."
|
||||
},
|
||||
"authorizedActions": {
|
||||
@@ -456,6 +456,78 @@
|
||||
"UpdatePackageScope",
|
||||
"UpdateVpcEndpoint"
|
||||
],
|
||||
"guardduty": [
|
||||
"AcceptAdministratorInvitation",
|
||||
"AcceptInvitation",
|
||||
"ArchiveFindings",
|
||||
"CreateCustomDetectionRuleAssociation",
|
||||
"CreateCustomDetectionRuleOrgConfiguration",
|
||||
"CreateDetector",
|
||||
"CreateIPSet",
|
||||
"CreateInvestigation",
|
||||
"CreateMalwareProtectionPlan",
|
||||
"CreateMembers",
|
||||
"CreatePublishingDestination",
|
||||
"CreateSampleFindings",
|
||||
"CreateThreatEntitySet",
|
||||
"CreateThreatIntelSet",
|
||||
"CreateTrustedEntitySet",
|
||||
"DeclineInvitations",
|
||||
"DeleteCustomDetectionRuleOrgConfiguration",
|
||||
"DeleteInvitations",
|
||||
"DeleteMembers",
|
||||
"DescribeMalwareScans",
|
||||
"DescribeOrganizationConfiguration",
|
||||
"DisableOrganizationAdminAccount",
|
||||
"DisassociateFromAdministratorAccount",
|
||||
"DisassociateFromMasterAccount",
|
||||
"DisassociateMembers",
|
||||
"EnableOrganizationAdminAccount",
|
||||
"GetAdministratorAccount",
|
||||
"GetCustomDetectionRule",
|
||||
"GetCustomDetectionRuleOrgConfiguration",
|
||||
"GetFindings",
|
||||
"GetFindingsStatistics",
|
||||
"GetInvestigation",
|
||||
"GetInvitationsCount",
|
||||
"GetMalwareScan",
|
||||
"GetMalwareScanSettings",
|
||||
"GetMasterAccount",
|
||||
"GetMemberDetectors",
|
||||
"GetMembers",
|
||||
"GetOrganizationStatistics",
|
||||
"GetRemainingFreeTrialDays",
|
||||
"GetUsageStatistics",
|
||||
"InviteMembers",
|
||||
"ListCustomDetectionRuleAssociations",
|
||||
"ListCustomDetectionRuleOrgConfigurations",
|
||||
"ListCustomDetectionRules",
|
||||
"ListDetectors",
|
||||
"ListFilters",
|
||||
"ListFindings",
|
||||
"ListIPSets",
|
||||
"ListInvestigations",
|
||||
"ListInvitations",
|
||||
"ListMalwareProtectionPlans",
|
||||
"ListMalwareScans",
|
||||
"ListMembers",
|
||||
"ListOrganizationAdminAccounts",
|
||||
"ListPublishingDestinations",
|
||||
"ListThreatEntitySets",
|
||||
"ListThreatIntelSets",
|
||||
"ListTrustedEntitySets",
|
||||
"SendObjectMalwareScan",
|
||||
"SendSecurityTelemetry",
|
||||
"StartMalwareScan",
|
||||
"StartMonitoringMembers",
|
||||
"StopMonitoringMembers",
|
||||
"UnarchiveFindings",
|
||||
"UpdateCustomDetectionRuleOrgConfiguration",
|
||||
"UpdateFindingsFeedback",
|
||||
"UpdateMalwareScanSettings",
|
||||
"UpdateMemberDetectors",
|
||||
"UpdateOrganizationConfiguration"
|
||||
],
|
||||
"inspector2": [
|
||||
"AssociateMember",
|
||||
"BatchAssociateCodeSecurityScanConfiguration",
|
||||
@@ -794,6 +866,39 @@
|
||||
"ListSchedules",
|
||||
"ListSchedulesByTarget"
|
||||
],
|
||||
"securityhub": [
|
||||
"BatchGetConfigurationPolicyAssociations",
|
||||
"BatchGetSecurityControls",
|
||||
"BatchGetStandardsControlAssociations",
|
||||
"BatchUpdateStandardsControlAssociations",
|
||||
"CancelExportJobV2",
|
||||
"ConnectorRegistrationsV2",
|
||||
"CreateAggregatorV2",
|
||||
"CreateAutomationRule",
|
||||
"CreateAutomationRuleV2",
|
||||
"CreateConfigurationPolicy",
|
||||
"CreateConnector",
|
||||
"CreateConnectorV2",
|
||||
"CreateFindingAggregator",
|
||||
"DescribeSecurityHubV2",
|
||||
"DisableSecurityHubV2",
|
||||
"EnableSecurityHubV2",
|
||||
"GetConfigurationPolicyAssociation",
|
||||
"GetExportJobV2",
|
||||
"GetSecurityControlDefinition",
|
||||
"ListAggregatorsV2",
|
||||
"ListAutomationRules",
|
||||
"ListAutomationRulesV2",
|
||||
"ListConfigurationPolicies",
|
||||
"ListConfigurationPolicyAssociations",
|
||||
"ListConnectors",
|
||||
"ListConnectorsV2",
|
||||
"ListExportJobsV2",
|
||||
"ListFindingAggregators",
|
||||
"ListSecurityControlDefinitions",
|
||||
"ListStandardsControlAssociations",
|
||||
"UpdateSecurityControl"
|
||||
],
|
||||
"signer": [
|
||||
"GetSigningPlatform",
|
||||
"ListSigningJobs",
|
||||
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-11", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalyticsv2"], "logs": ["logs"], "macie2": ["macie2"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesisanalytics": ["kinesisanalyticsv2"], "logs": ["logs"], "macie2": ["macie2"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "quicksight": ["quicksight"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"clientsNotRead": {"kinesisanalytics": "Kinesis Data Analytics v1, SQL applications on the KinesisAnalytics_20150814 target, which Floci does not serve (it serves v2, kinesisanalyticsv2); its operations share v2's names and name their resources by other members"},
|
||||
"handBuilt": ["apigateway", "bedrock", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "lambda", "logs", "pipes", "resource-groups", "s3", "scheduler", "secretsmanager", "sns", "sqs", "ssm", "sts"],
|
||||
"notCovered": {"account": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudformation": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "cloudfront": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rule does not fill a name from, so nearly every operation needs a correction", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "controlcatalog": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its Line truncated
|
||||
"notCovered": {"account": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudformation": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "cloudfront": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rule does not fill a name from, so nearly every operation needs a correction", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "controlcatalog": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its Line truncated
|
||||
"otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "application-signals-mcp", "appmesh", "appmesh-preview", "apprunner", "appstream", "apptest", "arc-region-switch", "arc-zonal-shift", "artifact", "assurance", "auditmanager", "aws-external-anthropic", "b2bi", "backup-gateway", "backup-search", "bedrock-mantle", "bedrock-websearch", "billing", "billingconductor", "braket", "bugbust", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "clouddirectory", "cloudfront-keyvaluestore", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "emr-containers", "end-user-messaging", "entityresolution", "evs", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "ssmmessages", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web"],
|
||||
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudtrail": {"channel": "arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId}", "dashboard": "arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName}", "eventdatastore": "arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId}", "trail": "arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName}"}, "codebuild": {"build": "arn:${Partition}:codebuild:${Region}:${Account}:build/${BuildId}", "build-batch": "arn:${Partition}:codebuild:${Region}:${Account}:build-batch/${BuildBatchId}", "fleet": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}", "project": "arn:${Partition}:codebuild:${Region}:${Account}:project/${ProjectName}", "report": "arn:${Partition}:codebuild:${Region}:${Account}:report/${ReportGroupName}:${ReportId}", "report-group": "arn:${Partition}:codebuild:${Region}:${Account}:report-group/${ReportGroupName}", "sandbox": "arn:${Partition}:codebuild:${Region}:${Account}:sandbox/${SandboxId}"}, "codepipeline": {"action": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}/${ActionName}", "actiontype": "arn:${Partition}:codepipeline:${Region}:${Account}:actiontype:${Owner}/${Category}/${Provider}/${Version}", "pipeline": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}", "stage": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}", "webhook": "arn:${Partition}:codepipeline:${Region}:${Account}:webhook:${WebhookName}"}, "cognito-identity": {"identitypool": "arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}"}, "cognito-idp": {"userpool": "arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}", "webacl": "arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id}"}, "controltower": {"Baseline": "arn:${Partition}:controltower:${Region}::baseline/${BaselineId}", "EnabledBaseline": "arn:${Partition}:controltower:${Region}:${Account}:enabledbaseline/${EnabledBaselineId}", "EnabledControl": "arn:${Partition}:controltower:${Region}:${Account}:enabledcontrol/${EnabledControlId}", "LandingZone": "arn:${Partition}:controltower:${Region}:${Account}:landingzone/${LandingZoneId}"}, "cur": {"cur": "arn:${Partition}:cur:${Region}:${Account}:definition/${ReportName}"}, "datasync": {"agent": "arn:${Partition}:datasync:${Region}:${Account}:agent/${AgenLine truncated
|
||||
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "system-table": "arn:${Partition}:athena:${Region}:${Account}:system-table/${TableName}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudtrail": {"channel": "arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId}", "dashboard": "arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName}", "eventdatastore": "arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId}", "trail": "arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName}"}, "codebuild": {"build": "arn:${Partition}:codebuild:${Region}:${Account}:build/${BuildId}", "build-batch": "arn:${Partition}:codebuild:${Region}:${Account}:build-batch/${BuildBatchId}", "fleet": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}", "project": "arn:${Partition}:codebuild:${Region}:${Account}:project/${ProjectName}", "report": "arn:${Partition}:codebuild:${Region}:${Account}:report/${ReportGroupName}:${ReportId}", "report-group": "arn:${Partition}:codebuild:${Region}:${Account}:report-group/${ReportGroupName}", "sandbox": "arn:${Partition}:codebuild:${Region}:${Account}:sandbox/${SandboxId}"}, "codepipeline": {"action": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}/${ActionName}", "actiontype": "arn:${Partition}:codepipeline:${Region}:${Account}:actiontype:${Owner}/${Category}/${Provider}/${Version}", "pipeline": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}", "stage": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}", "webhook": "arn:${Partition}:codepipeline:${Region}:${Account}:webhook:${WebhookName}"}, "cognito-identity": {"identitypool": "arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}"}, "cognito-idp": {"userpool": "arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}", "webacl": "arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id}"}, "controltower": {"Baseline": "arn:${Partition}:controltower:${Region}::baseline/${BaselineId}", "EnabledBaseline": "arn:${Partition}:controltower:${Region}:${Account}:enabledbaseline/${EnabledBaselineId}", "EnabledControl": "arn:${Partition}:controltower:${Region}:${Account}:enabledcontrol/${EnabledControlId}", "LandingZone": "arn:${Partition}:controltower:${Region}:${Account}:landingzone/${LandingZoneId}"}, "cur": {"cur": "arn:${Partition}:cur:${Region}:${Account}:definition/${ReportName}"}, "datasync": {"agent": "arn:${Partition}:datasync:${Region}:${Account}:agent/${AgenLine truncated
|
||||
"unqualified": {"states": ["statemachine"]},
|
||||
"mintedIds": {"events": ["api-destination", "connection"]},
|
||||
"operations": {
|
||||
@@ -1974,6 +1974,108 @@
|
||||
"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": []},
|
||||
"guardduty:AcceptAdministratorInvitation": {"action": "guardduty:AcceptAdministratorInvitation", "types": [], "resources": []},
|
||||
"guardduty:AcceptInvitation": {"action": "guardduty:AcceptInvitation", "types": [], "resources": []},
|
||||
"guardduty:ArchiveFindings": {"action": "guardduty:ArchiveFindings", "types": [], "resources": []},
|
||||
"guardduty:CreateCustomDetectionRuleAssociation": {"action": "guardduty:CreateCustomDetectionRuleAssociation", "types": [], "resources": []},
|
||||
"guardduty:CreateCustomDetectionRuleOrgConfiguration": {"action": "guardduty:CreateCustomDetectionRuleOrgConfiguration", "types": [], "resources": []},
|
||||
"guardduty:CreateDetector": {"action": "guardduty:CreateDetector", "types": [], "resources": []},
|
||||
"guardduty:CreateFilter": {"action": "guardduty:CreateFilter", "types": ["filter"], "resources": [{"type": "filter", "fill": {"DetectorId": "DetectorId", "FilterName": "Name"}}], "located": {"DetectorId": "{DetectorId}"}},
|
||||
"guardduty:CreateIPSet": {"action": "guardduty:CreateIPSet", "types": [], "resources": []},
|
||||
"guardduty:CreateInvestigation": {"action": "guardduty:CreateInvestigation", "types": [], "resources": []},
|
||||
"guardduty:CreateMalwareProtectionPlan": {"action": "guardduty:CreateMalwareProtectionPlan", "types": [], "resources": []},
|
||||
"guardduty:CreateMembers": {"action": "guardduty:CreateMembers", "types": [], "resources": []},
|
||||
"guardduty:CreatePublishingDestination": {"action": "guardduty:CreatePublishingDestination", "types": [], "resources": []},
|
||||
"guardduty:CreateSampleFindings": {"action": "guardduty:CreateSampleFindings", "types": [], "resources": []},
|
||||
"guardduty:CreateThreatEntitySet": {"action": "guardduty:CreateThreatEntitySet", "types": [], "resources": []},
|
||||
"guardduty:CreateThreatIntelSet": {"action": "guardduty:CreateThreatIntelSet", "types": [], "resources": []},
|
||||
"guardduty:CreateTrustedEntitySet": {"action": "guardduty:CreateTrustedEntitySet", "types": [], "resources": []},
|
||||
"guardduty:DeclineInvitations": {"action": "guardduty:DeclineInvitations", "types": [], "resources": []},
|
||||
"guardduty:DeleteCustomDetectionRuleAssociation": {"action": "guardduty:DeleteCustomDetectionRuleAssociation", "types": ["customdetectionruleassociation"], "resources": [{"type": "customdetectionruleassociation", "fill": {"AssociationId": "AssociationId", "RuleId": "RuleId"}}], "located": {"AssociationId": "{AssociationId}", "RuleId": "{RuleId}"}},
|
||||
"guardduty:DeleteCustomDetectionRuleOrgConfiguration": {"action": "guardduty:DeleteCustomDetectionRuleOrgConfiguration", "types": [], "resources": []},
|
||||
"guardduty:DeleteDetector": {"action": "guardduty:DeleteDetector", "types": ["detector"], "resources": [{"type": "detector", "fill": {"DetectorId": "DetectorId"}}], "located": {"DetectorId": "{DetectorId}"}},
|
||||
"guardduty:DeleteFilter": {"action": "guardduty:DeleteFilter", "types": ["filter"], "resources": [{"type": "filter", "fill": {"DetectorId": "DetectorId", "FilterName": "FilterName"}}], "located": {"DetectorId": "{DetectorId}", "FilterName": "{FilterName}"}},
|
||||
"guardduty:DeleteIPSet": {"action": "guardduty:DeleteIPSet", "types": ["ipset"], "resources": [{"type": "ipset", "fill": {"DetectorId": "DetectorId", "IPSetId": "IpSetId"}}], "located": {"DetectorId": "{DetectorId}", "IpSetId": "{IpSetId}"}},
|
||||
"guardduty:DeleteInvitations": {"action": "guardduty:DeleteInvitations", "types": [], "resources": []},
|
||||
"guardduty:DeleteMalwareProtectionPlan": {"action": "guardduty:DeleteMalwareProtectionPlan", "types": ["malwareprotectionplan"], "resources": [{"type": "malwareprotectionplan", "fill": {"MalwareProtectionPlanId": "MalwareProtectionPlanId"}}], "located": {"MalwareProtectionPlanId": "{MalwareProtectionPlanId}"}},
|
||||
"guardduty:DeleteMembers": {"action": "guardduty:DeleteMembers", "types": [], "resources": []},
|
||||
"guardduty:DeletePublishingDestination": {"action": "guardduty:DeletePublishingDestination", "types": ["publishingDestination"], "resources": [{"type": "publishingDestination", "fill": {"DetectorId": "DetectorId", "PublishingDestinationId": "DestinationId"}}], "located": {"DestinationId": "{DestinationId}", "DetectorId": "{DetectorId}"}},
|
||||
"guardduty:DeleteThreatEntitySet": {"action": "guardduty:DeleteThreatEntitySet", "types": ["threatentityset"], "resources": [{"type": "threatentityset", "fill": {"DetectorId": "DetectorId", "ThreatEntitySetId": "ThreatEntitySetId"}}], "located": {"DetectorId": "{DetectorId}", "ThreatEntitySetId": "{ThreatEntitySetId}"}},
|
||||
"guardduty:DeleteThreatIntelSet": {"action": "guardduty:DeleteThreatIntelSet", "types": ["threatintelset"], "resources": [{"type": "threatintelset", "fill": {"DetectorId": "DetectorId", "ThreatIntelSetId": "ThreatIntelSetId"}}], "located": {"DetectorId": "{DetectorId}", "ThreatIntelSetId": "{ThreatIntelSetId}"}},
|
||||
"guardduty:DeleteTrustedEntitySet": {"action": "guardduty:DeleteTrustedEntitySet", "types": ["trustedentityset"], "resources": [{"type": "trustedentityset", "fill": {"DetectorId": "DetectorId", "TrustedEntitySetId": "TrustedEntitySetId"}}], "located": {"DetectorId": "{DetectorId}", "TrustedEntitySetId": "{TrustedEntitySetId}"}},
|
||||
"guardduty:DescribeMalwareScans": {"action": "guardduty:DescribeMalwareScans", "types": [], "resources": []},
|
||||
"guardduty:DescribeOrganizationConfiguration": {"action": "guardduty:DescribeOrganizationConfiguration", "types": [], "resources": []},
|
||||
"guardduty:DescribePublishingDestination": {"action": "guardduty:DescribePublishingDestination", "types": ["publishingDestination"], "resources": [{"type": "publishingDestination", "fill": {"DetectorId": "DetectorId", "PublishingDestinationId": "DestinationId"}}], "located": {"DestinationId": "{DestinationId}", "DetectorId": "{DetectorId}"}},
|
||||
"guardduty:DisableOrganizationAdminAccount": {"action": "guardduty:DisableOrganizationAdminAccount", "types": [], "resources": []},
|
||||
"guardduty:DisassociateFromAdministratorAccount": {"action": "guardduty:DisassociateFromAdministratorAccount", "types": [], "resources": []},
|
||||
"guardduty:DisassociateFromMasterAccount": {"action": "guardduty:DisassociateFromMasterAccount", "types": [], "resources": []},
|
||||
"guardduty:DisassociateMembers": {"action": "guardduty:DisassociateMembers", "types": [], "resources": []},
|
||||
"guardduty:EnableOrganizationAdminAccount": {"action": "guardduty:EnableOrganizationAdminAccount", "types": [], "resources": []},
|
||||
"guardduty:GetAdministratorAccount": {"action": "guardduty:GetAdministratorAccount", "types": [], "resources": []},
|
||||
"guardduty:GetCoverageStatistics": {"action": "guardduty:GetCoverageStatistics", "types": ["detector"], "resources": [{"type": "detector", "fill": {"DetectorId": "DetectorId"}}], "located": {"DetectorId": "{DetectorId}"}},
|
||||
"guardduty:GetCustomDetectionRule": {"action": "guardduty:GetCustomDetectionRule", "types": [], "resources": []},
|
||||
"guardduty:GetCustomDetectionRuleAssociation": {"action": "guardduty:GetCustomDetectionRuleAssociation", "types": ["customdetectionruleassociation"], "resources": [{"type": "customdetectionruleassociation", "fill": {"AssociationId": "AssociationId", "RuleId": "RuleId"}}], "located": {"AssociationId": "{AssociationId}", "RuleId": "{RuleId}"}},
|
||||
"guardduty:GetCustomDetectionRuleOrgConfiguration": {"action": "guardduty:GetCustomDetectionRuleOrgConfiguration", "types": [], "resources": []},
|
||||
"guardduty:GetDetector": {"action": "guardduty:GetDetector", "types": ["detector"], "resources": [{"type": "detector", "fill": {"DetectorId": "DetectorId"}}], "located": {"DetectorId": "{DetectorId}"}},
|
||||
"guardduty:GetFilter": {"action": "guardduty:GetFilter", "types": ["filter"], "resources": [{"type": "filter", "fill": {"DetectorId": "DetectorId", "FilterName": "FilterName"}}], "located": {"DetectorId": "{DetectorId}", "FilterName": "{FilterName}"}},
|
||||
"guardduty:GetFindings": {"action": "guardduty:GetFindings", "types": [], "resources": []},
|
||||
"guardduty:GetFindingsStatistics": {"action": "guardduty:GetFindingsStatistics", "types": [], "resources": []},
|
||||
"guardduty:GetIPSet": {"action": "guardduty:GetIPSet", "types": ["ipset"], "resources": [{"type": "ipset", "fill": {"DetectorId": "DetectorId", "IPSetId": "IpSetId"}}], "located": {"DetectorId": "{DetectorId}", "IpSetId": "{IpSetId}"}},
|
||||
"guardduty:GetInvestigation": {"action": "guardduty:GetInvestigation", "types": [], "resources": []},
|
||||
"guardduty:GetInvitationsCount": {"action": "guardduty:GetInvitationsCount", "types": [], "resources": []},
|
||||
"guardduty:GetMalwareProtectionPlan": {"action": "guardduty:GetMalwareProtectionPlan", "types": ["malwareprotectionplan"], "resources": [{"type": "malwareprotectionplan", "fill": {"MalwareProtectionPlanId": "MalwareProtectionPlanId"}}], "located": {"MalwareProtectionPlanId": "{MalwareProtectionPlanId}"}},
|
||||
"guardduty:GetMalwareScan": {"action": "guardduty:GetMalwareScan", "types": [], "resources": []},
|
||||
"guardduty:GetMalwareScanSettings": {"action": "guardduty:GetMalwareScanSettings", "types": [], "resources": []},
|
||||
"guardduty:GetMasterAccount": {"action": "guardduty:GetMasterAccount", "types": [], "resources": []},
|
||||
"guardduty:GetMemberDetectors": {"action": "guardduty:GetMemberDetectors", "types": [], "resources": []},
|
||||
"guardduty:GetMembers": {"action": "guardduty:GetMembers", "types": [], "resources": []},
|
||||
"guardduty:GetOrganizationStatistics": {"action": "guardduty:GetOrganizationStatistics", "types": [], "resources": []},
|
||||
"guardduty:GetRemainingFreeTrialDays": {"action": "guardduty:GetRemainingFreeTrialDays", "types": [], "resources": []},
|
||||
"guardduty:GetThreatEntitySet": {"action": "guardduty:GetThreatEntitySet", "types": ["threatentityset"], "resources": [{"type": "threatentityset", "fill": {"DetectorId": "DetectorId", "ThreatEntitySetId": "ThreatEntitySetId"}}], "located": {"DetectorId": "{DetectorId}", "ThreatEntitySetId": "{ThreatEntitySetId}"}},
|
||||
"guardduty:GetThreatIntelSet": {"action": "guardduty:GetThreatIntelSet", "types": ["threatintelset"], "resources": [{"type": "threatintelset", "fill": {"DetectorId": "DetectorId", "ThreatIntelSetId": "ThreatIntelSetId"}}], "located": {"DetectorId": "{DetectorId}", "ThreatIntelSetId": "{ThreatIntelSetId}"}},
|
||||
"guardduty:GetTrustedEntitySet": {"action": "guardduty:GetTrustedEntitySet", "types": ["trustedentityset"], "resources": [{"type": "trustedentityset", "fill": {"DetectorId": "DetectorId", "TrustedEntitySetId": "TrustedEntitySetId"}}], "located": {"DetectorId": "{DetectorId}", "TrustedEntitySetId": "{TrustedEntitySetId}"}},
|
||||
"guardduty:GetUsageStatistics": {"action": "guardduty:GetUsageStatistics", "types": [], "resources": []},
|
||||
"guardduty:InviteMembers": {"action": "guardduty:InviteMembers", "types": [], "resources": []},
|
||||
"guardduty:ListCoverage": {"action": "guardduty:ListCoverage", "types": ["detector"], "resources": [{"type": "detector", "fill": {"DetectorId": "DetectorId"}}], "located": {"DetectorId": "{DetectorId}"}},
|
||||
"guardduty:ListCustomDetectionRuleAssociations": {"action": "guardduty:ListCustomDetectionRuleAssociations", "types": [], "resources": []},
|
||||
"guardduty:ListCustomDetectionRuleOrgConfigurations": {"action": "guardduty:ListCustomDetectionRuleOrgConfigurations", "types": [], "resources": []},
|
||||
"guardduty:ListCustomDetectionRules": {"action": "guardduty:ListCustomDetectionRules", "types": [], "resources": []},
|
||||
"guardduty:ListDetectors": {"action": "guardduty:ListDetectors", "types": [], "resources": []},
|
||||
"guardduty:ListFilters": {"action": "guardduty:ListFilters", "types": [], "resources": []},
|
||||
"guardduty:ListFindings": {"action": "guardduty:ListFindings", "types": [], "resources": []},
|
||||
"guardduty:ListIPSets": {"action": "guardduty:ListIPSets", "types": [], "resources": []},
|
||||
"guardduty:ListInvestigations": {"action": "guardduty:ListInvestigations", "types": [], "resources": []},
|
||||
"guardduty:ListInvitations": {"action": "guardduty:ListInvitations", "types": [], "resources": []},
|
||||
"guardduty:ListMalwareProtectionPlans": {"action": "guardduty:ListMalwareProtectionPlans", "types": [], "resources": []},
|
||||
"guardduty:ListMalwareScans": {"action": "guardduty:ListMalwareScans", "types": [], "resources": []},
|
||||
"guardduty:ListMembers": {"action": "guardduty:ListMembers", "types": [], "resources": []},
|
||||
"guardduty:ListOrganizationAdminAccounts": {"action": "guardduty:ListOrganizationAdminAccounts", "types": [], "resources": []},
|
||||
"guardduty:ListPublishingDestinations": {"action": "guardduty:ListPublishingDestinations", "types": [], "resources": []},
|
||||
"guardduty:ListTagsForResource": {"action": "guardduty:ListTagsForResource", "types": ["customdetectionruleassociation", "detector", "filter", "ipset", "malwareprotectionplan", "publishingDestination", "threatentityset", "threatintelset", "trustedentityset"], "resources": [{"types": ["customdetectionruleassociation", "detector", "filter", "ipset", "malwareprotectionplan", "publishingDestination", "threatentityset", "threatintelset", "trustedentityset"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}},
|
||||
"guardduty:ListThreatEntitySets": {"action": "guardduty:ListThreatEntitySets", "types": [], "resources": []},
|
||||
"guardduty:ListThreatIntelSets": {"action": "guardduty:ListThreatIntelSets", "types": [], "resources": []},
|
||||
"guardduty:ListTrustedEntitySets": {"action": "guardduty:ListTrustedEntitySets", "types": [], "resources": []},
|
||||
"guardduty:SendObjectMalwareScan": {"action": "guardduty:SendObjectMalwareScan", "types": [], "resources": []},
|
||||
"guardduty:StartMalwareScan": {"action": "guardduty:StartMalwareScan", "types": [], "resources": []},
|
||||
"guardduty:StartMonitoringMembers": {"action": "guardduty:StartMonitoringMembers", "types": [], "resources": []},
|
||||
"guardduty:StopMonitoringMembers": {"action": "guardduty:StopMonitoringMembers", "types": [], "resources": []},
|
||||
"guardduty:TagResource": {"action": "guardduty:TagResource", "types": ["customdetectionruleassociation", "detector", "filter", "ipset", "malwareprotectionplan", "publishingDestination", "threatentityset", "threatintelset", "trustedentityset"], "resources": [{"types": ["customdetectionruleassociation", "detector", "filter", "ipset", "malwareprotectionplan", "publishingDestination", "threatentityset", "threatintelset", "trustedentityset"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}},
|
||||
"guardduty:UnarchiveFindings": {"action": "guardduty:UnarchiveFindings", "types": [], "resources": []},
|
||||
"guardduty:UntagResource": {"action": "guardduty:UntagResource", "types": ["customdetectionruleassociation", "detector", "filter", "ipset", "malwareprotectionplan", "publishingDestination", "threatentityset", "threatintelset", "trustedentityset"], "resources": [{"types": ["customdetectionruleassociation", "detector", "filter", "ipset", "malwareprotectionplan", "publishingDestination", "threatentityset", "threatintelset", "trustedentityset"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}},
|
||||
"guardduty:UpdateCustomDetectionRuleAssociation": {"action": "guardduty:UpdateCustomDetectionRuleAssociation", "types": ["customdetectionruleassociation"], "resources": [{"type": "customdetectionruleassociation", "fill": {"AssociationId": "AssociationId", "RuleId": "RuleId"}}], "located": {"AssociationId": "{AssociationId}", "RuleId": "{RuleId}"}},
|
||||
"guardduty:UpdateCustomDetectionRuleOrgConfiguration": {"action": "guardduty:UpdateCustomDetectionRuleOrgConfiguration", "types": [], "resources": []},
|
||||
"guardduty:UpdateDetector": {"action": "guardduty:UpdateDetector", "types": ["detector"], "resources": [{"type": "detector", "fill": {"DetectorId": "DetectorId"}}], "located": {"DetectorId": "{DetectorId}"}},
|
||||
"guardduty:UpdateFilter": {"action": "guardduty:UpdateFilter", "types": ["filter"], "resources": [{"type": "filter", "fill": {"DetectorId": "DetectorId", "FilterName": "FilterName"}}], "located": {"DetectorId": "{DetectorId}", "FilterName": "{FilterName}"}},
|
||||
"guardduty:UpdateFindingsFeedback": {"action": "guardduty:UpdateFindingsFeedback", "types": [], "resources": []},
|
||||
"guardduty:UpdateIPSet": {"action": "guardduty:UpdateIPSet", "types": ["ipset"], "resources": [{"type": "ipset", "fill": {"DetectorId": "DetectorId", "IPSetId": "IpSetId"}}], "located": {"DetectorId": "{DetectorId}", "IpSetId": "{IpSetId}"}},
|
||||
"guardduty:UpdateMalwareProtectionPlan": {"action": "guardduty:UpdateMalwareProtectionPlan", "types": ["malwareprotectionplan"], "resources": [{"type": "malwareprotectionplan", "fill": {"MalwareProtectionPlanId": "MalwareProtectionPlanId"}}], "located": {"MalwareProtectionPlanId": "{MalwareProtectionPlanId}"}},
|
||||
"guardduty:UpdateMalwareScanSettings": {"action": "guardduty:UpdateMalwareScanSettings", "types": [], "resources": []},
|
||||
"guardduty:UpdateMemberDetectors": {"action": "guardduty:UpdateMemberDetectors", "types": [], "resources": []},
|
||||
"guardduty:UpdateOrganizationConfiguration": {"action": "guardduty:UpdateOrganizationConfiguration", "types": [], "resources": []},
|
||||
"guardduty:UpdatePublishingDestination": {"action": "guardduty:UpdatePublishingDestination", "types": ["publishingDestination"], "resources": [{"types": ["publishingDestination"], "arn": "DestinationProperties.DestinationArn"}, {"types": ["publishingDestination"], "arn": "DestinationProperties.KmsKeyArn"}, {"type": "publishingDestination", "fill": {"DetectorId": "DetectorId", "PublishingDestinationId": "DestinationId"}}], "located": {"DestinationId": "{DestinationId}", "DetectorId": "{DetectorId}"}},
|
||||
"guardduty:UpdateThreatEntitySet": {"action": "guardduty:UpdateThreatEntitySet", "types": ["threatentityset"], "resources": [{"type": "threatentityset", "fill": {"DetectorId": "DetectorId", "ThreatEntitySetId": "ThreatEntitySetId"}}], "located": {"DetectorId": "{DetectorId}", "ThreatEntitySetId": "{ThreatEntitySetId}"}},
|
||||
"guardduty:UpdateThreatIntelSet": {"action": "guardduty:UpdateThreatIntelSet", "types": ["threatintelset"], "resources": [{"type": "threatintelset", "fill": {"DetectorId": "DetectorId", "ThreatIntelSetId": "ThreatIntelSetId"}}], "located": {"DetectorId": "{DetectorId}", "ThreatIntelSetId": "{ThreatIntelSetId}"}},
|
||||
"guardduty:UpdateTrustedEntitySet": {"action": "guardduty:UpdateTrustedEntitySet", "types": ["trustedentityset"], "resources": [{"type": "trustedentityset", "fill": {"DetectorId": "DetectorId", "TrustedEntitySetId": "TrustedEntitySetId"}}], "located": {"DetectorId": "{DetectorId}", "TrustedEntitySetId": "{TrustedEntitySetId}"}},
|
||||
"inspector2:AssociateMember": {"action": "inspector2:AssociateMember", "types": [], "resources": []},
|
||||
"inspector2:BatchAssociateCodeSecurityScanConfiguration": {"action": "inspector2:BatchAssociateCodeSecurityScanConfiguration", "types": [], "resources": []},
|
||||
"inspector2:BatchDisassociateCodeSecurityScanConfiguration": {"action": "inspector2:BatchDisassociateCodeSecurityScanConfiguration", "types": [], "resources": []},
|
||||
@@ -2830,6 +2932,132 @@
|
||||
"rekognition:UntagResource": {"action": "rekognition:UntagResource", "types": ["collection", "dataset", "project", "projectversion", "streamprocessor"], "resources": [{"types": ["collection", "dataset", "project", "projectversion", "streamprocessor"], "arn": "ResourceArn"}]},
|
||||
"rekognition:UpdateDatasetEntries": {"action": "rekognition:UpdateDatasetEntries", "types": ["dataset"], "resources": [{"types": ["dataset"], "arn": "DatasetArn"}]},
|
||||
"rekognition:UpdateStreamProcessor": {"action": "rekognition:UpdateStreamProcessor", "types": ["streamprocessor"], "resources": [{"type": "streamprocessor", "fill": {"StreamprocessorId": "Name"}}]},
|
||||
"securityhub:AcceptAdministratorInvitation": {"action": "securityhub:AcceptAdministratorInvitation", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:AcceptInvitation": {"action": "securityhub:AcceptInvitation", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:BatchDeleteAutomationRules": {"action": "securityhub:BatchDeleteAutomationRules", "types": ["automation-rule"], "resources": [{"types": ["automation-rule"], "arn": "AutomationRulesArns[]"}]},
|
||||
"securityhub:BatchDisableStandards": {"action": "securityhub:BatchDisableStandards", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "StandardsSubscriptionArns[]"}, {"type": "hub", "fill": {}}]},
|
||||
"securityhub:BatchEnableStandards": {"action": "securityhub:BatchEnableStandards", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "StandardsSubscriptionRequests[].StandardsArn"}, {"type": "hub", "fill": {}}]},
|
||||
"securityhub:BatchGetAutomationRules": {"action": "securityhub:BatchGetAutomationRules", "types": ["automation-rule"], "resources": [{"types": ["automation-rule"], "arn": "AutomationRulesArns[]"}]},
|
||||
"securityhub:BatchGetConfigurationPolicyAssociations": {"action": "securityhub:BatchGetConfigurationPolicyAssociations", "types": [], "resources": []},
|
||||
"securityhub:BatchGetSecurityControls": {"action": "securityhub:BatchGetSecurityControls", "types": [], "resources": []},
|
||||
"securityhub:BatchGetStandardsControlAssociations": {"action": "securityhub:BatchGetStandardsControlAssociations", "types": [], "resources": []},
|
||||
"securityhub:BatchImportFindings": {"action": "securityhub:BatchImportFindings", "types": ["product"], "resources": [{"types": ["product"], "arn": "Findings[].ProductArn"}]},
|
||||
"securityhub:BatchUpdateAutomationRules": {"action": "securityhub:BatchUpdateAutomationRules", "types": ["automation-rule"], "resources": [{"types": ["automation-rule"], "arn": "UpdateAutomationRulesRequestItems[].RuleArn"}]},
|
||||
"securityhub:BatchUpdateFindings": {"action": "securityhub:BatchUpdateFindings", "types": ["hub", "hubv2"], "resources": [{"types": ["hub", "hubv2"], "arn": "FindingIdentifiers[].ProductArn"}, {"types": ["hub", "hubv2"], "arn": "RelatedFindings[].ProductArn"}, {"type": "hub", "fill": {}}]},
|
||||
"securityhub:BatchUpdateFindingsV2": {"action": "securityhub:BatchUpdateFindings", "types": ["hub", "hubv2"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:BatchUpdateStandardsControlAssociations": {"action": "securityhub:BatchUpdateStandardsControlAssociations", "types": [], "resources": []},
|
||||
"securityhub:CancelExportJobV2": {"action": "securityhub:CancelExportJobV2", "types": [], "resources": []},
|
||||
"securityhub:CreateActionTarget": {"action": "securityhub:CreateActionTarget", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:CreateAggregatorV2": {"action": "securityhub:CreateAggregatorV2", "types": [], "resources": []},
|
||||
"securityhub:CreateAutomationRule": {"action": "securityhub:CreateAutomationRule", "types": [], "resources": []},
|
||||
"securityhub:CreateAutomationRuleV2": {"action": "securityhub:CreateAutomationRuleV2", "types": [], "resources": []},
|
||||
"securityhub:CreateConfigurationPolicy": {"action": "securityhub:CreateConfigurationPolicy", "types": [], "resources": []},
|
||||
"securityhub:CreateConnector": {"action": "securityhub:CreateConnector", "types": [], "resources": []},
|
||||
"securityhub:CreateConnectorV2": {"action": "securityhub:CreateConnectorV2", "types": [], "resources": []},
|
||||
"securityhub:CreateFindingAggregator": {"action": "securityhub:CreateFindingAggregator", "types": [], "resources": []},
|
||||
"securityhub:CreateInsight": {"action": "securityhub:CreateInsight", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:CreateMembers": {"action": "securityhub:CreateMembers", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:CreateTicketV2": {"action": "securityhub:CreateTicketV2", "types": ["connectorv2"], "resources": []},
|
||||
"securityhub:DeclineInvitations": {"action": "securityhub:DeclineInvitations", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:DeleteActionTarget": {"action": "securityhub:DeleteActionTarget", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "ActionTargetArn"}, {"type": "hub", "fill": {}}], "located": {"ActionTargetArn": "{ActionTargetArn}"}},
|
||||
"securityhub:DeleteAggregatorV2": {"action": "securityhub:DeleteAggregatorV2", "types": ["aggregatorv2"], "resources": [{"types": ["aggregatorv2"], "arn": "AggregatorV2Arn"}], "located": {"AggregatorV2Arn": "{AggregatorV2Arn}"}},
|
||||
"securityhub:DeleteAutomationRuleV2": {"action": "securityhub:DeleteAutomationRuleV2", "types": ["automation-rulev2"], "resources": [{"type": "automation-rulev2", "fill": {"AutomationRuleV2Id": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"securityhub:DeleteConfigurationPolicy": {"action": "securityhub:DeleteConfigurationPolicy", "types": ["configuration-policy"], "resources": [{"type": "configuration-policy", "fill": {"ConfigurationPolicyId": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"securityhub:DeleteConnector": {"action": "securityhub:DeleteConnector", "types": ["connector"], "resources": [{"type": "connector", "fill": {"ConnectorId": "ConnectorId"}}], "located": {"ConnectorId": "{ConnectorId}"}},
|
||||
"securityhub:DeleteConnectorV2": {"action": "securityhub:DeleteConnectorV2", "types": ["connectorv2"], "resources": []},
|
||||
"securityhub:DeleteFindingAggregator": {"action": "securityhub:DeleteFindingAggregator", "types": ["finding-aggregator"], "resources": [{"types": ["finding-aggregator"], "arn": "FindingAggregatorArn"}], "located": {"FindingAggregatorArn": "{FindingAggregatorArn}"}},
|
||||
"securityhub:DeleteInsight": {"action": "securityhub:DeleteInsight", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "InsightArn"}, {"type": "hub", "fill": {}}], "located": {"InsightArn": "{InsightArn}"}},
|
||||
"securityhub:DeleteInvitations": {"action": "securityhub:DeleteInvitations", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:DeleteMembers": {"action": "securityhub:DeleteMembers", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:DescribeActionTargets": {"action": "securityhub:DescribeActionTargets", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "ActionTargetArns[]"}, {"type": "hub", "fill": {}}]},
|
||||
"securityhub:DescribeHub": {"action": "securityhub:DescribeHub", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "HubArn"}, {"type": "hub", "fill": {}, "when": {"HubArn": [null]}}], "located": {"HubArn": "?HubArn"}},
|
||||
"securityhub:DescribeOrganizationConfiguration": {"action": "securityhub:DescribeOrganizationConfiguration", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:DescribeProducts": {"action": "securityhub:DescribeProducts", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "ProductArn"}, {"type": "hub", "fill": {}}], "located": {"ProductArn": "?ProductArn"}},
|
||||
"securityhub:DescribeProductsV2": {"action": "securityhub:DescribeProductsV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:DescribeSecurityHubV2": {"action": "securityhub:DescribeSecurityHubV2", "types": [], "resources": []},
|
||||
"securityhub:DescribeStandards": {"action": "securityhub:DescribeStandards", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:DescribeStandardsControls": {"action": "securityhub:DescribeStandardsControls", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "StandardsSubscriptionArn"}, {"type": "hub", "fill": {}}], "located": {"StandardsSubscriptionArn": "{StandardsSubscriptionArn}"}},
|
||||
"securityhub:DisableImportFindingsForProduct": {"action": "securityhub:DisableImportFindingsForProduct", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "ProductSubscriptionArn"}, {"type": "hub", "fill": {}}], "located": {"ProductSubscriptionArn": "{ProductSubscriptionArn}"}},
|
||||
"securityhub:DisableOrganizationAdminAccount": {"action": "securityhub:DisableOrganizationAdminAccount", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:DisableSecurityHub": {"action": "securityhub:DisableSecurityHub", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:DisableSecurityHubFeatureV2": {"action": "securityhub:DisableSecurityHubFeatureV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:DisableSecurityHubV2": {"action": "securityhub:DisableSecurityHubV2", "types": [], "resources": []},
|
||||
"securityhub:DisassociateFromAdministratorAccount": {"action": "securityhub:DisassociateFromAdministratorAccount", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:DisassociateFromMasterAccount": {"action": "securityhub:DisassociateFromMasterAccount", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:DisassociateMembers": {"action": "securityhub:DisassociateMembers", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:EnableImportFindingsForProduct": {"action": "securityhub:EnableImportFindingsForProduct", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "ProductArn"}, {"type": "hub", "fill": {}}]},
|
||||
"securityhub:EnableOrganizationAdminAccount": {"action": "securityhub:EnableOrganizationAdminAccount", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:EnableSecurityHub": {"action": "securityhub:EnableSecurityHub", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:EnableSecurityHubFeatureV2": {"action": "securityhub:EnableSecurityHubFeatureV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:EnableSecurityHubV2": {"action": "securityhub:EnableSecurityHubV2", "types": [], "resources": []},
|
||||
"securityhub:GenerateRecommendedPolicyV2": {"action": "securityhub:GenerateRecommendedPolicyV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:GetAdministratorAccount": {"action": "securityhub:GetAdministratorAccount", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetAggregatorV2": {"action": "securityhub:GetAggregatorV2", "types": ["aggregatorv2"], "resources": [{"types": ["aggregatorv2"], "arn": "AggregatorV2Arn"}], "located": {"AggregatorV2Arn": "{AggregatorV2Arn}"}},
|
||||
"securityhub:GetAutomationRuleV2": {"action": "securityhub:GetAutomationRuleV2", "types": ["automation-rulev2"], "resources": [{"type": "automation-rulev2", "fill": {"AutomationRuleV2Id": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"securityhub:GetConfigurationPolicy": {"action": "securityhub:GetConfigurationPolicy", "types": ["configuration-policy"], "resources": [{"type": "configuration-policy", "fill": {"ConfigurationPolicyId": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"securityhub:GetConfigurationPolicyAssociation": {"action": "securityhub:GetConfigurationPolicyAssociation", "types": [], "resources": []},
|
||||
"securityhub:GetConnector": {"action": "securityhub:GetConnector", "types": ["connector"], "resources": [{"type": "connector", "fill": {"ConnectorId": "ConnectorId"}}], "located": {"ConnectorId": "{ConnectorId}"}},
|
||||
"securityhub:GetConnectorV2": {"action": "securityhub:GetConnectorV2", "types": ["connectorv2"], "resources": []},
|
||||
"securityhub:GetEnabledStandards": {"action": "securityhub:GetEnabledStandards", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "StandardsSubscriptionArns[]"}, {"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetExportJobV2": {"action": "securityhub:GetExportJobV2", "types": [], "resources": []},
|
||||
"securityhub:GetFindingAggregator": {"action": "securityhub:GetFindingAggregator", "types": ["finding-aggregator"], "resources": [{"types": ["finding-aggregator"], "arn": "FindingAggregatorArn"}], "located": {"FindingAggregatorArn": "{FindingAggregatorArn}"}},
|
||||
"securityhub:GetFindingHistory": {"action": "securityhub:GetFindingHistory", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "FindingIdentifier.ProductArn"}, {"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetFindingStatisticsV2": {"action": "securityhub:GetAdhocInsightResults", "types": ["hub", "hubv2"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetFindings": {"action": "securityhub:GetFindings", "types": ["hub", "hubv2"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetFindingsTrendsV2": {"action": "securityhub:GetFindingsTrendsV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:GetFindingsV2": {"action": "securityhub:GetFindings", "types": ["hub", "hubv2"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetInsightResults": {"action": "securityhub:GetInsightResults", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "InsightArn"}, {"type": "hub", "fill": {}}], "located": {"InsightArn": "{InsightArn}"}},
|
||||
"securityhub:GetInsights": {"action": "securityhub:GetInsights", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "InsightArns[]"}, {"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetInvitationsCount": {"action": "securityhub:GetInvitationsCount", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetMasterAccount": {"action": "securityhub:GetMasterAccount", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetMembers": {"action": "securityhub:GetMembers", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:GetRecommendedPolicyV2": {"action": "securityhub:GetRecommendedPolicyV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:GetRemediationsV2": {"action": "securityhub:GetRemediationsV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:GetResourcesStatisticsV2": {"action": "securityhub:GetResourcesStatisticsV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:GetResourcesTrendsV2": {"action": "securityhub:GetResourcesTrendsV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:GetResourcesV2": {"action": "securityhub:GetResourcesV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:GetSecurityControlDefinition": {"action": "securityhub:GetSecurityControlDefinition", "types": [], "resources": []},
|
||||
"securityhub:GetSoftwareResourcesV2": {"action": "securityhub:GetSoftwareResourcesV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:GetSoftwareStatisticsV2": {"action": "securityhub:GetSoftwareStatisticsV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:GetSoftwareV2": {"action": "securityhub:GetSoftwareV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:InviteMembers": {"action": "securityhub:InviteMembers", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:ListAggregatorsV2": {"action": "securityhub:ListAggregatorsV2", "types": [], "resources": []},
|
||||
"securityhub:ListAutomationRules": {"action": "securityhub:ListAutomationRules", "types": [], "resources": []},
|
||||
"securityhub:ListAutomationRulesV2": {"action": "securityhub:ListAutomationRulesV2", "types": [], "resources": []},
|
||||
"securityhub:ListConfigurationPolicies": {"action": "securityhub:ListConfigurationPolicies", "types": [], "resources": []},
|
||||
"securityhub:ListConfigurationPolicyAssociations": {"action": "securityhub:ListConfigurationPolicyAssociations", "types": [], "resources": []},
|
||||
"securityhub:ListConnectors": {"action": "securityhub:ListConnectors", "types": [], "resources": []},
|
||||
"securityhub:ListConnectorsV2": {"action": "securityhub:ListConnectorsV2", "types": [], "resources": []},
|
||||
"securityhub:ListEnabledProductsForImport": {"action": "securityhub:ListEnabledProductsForImport", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:ListExportJobsV2": {"action": "securityhub:ListExportJobsV2", "types": [], "resources": []},
|
||||
"securityhub:ListExposuresByRemediationV2": {"action": "securityhub:ListExposuresByRemediationV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:ListFindingAggregators": {"action": "securityhub:ListFindingAggregators", "types": [], "resources": []},
|
||||
"securityhub:ListFreeTrialStatusesV2": {"action": "securityhub:ListFreeTrialStatusesV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:ListInvitations": {"action": "securityhub:ListInvitations", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:ListMembers": {"action": "securityhub:ListMembers", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:ListOrganizationAdminAccounts": {"action": "securityhub:ListOrganizationAdminAccounts", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:ListSecurityControlDefinitions": {"action": "securityhub:ListSecurityControlDefinitions", "types": [], "resources": []},
|
||||
"securityhub:ListStandardsControlAssociations": {"action": "securityhub:ListStandardsControlAssociations", "types": [], "resources": []},
|
||||
"securityhub:ListTagsForResource": {"action": "securityhub:ListTagsForResource", "types": ["automation-rule", "configuration-policy", "hub"], "resources": [{"types": ["automation-rule", "configuration-policy", "hub"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}},
|
||||
"securityhub:RegisterConnectorV2": {"action": "securityhub:RegisterConnectorV2", "types": [], "resources": []},
|
||||
"securityhub:StartConfigurationPolicyAssociation": {"action": "securityhub:StartConfigurationPolicyAssociation", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:StartConfigurationPolicyDisassociation": {"action": "securityhub:StartConfigurationPolicyDisassociation", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:StartExportJobV2": {"action": "securityhub:StartExportJobV2", "types": ["hubv2"], "resources": []},
|
||||
"securityhub:TagResource": {"action": "securityhub:TagResource", "types": ["aggregatorv2", "automation-rule", "automation-rulev2", "configuration-policy", "connector", "connectorv2", "hub", "hubv2"], "resources": [{"types": ["aggregatorv2", "automation-rule", "automation-rulev2", "configuration-policy", "connector", "connectorv2", "hub", "hubv2"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}},
|
||||
"securityhub:UntagResource": {"action": "securityhub:UntagResource", "types": ["aggregatorv2", "automation-rule", "automation-rulev2", "configuration-policy", "connector", "connectorv2", "hub", "hubv2"], "resources": [{"types": ["aggregatorv2", "automation-rule", "automation-rulev2", "configuration-policy", "connector", "connectorv2", "hub", "hubv2"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}},
|
||||
"securityhub:UpdateActionTarget": {"action": "securityhub:UpdateActionTarget", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "ActionTargetArn"}, {"type": "hub", "fill": {}}], "located": {"ActionTargetArn": "{ActionTargetArn}"}},
|
||||
"securityhub:UpdateAggregatorV2": {"action": "securityhub:UpdateAggregatorV2", "types": ["aggregatorv2"], "resources": [{"types": ["aggregatorv2"], "arn": "AggregatorV2Arn"}], "located": {"AggregatorV2Arn": "{AggregatorV2Arn}"}},
|
||||
"securityhub:UpdateAutomationRuleV2": {"action": "securityhub:UpdateAutomationRuleV2", "types": ["automation-rulev2"], "resources": [{"type": "automation-rulev2", "fill": {"AutomationRuleV2Id": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"securityhub:UpdateConfigurationPolicy": {"action": "securityhub:UpdateConfigurationPolicy", "types": ["configuration-policy"], "resources": [{"type": "configuration-policy", "fill": {"ConfigurationPolicyId": "Identifier"}}], "located": {"Identifier": "{Identifier}"}},
|
||||
"securityhub:UpdateConnector": {"action": "securityhub:UpdateConnector", "types": ["connector"], "resources": [{"type": "connector", "fill": {"ConnectorId": "ConnectorId"}}], "located": {"ConnectorId": "{ConnectorId}"}},
|
||||
"securityhub:UpdateConnectorV2": {"action": "securityhub:UpdateConnectorV2", "types": ["connectorv2"], "resources": []},
|
||||
"securityhub:UpdateFindingAggregator": {"action": "securityhub:UpdateFindingAggregator", "types": ["finding-aggregator"], "resources": [{"types": ["finding-aggregator"], "arn": "FindingAggregatorArn"}]},
|
||||
"securityhub:UpdateFindings": {"action": "securityhub:UpdateFindings", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:UpdateInsight": {"action": "securityhub:UpdateInsight", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "InsightArn"}, {"type": "hub", "fill": {}}], "located": {"InsightArn": "{InsightArn}"}},
|
||||
"securityhub:UpdateOrganizationConfiguration": {"action": "securityhub:UpdateOrganizationConfiguration", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:UpdateSecurityControl": {"action": "securityhub:UpdateSecurityControl", "types": [], "resources": []},
|
||||
"securityhub:UpdateSecurityHubConfiguration": {"action": "securityhub:UpdateSecurityHubConfiguration", "types": ["hub"], "resources": [{"type": "hub", "fill": {}}]},
|
||||
"securityhub:UpdateStandardsControl": {"action": "securityhub:UpdateStandardsControl", "types": ["hub"], "resources": [{"types": ["hub"], "arn": "StandardsControlArn"}, {"type": "hub", "fill": {}}], "located": {"StandardsControlArn": "{StandardsControlArn}"}},
|
||||
"servicediscovery:CreateHttpNamespace": {"action": "servicediscovery:CreateHttpNamespace", "types": [], "resources": []},
|
||||
"servicediscovery:CreatePrivateDnsNamespace": {"action": "servicediscovery:CreatePrivateDnsNamespace", "types": [], "resources": []},
|
||||
"servicediscovery:CreatePublicDnsNamespace": {"action": "servicediscovery:CreatePublicDnsNamespace", "types": [], "resources": []},
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_tag_on_create.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-11", "note": "make iam-tag-on-create-check re-derives every member from botocore; make iam-tag-on-create-verify checks every operation against AWS."},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
|
||||
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "emr-serverless": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "oam": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "ram": "REST routes no rule maps yet", "resource-explorer-2": "REST routes no rule maps yet", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "s3tables": "REST routes no rule maps yet", "securityhub": "REST routes no rule maps yet", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticache": ["elasticache"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "macie2": ["macie2"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "signer": ["signer"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "swf": ["swf"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"], "xray": ["xray"]},
|
||||
"notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "emr-serverless": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "oam": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "ram": "REST routes no rule maps yet", "resource-explorer-2": "REST routes no rule maps yet", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "s3tables": "REST routes no rule maps yet", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"},
|
||||
"otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "applicationinsights", "appmesh", "apprunner", "appstream", "arc-region-switch", "artifact", "auditmanager", "b2bi", "backup-gateway", "backup-search", "bcm-dashboards", "billing", "billingconductor", "braket", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "connect-campaigns", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "directconnect", "docdb-elastic", "drs", "ds", "ebs", "ecr-public", "elemental-inference", "emr-containers", "entityresolution", "evs", "fms", "forecast", "frauddetector", "fsx", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "ivs", "ivschat", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "m2", "managedblockchain", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgn", "migrationhub-orchestrator", "mobiletargeting", "mpa", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "notifications", "notifications-contacts", "observabilityadmin", "odb", "omics", "opensearch", "osis", "outposts", "partnercentral", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "profile", "proton", "qbusiness", "rbin", "refactor-spaces", "repostspace", "resiliencehub", "rolesanywhere", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3files", "sagemaker-geospatial", "savingsplans", "schemas", "scn", "security-ir", "securityagent", "securitylake", "shield", "sms-voice", "snow-device-management", "social-messaging", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "voiceid", "vpc-lattice", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workspaces", "workspaces-instances", "workspaces-web"],
|
||||
"resourceArns": {"ec2": {"application-status-check": "arn:${Partition}:ec2:${Region}:${Account}:application-status-check/*", "capacity-block": "arn:${Partition}:ec2:${Region}:${Account}:capacity-block/*", "capacity-manager-data-export": "arn:${Partition}:ec2:${Region}:${Account}:capacity-manager-data-export/*", "capacity-reservation": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation/*", "capacity-reservation-cancellation-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-cancellation-quote/*", "capacity-reservation-fleet": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-fleet/*", "capacity-reservation-modification-quote": "arn:${Partition}:ec2:${Region}:${Account}:capacity-reservation-modification-quote/*", "carrier-gateway": "arn:${Partition}:ec2:${Region}:${Account}:carrier-gateway/*", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/*", "client-vpn-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:client-vpn-endpoint/*", "coip-pool": "arn:${Partition}:ec2:${Region}:${Account}:coip-pool/*", "customer-gateway": "arn:${Partition}:ec2:${Region}:${Account}:customer-gateway/*", "declarative-policies-report": "arn:${Partition}:ec2:${Region}:${Account}:declarative-policies-report/*", "dedicated-host": "arn:${Partition}:ec2:${Region}:${Account}:dedicated-host/*", "dhcp-options": "arn:${Partition}:ec2:${Region}:${Account}:dhcp-options/*", "egress-only-internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:egress-only-internet-gateway/*", "elastic-gpu": "arn:${Partition}:ec2:${Region}:${Account}:elastic-gpu/*", "elastic-inference": "arn:${Partition}:elastic-inference:${Region}:${Account}:elastic-inference-accelerator/*", "elastic-ip": "arn:${Partition}:ec2:${Region}:${Account}:elastic-ip/*", "export-image-task": "arn:${Partition}:ec2:${Region}:${Account}:export-image-task/*", "export-instance-task": "arn:${Partition}:ec2:${Region}:${Account}:export-instance-task/*", "fleet": "arn:${Partition}:ec2:${Region}:${Account}:fleet/*", "fpga-image": "arn:${Partition}:ec2:${Region}:${Account}:fpga-image/*", "group": "arn:${Partition}:resource-groups:${Region}:${Account}:group/*", "host-reservation": "arn:${Partition}:ec2:${Region}:${Account}:host-reservation/*", "image": "arn:${Partition}:ec2:${Region}::image/*", "image-usage-report": "arn:${Partition}:ec2:${Region}:${Account}:image-usage-report/*", "import-image-task": "arn:${Partition}:ec2:${Region}:${Account}:import-image-task/*", "import-snapshot-task": "arn:${Partition}:ec2:${Region}:${Account}:import-snapshot-task/*", "instance": "arn:${Partition}:ec2:${Region}:${Account}:instance/*", "instance-connect-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:instance-connect-endpoint/*", "instance-event-window": "arn:${Partition}:ec2:${Region}:${Account}:instance-event-window/*", "internet-gateway": "arn:${Partition}:ec2:${Region}:${Account}:internet-gateway/*", "ipam": "arn:${Partition}:ec2::${Account}:ipam/*", "ipam-external-resource-verification-token": "arn:${Partition}:ec2::${Account}:ipam-external-resource-verification-token/*", "ipam-internet-registry-association": "arn:${Partition}:ec2::${Account}:ipam-internet-registry-association/*", "ipam-policy": "arn:${Partition}:ec2::${Account}:ipam-policy/*", "ipam-pool": "arn:${Partition}:ec2::${Account}:ipam-pool/*", "ipam-pool-allocation": "arn:${Partition}:ec2:${Region}:${Account}:ipam-pool-allocation/*", "ipam-prefix-list-resolver": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver/*", "ipam-prefix-list-resolver-target": "arn:${Partition}:ec2::${Account}:ipam-prefix-list-resolver-target/*", "ipam-resource-discovery": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery/*", "ipam-resource-discovery-association": "arn:${Partition}:ec2::${Account}:ipam-resource-discovery-association/*", "ipam-scope": "arn:${Partition}:ec2::${Account}:ipam-scope/*", "ipv4pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv4pool-ec2/*", "ipv6pool-ec2": "arn:${Partition}:ec2:${Region}:${Account}:ipv6pool-ec2/*", "key-pair": "arn:${Partition}:ec2:${Region}:${Account}:key-pair/*", "launch-template": "arn:${Partition}:ec2:${Region}:${Account}:launch-template/*", "license-configuration": "arn:${Partition}:license-manager:${Region}:${Account}:license-configuration:*", "local-gateway": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway/*", "local-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table/*", "local-gateway-route-table-virtual-interface-group-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-virtual-interface-group-association/*", "local-gateway-route-table-vpc-association": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-route-table-vpc-association/*", "local-gateway-virtual-interface": "arn:${Partition}:ec2:${Region}:${Account}:local-gateway-virtual-interface/*", "local-gateway-virtual-interface-group": "arn:${Partition}:ec2:${Region}:${Account}:Line truncated
|
||||
"operations": {
|
||||
@@ -311,6 +311,15 @@
|
||||
"glue:CreateUsageProfile": {"tagging": ["glue:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"glue:CreateWorkflow": {"tagging": ["glue:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"glue:RegisterConnectionType": {"tagging": ["glue:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"guardduty:CreateCustomDetectionRuleAssociation": {"tagging": ["guardduty:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"guardduty:CreateDetector": {"tagging": ["guardduty:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"guardduty:CreateFilter": {"tagging": ["guardduty:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"guardduty:CreateIPSet": {"tagging": ["guardduty:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"guardduty:CreateMalwareProtectionPlan": {"tagging": ["guardduty:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"guardduty:CreatePublishingDestination": {"tagging": ["guardduty:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"guardduty:CreateThreatEntitySet": {"tagging": ["guardduty:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"guardduty:CreateThreatIntelSet": {"tagging": ["guardduty:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"guardduty:CreateTrustedEntitySet": {"tagging": ["guardduty:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"iam:AcquireRole": {"tagging": ["iam:TagRole"], "requestTags": true, "notRead": "no member of the request carries tags"},
|
||||
"iam:CreateInstanceProfile": {"tagging": ["iam:TagInstanceProfile"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"iam:CreateOpenIDConnectProvider": {"tagging": ["iam:TagOpenIDConnectProvider"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
@@ -530,6 +539,14 @@
|
||||
"sagemaker:UpdateProject": {"tagging": ["sagemaker:AddTags"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"scheduler:CreateScheduleGroup": {"tagging": ["scheduler:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"secretsmanager:CreateSecret": {"tagging": ["secretsmanager:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"securityhub:CreateAggregatorV2": {"tagging": ["securityhub:TagResource"], "tags": [{"member": "Tags{}"}]},
|
||||
"securityhub:CreateAutomationRule": {"tagging": ["securityhub:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"securityhub:CreateAutomationRuleV2": {"tagging": ["securityhub:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"securityhub:CreateConfigurationPolicy": {"tagging": ["securityhub:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"securityhub:CreateConnector": {"tagging": ["securityhub:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"securityhub:CreateConnectorV2": {"tagging": ["securityhub:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"securityhub:EnableSecurityHub": {"tagging": ["securityhub:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"securityhub:EnableSecurityHubV2": {"tagging": ["securityhub:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"servicediscovery:CreateHttpNamespace": {"tagging": ["servicediscovery:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"servicediscovery:CreatePrivateDnsNamespace": {"tagging": ["servicediscovery:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"servicediscovery:CreatePublicDnsNamespace": {"tagging": ["servicediscovery:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
|
||||
@@ -484,6 +484,115 @@
|
||||
"UpgradeElasticsearchDomain": {"method": "POST", "requestUri": "/2015-01-01/es/upgradeDomain"}
|
||||
}
|
||||
},
|
||||
"guardduty": {
|
||||
"credentialScope": "guardduty",
|
||||
"apiVersion": "2017-11-28",
|
||||
"accessDeniedStatus": 403,
|
||||
"operations": {
|
||||
"AcceptAdministratorInvitation": {"method": "POST", "requestUri": "/detector/{DetectorId}/administrator"},
|
||||
"AcceptInvitation": {"method": "POST", "requestUri": "/detector/{DetectorId}/master"},
|
||||
"ArchiveFindings": {"method": "POST", "requestUri": "/detector/{DetectorId}/findings/archive"},
|
||||
"CreateCustomDetectionRuleAssociation": {"method": "POST", "requestUri": "/custom-detection-rule/association"},
|
||||
"CreateCustomDetectionRuleOrgConfiguration": {"method": "POST", "requestUri": "/custom-detection-rule/org-configuration"},
|
||||
"CreateDetector": {"method": "POST", "requestUri": "/detector"},
|
||||
"CreateFilter": {"method": "POST", "requestUri": "/detector/{DetectorId}/filter"},
|
||||
"CreateIPSet": {"method": "POST", "requestUri": "/detector/{DetectorId}/ipset"},
|
||||
"CreateInvestigation": {"method": "POST", "requestUri": "/detector/{DetectorId}/investigation"},
|
||||
"CreateMalwareProtectionPlan": {"method": "POST", "requestUri": "/malware-protection-plan"},
|
||||
"CreateMembers": {"method": "POST", "requestUri": "/detector/{DetectorId}/member"},
|
||||
"CreatePublishingDestination": {"method": "POST", "requestUri": "/detector/{DetectorId}/publishingDestination"},
|
||||
"CreateSampleFindings": {"method": "POST", "requestUri": "/detector/{DetectorId}/findings/create"},
|
||||
"CreateThreatEntitySet": {"method": "POST", "requestUri": "/detector/{DetectorId}/threatentityset"},
|
||||
"CreateThreatIntelSet": {"method": "POST", "requestUri": "/detector/{DetectorId}/threatintelset"},
|
||||
"CreateTrustedEntitySet": {"method": "POST", "requestUri": "/detector/{DetectorId}/trustedentityset"},
|
||||
"DeclineInvitations": {"method": "POST", "requestUri": "/invitation/decline"},
|
||||
"DeleteCustomDetectionRuleAssociation": {"method": "DELETE", "requestUri": "/custom-detection-rule/rule/{RuleId}/association/{AssociationId}"},
|
||||
"DeleteCustomDetectionRuleOrgConfiguration": {"method": "DELETE", "requestUri": "/custom-detection-rule/org-configuration/{RuleId}"},
|
||||
"DeleteDetector": {"method": "DELETE", "requestUri": "/detector/{DetectorId}"},
|
||||
"DeleteFilter": {"method": "DELETE", "requestUri": "/detector/{DetectorId}/filter/{FilterName}"},
|
||||
"DeleteIPSet": {"method": "DELETE", "requestUri": "/detector/{DetectorId}/ipset/{IpSetId}"},
|
||||
"DeleteInvitations": {"method": "POST", "requestUri": "/invitation/delete"},
|
||||
"DeleteMalwareProtectionPlan": {"method": "DELETE", "requestUri": "/malware-protection-plan/{MalwareProtectionPlanId}"},
|
||||
"DeleteMembers": {"method": "POST", "requestUri": "/detector/{DetectorId}/member/delete"},
|
||||
"DeletePublishingDestination": {"method": "DELETE", "requestUri": "/detector/{DetectorId}/publishingDestination/{DestinationId}"},
|
||||
"DeleteThreatEntitySet": {"method": "DELETE", "requestUri": "/detector/{DetectorId}/threatentityset/{ThreatEntitySetId}"},
|
||||
"DeleteThreatIntelSet": {"method": "DELETE", "requestUri": "/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}"},
|
||||
"DeleteTrustedEntitySet": {"method": "DELETE", "requestUri": "/detector/{DetectorId}/trustedentityset/{TrustedEntitySetId}"},
|
||||
"DescribeMalwareScans": {"method": "POST", "requestUri": "/detector/{DetectorId}/malware-scans"},
|
||||
"DescribeOrganizationConfiguration": {"method": "GET", "requestUri": "/detector/{DetectorId}/admin"},
|
||||
"DescribePublishingDestination": {"method": "GET", "requestUri": "/detector/{DetectorId}/publishingDestination/{DestinationId}"},
|
||||
"DisableOrganizationAdminAccount": {"method": "POST", "requestUri": "/admin/disable"},
|
||||
"DisassociateFromAdministratorAccount": {"method": "POST", "requestUri": "/detector/{DetectorId}/administrator/disassociate"},
|
||||
"DisassociateFromMasterAccount": {"method": "POST", "requestUri": "/detector/{DetectorId}/master/disassociate"},
|
||||
"DisassociateMembers": {"method": "POST", "requestUri": "/detector/{DetectorId}/member/disassociate"},
|
||||
"EnableOrganizationAdminAccount": {"method": "POST", "requestUri": "/admin/enable"},
|
||||
"GetAdministratorAccount": {"method": "GET", "requestUri": "/detector/{DetectorId}/administrator"},
|
||||
"GetCoverageStatistics": {"method": "POST", "requestUri": "/detector/{DetectorId}/coverage/statistics"},
|
||||
"GetCustomDetectionRule": {"method": "GET", "requestUri": "/custom-detection-rule/rule/{RuleId}"},
|
||||
"GetCustomDetectionRuleAssociation": {"method": "GET", "requestUri": "/custom-detection-rule/rule/{RuleId}/association/{AssociationId}"},
|
||||
"GetCustomDetectionRuleOrgConfiguration": {"method": "GET", "requestUri": "/custom-detection-rule/org-configuration/{RuleId}"},
|
||||
"GetDetector": {"method": "GET", "requestUri": "/detector/{DetectorId}"},
|
||||
"GetFilter": {"method": "GET", "requestUri": "/detector/{DetectorId}/filter/{FilterName}"},
|
||||
"GetFindings": {"method": "POST", "requestUri": "/detector/{DetectorId}/findings/get"},
|
||||
"GetFindingsStatistics": {"method": "POST", "requestUri": "/detector/{DetectorId}/findings/statistics"},
|
||||
"GetIPSet": {"method": "GET", "requestUri": "/detector/{DetectorId}/ipset/{IpSetId}"},
|
||||
"GetInvestigation": {"method": "GET", "requestUri": "/detector/{DetectorId}/investigation/{InvestigationId}"},
|
||||
"GetInvitationsCount": {"method": "GET", "requestUri": "/invitation/count"},
|
||||
"GetMalwareProtectionPlan": {"method": "GET", "requestUri": "/malware-protection-plan/{MalwareProtectionPlanId}"},
|
||||
"GetMalwareScan": {"method": "GET", "requestUri": "/malware-scan/{ScanId}"},
|
||||
"GetMalwareScanSettings": {"method": "GET", "requestUri": "/detector/{DetectorId}/malware-scan-settings"},
|
||||
"GetMasterAccount": {"method": "GET", "requestUri": "/detector/{DetectorId}/master"},
|
||||
"GetMemberDetectors": {"method": "POST", "requestUri": "/detector/{DetectorId}/member/detector/get"},
|
||||
"GetMembers": {"method": "POST", "requestUri": "/detector/{DetectorId}/member/get"},
|
||||
"GetOrganizationStatistics": {"method": "GET", "requestUri": "/organization/statistics"},
|
||||
"GetRemainingFreeTrialDays": {"method": "POST", "requestUri": "/detector/{DetectorId}/freeTrial/daysRemaining"},
|
||||
"GetThreatEntitySet": {"method": "GET", "requestUri": "/detector/{DetectorId}/threatentityset/{ThreatEntitySetId}"},
|
||||
"GetThreatIntelSet": {"method": "GET", "requestUri": "/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}"},
|
||||
"GetTrustedEntitySet": {"method": "GET", "requestUri": "/detector/{DetectorId}/trustedentityset/{TrustedEntitySetId}"},
|
||||
"GetUsageStatistics": {"method": "POST", "requestUri": "/detector/{DetectorId}/usage/statistics"},
|
||||
"InviteMembers": {"method": "POST", "requestUri": "/detector/{DetectorId}/member/invite"},
|
||||
"ListCoverage": {"method": "POST", "requestUri": "/detector/{DetectorId}/coverage"},
|
||||
"ListCustomDetectionRuleAssociations": {"method": "GET", "requestUri": "/custom-detection-rule/association"},
|
||||
"ListCustomDetectionRuleOrgConfigurations": {"method": "GET", "requestUri": "/custom-detection-rule/org-configuration"},
|
||||
"ListCustomDetectionRules": {"method": "POST", "requestUri": "/custom-detection-rule/rule"},
|
||||
"ListDetectors": {"method": "GET", "requestUri": "/detector"},
|
||||
"ListFilters": {"method": "GET", "requestUri": "/detector/{DetectorId}/filter"},
|
||||
"ListFindings": {"method": "POST", "requestUri": "/detector/{DetectorId}/findings"},
|
||||
"ListIPSets": {"method": "GET", "requestUri": "/detector/{DetectorId}/ipset"},
|
||||
"ListInvestigations": {"method": "POST", "requestUri": "/detector/{DetectorId}/investigation/list"},
|
||||
"ListInvitations": {"method": "GET", "requestUri": "/invitation"},
|
||||
"ListMalwareProtectionPlans": {"method": "GET", "requestUri": "/malware-protection-plan"},
|
||||
"ListMalwareScans": {"method": "POST", "requestUri": "/malware-scan"},
|
||||
"ListMembers": {"method": "GET", "requestUri": "/detector/{DetectorId}/member"},
|
||||
"ListOrganizationAdminAccounts": {"method": "GET", "requestUri": "/admin"},
|
||||
"ListPublishingDestinations": {"method": "GET", "requestUri": "/detector/{DetectorId}/publishingDestination"},
|
||||
"ListTagsForResource": {"method": "GET", "requestUri": "/tags/{ResourceArn}"},
|
||||
"ListThreatEntitySets": {"method": "GET", "requestUri": "/detector/{DetectorId}/threatentityset"},
|
||||
"ListThreatIntelSets": {"method": "GET", "requestUri": "/detector/{DetectorId}/threatintelset"},
|
||||
"ListTrustedEntitySets": {"method": "GET", "requestUri": "/detector/{DetectorId}/trustedentityset"},
|
||||
"SendObjectMalwareScan": {"method": "POST", "requestUri": "/object-malware-scan/send"},
|
||||
"StartMalwareScan": {"method": "POST", "requestUri": "/malware-scan/start"},
|
||||
"StartMonitoringMembers": {"method": "POST", "requestUri": "/detector/{DetectorId}/member/start"},
|
||||
"StopMonitoringMembers": {"method": "POST", "requestUri": "/detector/{DetectorId}/member/stop"},
|
||||
"TagResource": {"method": "POST", "requestUri": "/tags/{ResourceArn}"},
|
||||
"UnarchiveFindings": {"method": "POST", "requestUri": "/detector/{DetectorId}/findings/unarchive"},
|
||||
"UntagResource": {"method": "DELETE", "requestUri": "/tags/{ResourceArn}"},
|
||||
"UpdateCustomDetectionRuleAssociation": {"method": "PUT", "requestUri": "/custom-detection-rule/rule/{RuleId}/association/{AssociationId}"},
|
||||
"UpdateCustomDetectionRuleOrgConfiguration": {"method": "PUT", "requestUri": "/custom-detection-rule/org-configuration/{RuleId}"},
|
||||
"UpdateDetector": {"method": "POST", "requestUri": "/detector/{DetectorId}"},
|
||||
"UpdateFilter": {"method": "POST", "requestUri": "/detector/{DetectorId}/filter/{FilterName}"},
|
||||
"UpdateFindingsFeedback": {"method": "POST", "requestUri": "/detector/{DetectorId}/findings/feedback"},
|
||||
"UpdateIPSet": {"method": "POST", "requestUri": "/detector/{DetectorId}/ipset/{IpSetId}"},
|
||||
"UpdateMalwareProtectionPlan": {"method": "PATCH", "requestUri": "/malware-protection-plan/{MalwareProtectionPlanId}"},
|
||||
"UpdateMalwareScanSettings": {"method": "POST", "requestUri": "/detector/{DetectorId}/malware-scan-settings"},
|
||||
"UpdateMemberDetectors": {"method": "POST", "requestUri": "/detector/{DetectorId}/member/detector/update"},
|
||||
"UpdateOrganizationConfiguration": {"method": "POST", "requestUri": "/detector/{DetectorId}/admin"},
|
||||
"UpdatePublishingDestination": {"method": "POST", "requestUri": "/detector/{DetectorId}/publishingDestination/{DestinationId}"},
|
||||
"UpdateThreatEntitySet": {"method": "POST", "requestUri": "/detector/{DetectorId}/threatentityset/{ThreatEntitySetId}"},
|
||||
"UpdateThreatIntelSet": {"method": "POST", "requestUri": "/detector/{DetectorId}/threatintelset/{ThreatIntelSetId}"},
|
||||
"UpdateTrustedEntitySet": {"method": "POST", "requestUri": "/detector/{DetectorId}/trustedentityset/{TrustedEntitySetId}"}
|
||||
}
|
||||
},
|
||||
"inspector2": {
|
||||
"credentialScope": "inspector2",
|
||||
"apiVersion": "2020-06-08",
|
||||
@@ -1564,6 +1673,136 @@
|
||||
"UpdateSchedule": {"method": "PUT", "requestUri": "/schedules/{Name}"}
|
||||
}
|
||||
},
|
||||
"securityhub": {
|
||||
"credentialScope": "securityhub",
|
||||
"apiVersion": "2018-10-26",
|
||||
"accessDeniedStatus": 403,
|
||||
"operations": {
|
||||
"AcceptAdministratorInvitation": {"method": "POST", "requestUri": "/administrator"},
|
||||
"AcceptInvitation": {"method": "POST", "requestUri": "/master"},
|
||||
"BatchDeleteAutomationRules": {"method": "POST", "requestUri": "/automationrules/delete"},
|
||||
"BatchDisableStandards": {"method": "POST", "requestUri": "/standards/deregister"},
|
||||
"BatchEnableStandards": {"method": "POST", "requestUri": "/standards/register"},
|
||||
"BatchGetAutomationRules": {"method": "POST", "requestUri": "/automationrules/get"},
|
||||
"BatchGetConfigurationPolicyAssociations": {"method": "POST", "requestUri": "/configurationPolicyAssociation/batchget"},
|
||||
"BatchGetSecurityControls": {"method": "POST", "requestUri": "/securityControls/batchGet"},
|
||||
"BatchGetStandardsControlAssociations": {"method": "POST", "requestUri": "/associations/batchGet"},
|
||||
"BatchImportFindings": {"method": "POST", "requestUri": "/findings/import"},
|
||||
"BatchUpdateAutomationRules": {"method": "PATCH", "requestUri": "/automationrules/update"},
|
||||
"BatchUpdateFindings": {"method": "PATCH", "requestUri": "/findings/batchupdate"},
|
||||
"BatchUpdateFindingsV2": {"method": "PATCH", "requestUri": "/findingsv2/batchupdatev2"},
|
||||
"BatchUpdateStandardsControlAssociations": {"method": "PATCH", "requestUri": "/associations"},
|
||||
"CancelExportJobV2": {"method": "POST", "requestUri": "/exportjobsv2/{ExportJobId}/cancel"},
|
||||
"CreateActionTarget": {"method": "POST", "requestUri": "/actionTargets"},
|
||||
"CreateAggregatorV2": {"method": "POST", "requestUri": "/aggregatorv2/create"},
|
||||
"CreateAutomationRule": {"method": "POST", "requestUri": "/automationrules/create"},
|
||||
"CreateAutomationRuleV2": {"method": "POST", "requestUri": "/automationrulesv2/create"},
|
||||
"CreateConfigurationPolicy": {"method": "POST", "requestUri": "/configurationPolicy/create"},
|
||||
"CreateConnector": {"method": "POST", "requestUri": "/connectors"},
|
||||
"CreateConnectorV2": {"method": "POST", "requestUri": "/connectorsv2"},
|
||||
"CreateFindingAggregator": {"method": "POST", "requestUri": "/findingAggregator/create"},
|
||||
"CreateInsight": {"method": "POST", "requestUri": "/insights"},
|
||||
"CreateMembers": {"method": "POST", "requestUri": "/members"},
|
||||
"CreateTicketV2": {"method": "POST", "requestUri": "/ticketsv2"},
|
||||
"DeclineInvitations": {"method": "POST", "requestUri": "/invitations/decline"},
|
||||
"DeleteActionTarget": {"method": "DELETE", "requestUri": "/actionTargets/{ActionTargetArn+}"},
|
||||
"DeleteAggregatorV2": {"method": "DELETE", "requestUri": "/aggregatorv2/delete/{AggregatorV2Arn+}"},
|
||||
"DeleteAutomationRuleV2": {"method": "DELETE", "requestUri": "/automationrulesv2/{Identifier}"},
|
||||
"DeleteConfigurationPolicy": {"method": "DELETE", "requestUri": "/configurationPolicy/{Identifier}"},
|
||||
"DeleteConnector": {"method": "DELETE", "requestUri": "/connectors/{ConnectorId+}"},
|
||||
"DeleteConnectorV2": {"method": "DELETE", "requestUri": "/connectorsv2/{ConnectorId+}"},
|
||||
"DeleteFindingAggregator": {"method": "DELETE", "requestUri": "/findingAggregator/delete/{FindingAggregatorArn+}"},
|
||||
"DeleteInsight": {"method": "DELETE", "requestUri": "/insights/{InsightArn+}"},
|
||||
"DeleteInvitations": {"method": "POST", "requestUri": "/invitations/delete"},
|
||||
"DeleteMembers": {"method": "POST", "requestUri": "/members/delete"},
|
||||
"DescribeActionTargets": {"method": "POST", "requestUri": "/actionTargets/get"},
|
||||
"DescribeHub": {"method": "GET", "requestUri": "/accounts"},
|
||||
"DescribeOrganizationConfiguration": {"method": "GET", "requestUri": "/organization/configuration"},
|
||||
"DescribeProducts": {"method": "GET", "requestUri": "/products"},
|
||||
"DescribeProductsV2": {"method": "GET", "requestUri": "/productsV2"},
|
||||
"DescribeSecurityHubV2": {"method": "GET", "requestUri": "/hubv2"},
|
||||
"DescribeStandards": {"method": "GET", "requestUri": "/standards"},
|
||||
"DescribeStandardsControls": {"method": "GET", "requestUri": "/standards/controls/{StandardsSubscriptionArn+}"},
|
||||
"DisableImportFindingsForProduct": {"method": "DELETE", "requestUri": "/productSubscriptions/{ProductSubscriptionArn+}"},
|
||||
"DisableOrganizationAdminAccount": {"method": "POST", "requestUri": "/organization/admin/disable"},
|
||||
"DisableSecurityHub": {"method": "DELETE", "requestUri": "/accounts"},
|
||||
"DisableSecurityHubFeatureV2": {"method": "DELETE", "requestUri": "/hubv2/feature/{FeatureName}"},
|
||||
"DisableSecurityHubV2": {"method": "DELETE", "requestUri": "/hubv2"},
|
||||
"DisassociateFromAdministratorAccount": {"method": "POST", "requestUri": "/administrator/disassociate"},
|
||||
"DisassociateFromMasterAccount": {"method": "POST", "requestUri": "/master/disassociate"},
|
||||
"DisassociateMembers": {"method": "POST", "requestUri": "/members/disassociate"},
|
||||
"EnableImportFindingsForProduct": {"method": "POST", "requestUri": "/productSubscriptions"},
|
||||
"EnableOrganizationAdminAccount": {"method": "POST", "requestUri": "/organization/admin/enable"},
|
||||
"EnableSecurityHub": {"method": "POST", "requestUri": "/accounts"},
|
||||
"EnableSecurityHubFeatureV2": {"method": "POST", "requestUri": "/hubv2/feature/{FeatureName}"},
|
||||
"EnableSecurityHubV2": {"method": "POST", "requestUri": "/hubv2"},
|
||||
"GenerateRecommendedPolicyV2": {"method": "POST", "requestUri": "/recommendedPolicyV2/{MetadataUid}"},
|
||||
"GetAdministratorAccount": {"method": "GET", "requestUri": "/administrator"},
|
||||
"GetAggregatorV2": {"method": "GET", "requestUri": "/aggregatorv2/get/{AggregatorV2Arn+}"},
|
||||
"GetAutomationRuleV2": {"method": "GET", "requestUri": "/automationrulesv2/{Identifier}"},
|
||||
"GetConfigurationPolicy": {"method": "GET", "requestUri": "/configurationPolicy/get/{Identifier}"},
|
||||
"GetConfigurationPolicyAssociation": {"method": "POST", "requestUri": "/configurationPolicyAssociation/get"},
|
||||
"GetConnector": {"method": "GET", "requestUri": "/connectors/{ConnectorId+}"},
|
||||
"GetConnectorV2": {"method": "GET", "requestUri": "/connectorsv2/{ConnectorId+}"},
|
||||
"GetEnabledStandards": {"method": "POST", "requestUri": "/standards/get"},
|
||||
"GetExportJobV2": {"method": "GET", "requestUri": "/exportjobsv2/{ExportJobId}"},
|
||||
"GetFindingAggregator": {"method": "GET", "requestUri": "/findingAggregator/get/{FindingAggregatorArn+}"},
|
||||
"GetFindingHistory": {"method": "POST", "requestUri": "/findingHistory/get"},
|
||||
"GetFindingStatisticsV2": {"method": "POST", "requestUri": "/findingsv2/statistics"},
|
||||
"GetFindings": {"method": "POST", "requestUri": "/findings"},
|
||||
"GetFindingsTrendsV2": {"method": "POST", "requestUri": "/findingsTrendsv2"},
|
||||
"GetFindingsV2": {"method": "POST", "requestUri": "/findingsv2"},
|
||||
"GetInsightResults": {"method": "GET", "requestUri": "/insights/results/{InsightArn+}"},
|
||||
"GetInsights": {"method": "POST", "requestUri": "/insights/get"},
|
||||
"GetInvitationsCount": {"method": "GET", "requestUri": "/invitations/count"},
|
||||
"GetMasterAccount": {"method": "GET", "requestUri": "/master"},
|
||||
"GetMembers": {"method": "POST", "requestUri": "/members/get"},
|
||||
"GetRecommendedPolicyV2": {"method": "GET", "requestUri": "/recommendedPolicyV2/{MetadataUid}"},
|
||||
"GetRemediationsV2": {"method": "POST", "requestUri": "/GetRemediationsV2"},
|
||||
"GetResourcesStatisticsV2": {"method": "POST", "requestUri": "/resourcesv2/statistics"},
|
||||
"GetResourcesTrendsV2": {"method": "POST", "requestUri": "/resourcesTrendsv2"},
|
||||
"GetResourcesV2": {"method": "POST", "requestUri": "/resourcesv2"},
|
||||
"GetSecurityControlDefinition": {"method": "GET", "requestUri": "/securityControl/definition"},
|
||||
"InviteMembers": {"method": "POST", "requestUri": "/members/invite"},
|
||||
"ListAggregatorsV2": {"method": "GET", "requestUri": "/aggregatorv2/list"},
|
||||
"ListAutomationRules": {"method": "GET", "requestUri": "/automationrules/list"},
|
||||
"ListAutomationRulesV2": {"method": "GET", "requestUri": "/automationrulesv2/list"},
|
||||
"ListConfigurationPolicies": {"method": "GET", "requestUri": "/configurationPolicy/list"},
|
||||
"ListConfigurationPolicyAssociations": {"method": "POST", "requestUri": "/configurationPolicyAssociation/list"},
|
||||
"ListConnectors": {"method": "GET", "requestUri": "/connectors"},
|
||||
"ListConnectorsV2": {"method": "GET", "requestUri": "/connectorsv2"},
|
||||
"ListEnabledProductsForImport": {"method": "GET", "requestUri": "/productSubscriptions"},
|
||||
"ListExportJobsV2": {"method": "GET", "requestUri": "/exportjobsv2"},
|
||||
"ListExposuresByRemediationV2": {"method": "POST", "requestUri": "/ListExposuresByRemediationV2"},
|
||||
"ListFindingAggregators": {"method": "GET", "requestUri": "/findingAggregator/list"},
|
||||
"ListFreeTrialStatusesV2": {"method": "POST", "requestUri": "/freetrial/statusv2/list"},
|
||||
"ListInvitations": {"method": "GET", "requestUri": "/invitations"},
|
||||
"ListMembers": {"method": "GET", "requestUri": "/members"},
|
||||
"ListOrganizationAdminAccounts": {"method": "GET", "requestUri": "/organization/admin"},
|
||||
"ListSecurityControlDefinitions": {"method": "GET", "requestUri": "/securityControls/definitions"},
|
||||
"ListStandardsControlAssociations": {"method": "GET", "requestUri": "/associations"},
|
||||
"ListTagsForResource": {"method": "GET", "requestUri": "/tags/{ResourceArn}"},
|
||||
"RegisterConnectorV2": {"method": "POST", "requestUri": "/connectorsv2/register"},
|
||||
"StartConfigurationPolicyAssociation": {"method": "POST", "requestUri": "/configurationPolicyAssociation/associate"},
|
||||
"StartConfigurationPolicyDisassociation": {"method": "POST", "requestUri": "/configurationPolicyAssociation/disassociate"},
|
||||
"StartExportJobV2": {"method": "POST", "requestUri": "/exportjobsv2"},
|
||||
"TagResource": {"method": "POST", "requestUri": "/tags/{ResourceArn}"},
|
||||
"UntagResource": {"method": "DELETE", "requestUri": "/tags/{ResourceArn}"},
|
||||
"UpdateActionTarget": {"method": "PATCH", "requestUri": "/actionTargets/{ActionTargetArn+}"},
|
||||
"UpdateAggregatorV2": {"method": "PATCH", "requestUri": "/aggregatorv2/update/{AggregatorV2Arn+}"},
|
||||
"UpdateAutomationRuleV2": {"method": "PATCH", "requestUri": "/automationrulesv2/{Identifier}"},
|
||||
"UpdateConfigurationPolicy": {"method": "PATCH", "requestUri": "/configurationPolicy/{Identifier}"},
|
||||
"UpdateConnector": {"method": "PATCH", "requestUri": "/connectors/{ConnectorId+}"},
|
||||
"UpdateConnectorV2": {"method": "PATCH", "requestUri": "/connectorsv2/{ConnectorId+}"},
|
||||
"UpdateFindingAggregator": {"method": "PATCH", "requestUri": "/findingAggregator/update"},
|
||||
"UpdateFindings": {"method": "PATCH", "requestUri": "/findings"},
|
||||
"UpdateInsight": {"method": "PATCH", "requestUri": "/insights/{InsightArn+}"},
|
||||
"UpdateOrganizationConfiguration": {"method": "POST", "requestUri": "/organization/configuration"},
|
||||
"UpdateSecurityControl": {"method": "PATCH", "requestUri": "/securityControl/update"},
|
||||
"UpdateSecurityHubConfiguration": {"method": "PATCH", "requestUri": "/accounts"},
|
||||
"UpdateStandardsControl": {"method": "PATCH", "requestUri": "/standards/control/{StandardsControlArn+}"}
|
||||
}
|
||||
},
|
||||
"signer": {
|
||||
"credentialScope": "signer",
|
||||
"apiVersion": "2017-08-25",
|
||||
|
||||
@@ -647,6 +647,67 @@ class IamRestRouteEnforcementIntegrationTest {
|
||||
as(user, "access-analyzer").delete("/analyzer/" + analyzer).then().statusCode(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* A Security Hub request is checked on the caller's hub in the Region it is signed for, {@code hub/default}, the
|
||||
* ARN Security Hub gives it, or on the hub its {@code HubArn} names: a caller with no grant is refused, a grant
|
||||
* scoped to the hub lets {@code DescribeStandards} through and {@code DescribeHub} reach Security Hub, which is
|
||||
* not enabled there, with or without the hub's ARN, a request naming or signed for another Region's hub is
|
||||
* refused, and a deny on the hub holds under an allow on everything.
|
||||
*/
|
||||
@Test
|
||||
void aSecurityHubRequestIsCheckedOnTheHub() {
|
||||
String user = user("route-hub");
|
||||
String region = "eu-west-3";
|
||||
String hub = "arn:aws:securityhub:" + region + ":" + ACCOUNT + ":hub/default";
|
||||
String otherHub = "arn:aws:securityhub:us-west-2:" + ACCOUNT + ":hub/default";
|
||||
refused(as(user, region, "securityhub").get("/standards").then(), "securityhub:DescribeStandards");
|
||||
refused(as(user, region, "securityhub").body("{}").post("/accounts").then(), "securityhub:EnableSecurityHub");
|
||||
|
||||
policy(user, allow("securityhub:DescribeStandards", hub) + "," + allow("securityhub:DescribeHub", hub));
|
||||
as(user, region, "securityhub").get("/standards").then().statusCode(200);
|
||||
as(user, region, "securityhub").get("/accounts").then().statusCode(404)
|
||||
.body(containsString("ResourceNotFoundException"));
|
||||
as(user, region, "securityhub").queryParam("HubArn", hub).get("/accounts").then().statusCode(404)
|
||||
.body(containsString("ResourceNotFoundException"));
|
||||
refused(as(user, region, "securityhub").queryParam("HubArn", otherHub).get("/accounts").then(),
|
||||
"securityhub:DescribeHub");
|
||||
refused(as(user, "us-west-2", "securityhub").get("/standards").then(), "securityhub:DescribeStandards");
|
||||
|
||||
policy(user, allow("securityhub:*", "*") + "," + deny("securityhub:DescribeStandards", hub));
|
||||
refused(as(user, region, "securityhub").get("/standards").then(), "securityhub:DescribeStandards");
|
||||
as(user, "us-west-2", "securityhub").get("/standards").then().statusCode(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* A GuardDuty request naming its detector in its path is checked on that detector, the ARN GuardDuty gives it,
|
||||
* and one naming none as its action on {@code *}: a caller with no grant is refused, a grant scoped to the
|
||||
* detector lets {@code GetDetector} read it, a request naming another detector is refused, and a deny on the
|
||||
* detector holds under an allow on everything.
|
||||
*/
|
||||
@Test
|
||||
void aGuardDutyRequestIsCheckedOnTheDetectorItsPathNames() {
|
||||
String user = user("route-detector");
|
||||
String region = "eu-west-3";
|
||||
refused(as(user, region, "guardduty").get("/detector").then(), "guardduty:ListDetectors");
|
||||
String detector = given().header("Authorization", auth(ADMIN, region, "guardduty"))
|
||||
.contentType("application/json").body("{\"enable\":true}").post("/detector")
|
||||
.then().statusCode(200).extract().path("detectorId");
|
||||
cleanup.register(() -> given().header("Authorization", auth(ADMIN, region, "guardduty"))
|
||||
.delete("/detector/" + detector));
|
||||
String arn = "arn:aws:guardduty:" + region + ":" + ACCOUNT + ":detector/" + detector;
|
||||
refused(as(user, region, "guardduty").get("/detector/" + detector).then(), "guardduty:GetDetector");
|
||||
|
||||
policy(user, allow("guardduty:GetDetector", arn));
|
||||
as(user, region, "guardduty").get("/detector/" + detector).then().statusCode(200)
|
||||
.body("status", equalTo("ENABLED"));
|
||||
refused(as(user, region, "guardduty").get("/detector/other" + detector).then(), "guardduty:GetDetector");
|
||||
refused(as(user, region, "guardduty").get("/detector").then(), "guardduty:ListDetectors");
|
||||
|
||||
policy(user, allow("guardduty:*", "*") + "," + deny("guardduty:GetDetector", arn));
|
||||
refused(as(user, region, "guardduty").get("/detector/" + detector).then(), "guardduty:GetDetector");
|
||||
as(user, region, "guardduty").get("/detector").then().statusCode(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* A segment ending in a matrix parameter, which the router ignores, is checked as the route it reaches, on the
|
||||
* resource its path names: the routed path carries no matrix parameter, so the rule matches and the ARN is the
|
||||
|
||||
@@ -599,6 +599,76 @@ class IamTagOnCreateEnforcementIntegrationTest {
|
||||
return "{\"Tags\":{\"team\":{\"TagKey\":\"team\",\"TagValue\":\"" + team + "\"}}}";
|
||||
}
|
||||
|
||||
/**
|
||||
* A hub enabled with tags needs {@code securityhub:TagResource} on the hub, {@code hub/default} in the Region the
|
||||
* request is signed for, and {@code EnableSecurityHub} is checked with the tags it carries; one enabled with none
|
||||
* needs {@code EnableSecurityHub} alone. Each enable is in a Region of its own, as a hub is enabled once.
|
||||
*/
|
||||
@Test
|
||||
void aHubEnabledWithTagsNeedsTagResourceOnTheHub() {
|
||||
User user = user("tag-hub");
|
||||
String region = "ap-southeast-2";
|
||||
String hub = "arn:aws:securityhub:" + region + ":" + ACCOUNT + ":hub/default";
|
||||
user.policy(allow("securityhub:EnableSecurityHub"));
|
||||
refusedRest(user.rest("securityhub", region).body(hub("blue")).post("/accounts").then(),
|
||||
"securityhub:TagResource");
|
||||
|
||||
user.policy("{\"Effect\":\"Allow\",\"Action\":\"securityhub:EnableSecurityHub\",\"Resource\":\"*\","
|
||||
+ "\"Condition\":{\"StringEquals\":{\"aws:RequestTag/team\":\"blue\"}}},"
|
||||
+ "{\"Effect\":\"Allow\",\"Action\":\"securityhub:TagResource\",\"Resource\":\"" + hub + "\"}");
|
||||
refusedRest(user.rest("securityhub", region).body(hub("red")).post("/accounts").then(),
|
||||
"securityhub:EnableSecurityHub");
|
||||
refusedRest(user.rest("securityhub", "ap-northeast-3").body(hub("blue")).post("/accounts").then(),
|
||||
"securityhub:TagResource");
|
||||
user.rest("securityhub", region).body(hub("blue")).post("/accounts").then().statusCode(200);
|
||||
admin("securityhub", region).get("/tags/{arn}", hub).then().statusCode(200).body("Tags.team", equalTo("blue"));
|
||||
|
||||
user.policy(allow("securityhub:EnableSecurityHub"));
|
||||
user.rest("securityhub", "ap-southeast-1").body(hub(null)).post("/accounts").then().statusCode(200);
|
||||
}
|
||||
|
||||
/**
|
||||
* A detector created with tags needs {@code guardduty:TagResource}, on {@code *} as the detector's id is one
|
||||
* GuardDuty mints, and {@code CreateDetector} is checked with the tags it carries; one created with none needs
|
||||
* {@code CreateDetector} alone.
|
||||
*/
|
||||
@Test
|
||||
void aDetectorCreatedWithTagsNeedsTagResource() {
|
||||
User user = user("tag-detector");
|
||||
String region = "ap-southeast-2";
|
||||
user.policy(allow("guardduty:CreateDetector"));
|
||||
refusedRest(user.rest("guardduty", region).body(detector("blue")).post("/detector").then(),
|
||||
"guardduty:TagResource");
|
||||
|
||||
user.policy("{\"Effect\":\"Allow\",\"Action\":\"guardduty:CreateDetector\",\"Resource\":\"*\","
|
||||
+ "\"Condition\":{\"StringEquals\":{\"aws:RequestTag/team\":\"blue\"}}},"
|
||||
+ allow("guardduty:TagResource"));
|
||||
refusedRest(user.rest("guardduty", region).body(detector("red")).post("/detector").then(),
|
||||
"guardduty:CreateDetector");
|
||||
String tagged = user.rest("guardduty", region).body(detector("blue")).post("/detector").then().statusCode(200)
|
||||
.extract().path("detectorId");
|
||||
cleanup.register(() -> admin("guardduty", region).delete("/detector/{id}", tagged));
|
||||
admin("guardduty", region).get("/detector/{id}", tagged).then().statusCode(200)
|
||||
.body("tags.team", equalTo("blue"));
|
||||
admin("guardduty", region).delete("/detector/{id}", tagged).then().statusCode(200);
|
||||
|
||||
user.policy(allow("guardduty:CreateDetector"));
|
||||
String untagged = user.rest("guardduty", region).body(detector(null)).post("/detector").then()
|
||||
.statusCode(200).extract().path("detectorId");
|
||||
cleanup.register(() -> admin("guardduty", region).delete("/detector/{id}", untagged));
|
||||
}
|
||||
|
||||
/** An {@code EnableSecurityHub} body tagging the hub with the {@code team} given, or with no tags. */
|
||||
private static String hub(String team) {
|
||||
return team == null ? "{\"EnableDefaultStandards\":false}"
|
||||
: "{\"EnableDefaultStandards\":false,\"Tags\":{\"team\":\"" + team + "\"}}";
|
||||
}
|
||||
|
||||
/** A {@code CreateDetector} body tagging the detector with the {@code team} given, or with no tags. */
|
||||
private static String detector(String team) {
|
||||
return team == null ? "{\"enable\":true}" : "{\"enable\":true,\"tags\":{\"team\":\"" + team + "\"}}";
|
||||
}
|
||||
|
||||
/** A {@code CreateAnalyzer} body tagging the analyzer with the {@code team} given, or with no tags. */
|
||||
private static String analyzer(String name, String team) {
|
||||
String tags = team == null ? "" : ",\"tags\":{\"team\":\"" + team + "\"}";
|
||||
@@ -709,6 +779,10 @@ class IamTagOnCreateEnforcementIntegrationTest {
|
||||
return given().header("Authorization", auth(ADMIN, service));
|
||||
}
|
||||
|
||||
private static RequestSpecification admin(String service, String region) {
|
||||
return given().header("Authorization", auth(ADMIN, region, service));
|
||||
}
|
||||
|
||||
private static String suffix() {
|
||||
return Long.toString(System.nanoTime(), 36);
|
||||
}
|
||||
@@ -736,6 +810,10 @@ class IamTagOnCreateEnforcementIntegrationTest {
|
||||
return given().header("Authorization", auth(accessKeyId, service)).contentType("application/json");
|
||||
}
|
||||
|
||||
RequestSpecification rest(String service, String region) {
|
||||
return given().header("Authorization", auth(accessKeyId, region, service)).contentType("application/json");
|
||||
}
|
||||
|
||||
RequestSpecification cbor(String service) {
|
||||
return given().header("Authorization", auth(accessKeyId, service)).header("smithy-protocol", "rpc-v2-cbor")
|
||||
.contentType("application/cbor").accept("application/cbor");
|
||||
|
||||
@@ -59,6 +59,10 @@ that names another resource beside the one it makes, the pipeline a webhook conn
|
||||
service is made in, marks the one it makes `made`, of a type, or with an ARN format's leading resource word,
|
||||
related to its name past the verb, so its tags are checked there alone.
|
||||
|
||||
An optional member holding the ARN of a type whose format has no variable of its own, Security Hub's `HubArn` and
|
||||
`hub/default`, also names that type when the request leaves it out: there is one such resource in the caller's
|
||||
account and Region, the one the service acts on then (`DescribeHub`).
|
||||
|
||||
A type nothing names is not checked: an action lists the optional resources its requests may use
|
||||
(`RunInstances` lists `elastic-gpu`), and checking one a request does not name would refuse a grant
|
||||
that covers what it does name. An operation whose action acts on no resource type, or whose request
|
||||
@@ -171,7 +175,8 @@ NAMESPACES = ("access-analyzer", "acm", "application-autoscaling", "athena", "bc
|
||||
"cognito-idp", "controltower", "cur", "datasync", "ec2", "ecr", "elasticloadbalancing", "elasticmapreduce", "es", "events",
|
||||
"firehose", "globalaccelerator", "inspector2", "kinesisanalytics", "macie2", "payment-cryptography",
|
||||
"quicksight", "redshift", "redshift-data", "redshift-serverless", "rekognition", "servicediscovery",
|
||||
"servicequotas", "sso", "states", "textract", "timestream-influxdb", "translate", "signer", "xray")
|
||||
"servicequotas", "sso", "states", "textract", "timestream-influxdb", "translate", "signer", "xray",
|
||||
"securityhub", "guardduty")
|
||||
|
||||
# SDK clients the reference lists for a namespace's operations whose requests Floci does not serve, and why: their
|
||||
# members are not read.
|
||||
@@ -253,7 +258,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"execute-api": _REST,
|
||||
"fis": _REST,
|
||||
"glue": _LATER,
|
||||
"guardduty": _REST,
|
||||
"identitystore": _LATER,
|
||||
"iot": _LATER,
|
||||
"kafka": _REST,
|
||||
@@ -273,7 +277,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"s3tables": _REST,
|
||||
"s3vectors": _REST,
|
||||
"sagemaker": _LATER,
|
||||
"securityhub": _REST,
|
||||
"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 "
|
||||
@@ -728,6 +731,39 @@ def _protocols(model: dict) -> set[str]:
|
||||
return set(metadata.get("protocols") or [metadata.get("protocol")])
|
||||
|
||||
|
||||
def with_absent_arn(resources: list[dict], formats: dict[str, str], optional: set[str]) -> list[dict]:
|
||||
"""Adds, for an optional top-level member holding the ARN of a type whose format has no variable of its own
|
||||
(Security Hub's `hub/default`), that type for a request leaving the member out: there is one resource of the
|
||||
type in the caller's account and Region, the one its service acts on then (`DescribeHub` with no `HubArn`)."""
|
||||
named = {resource["type"] for resource in resources if "type" in resource}
|
||||
added = []
|
||||
for resource in resources:
|
||||
member = resource.get("arn")
|
||||
if "types" not in resource or member not in optional:
|
||||
continue
|
||||
for kind in resource["types"]:
|
||||
variables = [v for v in VARIABLE_RE.findall(formats.get(kind, "")) if v not in KNOWN_VARIABLES]
|
||||
if kind in formats and not variables and kind not in named and related(stem(member), stem(kind)):
|
||||
added.append({"type": kind, "fill": {}, "when": {member: [None]}})
|
||||
named.add(kind)
|
||||
return resources + added
|
||||
|
||||
|
||||
def optional_members(models: dict[str, dict], operation: str) -> set[str]:
|
||||
"""The top-level members of the operation's request that hold a string and that it may leave out."""
|
||||
found: set[str] = set()
|
||||
for model in models.values():
|
||||
spec = model["operations"].get(operation)
|
||||
if spec is None or "input" not in spec or not READ_PROTOCOLS & _protocols(model):
|
||||
continue
|
||||
root = model["shapes"][spec["input"]["shape"]]
|
||||
required = set(root.get("required", []))
|
||||
for name, member in root.get("members", {}).items():
|
||||
if name not in required and model["shapes"][member["shape"]].get("type") == "string":
|
||||
found.add(name)
|
||||
return found
|
||||
|
||||
|
||||
def request_members(models: dict[str, dict], operation: str) -> dict[str, str]:
|
||||
"""The top-level members of the operation's request that hold a string (`Name`) or a list of
|
||||
strings (`Name[]`), by name, and the ARN members one level inside one (`Name.FieldArn`,
|
||||
@@ -1212,6 +1248,7 @@ def entry_for(operation: str, upstream: dict, formats: dict[str, str], models: d
|
||||
formats, types, members),
|
||||
namespace_of(operation), types, members),
|
||||
namespace_of(operation), types, members)
|
||||
resources = with_absent_arn(resources, formats, optional_members(models, operation.split(":", 1)[1]))
|
||||
resources = with_account(resources, formats, account_members(models, operation.split(":", 1)[1]))
|
||||
resources = with_arn_of(resources, formats, name_or_arn_members(models, operation.split(":", 1)[1]))
|
||||
resources = with_made(resources, operation, formats)
|
||||
|
||||
@@ -106,14 +106,14 @@ OUTPUT = REPO_ROOT / "src/main/resources/aws/iam-tag-on-create.json"
|
||||
NAMESPACES = (
|
||||
"access-analyzer", "acm", "application-autoscaling", "athena", "autoscaling", "bcm-data-exports",
|
||||
"bcm-pricing-calculator", "budgets", "ce", "cloudformation", "cloudhsm", "cloudtrail", "cloudwatch",
|
||||
"codedeploy", "codepipeline", "cognito-identity", "cognito-idp", "comprehend", "config", "controltower", "cur", "datasync",
|
||||
"dms", "dsql", "dynamodb", "ec2", "ecr", "ecs", "eks", "elasticache", "elasticloadbalancing",
|
||||
"elasticmapreduce", "es", "events", "firehose", "globalaccelerator", "glue", "iam", "kinesis", "kinesisanalytics",
|
||||
"kms", "lambda", "lightsail", "logs", "macie2", "memorydb", "network-firewall", "organizations",
|
||||
"payment-cryptography", "pipes", "rds", "redshift", "redshift-serverless", "rekognition", "resource-groups",
|
||||
"route53resolver", "sagemaker", "scheduler", "secretsmanager", "servicediscovery", "ses", "signer", "sns", "sqs",
|
||||
"ssm", "sso", "states", "sts", "swf", "textract", "timestream-influxdb", "transcribe", "transfer", "translate",
|
||||
"wafv2", "xray",
|
||||
"codedeploy", "codepipeline", "cognito-identity", "cognito-idp", "comprehend", "config", "controltower", "cur",
|
||||
"datasync", "dms", "dsql", "dynamodb", "ec2", "ecr", "ecs", "eks", "elasticache", "elasticloadbalancing",
|
||||
"elasticmapreduce", "es", "events", "firehose", "globalaccelerator", "glue", "guardduty", "iam", "kinesis",
|
||||
"kinesisanalytics", "kms", "lambda", "lightsail", "logs", "macie2", "memorydb", "network-firewall",
|
||||
"organizations", "payment-cryptography", "pipes", "rds", "redshift", "redshift-serverless", "rekognition",
|
||||
"resource-groups", "route53resolver", "sagemaker", "scheduler", "secretsmanager", "securityhub",
|
||||
"servicediscovery", "ses", "signer", "sns", "sqs", "ssm", "sso", "states", "sts", "swf", "textract",
|
||||
"timestream-influxdb", "transcribe", "transfer", "translate", "wafv2", "xray",
|
||||
)
|
||||
|
||||
_NO_ROUTES = "REST routes no rule maps yet"
|
||||
@@ -126,11 +126,11 @@ NOT_COVERED = {
|
||||
"cloudfront": _NO_ROUTES, "codeguru-reviewer": _NO_ROUTES, "connect": _NO_ROUTES,
|
||||
"detective": _NO_ROUTES, "dlm": _NO_ROUTES,
|
||||
"elasticfilesystem": _NO_ROUTES, "emr-serverless": _NO_ROUTES, "fis": _NO_ROUTES,
|
||||
"guardduty": _NO_ROUTES, "inspector2": _NO_ROUTES, "iot": _NO_ROUTES, "kafka": _NO_ROUTES,
|
||||
"inspector2": _NO_ROUTES, "iot": _NO_ROUTES, "kafka": _NO_ROUTES,
|
||||
"mq": _NO_ROUTES, "oam": _NO_ROUTES,
|
||||
"quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented",
|
||||
"ram": _NO_ROUTES,
|
||||
"resource-explorer-2": _NO_ROUTES, "rum": _NO_ROUTES, "s3tables": _NO_ROUTES, "securityhub": _NO_ROUTES,
|
||||
"resource-explorer-2": _NO_ROUTES, "rum": _NO_ROUTES, "s3tables": _NO_ROUTES,
|
||||
"s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself",
|
||||
"servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet",
|
||||
}
|
||||
|
||||
@@ -57,6 +57,7 @@ MODELS: dict[str, str] = {
|
||||
"controltower": "controltower",
|
||||
"dsql": "dsql",
|
||||
"eks": "eks",
|
||||
"guardduty": "guardduty",
|
||||
"es": "es",
|
||||
"inspector2": "inspector2",
|
||||
"lakeformation": "lakeformation",
|
||||
@@ -72,6 +73,7 @@ MODELS: dict[str, str] = {
|
||||
"s3": "s3",
|
||||
"s3control": "s3",
|
||||
"scheduler": "scheduler",
|
||||
"securityhub": "securityhub",
|
||||
"signer": "signer",
|
||||
"xray": "xray",
|
||||
}
|
||||
|
||||
@@ -62,6 +62,16 @@ def test_a_fixed_format_and_a_creates_own_type_are_named_without_members():
|
||||
{"type": "pool", "fill": {}}]
|
||||
|
||||
|
||||
def test_an_optional_arn_member_of_a_type_without_variables_names_it_when_absent():
|
||||
named = [{"types": ["catalog", "thing"], "arn": "CatalogArn"}]
|
||||
assert r.with_absent_arn(named, FORMATS, {"CatalogArn"}) == named + [
|
||||
{"type": "catalog", "fill": {}, "when": {"CatalogArn": [None]}}]
|
||||
# A required member is always there, and a type with a variable of its own names no one resource without it.
|
||||
assert r.with_absent_arn(named, FORMATS, set()) == named
|
||||
assert r.with_absent_arn([{"types": ["thing"], "arn": "ThingArn"}], FORMATS, {"ThingArn"}) == [
|
||||
{"types": ["thing"], "arn": "ThingArn"}]
|
||||
|
||||
|
||||
def test_types_named_only_through_the_same_members_are_alternatives():
|
||||
# A classic load balancer's name fills its whole ARN, not an application one's id: the classic one is kept.
|
||||
assert r.resources_for("svc:DeleteLoadBalancer", ["lb", "lb/app/"], FORMATS, members("LoadBalancerName")) == [
|
||||
|
||||
Reference in new issue
Block a user