mirror of
https://github.com/floci-io/floci.git
synced 2026-11-22 21:50:46 -05:00
fix(aps): check Amazon Managed Service for Prometheus requests under IAM enforcement (#9085)
This commit is contained in:
1 parent
4f656d5f63
commit
d096a6d64e
15 files changed
+389
-37
No files matched your search
@@ -2,7 +2,7 @@
|
||||
"_source": {
|
||||
"generator": "tools/aws/regen_iam_authorized_actions.py",
|
||||
"reference": "https://servicereference.us-east-1.amazonaws.com/",
|
||||
"retrieved": "2026-11-21",
|
||||
"retrieved": "2026-11-22",
|
||||
"note": "make iam-authorized-actions-verify checks every entry against AWS."
|
||||
},
|
||||
"authorizedActions": {
|
||||
@@ -368,6 +368,12 @@
|
||||
],
|
||||
"account": [],
|
||||
"apigateway": [],
|
||||
"aps": [
|
||||
"CreateWorkspace",
|
||||
"GetDefaultScraperConfiguration",
|
||||
"ListScrapers",
|
||||
"ListWorkspaces"
|
||||
],
|
||||
"bedrock": [
|
||||
"AgenticRetrieveStream",
|
||||
"AssociateThirdPartyKnowledgeBase",
|
||||
|
||||
@@ -1,10 +1,18 @@
|
||||
{
|
||||
"_source": {"generator": "tools/aws/regen_iam_passed_roles.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-22", "note": "make iam-passed-roles-check re-derives every member from botocore; make iam-passed-roles-verify checks every operation against AWS."},
|
||||
"namespaces": {"application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "budgets": ["budgets"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicecatalog": ["servicecatalog"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "sns": ["sns"], "ssm": ["ssm"], "states": ["stepfunctions"], "swf": ["swf"], "textract": ["textract"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"]},
|
||||
"notCovered": {"access-analyzer": "REST routes no rule maps yet", "airflow": "REST routes no rule maps yet", "apigateway": "authorized by HTTP method, so no request is checked as one of these operations", "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", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; role passing and iam:PassRole checks are not implemented", "rum": "REST routes no rule maps yet"},
|
||||
"namespaces": {"application-autoscaling": ["application-autoscaling"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "budgets": ["budgets"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codebuild": ["codebuild"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "datasync": ["datasync"], "dms": ["dms"], "dsql": ["dsql"], "ec2": ["ec2"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicecatalog": ["servicecatalog"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "sns": ["sns"], "ssm": ["ssm"], "states": ["stepfunctions"], "swf": ["swf"], "textract": ["textract"], "transcribe": ["transcribe"], "transfer": ["transfer"], "translate": ["translate"], "wafv2": ["wafv2"]},
|
||||
"notCovered": {"access-analyzer": "REST routes no rule maps yet", "airflow": "REST routes no rule maps yet", "apigateway": "authorized by HTTP method, so no request is checked as one of these operations", "appconfig": "REST routes no rule maps yet", "appsync": "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", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; role passing and iam:PassRole checks are not implemented", "rum": "REST routes no rule maps yet"},
|
||||
"otherNamespaces": ["agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "aoss", "appflow", "appmesh", "apprunner", "appstream", "arc-region-switch", "backup-gateway", "backup-search", "bcm-dashboards", "braket", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "codeconnections", "codestar-connections", "cognito-sync", "comprehendmedical", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "elemental-inference", "entityresolution", "fms", "forecast", "frauddetector", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "kafkaconnect", "kendra", "lex", "lookoutequipment", "m2", "machinelearning", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "medical-imaging", "mobiletargeting", "neptune-graph", "observabilityadmin", "odb", "omics", "opensearch", "osis", "partnercentral", "pcs", "personalize", "profile", "proton", "qbusiness", "repostspace", "resiliencehub", "rolesanywhere", "s3files", "sagemaker-geospatial", "securityagent", "securitylake", "shield", "sms-voice", "snowball", "social-messaging", "ssm-incidents", "ssm-quicksetup", "storagegateway", "supportapp", "synthetics", "timestream", "voiceid", "wellarchitected", "wisdom", "workmail", "workspaces"],
|
||||
"operations": {
|
||||
"application-autoscaling:RegisterScalableTarget": {"passedTo": ["application-autoscaling"], "byHand": "the scalable target's role"},
|
||||
"aps:CreateScraper": {"passedTo": ["aps"], "roles": [
|
||||
{"member": "roleConfiguration.sourceRoleArn", "passedTo": "aps"},
|
||||
{"member": "roleConfiguration.targetRoleArn", "passedTo": "aps"}
|
||||
]},
|
||||
"aps:UpdateScraper": {"passedTo": ["aps"], "roles": [
|
||||
{"member": "roleConfiguration.sourceRoleArn", "passedTo": "aps"},
|
||||
{"member": "roleConfiguration.targetRoleArn", "passedTo": "aps"}
|
||||
]},
|
||||
"athena:CreateWorkGroup": {"passedTo": ["athena"], "roles": [
|
||||
{"member": "Configuration.ExecutionRole", "passedTo": "athena"}
|
||||
]},
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"_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-22", "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"], "account": ["account"], "acm": ["acm"], "apigateway": ["apigateway", "apigatewayv2"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ec2-instance-connect": ["ec2-instance-connect"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "account": ["account"], "acm": ["acm"], "apigateway": ["apigateway", "apigatewayv2"], "application-autoscaling": ["application-autoscaling"], "aps": ["amp"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudcontrol", "cloudformation"], "cloudfront": ["cloudfront"], "cloudfront-keyvaluestore": ["cloudfront-keyvaluestore"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "controlcatalog": ["controlcatalog"], "controltower": ["controltower"], "cur": ["cur"], "datasync": ["datasync"], "dsql": ["dsql"], "dynamodb": ["dynamodb"], "ec2": ["ec2"], "ec2-instance-connect": ["ec2-instance-connect"], "ecr": ["ecr"], "ecs": ["ecs"], "eks": ["eks"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "guardduty": ["guardduty"], "inspector2": ["inspector2"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "logs": ["logs"], "macie2": ["macie2"], "oam": ["oam"], "payment-cryptography": ["payment-cryptography", "payment-cryptography-data"], "pipes": ["pipes"], "quicksight": ["quicksight"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53": ["route53"], "s3": ["s3", "s3control"], "s3tables": ["s3tables"], "s3vectors": ["s3vectors"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "securityhub": ["securityhub"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "signer": ["signer", "signer-data"], "sns": ["sns"], "sqs": ["sqs"], "ssm": ["ssm"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "sts": ["sts"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"], "xray": ["xray"]},
|
||||
"handBuilt": ["dynamodb", "iam", "kms"],
|
||||
"notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rules do not fill a name from, so nearly every operation's resource would be left open", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment/<application>/<name>`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "execute-api": "REST: its requests name their resourcLine truncated
|
||||
"notCovered": {"airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup:<id>:autoScalingGroupName/<name>`, while Floci mints `autoScalingGroup:<name>`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rules do not fill a name from, so nearly every operation's resource would be left open", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/<name>_<id>, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment/<application>/<name>`, while most of its requests name it by EnvironmentName or EnvironmentId alone, so reading it needs the stored environment those find", "elasticfilesystem": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "execute-api": "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", "identitystore": "not read yet: a later batchLine truncated
|
||||
"otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifyuibuilder", "aoss", "apiportal", "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", "bcm-data-hub", "bedrock-mantle", "bedrock-websearch", "billing", "billingconductor", "braket", "bugbust", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "clouddirectory", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "end-user-messaging", "entityresolution", "evs", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "osm", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "ssmmessages", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web"],
|
||||
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "apigateway": {"AccessLogSettings": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/accesslogsettings", "Account": "arn:${Partition}:apigateway:${Region}::/account", "Api": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}", "ApiKey": "arn:${Partition}:apigateway:${Region}::/apikeys/${ApiKeyId}", "ApiKeys": "arn:${Partition}:apigateway:${Region}::/apikeys", "ApiMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings/${ApiMappingId}", "ApiMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings", "Apis": "arn:${Partition}:apigateway:${Region}::/apis", "Authorizer": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers/${AuthorizerId}", "Authorizers": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers", "AuthorizersCache": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/cache/authorizers", "BasePathMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings/${BasePath}", "BasePathMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings", "ClientCertificate": "arn:${Partition}:apigateway:${Region}::/clientcertificates/${ClientCertificateId}", "ClientCertificates": "arn:${Partition}:apigateway:${Region}::/clientcertificates", "Cors": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/cors", "Deployment": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments/${DeploymentId}", "Deployments": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments", "DocumentationPart": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts/${DocumentationPartId}", "DocumentationParts": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts", "DocumentationVersion": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions/${DocumentationVersionId}", "DocumentationVersions": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions", "DomainName": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}", "DomainNameAccessAssociation": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations/domainname/${DomainName}/${SourceType}/${SourceId}", "DomainNameAccessAssociations": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations", "DomainNames": "arn:${Partition}:apigateway:${Region}::/domainnames", "ExportedAPI": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/exports/${Specification}", "GatewayResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses/${ResponseType}", "GatewayResponses": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses", "Integration": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}", "IntegrationResponse": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses/${IntegrationResponseId}", "IntegrationResponses": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses", "Integrations": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations", "Method": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}", "MethodResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}/responses/${StatusCode}", "Model": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}", "ModelTemplate": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}/template", "Models": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models", "Portal": "arn:${Partition}:apigateway:${Region}:${Account}:/portals/${PortalId}", "PortalProduct": "arn:${Partition}:apigateway:${Region}:${Account}:/portalproducts/$Line truncated
|
||||
"arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "account": {"account": "arn:${Partition}:account::${Account}:account", "accountInOrganization": "arn:${Partition}:account::${ManagementAccountId}:account/o-${OrganizationId}/${MemberAccountId}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "apigateway": {"AccessLogSettings": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/accesslogsettings", "Account": "arn:${Partition}:apigateway:${Region}::/account", "Api": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}", "ApiKey": "arn:${Partition}:apigateway:${Region}::/apikeys/${ApiKeyId}", "ApiKeys": "arn:${Partition}:apigateway:${Region}::/apikeys", "ApiMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings/${ApiMappingId}", "ApiMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/apimappings", "Apis": "arn:${Partition}:apigateway:${Region}::/apis", "Authorizer": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers/${AuthorizerId}", "Authorizers": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/authorizers", "AuthorizersCache": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/stages/${StageName}/cache/authorizers", "BasePathMapping": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings/${BasePath}", "BasePathMappings": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}/basepathmappings", "ClientCertificate": "arn:${Partition}:apigateway:${Region}::/clientcertificates/${ClientCertificateId}", "ClientCertificates": "arn:${Partition}:apigateway:${Region}::/clientcertificates", "Cors": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/cors", "Deployment": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments/${DeploymentId}", "Deployments": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/deployments", "DocumentationPart": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts/${DocumentationPartId}", "DocumentationParts": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/parts", "DocumentationVersion": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions/${DocumentationVersionId}", "DocumentationVersions": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/documentation/versions", "DomainName": "arn:${Partition}:apigateway:${Region}::/domainnames/${DomainName}", "DomainNameAccessAssociation": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations/domainname/${DomainName}/${SourceType}/${SourceId}", "DomainNameAccessAssociations": "arn:${Partition}:apigateway:${Region}:${Account}:/domainnameaccessassociations", "DomainNames": "arn:${Partition}:apigateway:${Region}::/domainnames", "ExportedAPI": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/exports/${Specification}", "GatewayResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses/${ResponseType}", "GatewayResponses": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/gatewayresponses", "Integration": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}", "IntegrationResponse": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses/${IntegrationResponseId}", "IntegrationResponses": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations/${IntegrationId}/integrationresponses", "Integrations": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/integrations", "Method": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}", "MethodResponse": "arn:${Partition}:apigateway:${Region}::/restapis/${RestApiId}/resources/${ResourceId}/methods/${HttpMethodType}/responses/${StatusCode}", "Model": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}", "ModelTemplate": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models/${ModelId}/template", "Models": "arn:${Partition}:apigateway:${Region}::/apis/${ApiId}/models", "Portal": "arn:${Partition}:apigateway:${Region}:${Account}:/portals/${PortalId}", "PortalProduct": "arn:${Partition}:apigateway:${Region}:${Account}:/portalproducts/$Line truncated
|
||||
"pathFormats": {"apigateway": {"/restapis/{restapi_id}/models/{model_name}/default_template (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/models/${ModelName}/default_template", "/restapis/{restapi_id}/stages/{stage_name}/cache/authorizers (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/cache/authorizers", "/restapis/{restapi_id}/stages/{stage_name}/cache/data (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/cache/data", "/restapis/{restapi_id}/stages/{stage_name}/exports/{export_type} (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/restapis/${RestapiId}/stages/${StageName}/exports/${ExportType}", "/sdktypes (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/sdktypes", "/sdktypes/{sdktype_id} (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/sdktypes/${SdktypeId}", "/usageplans/{usageplanId}/keys/{keyId}/usage (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/usageplans/${UsageplanId}/keys/${KeyId}/usage", "/usageplans/{usageplanId}/usage (resource-path-specifier)": "arn:${Partition}:apigateway:${Region}::/usageplans/${UsageplanId}/usage", "Authorizer (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/authorizers/${Id}", "Authorizers (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/authorizers", "Deployment (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/deployments/${Id}", "Deployments (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/deployments", "Integration (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/resources/${ResourceId}/methods/${HttpMethod}/integration", "IntegrationResponse (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/resources/${ResourceId}/methods/${HttpMethod}/integration/responses/${StatusCode}", "Model (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/models/${ModelName}", "Models (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/models", "Stage (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/stages/${StageName}", "Stages (REST API resources)": "arn:${Partition}:apigateway:${Region}::/restapis/${ApiId}/stages"}},
|
||||
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "apigateway": {"AccessLogSettings": ["aws:ResourceTag/"], "Api": ["aws:ResourceTag/"], "ApiKey": ["aws:ResourceTag/"], "ApiKeys": ["aws:ResourceTag/"], "ApiMapping": ["aws:ResourceTag/"], "ApiMappings": ["aws:ResourceTag/"], "Apis": ["aws:ResourceTag/"], "Authorizer": ["aws:ResourceTag/"], "Authorizers": ["aws:ResourceTag/"], "AuthorizersCache": ["aws:ResourceTag/"], "BasePathMapping": ["aws:ResourceTag/"], "BasePathMappings": ["aws:ResourceTag/"], "ClientCertificate": ["aws:ResourceTag/"], "ClientCertificates": ["aws:ResourceTag/"], "Cors": ["aws:ResourceTag/"], "Deployment": ["aws:ResourceTag/"], "Deployments": ["aws:ResourceTag/"], "DocumentationPart": ["aws:ResourceTag/"], "DocumentationParts": ["aws:ResourceTag/"], "DocumentationVersion": ["aws:ResourceTag/"], "DocumentationVersions": ["aws:ResourceTag/"], "DomainName": ["aws:ResourceTag/"], "DomainNameAccessAssociations": ["aws:ResourceTag/"], "DomainNames": ["aws:ResourceTag/"], "ExportedAPI": ["aws:ResourceTag/"], "GatewayResponse": ["aws:ResourceTag/"], "GatewayResponses": ["aws:ResourceTag/"], "Integration": ["aws:ResourceTag/"], "IntegrationResponse": ["aws:ResourceTag/"], "IntegrationResponses": ["aws:ResourceTag/"], "Integrations": ["aws:ResourceTag/"], "Method": ["aws:ResourceTag/"], "MethodResponse": ["aws:ResourceTag/"], "Model": ["aws:ResourceTag/"], "ModelTemplate": ["aws:ResourceTag/"], "Models": ["aws:ResourceTag/"], "Portal": ["aws:ResourceTag/"], "PortalProduct": ["aws:ResourceTag/"], "PrivateBasePathMapping": ["aws:ResourceTag/"], "PrivateBasePathMappings": ["aws:ResourceTag/"], "PrivateDomainName": ["aws:ResourceTag/"], "ProductPage": ["aws:ResourceTag/"], "ProductRestEndpointPage": ["aws:ResourceTag/"], "RequestValidator": ["aws:ResourceTag/"], "RequestValidators": ["aws:ResourceTag/"], "Resource": ["aws:ResourceTag/"], "Resources": ["aws:ResourceTag/"], "RestApi": ["aws:ResourceTag/"], "RestApis": ["aws:ResourceTag/"], "Route": ["aws:ResourceTag/"], "RouteRequestParameter": ["aws:ResourceTag/"], "RouteResponse": ["aws:ResourceTag/"], "RouteResponses": ["aws:ResourceTag/"], "RouteSettings": ["aws:ResourceTag/"], "Routes": ["aws:ResourceTag/"], "RoutingRule": ["aws:ResourceTag/"], "Sdk": ["aws:ResourceTag/"], "Stage": ["aws:ResourceTag/"], "Stages": ["aws:ResourceTag/"], "Template": ["aws:ResourceTag/"], "UsagePlan": ["aws:ResourceTag/"], "UsagePlanKey": ["aws:ResourceTag/"], "UsagePlanKeys": ["aws:ResourceTag/"], "UsagePlans": ["aws:ResourceTag/"], "VpcLink": ["aws:ResourceTag/"], "VpcLinks": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-estimate": ["aws:ResourceTag/"], "bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "bedrock": {"advanced-prompt-optimization-job": ["aws:ResourceTag/"], "agent": ["aws:ResourceTag/"], "agent-alias": ["aws:ResourceTag/"], "application-inference-profile": ["aws:ResourceTag/"], "async-invoke": ["aws:ResourceTag/"], "automated-reasoning-policy": ["aws:ResourceTag/"], "automated-reasoning-policy-version": ["aws:ResourceTag/"], "blueprint": ["aws:ResourceTag/"], "blueprint-optimization-invocation": ["aws:ResourceTag/"], "custom-model": ["aws:ResourceTag/"], "custom-model-deployment": ["aws:ResourceTag/"], "data-automation-invocation-job": ["aws:ResourceTag/"], "data-automation-library": ["aws:ResourceTag/"], "data-automation-library-ingestion-job": ["aws:ResourceTag/"], "data-automation-project": ["aws:ResourceTag/"], "evaluation-job": ["aws:ResourceTag/"], "flow": ["aws:ResourceTag/"], "flow-alias": ["aws:ResourceTag/"], "guardrail": ["aws:ResourceTag/"], "imported-model": ["aws:ResourceTag/"], "knowledge-base": ["aws:ResourceTag/"], "model-copy-job": ["aws:ResourceTag/"], "model-customization-job": ["aws:ResourceTag/"], "model-evaluation-job": ["aws:ResourceTag/"], "model-import-job": ["aws:ResourceTag/"], "model-invocation-job": ["aws:ResourceTag/"], "project": ["aws:ResourceTag/"], "prompt": ["aws:ResourceTag/"], "prompt-router": ["aws:ResourceTag/"], "prompt-version": ["aws:ResourceTag/"], "provisioned-model": ["aws:ResourceTag/"], "retrieval-instruction": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/"], "budgetAction": ["aws:ResourceTag/"]}, "ce": {"anomalymonitor": ["aws:ResourceTag/"], "anomalysubscription": ["aws:ResourceTag/"], "billingview": ["aws:ResourceTag/"], "costcategory": ["aws:ReLine truncated
|
||||
"resourceTagKeys": {"access-analyzer": {"Analyzer": ["aws:ResourceTag/"]}, "acm": {"acme-domain-validation": ["aws:ResourceTag/"], "acme-endpoint": ["aws:ResourceTag/"], "acme-external-account-binding": ["aws:ResourceTag/"], "certificate": ["aws:ResourceTag/"]}, "apigateway": {"AccessLogSettings": ["aws:ResourceTag/"], "Api": ["aws:ResourceTag/"], "ApiKey": ["aws:ResourceTag/"], "ApiKeys": ["aws:ResourceTag/"], "ApiMapping": ["aws:ResourceTag/"], "ApiMappings": ["aws:ResourceTag/"], "Apis": ["aws:ResourceTag/"], "Authorizer": ["aws:ResourceTag/"], "Authorizers": ["aws:ResourceTag/"], "AuthorizersCache": ["aws:ResourceTag/"], "BasePathMapping": ["aws:ResourceTag/"], "BasePathMappings": ["aws:ResourceTag/"], "ClientCertificate": ["aws:ResourceTag/"], "ClientCertificates": ["aws:ResourceTag/"], "Cors": ["aws:ResourceTag/"], "Deployment": ["aws:ResourceTag/"], "Deployments": ["aws:ResourceTag/"], "DocumentationPart": ["aws:ResourceTag/"], "DocumentationParts": ["aws:ResourceTag/"], "DocumentationVersion": ["aws:ResourceTag/"], "DocumentationVersions": ["aws:ResourceTag/"], "DomainName": ["aws:ResourceTag/"], "DomainNameAccessAssociations": ["aws:ResourceTag/"], "DomainNames": ["aws:ResourceTag/"], "ExportedAPI": ["aws:ResourceTag/"], "GatewayResponse": ["aws:ResourceTag/"], "GatewayResponses": ["aws:ResourceTag/"], "Integration": ["aws:ResourceTag/"], "IntegrationResponse": ["aws:ResourceTag/"], "IntegrationResponses": ["aws:ResourceTag/"], "Integrations": ["aws:ResourceTag/"], "Method": ["aws:ResourceTag/"], "MethodResponse": ["aws:ResourceTag/"], "Model": ["aws:ResourceTag/"], "ModelTemplate": ["aws:ResourceTag/"], "Models": ["aws:ResourceTag/"], "Portal": ["aws:ResourceTag/"], "PortalProduct": ["aws:ResourceTag/"], "PrivateBasePathMapping": ["aws:ResourceTag/"], "PrivateBasePathMappings": ["aws:ResourceTag/"], "PrivateDomainName": ["aws:ResourceTag/"], "ProductPage": ["aws:ResourceTag/"], "ProductRestEndpointPage": ["aws:ResourceTag/"], "RequestValidator": ["aws:ResourceTag/"], "RequestValidators": ["aws:ResourceTag/"], "Resource": ["aws:ResourceTag/"], "Resources": ["aws:ResourceTag/"], "RestApi": ["aws:ResourceTag/"], "RestApis": ["aws:ResourceTag/"], "Route": ["aws:ResourceTag/"], "RouteRequestParameter": ["aws:ResourceTag/"], "RouteResponse": ["aws:ResourceTag/"], "RouteResponses": ["aws:ResourceTag/"], "RouteSettings": ["aws:ResourceTag/"], "Routes": ["aws:ResourceTag/"], "RoutingRule": ["aws:ResourceTag/"], "Sdk": ["aws:ResourceTag/"], "Stage": ["aws:ResourceTag/"], "Stages": ["aws:ResourceTag/"], "Template": ["aws:ResourceTag/"], "UsagePlan": ["aws:ResourceTag/"], "UsagePlanKey": ["aws:ResourceTag/"], "UsagePlanKeys": ["aws:ResourceTag/"], "UsagePlans": ["aws:ResourceTag/"], "VpcLink": ["aws:ResourceTag/"], "VpcLinks": ["aws:ResourceTag/"]}, "application-autoscaling": {"ScalableTarget": ["aws:ResourceTag/"]}, "aps": {"anomalydetector": ["aws:ResourceTag/"], "cluster": ["aws:ResourceTag/"], "rulegroupsnamespace": ["aws:ResourceTag/"], "scraper": ["aws:ResourceTag/"], "workspace": ["aws:ResourceTag/"]}, "athena": {"capacity-reservation": ["aws:ResourceTag/"], "datacatalog": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"], "system-table": ["aws:ResourceTag/"], "workgroup": ["aws:ResourceTag/"]}, "bcm-data-exports": {"billingview": ["aws:ResourceTag/"], "export": ["aws:ResourceTag/"]}, "bcm-pricing-calculator": {"bill-estimate": ["aws:ResourceTag/"], "bill-scenario": ["aws:ResourceTag/"], "workload-estimate": ["aws:ResourceTag/"]}, "bedrock": {"advanced-prompt-optimization-job": ["aws:ResourceTag/"], "agent": ["aws:ResourceTag/"], "agent-alias": ["aws:ResourceTag/"], "application-inference-profile": ["aws:ResourceTag/"], "async-invoke": ["aws:ResourceTag/"], "automated-reasoning-policy": ["aws:ResourceTag/"], "automated-reasoning-policy-version": ["aws:ResourceTag/"], "blueprint": ["aws:ResourceTag/"], "blueprint-optimization-invocation": ["aws:ResourceTag/"], "custom-model": ["aws:ResourceTag/"], "custom-model-deployment": ["aws:ResourceTag/"], "data-automation-invocation-job": ["aws:ResourceTag/"], "data-automation-library": ["aws:ResourceTag/"], "data-automation-library-ingestion-job": ["aws:ResourceTag/"], "data-automation-project": ["aws:ResourceTag/"], "evaluation-job": ["aws:ResourceTag/"], "flow": ["aws:ResourceTag/"], "flow-alias": ["aws:ResourceTag/"], "guardrail": ["aws:ResourceTag/"], "imported-model": ["aws:ResourceTag/"], "knowledge-base": ["aws:ResourceTag/"], "model-copy-job": ["aws:ResourceTag/"], "model-customization-job": ["aws:ResourceTag/"], "model-evaluation-job": ["aws:ResourceTag/"], "model-import-job": ["aws:ResourceTag/"], "model-invocation-job": ["aws:ResourceTag/"], "project": ["aws:ResourceTag/"], "prompt": ["aws:ResourceTag/"], "prompt-router": ["aws:ResourceTag/"], "prompt-version": ["aws:ResourceTag/"], "provisioned-model": ["aws:ResourceTag/"], "retrieval-instruction": ["aws:ResourceTag/"], "session": ["aws:ResourceTag/"]}, "budgets": {"budget": ["aws:ResourceTag/Line truncated
|
||||
"resourceKeys": {"ec2": {"capacity-reservation": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:CapacityReservationFleet": {"member": "CapacityReservationFleetId", "arn": "capacity-reservation-fleet"}, "ec2:EbsOptimized": {"member": "EbsOptimized"}, "ec2:EndDateType": {"member": "EndDateType"}, "ec2:EphemeralStorage": {"member": "EphemeralStorage"}, "ec2:InstanceMatchCriteria": {"member": "InstanceMatchCriteria"}, "ec2:InstanceType": {"member": "InstanceType"}, "ec2:Tenancy": {"member": "Tenancy"}}, "carrier-gateway": {"ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "dhcp-options": {"ec2:DhcpOptionsID": {"member": "DhcpOptionsId"}}, "fpga-image": {"ec2:Owner": {"member": "OwnerId"}, "ec2:Public": {"member": "Public"}}, "image": {"ec2:ImageID": {"member": "ImageId"}, "ec2:ImageType": {"member": "ImageType"}, "ec2:Owner": {"member": "OwnerId"}, "ec2:Public": {"member": "Public"}, "ec2:RootDeviceType": {"member": "RootDeviceType"}}, "instance": {"ec2:EbsOptimized": {"member": "EbsOptimized"}, "ec2:InstanceID": {"member": "InstanceId"}, "ec2:InstanceType": {"member": "InstanceType"}, "ec2:RootDeviceType": {"member": "RootDeviceType"}}, "internet-gateway": {"ec2:InternetGatewayID": {"member": "InternetGatewayId"}}, "launch-template": {"ec2:LaunchTemplate": {"member": "LaunchTemplateId", "arn": "launch-template"}}, "network-acl": {"ec2:NetworkAclID": {"member": "NetworkAclId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "network-interface": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:NetworkInterfaceID": {"member": "NetworkInterfaceId"}, "ec2:Subnet": {"member": "SubnetId", "arn": "subnet"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "reserved-instances": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:InstanceType": {"member": "InstanceType"}}, "route-table": {"ec2:RouteTableID": {"member": "RouteTableId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "secondary-interface": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}}, "security-group": {"ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "snapshot": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:Encrypted": {"member": "Encrypted"}, "ec2:Owner": {"member": "OwnerId"}, "ec2:SnapshotID": {"member": "SnapshotId"}, "ec2:VolumeSize": {"member": "VolumeSize"}}, "subnet": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:SubnetID": {"member": "SubnetId"}, "ec2:Vpc": {"member": "VpcId", "arn": "vpc"}}, "transit-gateway": {"ec2:transitGatewayId": {"member": "TransitGatewayId"}}, "transit-gateway-attachment": {"ec2:transitGatewayAttachmentId": {"member": "TransitGatewayAttachmentId"}}, "transit-gateway-connect-peer": {"ec2:transitGatewayConnectPeerId": {"member": "TransitGatewayConnectPeerId"}}, "transit-gateway-metering-policy": {"ec2:transitGatewayMeteringPolicyId": {"member": "TransitGatewayMeteringPolicyId"}}, "transit-gateway-multicast-domain": {"ec2:transitGatewayMulticastDomainId": {"member": "TransitGatewayMulticastDomainId"}}, "transit-gateway-policy-table": {"ec2:transitGatewayPolicyTableId": {"member": "TransitGatewayPolicyTableId"}}, "transit-gateway-route-table": {"ec2:transitGatewayRouteTableId": {"member": "TransitGatewayRouteTableId"}}, "transit-gateway-route-table-announcement": {"ec2:transitGatewayRouteTableAnnouncementId": {"member": "TransitGatewayRouteTableAnnouncementId"}}, "volume": {"ec2:AvailabilityZone": {"member": "AvailabilityZone"}, "ec2:AvailabilityZoneId": {"member": "AvailabilityZoneId"}, "ec2:Encrypted": {"member": "Encrypted"}, "ec2:KmsKeyId": {"member": "KmsKeyId"}, "ec2:VolumeID": {"member": "VolumeId"}, "ec2:VolumeInitializationRate": {"member": "VolumeInitializationRate"}, "ec2:VolumeType": {"member": "VolumeType"}}, "vpc": {"ec2:VpcID": {"member": "VpcId"}}, "vpc-peering-connection": {"ec2:VpcPeeringConnectionID": {"member": "VpcPeeringConnectionId"}}}},
|
||||
"unqualified": {"ssm": ["parameter"], "states": ["statemachine"]},
|
||||
"mintedIds": {"events": ["api-destination", "connection"]},
|
||||
@@ -314,6 +314,50 @@
|
||||
"application-autoscaling:RegisterScalableTarget": {"action": "application-autoscaling:RegisterScalableTarget", "types": ["ScalableTarget"], "resources": [{"types": ["ScalableTarget"], "arn": "RoleARN"}, {"type": "ScalableTarget", "fill": {}, "find": ["ServiceNamespace", "ResourceId", "ScalableDimension"]}]},
|
||||
"application-autoscaling:TagResource": {"action": "application-autoscaling:TagResource", "types": ["ScalableTarget"], "resources": [{"types": ["ScalableTarget"], "arn": "ResourceARN"}]},
|
||||
"application-autoscaling:UntagResource": {"action": "application-autoscaling:UntagResource", "types": ["ScalableTarget"], "resources": [{"types": ["ScalableTarget"], "arn": "ResourceARN"}]},
|
||||
"aps:CreateAlertManagerDefinition": {"action": "aps:CreateAlertManagerDefinition", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:CreateAnomalyDetector": {"action": "aps:CreateAnomalyDetector", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:CreateLoggingConfiguration": {"action": "aps:CreateLoggingConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:CreateQueryLoggingConfiguration": {"action": "aps:CreateQueryLoggingConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:CreateRuleGroupsNamespace": {"action": "aps:CreateRuleGroupsNamespace", "types": ["rulegroupsnamespace"], "resources": [{"type": "rulegroupsnamespace", "fill": {"Namespace": "name", "WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:CreateScraper": {"action": "aps:CreateScraper", "types": ["cluster", "workspace"], "resources": []},
|
||||
"aps:CreateWorkspace": {"action": "aps:CreateWorkspace", "types": [], "resources": [], "makes": [{"type": "workspace", "fill": {}}]},
|
||||
"aps:DeleteAlertManagerDefinition": {"action": "aps:DeleteAlertManagerDefinition", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DeleteAnomalyDetector": {"action": "aps:DeleteAnomalyDetector", "types": ["anomalydetector", "workspace"], "resources": [{"type": "anomalydetector", "fill": {"AnomalyDetectorId": "anomalyDetectorId", "WorkspaceId": "workspaceId"}}, {"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"anomalyDetectorId": "{anomalyDetectorId}", "workspaceId": "{workspaceId}"}},
|
||||
"aps:DeleteLoggingConfiguration": {"action": "aps:DeleteLoggingConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DeleteQueryLoggingConfiguration": {"action": "aps:DeleteQueryLoggingConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DeleteResourcePolicy": {"action": "aps:DeleteResourcePolicy", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DeleteRuleGroupsNamespace": {"action": "aps:DeleteRuleGroupsNamespace", "types": ["rulegroupsnamespace"], "resources": [{"type": "rulegroupsnamespace", "fill": {"Namespace": "name", "WorkspaceId": "workspaceId"}}], "located": {"name": "{name}", "workspaceId": "{workspaceId}"}},
|
||||
"aps:DeleteScraper": {"action": "aps:DeleteScraper", "types": ["scraper"], "resources": [{"type": "scraper", "fill": {"ScraperId": "scraperId"}}], "located": {"scraperId": "{scraperId}"}},
|
||||
"aps:DeleteScraperLoggingConfiguration": {"action": "aps:DeleteScraperLoggingConfiguration", "types": ["scraper"], "resources": [{"type": "scraper", "fill": {"ScraperId": "scraperId"}}], "located": {"scraperId": "{scraperId}"}},
|
||||
"aps:DeleteWorkspace": {"action": "aps:DeleteWorkspace", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DescribeAlertManagerDefinition": {"action": "aps:DescribeAlertManagerDefinition", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DescribeAnomalyDetector": {"action": "aps:DescribeAnomalyDetector", "types": ["anomalydetector", "workspace"], "resources": [{"type": "anomalydetector", "fill": {"AnomalyDetectorId": "anomalyDetectorId", "WorkspaceId": "workspaceId"}}, {"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"anomalyDetectorId": "{anomalyDetectorId}", "workspaceId": "{workspaceId}"}},
|
||||
"aps:DescribeLoggingConfiguration": {"action": "aps:DescribeLoggingConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DescribeQueryLoggingConfiguration": {"action": "aps:DescribeQueryLoggingConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DescribeResourcePolicy": {"action": "aps:DescribeResourcePolicy", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DescribeRuleGroupsNamespace": {"action": "aps:DescribeRuleGroupsNamespace", "types": ["rulegroupsnamespace"], "resources": [{"type": "rulegroupsnamespace", "fill": {"Namespace": "name", "WorkspaceId": "workspaceId"}}], "located": {"name": "{name}", "workspaceId": "{workspaceId}"}},
|
||||
"aps:DescribeScraper": {"action": "aps:DescribeScraper", "types": ["scraper"], "resources": [{"type": "scraper", "fill": {"ScraperId": "scraperId"}}], "located": {"scraperId": "{scraperId}"}},
|
||||
"aps:DescribeScraperLoggingConfiguration": {"action": "aps:DescribeScraperLoggingConfiguration", "types": ["scraper"], "resources": [{"type": "scraper", "fill": {"ScraperId": "scraperId"}}], "located": {"scraperId": "{scraperId}"}},
|
||||
"aps:DescribeWorkspace": {"action": "aps:DescribeWorkspace", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:DescribeWorkspaceConfiguration": {"action": "aps:DescribeWorkspaceConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:GetDefaultScraperConfiguration": {"action": "aps:GetDefaultScraperConfiguration", "types": [], "resources": []},
|
||||
"aps:ListAnomalyDetectors": {"action": "aps:ListAnomalyDetectors", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:ListRuleGroupsNamespaces": {"action": "aps:ListRuleGroupsNamespaces", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:ListScrapers": {"action": "aps:ListScrapers", "types": [], "resources": []},
|
||||
"aps:ListTagsForResource": {"action": "aps:ListTagsForResource", "types": ["anomalydetector", "rulegroupsnamespace", "scraper", "workspace"], "resources": [{"types": ["anomalydetector", "rulegroupsnamespace", "scraper", "workspace"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}},
|
||||
"aps:ListWorkspaces": {"action": "aps:ListWorkspaces", "types": [], "resources": []},
|
||||
"aps:PutAlertManagerDefinition": {"action": "aps:PutAlertManagerDefinition", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:PutAnomalyDetector": {"action": "aps:PutAnomalyDetector", "types": ["anomalydetector", "workspace"], "resources": [{"type": "anomalydetector", "fill": {"AnomalyDetectorId": "anomalyDetectorId", "WorkspaceId": "workspaceId"}, "made": true}, {"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"anomalyDetectorId": "{anomalyDetectorId}", "workspaceId": "{workspaceId}"}},
|
||||
"aps:PutResourcePolicy": {"action": "aps:PutResourcePolicy", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:PutRuleGroupsNamespace": {"action": "aps:PutRuleGroupsNamespace", "types": ["rulegroupsnamespace"], "resources": [{"type": "rulegroupsnamespace", "fill": {"Namespace": "name", "WorkspaceId": "workspaceId"}}], "located": {"name": "{name}", "workspaceId": "{workspaceId}"}},
|
||||
"aps:TagResource": {"action": "aps:TagResource", "types": ["anomalydetector", "rulegroupsnamespace", "scraper", "workspace"], "resources": [{"types": ["anomalydetector", "rulegroupsnamespace", "scraper", "workspace"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}},
|
||||
"aps:UntagResource": {"action": "aps:UntagResource", "types": ["anomalydetector", "rulegroupsnamespace", "scraper", "workspace"], "resources": [{"types": ["anomalydetector", "rulegroupsnamespace", "scraper", "workspace"], "arn": "resourceArn"}], "located": {"resourceArn": "{resourceArn}"}},
|
||||
"aps:UpdateLoggingConfiguration": {"action": "aps:UpdateLoggingConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:UpdateQueryLoggingConfiguration": {"action": "aps:UpdateQueryLoggingConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:UpdateScraper": {"action": "aps:UpdateScraper", "types": ["scraper", "workspace"], "resources": [{"type": "scraper", "fill": {"ScraperId": "scraperId"}}], "located": {"scraperId": "{scraperId}"}},
|
||||
"aps:UpdateScraperLoggingConfiguration": {"action": "aps:UpdateScraperLoggingConfiguration", "types": ["scraper"], "resources": [{"type": "scraper", "fill": {"ScraperId": "scraperId"}}], "located": {"scraperId": "{scraperId}"}},
|
||||
"aps:UpdateWorkspaceAlias": {"action": "aps:UpdateWorkspaceAlias", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"aps:UpdateWorkspaceConfiguration": {"action": "aps:UpdateWorkspaceConfiguration", "types": ["workspace"], "resources": [{"type": "workspace", "fill": {"WorkspaceId": "workspaceId"}}], "located": {"workspaceId": "{workspaceId}"}},
|
||||
"athena:BatchGetNamedQuery": {"action": "athena:BatchGetNamedQuery", "types": ["workgroup"], "resources": []},
|
||||
"athena:BatchGetPreparedStatement": {"action": "athena:BatchGetPreparedStatement", "types": ["workgroup"], "resources": [{"type": "workgroup", "fill": {"WorkGroupName": "WorkGroup"}}]},
|
||||
"athena:BatchGetQueryExecution": {"action": "athena:BatchGetQueryExecution", "types": ["workgroup"], "resources": []},
|
||||
|
||||
@@ -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-22", "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"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "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"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "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"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "s3tables": ["s3tables"], "s3vectors": [], "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-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "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", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "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"},
|
||||
"namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "aps": ["amp"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "bedrock": ["bedrock", "bedrock-agent", "bedrock-agent-runtime", "bedrock-data-automation", "bedrock-data-automation-runtime", "bedrock-runtime"], "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"], "emr-containers": ["emr-containers"], "emr-serverless": ["emr-serverless"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "fis": ["fis"], "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"], "oam": ["oam"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "ram": ["ram"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-explorer-2": ["resource-explorer-2"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "s3tables": ["s3tables"], "s3vectors": [], "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", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "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", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "rum": "REST routes no rule maps yet", "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"},
|
||||
"otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "apiportal", "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", "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": {
|
||||
@@ -9,6 +9,10 @@
|
||||
"acm:ImportCertificate": {"tagging": ["acm:AddTagsToCertificate"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"acm:RequestCertificate": {"tagging": ["acm:AddTagsToCertificate"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"application-autoscaling:RegisterScalableTarget": {"tagging": ["application-autoscaling:TagResource"], "requestTags": true, "tags": [{"member": "Tags{}"}]},
|
||||
"aps:CreateAnomalyDetector": {"tagging": ["aps:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"aps:CreateRuleGroupsNamespace": {"tagging": ["aps:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"aps:CreateScraper": {"tagging": ["aps:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"aps:CreateWorkspace": {"tagging": ["aps:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]},
|
||||
"athena:CreateCapacityReservation": {"tagging": ["athena:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"athena:CreateDataCatalog": {"tagging": ["athena:TagResource"], "requestTags": true, "tags": [{"member": "Tags[]", "key": "Key", "value": "Value"}]},
|
||||
"athena:CreateSystemTableConfiguration": {"tagging": ["athena:TagResource"], "requestTags": true, "notRead": "the pinned botocore does not have the operation yet, so its request cannot be read"},
|
||||
|
||||
@@ -72,6 +72,57 @@
|
||||
"VerifyPhoneNumber": {"method": "POST", "requestUri": "/verifyPhoneNumber"}
|
||||
}
|
||||
},
|
||||
"amp": {
|
||||
"credentialScope": "aps",
|
||||
"apiVersion": "2020-08-01",
|
||||
"accessDeniedStatus": 403,
|
||||
"operations": {
|
||||
"CreateAlertManagerDefinition": {"method": "POST", "requestUri": "/workspaces/{workspaceId}/alertmanager/definition"},
|
||||
"CreateAnomalyDetector": {"method": "POST", "requestUri": "/workspaces/{workspaceId}/anomalydetectors"},
|
||||
"CreateLoggingConfiguration": {"method": "POST", "requestUri": "/workspaces/{workspaceId}/logging"},
|
||||
"CreateQueryLoggingConfiguration": {"method": "POST", "requestUri": "/workspaces/{workspaceId}/logging/query"},
|
||||
"CreateRuleGroupsNamespace": {"method": "POST", "requestUri": "/workspaces/{workspaceId}/rulegroupsnamespaces"},
|
||||
"CreateScraper": {"method": "POST", "requestUri": "/scrapers"},
|
||||
"CreateWorkspace": {"method": "POST", "requestUri": "/workspaces"},
|
||||
"DeleteAlertManagerDefinition": {"method": "DELETE", "requestUri": "/workspaces/{workspaceId}/alertmanager/definition"},
|
||||
"DeleteAnomalyDetector": {"method": "DELETE", "requestUri": "/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}"},
|
||||
"DeleteLoggingConfiguration": {"method": "DELETE", "requestUri": "/workspaces/{workspaceId}/logging"},
|
||||
"DeleteQueryLoggingConfiguration": {"method": "DELETE", "requestUri": "/workspaces/{workspaceId}/logging/query"},
|
||||
"DeleteResourcePolicy": {"method": "DELETE", "requestUri": "/workspaces/{workspaceId}/policy"},
|
||||
"DeleteRuleGroupsNamespace": {"method": "DELETE", "requestUri": "/workspaces/{workspaceId}/rulegroupsnamespaces/{name}"},
|
||||
"DeleteScraper": {"method": "DELETE", "requestUri": "/scrapers/{scraperId}"},
|
||||
"DeleteScraperLoggingConfiguration": {"method": "DELETE", "requestUri": "/scrapers/{scraperId}/logging-configuration"},
|
||||
"DeleteWorkspace": {"method": "DELETE", "requestUri": "/workspaces/{workspaceId}"},
|
||||
"DescribeAlertManagerDefinition": {"method": "GET", "requestUri": "/workspaces/{workspaceId}/alertmanager/definition"},
|
||||
"DescribeAnomalyDetector": {"method": "GET", "requestUri": "/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}"},
|
||||
"DescribeLoggingConfiguration": {"method": "GET", "requestUri": "/workspaces/{workspaceId}/logging"},
|
||||
"DescribeQueryLoggingConfiguration": {"method": "GET", "requestUri": "/workspaces/{workspaceId}/logging/query"},
|
||||
"DescribeResourcePolicy": {"method": "GET", "requestUri": "/workspaces/{workspaceId}/policy"},
|
||||
"DescribeRuleGroupsNamespace": {"method": "GET", "requestUri": "/workspaces/{workspaceId}/rulegroupsnamespaces/{name}"},
|
||||
"DescribeScraper": {"method": "GET", "requestUri": "/scrapers/{scraperId}"},
|
||||
"DescribeScraperLoggingConfiguration": {"method": "GET", "requestUri": "/scrapers/{scraperId}/logging-configuration"},
|
||||
"DescribeWorkspace": {"method": "GET", "requestUri": "/workspaces/{workspaceId}"},
|
||||
"DescribeWorkspaceConfiguration": {"method": "GET", "requestUri": "/workspaces/{workspaceId}/configuration"},
|
||||
"GetDefaultScraperConfiguration": {"method": "GET", "requestUri": "/scraperconfiguration"},
|
||||
"ListAnomalyDetectors": {"method": "GET", "requestUri": "/workspaces/{workspaceId}/anomalydetectors"},
|
||||
"ListRuleGroupsNamespaces": {"method": "GET", "requestUri": "/workspaces/{workspaceId}/rulegroupsnamespaces"},
|
||||
"ListScrapers": {"method": "GET", "requestUri": "/scrapers"},
|
||||
"ListTagsForResource": {"method": "GET", "requestUri": "/tags/{resourceArn}"},
|
||||
"ListWorkspaces": {"method": "GET", "requestUri": "/workspaces"},
|
||||
"PutAlertManagerDefinition": {"method": "PUT", "requestUri": "/workspaces/{workspaceId}/alertmanager/definition"},
|
||||
"PutAnomalyDetector": {"method": "PUT", "requestUri": "/workspaces/{workspaceId}/anomalydetectors/{anomalyDetectorId}"},
|
||||
"PutResourcePolicy": {"method": "PUT", "requestUri": "/workspaces/{workspaceId}/policy"},
|
||||
"PutRuleGroupsNamespace": {"method": "PUT", "requestUri": "/workspaces/{workspaceId}/rulegroupsnamespaces/{name}"},
|
||||
"TagResource": {"method": "POST", "requestUri": "/tags/{resourceArn}"},
|
||||
"UntagResource": {"method": "DELETE", "requestUri": "/tags/{resourceArn}"},
|
||||
"UpdateLoggingConfiguration": {"method": "PUT", "requestUri": "/workspaces/{workspaceId}/logging"},
|
||||
"UpdateQueryLoggingConfiguration": {"method": "PUT", "requestUri": "/workspaces/{workspaceId}/logging/query"},
|
||||
"UpdateScraper": {"method": "PUT", "requestUri": "/scrapers/{scraperId}"},
|
||||
"UpdateScraperLoggingConfiguration": {"method": "PUT", "requestUri": "/scrapers/{scraperId}/logging-configuration"},
|
||||
"UpdateWorkspaceAlias": {"method": "POST", "requestUri": "/workspaces/{workspaceId}/alias"},
|
||||
"UpdateWorkspaceConfiguration": {"method": "PATCH", "requestUri": "/workspaces/{workspaceId}/configuration"}
|
||||
}
|
||||
},
|
||||
"apigateway": {
|
||||
"credentialScope": "apigateway",
|
||||
"apiVersion": "2015-07-09",
|
||||
|
||||
@@ -0,0 +1,247 @@
|
||||
package io.floci.aws.services.aps;
|
||||
|
||||
import io.floci.aws.testing.SignedIamEnforcementProfile;
|
||||
import io.floci.aws.testing.SignedIamUsers;
|
||||
import io.floci.aws.testing.SignedRestRequests;
|
||||
import io.floci.aws.testutil.AwsRequestSigner;
|
||||
import io.quarkus.test.common.http.TestHTTPResource;
|
||||
import io.quarkus.test.junit.QuarkusTest;
|
||||
import io.quarkus.test.junit.TestProfile;
|
||||
import io.restassured.response.Response;
|
||||
import org.junit.jupiter.api.Test;
|
||||
|
||||
import java.net.URI;
|
||||
import java.net.URLEncoder;
|
||||
import java.nio.charset.StandardCharsets;
|
||||
import java.util.Base64;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
|
||||
import static io.floci.aws.testing.IamTestPolicies.allow;
|
||||
import static io.floci.aws.testing.SignedRestRequests.denied;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
import static org.hamcrest.Matchers.nullValue;
|
||||
|
||||
/**
|
||||
* Amazon Managed Service for Prometheus requests are checked against the caller's policies through its generated
|
||||
* routes: a workspace call on the workspace its path names, a rule groups namespace call on the namespace its
|
||||
* workspace and name give, a tag call on the resource its ARN names however the ARN is sent, and a create that tags
|
||||
* what it makes also as {@code aps:TagResource}.
|
||||
*/
|
||||
@QuarkusTest
|
||||
@TestProfile(SignedIamEnforcementProfile.class)
|
||||
class ApsIamIntegrationTest {
|
||||
|
||||
private static final String RULES = Base64.getEncoder()
|
||||
.encodeToString("groups: []\n".getBytes(StandardCharsets.UTF_8));
|
||||
|
||||
private final AwsRequestSigner admin = AwsRequestSigner.signedAs("test", "test", "aps");
|
||||
|
||||
@TestHTTPResource("/")
|
||||
URI endpoint;
|
||||
|
||||
@Test
|
||||
void aWorkspaceReadIsRefusedWithoutThePermissionAllowedWithItAndRefusedOnceItIsRemoved() throws Exception {
|
||||
String workspaceId = createWorkspace();
|
||||
String arn = workspaceArn(workspaceId);
|
||||
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "aps-iam-")) {
|
||||
denied(send(user, "GET", "/workspaces/" + workspaceId, null), "aps:DescribeWorkspace");
|
||||
try {
|
||||
SignedIamUsers.iam(endpoint, "PutUserPolicy", Map.of("UserName", user.name(), "PolicyName", "access",
|
||||
"PolicyDocument", allow("\"aps:DescribeWorkspace\"", arn))).then().statusCode(200);
|
||||
send(user, "GET", "/workspaces/" + workspaceId, null).then().statusCode(200)
|
||||
.body("workspace.arn", equalTo(arn));
|
||||
} finally {
|
||||
SignedIamUsers.iam(endpoint, "DeleteUserPolicy",
|
||||
Map.of("UserName", user.name(), "PolicyName", "access")).then().statusCode(200);
|
||||
}
|
||||
denied(send(user, "GET", "/workspaces/" + workspaceId, null), "aps:DescribeWorkspace");
|
||||
} finally {
|
||||
deleteWorkspace(workspaceId);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void aCallerWithoutPermissionsIsRefusedBeforeAWorkspaceIsCreatedOrDeleted() throws Exception {
|
||||
String workspaceId = createWorkspace();
|
||||
String alias = "iam-none-" + workspaceId;
|
||||
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "aps-iam-")) {
|
||||
denied(send(user, "POST", "/workspaces", "{\"alias\":\"" + alias + "\"}"), "aps:CreateWorkspace");
|
||||
denied(send(user, "GET", "/workspaces", null), "aps:ListWorkspaces");
|
||||
denied(send(user, "DELETE", "/workspaces/" + workspaceId, null), "aps:DeleteWorkspace");
|
||||
send(admin, "GET", "/workspaces?alias=" + alias, null).then().statusCode(200)
|
||||
.body("workspaces.size()", equalTo(0));
|
||||
send(admin, "GET", "/workspaces/" + workspaceId, null).then().statusCode(200);
|
||||
} finally {
|
||||
deleteWorkspace(workspaceId);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void aWorkspaceScopedAllowReachesThatWorkspaceAndRefusesAnother() throws Exception {
|
||||
String allowed = createWorkspace();
|
||||
String other = createWorkspace();
|
||||
String actions = "[\"aps:DescribeWorkspace\",\"aps:UpdateWorkspaceAlias\",\"aps:ListRuleGroupsNamespaces\"]";
|
||||
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "aps-iam-", "access",
|
||||
allow(actions, workspaceArn(allowed)))) {
|
||||
send(user, "GET", "/workspaces/" + allowed, null).then().statusCode(200)
|
||||
.body("workspace.workspaceId", equalTo(allowed));
|
||||
denied(send(user, "GET", "/workspaces/" + other, null), "aps:DescribeWorkspace");
|
||||
send(user, "POST", "/workspaces/" + allowed + "/alias", "{\"alias\":\"renamed\"}").then().statusCode(204);
|
||||
denied(send(user, "POST", "/workspaces/" + other + "/alias", "{\"alias\":\"renamed\"}"),
|
||||
"aps:UpdateWorkspaceAlias");
|
||||
send(user, "GET", "/workspaces/" + allowed + "/rulegroupsnamespaces", null).then().statusCode(200);
|
||||
denied(send(user, "GET", "/workspaces/" + other + "/rulegroupsnamespaces", null),
|
||||
"aps:ListRuleGroupsNamespaces");
|
||||
denied(send(user, "DELETE", "/workspaces/" + allowed, null), "aps:DeleteWorkspace");
|
||||
send(admin, "GET", "/workspaces/" + allowed, null).then().statusCode(200)
|
||||
.body("workspace.alias", equalTo("renamed"));
|
||||
send(admin, "GET", "/workspaces/" + other, null).then().statusCode(200)
|
||||
.body("workspace.alias", nullValue());
|
||||
} finally {
|
||||
deleteWorkspace(allowed);
|
||||
deleteWorkspace(other);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void aNamespaceScopedAllowReachesTheNamespacesOfOneWorkspaceOnly() throws Exception {
|
||||
String allowed = createWorkspace();
|
||||
String other = createWorkspace();
|
||||
try {
|
||||
String rules = createNamespace(allowed, "rules");
|
||||
createNamespace(other, "rules");
|
||||
String namespaces = workspaceArn(allowed).replace(":workspace/", ":rulegroupsnamespace/") + "/*";
|
||||
String actions = "[\"aps:CreateRuleGroupsNamespace\",\"aps:DescribeRuleGroupsNamespace\","
|
||||
+ "\"aps:PutRuleGroupsNamespace\"]";
|
||||
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "aps-iam-", "access",
|
||||
allow(actions, namespaces))) {
|
||||
send(user, "GET", "/workspaces/" + allowed + "/rulegroupsnamespaces/rules", null).then()
|
||||
.statusCode(200).body("ruleGroupsNamespace.arn", equalTo(rules));
|
||||
denied(send(user, "GET", "/workspaces/" + other + "/rulegroupsnamespaces/rules", null),
|
||||
"aps:DescribeRuleGroupsNamespace");
|
||||
send(user, "PUT", "/workspaces/" + allowed + "/rulegroupsnamespaces/rules", data()).then()
|
||||
.statusCode(202);
|
||||
denied(send(user, "PUT", "/workspaces/" + other + "/rulegroupsnamespaces/rules", data()),
|
||||
"aps:PutRuleGroupsNamespace");
|
||||
denied(send(user, "DELETE", "/workspaces/" + allowed + "/rulegroupsnamespaces/rules", null),
|
||||
"aps:DeleteRuleGroupsNamespace");
|
||||
send(user, "POST", "/workspaces/" + allowed + "/rulegroupsnamespaces", namespace("more")).then()
|
||||
.statusCode(202).body("arn", equalTo(rules.replace("/rules", "/more")));
|
||||
denied(send(user, "POST", "/workspaces/" + other + "/rulegroupsnamespaces", namespace("more")),
|
||||
"aps:CreateRuleGroupsNamespace");
|
||||
}
|
||||
send(admin, "GET", "/workspaces/" + allowed + "/rulegroupsnamespaces/rules", null).then().statusCode(200);
|
||||
send(admin, "GET", "/workspaces/" + other + "/rulegroupsnamespaces/more", null).then().statusCode(404);
|
||||
} finally {
|
||||
deleteWorkspace(allowed);
|
||||
deleteWorkspace(other);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void aCreateThatTagsWhatItMakesAlsoNeedsTheTaggingPermission() throws Exception {
|
||||
String workspaceId = createWorkspace();
|
||||
String policy = "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":"
|
||||
+ "[\"aps:CreateWorkspace\",\"aps:CreateRuleGroupsNamespace\"],\"Resource\":\"*\"},"
|
||||
+ "{\"Effect\":\"Allow\",\"Action\":\"aps:TagResource\",\"Resource\":\"*\","
|
||||
+ "\"Condition\":{\"StringEquals\":{\"aws:RequestTag/team\":\"metrics\"}}}]}";
|
||||
String alias = "iam-tagged-" + workspaceId;
|
||||
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "aps-iam-", "access", policy)) {
|
||||
denied(send(user, "POST", "/workspaces", "{\"alias\":\"" + alias + "\",\"tags\":{\"team\":\"logs\"}}"),
|
||||
"aps:TagResource");
|
||||
denied(send(user, "POST", "/workspaces/" + workspaceId + "/rulegroupsnamespaces", tagged("logs")),
|
||||
"aps:TagResource");
|
||||
send(admin, "GET", "/workspaces?alias=" + alias, null).then().statusCode(200)
|
||||
.body("workspaces.size()", equalTo(0));
|
||||
send(admin, "GET", "/workspaces/" + workspaceId + "/rulegroupsnamespaces/tagged", null).then()
|
||||
.statusCode(404);
|
||||
String created = send(user, "POST", "/workspaces", "{\"alias\":\"" + alias
|
||||
+ "\",\"tags\":{\"team\":\"metrics\"}}").then().statusCode(202)
|
||||
.body("tags.team", equalTo("metrics")).extract().path("workspaceId");
|
||||
deleteWorkspace(created);
|
||||
send(user, "POST", "/workspaces/" + workspaceId + "/rulegroupsnamespaces", tagged("metrics")).then()
|
||||
.statusCode(202).body("tags.team", equalTo("metrics"));
|
||||
} finally {
|
||||
deleteWorkspace(workspaceId);
|
||||
}
|
||||
}
|
||||
|
||||
@Test
|
||||
void aTagCallIsCheckedOnTheWorkspaceItsArnNamesOnAmpsOwnRouteAlone() throws Exception {
|
||||
String allowed = createWorkspace();
|
||||
String other = createWorkspace();
|
||||
String allowedArn = workspaceArn(allowed);
|
||||
String otherArn = workspaceArn(other);
|
||||
try (SignedIamUsers.User user = SignedIamUsers.createUser(endpoint, "aps-iam-", "access",
|
||||
allow("[\"aps:TagResource\",\"aps:ListTagsForResource\"]", allowedArn))) {
|
||||
send(user, "POST", "/tags/" + encoded(allowedArn), "{\"tags\":{\"encoded\":\"yes\"}}").then()
|
||||
.statusCode(200);
|
||||
// AWS serves AMP's tagging on /tags/{resourceArn} alone: an ARN whose slash is not encoded, and the bare
|
||||
// /tags the shared controller serves other services on, are no route of AMP's, whatever the caller may do.
|
||||
for (String arn : List.of(allowedArn, otherArn)) {
|
||||
invalidArn(send(user, "POST", "/tags/" + arn, "{\"tags\":{\"raw\":\"yes\"}}"), arn);
|
||||
invalidArn(send(user, "POST", "/tags", "{\"resourceArn\":\"" + arn + "\",\"tags\":{\"bare\":\"yes\"}}"),
|
||||
arn);
|
||||
}
|
||||
send(user, "GET", "/tags/" + encoded(allowedArn), null).then().statusCode(200)
|
||||
.body("tags", equalTo(Map.of("encoded", "yes")));
|
||||
denied(send(user, "POST", "/tags/" + encoded(otherArn), "{\"tags\":{\"encoded\":\"yes\"}}"),
|
||||
"aps:TagResource");
|
||||
denied(send(user, "GET", "/tags/" + encoded(otherArn), null), "aps:ListTagsForResource");
|
||||
denied(send(user, "DELETE", "/tags/" + encoded(allowedArn) + "?tagKeys=encoded", null),
|
||||
"aps:UntagResource");
|
||||
send(admin, "GET", "/tags/" + encoded(otherArn), null).then().statusCode(200)
|
||||
.body("tags", equalTo(Map.of()));
|
||||
} finally {
|
||||
deleteWorkspace(allowed);
|
||||
deleteWorkspace(other);
|
||||
}
|
||||
}
|
||||
|
||||
private static void invalidArn(Response response, String arn) {
|
||||
response.then().statusCode(400).body("message", equalTo("Invalid resource ARN: " + arn));
|
||||
}
|
||||
|
||||
private static String encoded(String arn) {
|
||||
return URLEncoder.encode(arn, StandardCharsets.UTF_8);
|
||||
}
|
||||
|
||||
private static String data() {
|
||||
return "{\"data\":\"" + RULES + "\"}";
|
||||
}
|
||||
|
||||
private static String namespace(String name) {
|
||||
return "{\"name\":\"" + name + "\",\"data\":\"" + RULES + "\"}";
|
||||
}
|
||||
|
||||
private static String tagged(String team) {
|
||||
return "{\"name\":\"tagged\",\"data\":\"" + RULES + "\",\"tags\":{\"team\":\"" + team + "\"}}";
|
||||
}
|
||||
|
||||
private String createWorkspace() throws Exception {
|
||||
return send(admin, "POST", "/workspaces", "{}").then().statusCode(202).extract().path("workspaceId");
|
||||
}
|
||||
|
||||
private String workspaceArn(String workspaceId) throws Exception {
|
||||
return send(admin, "GET", "/workspaces/" + workspaceId, null).then().statusCode(200)
|
||||
.extract().path("workspace.arn");
|
||||
}
|
||||
|
||||
private String createNamespace(String workspaceId, String name) throws Exception {
|
||||
return send(admin, "POST", "/workspaces/" + workspaceId + "/rulegroupsnamespaces", namespace(name)).then()
|
||||
.statusCode(202).extract().path("arn");
|
||||
}
|
||||
|
||||
private void deleteWorkspace(String workspaceId) throws Exception {
|
||||
send(admin, "DELETE", "/workspaces/" + workspaceId, null).then().statusCode(202);
|
||||
}
|
||||
|
||||
private Response send(SignedIamUsers.User user, String method, String path, String body) throws Exception {
|
||||
return send(user.signer("aps"), method, path, body);
|
||||
}
|
||||
|
||||
private Response send(AwsRequestSigner signer, String method, String path, String body) throws Exception {
|
||||
return SignedRestRequests.send(endpoint, signer, method, path, body, "application/json");
|
||||
}
|
||||
}
|
||||
+1
-5
@@ -14,6 +14,7 @@ import java.net.URI;
|
||||
import java.util.UUID;
|
||||
|
||||
import static io.floci.aws.testing.EmrServerlessRequests.tagsPath;
|
||||
import static io.floci.aws.testing.IamTestPolicies.allow;
|
||||
import static io.floci.aws.testing.SignedRestRequests.denied;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
@@ -128,11 +129,6 @@ class EmrServerlessIamIntegrationTest {
|
||||
}
|
||||
}
|
||||
|
||||
private static String allow(String actions, String resource) {
|
||||
return "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":" + actions
|
||||
+ ",\"Resource\":\"" + resource + "\"}]}";
|
||||
}
|
||||
|
||||
private String createApplication() throws Exception {
|
||||
String name = "iam-" + UUID.randomUUID().toString().substring(0, 8);
|
||||
return send(admin, "POST", "/applications", application(name)).then().statusCode(200)
|
||||
|
||||
+1
-6
@@ -22,6 +22,7 @@ import java.net.URI;
|
||||
import java.util.UUID;
|
||||
|
||||
import static io.floci.aws.testing.EnforcementFixtures.auth;
|
||||
import static io.floci.aws.testing.IamTestPolicies.allow;
|
||||
import static io.restassured.RestAssured.given;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.junit.jupiter.api.Assertions.assertEquals;
|
||||
@@ -135,12 +136,6 @@ class Route53HostedZonesIamEnforcementIntegrationTest {
|
||||
return "arn:aws:route53:::hostedzone/" + id;
|
||||
}
|
||||
|
||||
private static String allow(String actions, String resource) {
|
||||
return """
|
||||
{"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":%s,"Resource":"%s"}]}
|
||||
""".formatted(actions, resource);
|
||||
}
|
||||
|
||||
private String userWithPolicy(String policy) {
|
||||
String user = "r53-zones-" + UUID.randomUUID();
|
||||
String key = EnforcementFixtures.createUser(CLEANUP, baseUri.getPort(), auth(ACCOUNT, "iam"), user).accessKeyId();
|
||||
|
||||
@@ -20,6 +20,7 @@ import java.nio.charset.StandardCharsets;
|
||||
import java.util.List;
|
||||
import java.util.UUID;
|
||||
|
||||
import static io.floci.aws.testing.IamTestPolicies.allow;
|
||||
import static io.floci.aws.testing.SignedRestRequests.denied;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
@@ -277,11 +278,6 @@ class S3TablesIamIntegrationTest {
|
||||
send(admin, "DELETE", "/buckets/" + encoded(bucket), null).then().statusCode(204);
|
||||
}
|
||||
|
||||
private static String allow(String actions, String resource) {
|
||||
return "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":" + actions
|
||||
+ ",\"Resource\":\"" + resource + "\"}]}";
|
||||
}
|
||||
|
||||
private String createBucket() throws Exception {
|
||||
String name = "iam-" + UUID.randomUUID().toString().substring(0, 8);
|
||||
return send(admin, "PUT", "/buckets", "{\"name\":\"" + name + "\"}").then().statusCode(200)
|
||||
|
||||
@@ -22,6 +22,7 @@ import java.net.URI;
|
||||
import java.util.Map;
|
||||
import java.util.UUID;
|
||||
|
||||
import static io.floci.aws.testing.IamTestPolicies.allow;
|
||||
import static io.floci.aws.testing.SignedRestRequests.denied;
|
||||
import static org.hamcrest.Matchers.containsString;
|
||||
import static org.hamcrest.Matchers.equalTo;
|
||||
@@ -188,11 +189,6 @@ class S3VectorsIamIntegrationTest {
|
||||
return "{\"vectorBucketName\":\"" + bucket + "\",\"indexName\":\"" + index + "\"}";
|
||||
}
|
||||
|
||||
private static String allow(String actions, String resource) {
|
||||
return "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":" + actions
|
||||
+ ",\"Resource\":\"" + resource + "\"}]}";
|
||||
}
|
||||
|
||||
private String createBucket(String name) throws Exception {
|
||||
return createBucket(name, null);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
package io.floci.aws.testing;
|
||||
|
||||
/**
|
||||
* Policy documents for tests whose subject is not the document.
|
||||
* Policy documents for tests whose subject is not the document, and the one grant a service's IAM test gives its
|
||||
* caller ({@link #allow}).
|
||||
*
|
||||
* <p>Every IAM write that takes one holds it to being a policy document, so a test that needs a
|
||||
* role, a managed policy or an inline policy to exist cannot hand in a placeholder like
|
||||
@@ -41,6 +42,15 @@ public final class IamTestPolicies {
|
||||
+ "\"Action\":\"s3:Get\",\"Resource\":\"*\"}]}";
|
||||
}
|
||||
|
||||
/**
|
||||
* An identity policy that allows {@code actions}, one action as a JSON string or several as a JSON array, on
|
||||
* {@code resource}: the grant an IAM test of a service gives its caller.
|
||||
*/
|
||||
public static String allow(String actions, String resource) {
|
||||
return "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Effect\":\"Allow\",\"Action\":" + actions
|
||||
+ ",\"Resource\":\"" + resource + "\"}]}";
|
||||
}
|
||||
|
||||
private IamTestPolicies() {
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ SERVICE_SUFFIX = ".amazonaws.com"
|
||||
# The IAM namespaces whose operations this file reads: those Floci serves over the JSON and Query
|
||||
# protocols and Smithy RPC v2 CBOR, and the REST ones whose routes Floci authorizes by operation.
|
||||
NAMESPACES = (
|
||||
"application-autoscaling", "athena", "autoscaling", "budgets", "cloudformation", "cloudtrail",
|
||||
"application-autoscaling", "aps", "athena", "autoscaling", "budgets", "cloudformation", "cloudtrail",
|
||||
"cloudwatch", "codebuild", "codedeploy", "codepipeline", "cognito-identity", "cognito-idp",
|
||||
"comprehend", "config", "datasync", "dms", "dsql", "ec2", "ecr", "ecs", "eks", "elasticmapreduce",
|
||||
"emr-containers", "emr-serverless", "events", "firehose", "glue", "iam", "kinesis", "kinesisanalytics", "lambda",
|
||||
@@ -96,7 +96,6 @@ NOT_COVERED = {
|
||||
"airflow": "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",
|
||||
|
||||
@@ -306,7 +306,7 @@ OUTPUT = REPO_ROOT / "src/main/resources/aws/iam-request-resources.json"
|
||||
|
||||
# The namespaces read, in batches: each moves here from NOT_COVERED with the tests that show its ARNs
|
||||
# are the ones its handlers mint.
|
||||
NAMESPACES = ("access-analyzer", "account", "acm", "application-autoscaling", "athena", "bcm-data-exports",
|
||||
NAMESPACES = ("access-analyzer", "account", "acm", "application-autoscaling", "aps", "athena", "bcm-data-exports",
|
||||
"bcm-pricing-calculator", "budgets", "ce", "cloudfront", "cloudfront-keyvaluestore", "cloudtrail",
|
||||
"codebuild", "codepipeline", "cognito-identity", "cognito-idp", "controlcatalog", "controltower", "cur",
|
||||
"datasync", "ec2", "ecr", "ecs", "elasticloadbalancing", "elasticmapreduce", "emr-containers",
|
||||
@@ -459,7 +459,6 @@ NOT_COVERED: dict[str, str] = {
|
||||
"app-integrations": _REST,
|
||||
"appconfig": _REST,
|
||||
"appsync": _REST,
|
||||
"aps": _REST,
|
||||
"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",
|
||||
|
||||
@@ -105,7 +105,7 @@ OUTPUT = REPO_ROOT / "src/main/resources/aws/iam-tag-on-create.json"
|
||||
# The IAM namespaces whose operations this file reads: those Floci serves over the JSON and Query
|
||||
# protocols and Smithy RPC v2 CBOR, and the REST ones whose routes Floci authorizes by operation.
|
||||
NAMESPACES = (
|
||||
"access-analyzer", "acm", "application-autoscaling", "athena", "autoscaling", "bcm-data-exports",
|
||||
"access-analyzer", "acm", "application-autoscaling", "aps", "athena", "autoscaling", "bcm-data-exports",
|
||||
"bcm-pricing-calculator", "bedrock", "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",
|
||||
@@ -125,7 +125,7 @@ _NO_ROUTES = "REST routes no rule maps yet"
|
||||
# why. `TagOnCreateNamespacesIntegrationTest` fails for a namespace Floci serves that is in neither list.
|
||||
NOT_COVERED = {
|
||||
"airflow": _NO_ROUTES, "app-integrations": _NO_ROUTES, "appconfig": _NO_ROUTES, "appsync": _NO_ROUTES,
|
||||
"aps": _NO_ROUTES, "aws-marketplace": _NO_ROUTES, "backup": _NO_ROUTES,
|
||||
"aws-marketplace": _NO_ROUTES, "backup": _NO_ROUTES,
|
||||
"batch": _NO_ROUTES, "bedrock-agentcore": _NO_ROUTES,
|
||||
"cloudfront": "its creation tags are a Tags structure holding Items, which this file does not read yet",
|
||||
"codeguru-reviewer": _NO_ROUTES, "connect": _NO_ROUTES,
|
||||
|
||||
@@ -62,6 +62,7 @@ OUTPUT = REPO_ROOT / "src/main/resources/aws/rest-routes.json"
|
||||
MODELS: dict[str, str] = {
|
||||
"accessanalyzer": "access-analyzer",
|
||||
"account": "account",
|
||||
"amp": "aps",
|
||||
"apigateway": "apigateway",
|
||||
"apigatewayv2": "apigateway",
|
||||
"bedrock": "bedrock",
|
||||
|
||||
Reference in new issue
Block a user