From f8670f64fbc953648bc303fd5cee01620c8ccba8 Mon Sep 17 00:00:00 2001 From: jwoa95 <88512616+jwoa95@users.noreply.github.com> Date: Fri, 6 Nov 2026 13:11:30 +0000 Subject: [PATCH] feat(quicksight): add metadata APIs and limited registered-user embedding (#7529) Closes #7522 Origin comparisons preserved host casing and default ports, CSP named only the immediate parent, and expired sessions remained in storage indefinitely. Normalize both sides of origin checks, allow all configured ancestors, and reap expired sessions across accounts with the shared sweep worker. --- README.md | 1 + compatibility-tests/sdk-test-java/pom.xml | 4 + .../java/com/floci/test/TestFixtures.java | 9 + .../java/com/floci/test/QuickSightTest.java | 38 ++ docs/services/index.md | 1 + docs/services/quicksight.md | 85 ++++ mkdocs.yml | 1 + pom.xml | 6 + .../floci/config/EmulatorConfig.java | 9 + .../core/common/IamEnforcementFilter.java | 7 +- .../core/common/RequestResourceMembers.java | 29 +- .../floci/core/common/RequestResources.java | 13 +- .../core/common/ResolvedServiceCatalog.java | 6 + .../floci/services/iam/IamActionRegistry.java | 5 + .../floci/services/iam/IamRestRoutes.java | 24 +- .../quicksight/QuickSightController.java | 182 +++++++ .../quicksight/QuickSightEmbedController.java | 57 +++ .../quicksight/QuickSightOrigins.java | 35 ++ .../quicksight/QuickSightService.java | 461 ++++++++++++++++++ .../QuickSightSessionExpirationScheduler.java | 18 + .../quicksight/model/QuickSightResource.java | 7 + src/main/resources/application.yml | 3 + .../resources/aws/iam-authorized-actions.json | 93 +++- src/main/resources/aws/iam-passed-roles.json | 4 +- .../resources/aws/iam-request-resources.json | 307 +++++++++++- src/main/resources/aws/iam-tag-on-create.json | 4 +- src/main/resources/aws/rest-routes.json | 316 +++++++++++- ...itionCrossServiceSmokeIntegrationTest.java | 15 +- .../common/RequestResourceMembersTest.java | 11 +- .../floci/services/iam/IamRestRoutesTest.java | 23 + ...ickSightIamEnforcementIntegrationTest.java | 247 ++++++++++ .../quicksight/QuickSightIntegrationTest.java | 254 ++++++++++ .../quicksight/QuickSightServiceTest.java | 173 +++++++ src/test/resources/application.yml | 3 + tools/aws/regen_iam_passed_roles.py | 1 + tools/aws/regen_iam_request_resources.py | 24 +- tools/aws/regen_iam_tag_on_create.py | 4 +- tools/aws/regen_rest_routes.py | 31 +- tools/aws/test_regen_rest_routes.py | 33 ++ tools/docs/services.yaml | 4 + 40 files changed, 2511 insertions(+), 37 deletions(-) create mode 100644 compatibility-tests/sdk-test-java/src/test/java/com/floci/test/QuickSightTest.java create mode 100644 docs/services/quicksight.md create mode 100644 src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightController.java create mode 100644 src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightEmbedController.java create mode 100644 src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightOrigins.java create mode 100644 src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightService.java create mode 100644 src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightSessionExpirationScheduler.java create mode 100644 src/main/java/io/github/hectorvent/floci/services/quicksight/model/QuickSightResource.java create mode 100644 src/test/java/io/github/hectorvent/floci/services/quicksight/QuickSightIamEnforcementIntegrationTest.java create mode 100644 src/test/java/io/github/hectorvent/floci/services/quicksight/QuickSightIntegrationTest.java create mode 100644 src/test/java/io/github/hectorvent/floci/services/quicksight/QuickSightServiceTest.java diff --git a/README.md b/README.md index 637c2ba2ef..f447e0a05b 100644 --- a/README.md +++ b/README.md @@ -350,6 +350,7 @@ For operation-level compatibility, see the [Services Overview](https://floci.io/ | DocumentDB | Real Docker, mock mode available | MongoDB-compatible cluster via real MongoDB containers; RDS-shaped control plane; MongoDB wire protocol on port 27017 | | MSK | Real Docker | Kafka-compatible broker via Redpanda | | Amazon MQ | Real Docker | RabbitMQ broker via rabbitmq:3-management; AMQP + management console | +| QuickSight | In-process metadata | Dashboard, dataset, data-source, user and ingestion metadata; direct-user dashboard search and a limited embed page; no SQL, SPICE processing or BI visualization | | Athena | In-process with DuckDB sidecar | Real SQL execution over S3 and Glue-backed views | | Glue | In-process | Data Catalog, Schema Registry, tables consumed by Athena | | EMR | In-process | Cluster (job flow) lifecycle, instance groups and fleets (including resizing), bootstrap actions, steps, security configurations, scaling and termination policies, block public access, tagging | diff --git a/compatibility-tests/sdk-test-java/pom.xml b/compatibility-tests/sdk-test-java/pom.xml index 82b8579821..3cd88d374e 100644 --- a/compatibility-tests/sdk-test-java/pom.xml +++ b/compatibility-tests/sdk-test-java/pom.xml @@ -72,6 +72,10 @@ + + software.amazon.awssdk + quicksight + software.amazon.awssdk servicequotas diff --git a/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java b/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java index ebfce79763..aa19dad1b2 100644 --- a/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java +++ b/compatibility-tests/sdk-test-java/src/main/java/com/floci/test/TestFixtures.java @@ -108,6 +108,7 @@ import software.amazon.awssdk.services.opensearch.OpenSearchClient; import software.amazon.awssdk.services.organizations.OrganizationsClient; import software.amazon.awssdk.services.paymentcryptography.PaymentCryptographyClient; import software.amazon.awssdk.services.pipes.PipesClient; +import software.amazon.awssdk.services.quicksight.QuickSightClient; import software.amazon.awssdk.services.ram.RamClient; import software.amazon.awssdk.services.rds.RdsClient; import software.amazon.awssdk.services.redshift.RedshiftClient; @@ -645,6 +646,14 @@ public final class TestFixtures { .build(); } + public static QuickSightClient quickSightClient() { + return QuickSightClient.builder() + .endpointOverride(ENDPOINT) + .region(REGION) + .credentialsProvider(CREDENTIALS) + .build(); + } + public static ServiceQuotasClient serviceQuotasClient() { return ServiceQuotasClient.builder() .endpointOverride(ENDPOINT) diff --git a/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/QuickSightTest.java b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/QuickSightTest.java new file mode 100644 index 0000000000..609d5c743d --- /dev/null +++ b/compatibility-tests/sdk-test-java/src/test/java/com/floci/test/QuickSightTest.java @@ -0,0 +1,38 @@ +package com.floci.test; + +import org.junit.jupiter.api.DisplayName; +import org.junit.jupiter.api.Test; +import software.amazon.awssdk.services.quicksight.QuickSightClient; +import software.amazon.awssdk.services.quicksight.model.ResourceNotFoundException; + +import java.util.List; +import java.util.UUID; + +import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatThrownBy; +import static org.junit.jupiter.api.Assumptions.assumeFalse; + +class QuickSightTest { + @Test + @DisplayName("The local QuickSight subset stores dashboard metadata through the AWS SDK") + void dashboardMetadataRoundTrip() { + assumeFalse(TestFixtures.isRealAws(), "Exercises the metadata-only local subset without a QuickSight subscription"); + String account = "000000000000"; + String id = "compat-" + UUID.randomUUID(); + try (QuickSightClient client = TestFixtures.quickSightClient()) { + String arn = client.createDashboard(request -> request.awsAccountId(account).dashboardId(id) + .name("Metadata dashboard").definition(definition -> definition.sheets(List.of()))).arn(); + try { + assertThat(arn).isEqualTo(TestFixtures.arn("quicksight", account, "dashboard/" + id)); + assertThat(client.describeDashboard(request -> request.awsAccountId(account).dashboardId(id)) + .dashboard().name()).isEqualTo("Metadata dashboard"); + assertThat(client.describeDashboard(request -> request.awsAccountId(account).dashboardId(id)) + .dashboard().createdTime()).isNotNull(); + } finally { + client.deleteDashboard(request -> request.awsAccountId(account).dashboardId(id)); + } + assertThatThrownBy(() -> client.describeDashboard(request -> request.awsAccountId(account).dashboardId(id))) + .isInstanceOf(ResourceNotFoundException.class); + } + } +} diff --git a/docs/services/index.md b/docs/services/index.md index 107cdb74fb..bb58cedee6 100644 --- a/docs/services/index.md +++ b/docs/services/index.md @@ -78,6 +78,7 @@ Operation counts are exact. For dispatch-table services (Query and JSON 1.1) eac | [Neptune](neptune.md) | `POST /` with `Action=` param + Gremlin TCP proxy | Query + WebSocket | 14 | | [DocumentDB](docdb.md) | `POST /` with `Action=` param + MongoDB container | Query + MongoDB wire | 13 | | [DMS](dms.md) | `POST /` + `X-Amz-Target: AmazonDMSv20160101.*` | JSON 1.1 | 20 | +| [QuickSight](quicksight.md) | `/accounts/{AwsAccountId}/...` | REST JSON, metadata only | 16 | | [Redshift](redshift.md) | `POST /` with `Action=` param + PostgreSQL container | Query + PostgreSQL wire (+ CFN) | 55 | | [Redshift Data API](redshift-data.md) | `POST /` + `X-Amz-Target: RedshiftData.*` | JSON 1.1 | 12 | | [Redshift Serverless](redshift-serverless.md) | `POST /` + `X-Amz-Target: RedshiftServerless.*` | JSON 1.1 | 55 | diff --git a/docs/services/quicksight.md b/docs/services/quicksight.md new file mode 100644 index 0000000000..ce578defc0 --- /dev/null +++ b/docs/services/quicksight.md @@ -0,0 +1,85 @@ +# QuickSight + +QuickSight uses the AWS REST JSON wire protocol and the `quicksight` signing scope. +Resources use account-aware storage and region-specific, partition-aware ARNs. +Every management request requires `AwsAccountId` to match the caller's account, +including requests made with Floci's default local credentials. With IAM enforcement +enabled, management actions use the shared REST route and request-resource tables +to evaluate identity policies. +This is a metadata-only subset for local SDK integration tests. + +## Supported operations + + +| Action | Description | +| --- | --- | +| `SearchDashboards` | Searches directly shared dashboards with scoped pagination | +| `CreateDashboard` | Creates a dashboard from a definition and stored dataset references | +| `DescribeDashboard` | Reads dashboard metadata and its published version | +| `DeleteDashboard` | Deletes a dashboard | +| `CreateDataSet` | Stores physical-table dataset metadata | +| `DescribeDataSet` | Reads dataset metadata | +| `DeleteDataSet` | Deletes a dataset and its ingestions | +| `CreateDataSource` | Stores data-source metadata | +| `DescribeDataSource` | Reads data-source metadata | +| `DeleteDataSource` | Deletes a data source | +| `RegisterUser` | Registers a QuickSight-native reader, author or administrator | +| `DescribeUser` | Reads a registered user | +| `CreateIngestion` | Creates a completed metadata-only SPICE ingestion | +| `ListIngestions` | Lists ingestion records newest first with scoped pagination | +| `DescribeIngestion` | Reads an ingestion record | +| `GenerateEmbedUrlForRegisteredUser` | Issues a short-lived URL for a shared dashboard | + + +## Configuration + +`FLOCI_SERVICES_QUICKSIGHT_ENABLED` enables the service, default `true`. +`FLOCI_SERVICES_QUICKSIGHT_EMBED_BASE_URL` sets the public embedding origin, falling +back to `floci.base-url`. Use HTTPS for cookie-backed embedding sessions. +When Floci runs behind a TLS proxy, forward `/embed/*` to Floci and set this variable +to the proxy's HTTPS origin. Preserve `Referer` and `Cookie` headers. + +## Local embedding + +Dashboard URLs use `/embed/{session}/dashboards/{id}?code={bearer}` and resolve the +persisted dashboard after checking the registered user's direct sharing permissions. +The bearer expires after five minutes and can be redeemed once. Subsequent loads +require the secure session cookie; session lifetime is 15 to 600 minutes. Requested +allowed origins are checked against the embedding page's referrer. Host names and +schemes are lowercased and default ports are omitted when origins are stored or +compared. `frame-ancestors` includes every session allowed origin so nested frames +on those origins can embed the dashboard. Allowed domains are exact HTTPS origins +or HTTP localhost, with one to three entries; wildcard domains and a configured +domain allowlist are not implemented. + +When QuickSight is enabled, a background sweep removes expired unredeemed URLs and +redeemed sessions at startup and every sixty seconds, including when idle. The +worker pauses for emulator reset and stops before storage is flushed at shutdown. +Treat embed URLs as credentials and do not put them in logs or shared reports. + +## Scope + +This subset supports local application integration against stored service resources. +It does not execute SQL, fetch S3 data or render BI visualizations. Ingestions model +metadata transitions synchronously and report zero imported rows. Dashboard embedding +shows the stored dashboard's title. Embedding-SDK control iframes, interactive +commands and QuickSight postMessage event processing are not implemented. +Console analysis authoring, templates, federated registration, group-based dashboard +sharing, creation-tag IAM conditions, role passing, dataset transforms and scheduling +are not implemented. +QuickSight-native users become active immediately; there is no invitation flow. +Search requires a registered user in the addressed account and region and enforces +direct user sharing in addition to IAM policy checks when enforcement is enabled. +Denied management requests return `AccessDeniedException` with HTTP 401; an embed +session lifetime outside 15 to 600 minutes returns +`SessionLifetimeInMinutesInvalidException` with HTTP 400. + +Timestamp fields use epoch seconds as defined by the QuickSight REST JSON model and +are verified by strict AWS SDK clients. `SearchDashboards` and `ListIngestions` validate +limits of 1 to 100 and scope continuation tokens to account, region and query identity. + +## AWS references + +- [QuickSight API operations](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_Operations.html) +- [SearchDashboards](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_SearchDashboards.html) +- [GenerateEmbedUrlForRegisteredUser](https://docs.aws.amazon.com/quicksight/latest/APIReference/API_GenerateEmbedUrlForRegisteredUser.html) diff --git a/mkdocs.yml b/mkdocs.yml index 8588665fda..8064a2142f 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -152,6 +152,7 @@ nav: - DocumentDB: services/docdb.md - DMS: services/dms.md - Athena: services/athena.md + - QuickSight: services/quicksight.md - Redshift: services/redshift.md - Redshift Data API: services/redshift-data.md - Redshift Serverless: services/redshift-serverless.md diff --git a/pom.xml b/pom.xml index 2f20da5c15..d142de9d88 100644 --- a/pom.xml +++ b/pom.xml @@ -92,6 +92,12 @@ + + software.amazon.awssdk + quicksight + ${aws.sdk.version} + test + io.quarkus diff --git a/src/main/java/io/github/hectorvent/floci/config/EmulatorConfig.java b/src/main/java/io/github/hectorvent/floci/config/EmulatorConfig.java index 02e6f8df1f..1a87f52b41 100644 --- a/src/main/java/io/github/hectorvent/floci/config/EmulatorConfig.java +++ b/src/main/java/io/github/hectorvent/floci/config/EmulatorConfig.java @@ -884,6 +884,7 @@ public interface EmulatorConfig { EfsServiceConfig efs(); CodeGuruReviewerServiceConfig codegurureviewer(); CodeArtifactServiceConfig codeartifact(); + QuickSightServiceConfig quicksight(); MarketplaceServiceConfig marketplace(); DmsServiceConfig dms(); } @@ -1029,6 +1030,14 @@ public interface EmulatorConfig { boolean enabled(); } + interface QuickSightServiceConfig { + @WithDefault("true") + boolean enabled(); + + /** Public origin used by browser embedding clients. */ + Optional embedBaseUrl(); + } + interface MarketplaceServiceConfig { @WithDefault("true") boolean enabled(); diff --git a/src/main/java/io/github/hectorvent/floci/core/common/IamEnforcementFilter.java b/src/main/java/io/github/hectorvent/floci/core/common/IamEnforcementFilter.java index 05f797f47c..f2200a7a41 100644 --- a/src/main/java/io/github/hectorvent/floci/core/common/IamEnforcementFilter.java +++ b/src/main/java/io/github/hectorvent/floci/core/common/IamEnforcementFilter.java @@ -1862,7 +1862,7 @@ public class IamEnforcementFilter implements ContainerRequestFilter { } /** - * Builds a 403 Access Denied response in the wire format the calling SDK + * Builds an Access Denied response in the wire format the calling SDK * expects. AWS SDKs hard-fail when they receive the wrong shape: an XML * parser blows up on a leading {@code {}, and a JSON parser blows up on * {@code <}. Pick the shape from request signals: @@ -1872,7 +1872,7 @@ public class IamEnforcementFilter implements ContainerRequestFilter { *
  • {@code application/x-www-form-urlencoded} body → AWS Query * {@code ...} (IAM/STS/EC2/SQS/SNS/...), with the code * {@link #queryAccessDeniedCode} gives the service that serves the request
  • - *
  • JSON 1.x: JSON with HTTP 400; REST-JSON: JSON with HTTP 403
  • + *
  • JSON 1.x: JSON with HTTP 400; REST-JSON: JSON with its modelled denial status, defaulting to HTTP 403
  • *
  • CBOR: the request's own encoding with HTTP 403, from {@link #accessDeniedForRequest}, * which has the request to read it from
  • * @@ -1931,7 +1931,8 @@ public class IamEnforcementFilter implements ContainerRequestFilter { if (restXml || protocol == WireProtocol.AWS_QUERY || isFormEncoded(requestMediaType)) { return queryXmlError(queryAccessDeniedCode(credentialScope), message); } - int status = protocol == WireProtocol.AWS_JSON_1_0 || protocol == WireProtocol.AWS_JSON_1_1 ? 400 : 403; + int status = protocol == WireProtocol.AWS_JSON_1_0 || protocol == WireProtocol.AWS_JSON_1_1 + ? 400 : IamActionRegistry.accessDeniedStatus(credentialScope, 403); return jsonAccessDenied(message, status); } diff --git a/src/main/java/io/github/hectorvent/floci/core/common/RequestResourceMembers.java b/src/main/java/io/github/hectorvent/floci/core/common/RequestResourceMembers.java index ab29bc73e9..d919d3ee10 100644 --- a/src/main/java/io/github/hectorvent/floci/core/common/RequestResourceMembers.java +++ b/src/main/java/io/github/hectorvent/floci/core/common/RequestResourceMembers.java @@ -31,9 +31,11 @@ final class RequestResourceMembers { private static final ObjectMapper MAPPER = new ObjectMapper(); private static final Pattern VARIABLE = Pattern.compile("\\$\\{(\\w+)}"); - private static final Pattern MEMBER = Pattern.compile("[A-Za-z][A-Za-z0-9_]*(\\[])?"); - /** A member holding an ARN may also be one level inside a structure or each of a list's structures. */ - private static final Pattern ARN_MEMBER = Pattern.compile("[A-Za-z][A-Za-z0-9_]*(\\[])?(\\.[A-Za-z][A-Za-z0-9_]*(\\[])?)?"); + private static final Pattern MEMBER = Pattern.compile("[A-Za-z][A-Za-z0-9_]*(\\[]|\\{\\})?"); + /** An ARN may be nested in structures, array elements or map values. */ + private static final Pattern ARN_MEMBER = Pattern.compile( + "[A-Za-z][A-Za-z0-9_]*(\\[])?(\\.[A-Za-z][A-Za-z0-9_]*(\\[])?)?" + + "|[A-Za-z][A-Za-z0-9_]*\\{\\}(\\.[A-Za-z][A-Za-z0-9_]*){1,2}"); /** * A member filling a variable may also be a field of a structure, or of each of a list's structures, one value * for each. @@ -56,18 +58,22 @@ final class RequestResourceMembers { private static final Set THROUGH_KEYS = Set.of("types", "through", "when", "endpoint"); /** - * A top-level request member that holds a string, or a list of them when {@code list}, or, with a - * {@code field}, a structure or a list of them, of which that field is read. + * A request selector that holds a string, an array when {@code list}, or map values when {@code map}. + * With a {@code field}, reads that field from each selected structure. */ - record Member(String name, boolean list, Member field) { + record Member(String name, boolean list, Member field, boolean map) { + + Member(String name, boolean list, Member field) { + this(name, list, field, false); + } Member(String name, boolean list) { this(name, list, null); } - /** As the file writes it: {@code Name}, {@code Name[]}, {@code Name.Field} or {@code Name[].Field}. */ + /** The selector path, with {@code []} for array elements and {@code {}} for map values. */ String path() { - return name + (list ? "[]" : "") + (field == null ? "" : "." + field.path()); + return name + (map ? "{}" : list ? "[]" : "") + (field == null ? "" : "." + field.path()); } /** Whether it is a field of each of a list's structures, which gives one value for each of them. */ @@ -419,6 +425,9 @@ final class RequestResourceMembers { if (!MEMBER.matcher(path).matches()) { throw new IllegalStateException(RESOURCE_NAME + " reads " + operation + " at " + path + ", which is no member"); } + if (path.endsWith("{}")) { + return new Member(path.substring(0, path.length() - 2), false, null, true); + } return path.endsWith("[]") ? new Member(path.substring(0, path.length() - 2), true) : new Member(path, false); } @@ -445,7 +454,7 @@ final class RequestResourceMembers { return !member.list() && (member.field() == null || !member.field().list()); } - /** A member holding an ARN: {@code Name}, {@code Name[]}, or a field of it, {@code Name.Field} or {@code Name[].Field}. */ + /** A possibly nested ARN selector; {@code []} reads array elements and {@code {}} reads map values. */ private static Member arnMember(String operation, String path) { if (!ARN_MEMBER.matcher(path).matches()) { throw new IllegalStateException(RESOURCE_NAME + " reads " + operation + " at " + path + ", which is no member"); @@ -455,7 +464,7 @@ final class RequestResourceMembers { return member(operation, path); } Member outer = member(operation, path.substring(0, dot)); - return new Member(outer.name(), outer.list(), member(operation, path.substring(dot + 1))); + return new Member(outer.name(), outer.list(), arnMember(operation, path.substring(dot + 1)), outer.map()); } /** diff --git a/src/main/java/io/github/hectorvent/floci/core/common/RequestResources.java b/src/main/java/io/github/hectorvent/floci/core/common/RequestResources.java index aa5246d087..e30d05a7ce 100644 --- a/src/main/java/io/github/hectorvent/floci/core/common/RequestResources.java +++ b/src/main/java/io/github/hectorvent/floci/core/common/RequestResources.java @@ -614,6 +614,9 @@ public final class RequestResources { */ private static void addFormValues(List values, Map form, String prefix, RequestResourceMembers.Member member) { + if (member.map()) { + return; + } String key = prefix + member.name(); if (!member.list()) { if (member.field() == null) { @@ -640,13 +643,19 @@ public final class RequestResources { return form.containsKey(element + "." + field.name() + (field.list() ? ".member.1" : "")); } - /** A body's values of a member, and of its field in its structure or in each of its list's structures. */ + /** A body's selector values, traversing structures, array elements and map values. */ private static void addBodyValues(List values, JsonNode node, RequestResourceMembers.Member member) { JsonNode value = node.get(member.name()); if (value == null) { return; } - if (!member.list()) { + if (member.map()) { + if (value.isObject()) { + for (JsonNode element : value) { + addElement(values, element, member.field()); + } + } + } else if (!member.list()) { addElement(values, value, member.field()); } else if (value.isArray()) { for (JsonNode element : value) { diff --git a/src/main/java/io/github/hectorvent/floci/core/common/ResolvedServiceCatalog.java b/src/main/java/io/github/hectorvent/floci/core/common/ResolvedServiceCatalog.java index 20d5bf884d..3970305e9e 100644 --- a/src/main/java/io/github/hectorvent/floci/core/common/ResolvedServiceCatalog.java +++ b/src/main/java/io/github/hectorvent/floci/core/common/ResolvedServiceCatalog.java @@ -68,6 +68,8 @@ import io.github.hectorvent.floci.services.oam.OamController; import io.github.hectorvent.floci.services.opensearch.ElasticsearchController; import io.github.hectorvent.floci.services.opensearch.OpenSearchController; import io.github.hectorvent.floci.services.pipes.PipesController; +import io.github.hectorvent.floci.services.quicksight.QuickSightController; +import io.github.hectorvent.floci.services.quicksight.QuickSightEmbedController; import io.github.hectorvent.floci.services.ram.RamController; import io.github.hectorvent.floci.services.rdsdata.RdsDataController; import io.github.hectorvent.floci.services.resourceexplorer2.ResourceExplorer2Controller; @@ -816,6 +818,10 @@ public class ResolvedServiceCatalog { "verifiedpermissions", config.storage().mode(), 5000L, null, ServiceProtocol.JSON, protocols(ServiceProtocol.JSON), Set.of("VerifiedPermissions."), Set.of("verifiedpermissions"), Set.of(), Set.of()), + descriptor("quicksight", "quicksight", config.services().quicksight().enabled(), true, + "quicksight", config.storage().mode(), 5000L, null, ServiceProtocol.REST_JSON, + protocols(ServiceProtocol.REST_JSON), Set.of(), Set.of("quicksight"), Set.of(), + Set.of(QuickSightController.class, QuickSightEmbedController.class)), descriptor("marketplace", "marketplace", config.services().marketplace().enabled(), true, "marketplace", config.storage().mode(), 5000L, null, ServiceProtocol.REST_JSON, protocols(ServiceProtocol.REST_JSON, ServiceProtocol.JSON, ServiceProtocol.CBOR), diff --git a/src/main/java/io/github/hectorvent/floci/services/iam/IamActionRegistry.java b/src/main/java/io/github/hectorvent/floci/services/iam/IamActionRegistry.java index 9b98c066ed..d5091189f2 100644 --- a/src/main/java/io/github/hectorvent/floci/services/iam/IamActionRegistry.java +++ b/src/main/java/io/github/hectorvent/floci/services/iam/IamActionRegistry.java @@ -743,6 +743,11 @@ public class IamActionRegistry { return null; } + /** A REST model's explicit denial status, retaining the protocol default when none is modelled. */ + public static int accessDeniedStatus(String credentialScope, int fallback) { + return IamRestRoutes.vendored().accessDeniedStatus(credentialScope, fallback); + } + /** * The value a REST request's path gives each label of the vendored route it matches, decoded, by the label's * name; empty when it matches none. {@link RequestResources} reads a member the table of request resources diff --git a/src/main/java/io/github/hectorvent/floci/services/iam/IamRestRoutes.java b/src/main/java/io/github/hectorvent/floci/services/iam/IamRestRoutes.java index ed751e1860..5c3ff1c297 100644 --- a/src/main/java/io/github/hectorvent/floci/services/iam/IamRestRoutes.java +++ b/src/main/java/io/github/hectorvent/floci/services/iam/IamRestRoutes.java @@ -105,9 +105,11 @@ final class IamRestRoutes { /** Each credential scope's routes, by method. */ private final Map>> routes; + private final Map accessDeniedStatuses; - private IamRestRoutes(Map>> routes) { + private IamRestRoutes(Map>> routes, Map accessDeniedStatuses) { this.routes = routes; + this.accessDeniedStatuses = accessDeniedStatuses; } /** The vendored routes. */ @@ -135,6 +137,11 @@ final class IamRestRoutes { return best == null ? Optional.empty() : Optional.of(new Match(best.operation(), best.labelValues(requestPath))); } + /** The modelled denial status, or the existing protocol default when the model declares none. */ + int accessDeniedStatus(String scope, int fallback) { + return scope == null ? fallback : accessDeniedStatuses.getOrDefault(scope, fallback); + } + /** Whether the file routes any request of the credential scope. */ boolean routes(String scope) { return routes.containsKey(scope); @@ -149,6 +156,7 @@ final class IamRestRoutes { } Set skipped = Set.copyOf(handRouted.propertyStream().map(Map.Entry::getKey).toList()); Map>> routes = new HashMap<>(); + Map denialStatuses = new HashMap<>(); models.properties().forEach(model -> { String scope = model.getValue().path("credentialScope").asText(""); JsonNode operations = model.getValue().path("operations"); @@ -156,6 +164,18 @@ final class IamRestRoutes { throw new IllegalStateException(RESOURCE_NAME + " gives model " + model.getKey() + " no credential scope or no operations"); } + if (model.getValue().has("accessDeniedStatus")) { + JsonNode status = model.getValue().get("accessDeniedStatus"); + if (!status.isIntegralNumber() || !status.canConvertToInt() || status.asInt() < 400 || status.asInt() > 599) { + throw new IllegalStateException(RESOURCE_NAME + " gives model " + model.getKey() + + " an invalid access-denied HTTP status"); + } + Integer previous = denialStatuses.putIfAbsent(scope, status.asInt()); + if (previous != null && previous.intValue() != status.asInt()) { + throw new IllegalStateException(RESOURCE_NAME + " gives scope " + scope + + " conflicting access-denied HTTP statuses"); + } + } if (skipped.contains(scope)) { return; } @@ -177,7 +197,7 @@ final class IamRestRoutes { byMethod.forEach((method, list) -> methods.put(method, List.copyOf(list))); copied.put(scope, Map.copyOf(methods)); }); - return new IamRestRoutes(Map.copyOf(copied)); + return new IamRestRoutes(Map.copyOf(copied), Map.copyOf(denialStatuses)); } /** A route of the operation from its request URI, its path's segments and the query after its {@code ?}. */ diff --git a/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightController.java b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightController.java new file mode 100644 index 0000000000..b6bfe25c38 --- /dev/null +++ b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightController.java @@ -0,0 +1,182 @@ +package io.github.hectorvent.floci.services.quicksight; + +import com.fasterxml.jackson.databind.DeserializationFeature; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.ObjectReader; +import com.fasterxml.jackson.databind.node.ObjectNode; +import io.github.hectorvent.floci.core.common.AwsException; +import io.github.hectorvent.floci.core.common.Pagination; +import io.github.hectorvent.floci.core.common.RegionResolver; +import jakarta.inject.Inject; +import jakarta.ws.rs.Consumes; +import jakarta.ws.rs.DELETE; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.POST; +import jakarta.ws.rs.PUT; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; + +@Path("/accounts/{account}") +@Consumes(MediaType.APPLICATION_JSON) +@Produces(MediaType.APPLICATION_JSON) +public class QuickSightController { + private final QuickSightService service; + private final ObjectReader reader; + private final RegionResolver regions; + + @Inject + public QuickSightController(QuickSightService service, ObjectMapper mapper, RegionResolver regions) { + this.service = service; + this.regions = regions; + this.reader = mapper.reader().with(DeserializationFeature.FAIL_ON_TRAILING_TOKENS); + } + + @POST + @Path("/search/dashboards") + public Response searchDashboards(@PathParam("account") String account, String body) { + requireCallerMayActOnAccount(account); + return response(service.searchDashboards(account, parse(body))); + } + + @POST + @Path("/dashboards/{id}") + public Response createDashboard(@PathParam("account") String account, @PathParam("id") String id, String body) { + requireCallerMayActOnAccount(account); + return response(service.create(account, "dashboard", id, parse(body))); + } + + @GET + @Path("/dashboards/{id}") + public Response describeDashboard(@PathParam("account") String account, @PathParam("id") String id) { + requireCallerMayActOnAccount(account); + return response(service.describe(account, "dashboard", id)); + } + + @DELETE + @Path("/dashboards/{id}") + public Response deleteDashboard(@PathParam("account") String account, @PathParam("id") String id) { + requireCallerMayActOnAccount(account); + return response(service.delete(account, "dashboard", id)); + } + + @POST + @Path("/data-sets") + public Response createDataSet(@PathParam("account") String account, String body) { + requireCallerMayActOnAccount(account); + JsonNode request = parse(body); + return response(service.create(account, "dataset", request.path("DataSetId").asText(), request)); + } + + @GET + @Path("/data-sets/{id}") + public Response describeDataSet(@PathParam("account") String account, @PathParam("id") String id) { + requireCallerMayActOnAccount(account); + return response(service.describe(account, "dataset", id)); + } + + @DELETE + @Path("/data-sets/{id}") + public Response deleteDataSet(@PathParam("account") String account, @PathParam("id") String id) { + requireCallerMayActOnAccount(account); + return response(service.delete(account, "dataset", id)); + } + + @POST + @Path("/data-sources") + public Response createDataSource(@PathParam("account") String account, String body) { + requireCallerMayActOnAccount(account); + JsonNode request = parse(body); + return response(service.create(account, "datasource", request.path("DataSourceId").asText(), request)); + } + + @GET + @Path("/data-sources/{id}") + public Response describeDataSource(@PathParam("account") String account, @PathParam("id") String id) { + requireCallerMayActOnAccount(account); + return response(service.describe(account, "datasource", id)); + } + + @DELETE + @Path("/data-sources/{id}") + public Response deleteDataSource(@PathParam("account") String account, @PathParam("id") String id) { + requireCallerMayActOnAccount(account); + return response(service.delete(account, "datasource", id)); + } + + @POST + @Path("/namespaces/{namespace}/users") + public Response registerUser(@PathParam("account") String account, @PathParam("namespace") String namespace, String body) { + requireCallerMayActOnAccount(account); + return response(service.registerUser(account, namespace, parse(body))); + } + + @GET + @Path("/namespaces/{namespace}/users/{name}") + public Response describeUser(@PathParam("account") String account, @PathParam("namespace") String namespace, + @PathParam("name") String name) { + requireCallerMayActOnAccount(account); + return response(service.describeUser(account, namespace, name)); + } + + @PUT + @Path("/data-sets/{id}/ingestions/{ingestion}") + public Response createIngestion(@PathParam("account") String account, @PathParam("id") String id, + @PathParam("ingestion") String ingestion, String body) { + requireCallerMayActOnAccount(account); + return response(service.createIngestion(account, id, ingestion, parse(body))); + } + + @GET + @Path("/data-sets/{id}/ingestions") + public Response listIngestions(@PathParam("account") String account, @PathParam("id") String id, + @QueryParam("max-results") String maximum, + @QueryParam("next-token") String token) { + requireCallerMayActOnAccount(account); + Integer limit = Pagination.parseMaxResults(maximum, "InvalidParameterValueException"); + return response(service.listIngestions(account, id, limit == null ? 100 : limit, token)); + } + + @GET + @Path("/data-sets/{id}/ingestions/{ingestion}") + public Response describeIngestion(@PathParam("account") String account, @PathParam("id") String id, + @PathParam("ingestion") String ingestion) { + requireCallerMayActOnAccount(account); + return response(service.describeIngestion(account, id, ingestion)); + } + + @POST + @Path("/embed-url/registered-user") + public Response generateEmbedUrlForRegisteredUser(@PathParam("account") String account, String body) { + requireCallerMayActOnAccount(account); + return response(service.generateEmbedUrl(account, parse(body))); + } + + private void requireCallerMayActOnAccount(String account) { + if (!account.equals(regions.getAccountId())) { + throw new AwsException("AccessDeniedException", "AwsAccountId must match the caller's account.", 401); + } + } + + private JsonNode parse(String body) { + try { + JsonNode node = reader.readTree(body == null || body.isBlank() ? "{}" : body); + if (node == null || !node.isObject()) { + throw new AwsException("InvalidParameterValueException", "Request must be a JSON object.", 400); + } + return node; + } catch (AwsException exception) { + throw exception; + } catch (Exception exception) { + throw new AwsException("InvalidParameterValueException", "Request body is not valid JSON.", 400); + } + } + + private Response response(ObjectNode body) { + return Response.status(body.path("Status").asInt(200)).header("x-amzn-RequestId", body.path("RequestId").asText()).entity(body).build(); + } +} diff --git a/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightEmbedController.java b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightEmbedController.java new file mode 100644 index 0000000000..52add9af55 --- /dev/null +++ b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightEmbedController.java @@ -0,0 +1,57 @@ +package io.github.hectorvent.floci.services.quicksight; + +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.node.ObjectNode; +import jakarta.inject.Inject; +import jakarta.ws.rs.CookieParam; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.HeaderParam; +import jakarta.ws.rs.Path; +import jakarta.ws.rs.PathParam; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.QueryParam; +import jakarta.ws.rs.core.MediaType; +import jakarta.ws.rs.core.Response; + +import java.util.ArrayList; +import java.util.List; + +@Path("/embed/{session}") +public class QuickSightEmbedController { + private final QuickSightService service; + + @Inject + public QuickSightEmbedController(QuickSightService service) { + this.service = service; + } + + @GET + @Path("/dashboards/{id}") + @Produces(MediaType.TEXT_HTML) + public Response dashboard(@PathParam("session") String session, @PathParam("id") String id, + @QueryParam("code") String code, @HeaderParam("Referer") String referer, + @CookieParam("floci-quicksight") String cookie) { + String origin = QuickSightOrigins.fromUrl(referer); + ObjectNode dashboard = service.redeem(session, code, id, origin, cookie); + String name = escape(dashboard.path("Name").asText()); + String html = "" + name + + "

    " + name + "

    Local QuickSight metadata preview. BI visualizations are not rendered.

    "; + Response.ResponseBuilder response = Response.ok(html).header("Cache-Control", "no-store") + .header("Set-Cookie", "floci-quicksight=" + dashboard.path("_SessionCookie").asText() + "; Path=/embed/" + session + "; HttpOnly; Secure; SameSite=None"); + List ancestors = new ArrayList<>(); + for (JsonNode allowedOrigin : dashboard.path("_AllowedOrigins")) { + ancestors.add(allowedOrigin.asText()); + } + if (ancestors.isEmpty() && !origin.isEmpty()) { + ancestors.add(origin); + } + if (!ancestors.isEmpty()) { + response.header("Content-Security-Policy", "frame-ancestors " + String.join(" ", ancestors)); + } + return response.build(); + } + + private String escape(String value) { + return value.replace("&", "&").replace("<", "<").replace(">", ">").replace("\"", """).replace("'", "'"); + } +} diff --git a/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightOrigins.java b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightOrigins.java new file mode 100644 index 0000000000..ed2e7cf9a4 --- /dev/null +++ b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightOrigins.java @@ -0,0 +1,35 @@ +package io.github.hectorvent.floci.services.quicksight; + +import java.net.URI; +import java.util.Locale; + +final class QuickSightOrigins { + private QuickSightOrigins() {} + + static String fromUrl(String value) { + if (value == null) { + return ""; + } + try { + return normalize(URI.create(value)); + } catch (IllegalArgumentException exception) { + return ""; + } + } + + static String normalize(URI uri) { + if (uri.getScheme() == null || uri.getHost() == null || uri.getRawUserInfo() != null + || uri.getPort() > 65535) { + return ""; + } + String scheme = uri.getScheme().toLowerCase(Locale.ROOT); + String host = uri.getHost().toLowerCase(Locale.ROOT); + if (!"https".equals(scheme) && !"http".equals(scheme)) { + return ""; + } + int port = uri.getPort(); + boolean defaultPort = port == -1 || "https".equals(scheme) && port == 443 + || "http".equals(scheme) && port == 80; + return scheme + "://" + host + (defaultPort ? "" : ":" + port); + } +} diff --git a/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightService.java b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightService.java new file mode 100644 index 0000000000..b67ab63925 --- /dev/null +++ b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightService.java @@ -0,0 +1,461 @@ +package io.github.hectorvent.floci.services.quicksight; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.JsonNode; +import com.fasterxml.jackson.databind.ObjectMapper; +import com.fasterxml.jackson.databind.node.ArrayNode; +import com.fasterxml.jackson.databind.node.ObjectNode; +import io.github.hectorvent.floci.config.EmulatorConfig; +import io.github.hectorvent.floci.core.common.AwsException; +import io.github.hectorvent.floci.core.common.Base64Url; +import io.github.hectorvent.floci.core.common.PaginatedResult; +import io.github.hectorvent.floci.core.common.Pagination; +import io.github.hectorvent.floci.core.common.RegionResolver; +import io.github.hectorvent.floci.core.common.Resettable; +import io.github.hectorvent.floci.core.common.StoredResourceArns; +import io.github.hectorvent.floci.core.storage.AccountAwareStorageBackend; +import io.github.hectorvent.floci.core.storage.StorageFactory; +import io.github.hectorvent.floci.services.quicksight.model.QuickSightResource; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; + +import java.net.URI; +import java.time.Clock; +import java.time.Instant; +import java.util.List; +import java.util.Optional; +import java.util.UUID; +import java.util.function.Function; + +@ApplicationScoped +public class QuickSightService implements Resettable, StoredResourceArns { + private final ObjectMapper mapper; + private final RegionResolver regions; + private final AccountAwareStorageBackend resources; + private final AccountAwareStorageBackend sessions; + private final String embedBaseUrl; + private final Clock clock; + + @Inject + public QuickSightService(StorageFactory factory, ObjectMapper mapper, RegionResolver regions, EmulatorConfig config) { + this(mapper, regions, + factory.create("quicksight", "quicksight-resources.json", new TypeReference<>() {}), + factory.create("quicksight", "quicksight-sessions.json", new TypeReference<>() {}), + config.services().quicksight().embedBaseUrl().orElse(config.baseUrl()), Clock.systemUTC()); + } + + QuickSightService(ObjectMapper mapper, RegionResolver regions, + AccountAwareStorageBackend resources, + AccountAwareStorageBackend sessions, String embedBaseUrl, Clock clock) { + this.clock = clock; + this.mapper = mapper; + this.regions = regions; + this.resources = resources; + this.sessions = sessions; + this.embedBaseUrl = embedBaseUrl.replaceAll("/$", ""); + } + + public synchronized ObjectNode create(String account, String kind, String id, JsonNode request) { + ResourceKind resourceKind = ResourceKind.fromPath(kind); + if (id == null || !id.matches("[A-Za-z0-9_-]{1,2048}")) { + throw invalid("Resource identifier is required and must contain letters, numbers, underscores or hyphens."); + } + String key = key(account, kind, id); + if (resources.getForAccount(account, key).isPresent()) { + throw new AwsException("ResourceExistsException", "Resource already exists: " + id, 409); + } + String idField = resourceKind.idField; + String name = required(request, "Name"); + ObjectNode resource = mapper.createObjectNode(); + resource.put(idField, id).put("Name", name).put("Arn", arn(account, kind, id)); + double now = clock.instant().toEpochMilli() / 1000.0; + resource.put("CreatedTime", now).put("LastUpdatedTime", now); + resource.set("Permissions", request.path("Permissions").isArray() ? request.path("Permissions").deepCopy() : mapper.createArrayNode()); + switch (resourceKind) { + case DASHBOARD -> { + JsonNode definition = request.path("Definition"); + if (!definition.isObject()) { + throw invalid("Definition is required; template-based creation is not supported."); + } + ArrayNode dataSets = mapper.createArrayNode(); + for (JsonNode declaration : definition.path("DataSetIdentifierDeclarations")) { + String dataSetArn = required(declaration, "DataSetArn"); + String dataSetId = dataSetArn.substring(dataSetArn.lastIndexOf('/') + 1); + if (!arn(account, "dataset", dataSetId).equals(dataSetArn)) { + throw invalid("DataSetArn must reference a data set in this account and region."); + } + get(account, "dataset", dataSetId); + dataSets.add(dataSetArn); + } + ObjectNode version = mapper.createObjectNode().put("VersionNumber", 1).put("Status", "CREATION_SUCCESSFUL").put("CreatedTime", now); + version.set("DataSetArns", dataSets); + resource.set("Version", version); + resource.set("Definition", definition.deepCopy()); + resource.put("LastPublishedTime", now).put("PublishedVersionNumber", 1); + } + case DATA_SET -> { + String mode = required(request, "ImportMode"); + if (!List.of("SPICE", "DIRECT_QUERY").contains(mode)) { + throw invalid("ImportMode must be SPICE or DIRECT_QUERY."); + } + if (!request.path("PhysicalTableMap").isObject() || request.path("PhysicalTableMap").isEmpty()) { + throw invalid("PhysicalTableMap is required."); + } + resource.put("ImportMode", mode); + resource.set("PhysicalTableMap", request.path("PhysicalTableMap").deepCopy()); + resource.set("LogicalTableMap", request.path("LogicalTableMap").deepCopy()); + } + case DATA_SOURCE -> { + resource.put("Type", required(request, "Type")).put("Status", "CREATION_SUCCESSFUL"); + resource.set("DataSourceParameters", request.path("DataSourceParameters").deepCopy()); + } + } + resources.putForAccount(account, key, new QuickSightResource(resource)); + ObjectNode response = response(resourceKind.createStatus).put("Arn", resource.path("Arn").asText()).put(idField, id); + if (resourceKind == ResourceKind.DASHBOARD) { + response.put("CreationStatus", "CREATION_SUCCESSFUL").put("VersionArn", resource.path("Arn").asText() + "/version/1"); + } else if (resourceKind == ResourceKind.DATA_SOURCE) { + response.put("CreationStatus", "CREATION_SUCCESSFUL"); + } + return response; + } + + public ObjectNode describe(String account, String kind, String id) { + ResourceKind resourceKind = ResourceKind.fromPath(kind); + ObjectNode resource = get(account, kind, id); + resource.remove("Permissions"); + resource.remove("Definition"); + return response(200).set(resourceKind.responseField, resource); + } + + public synchronized ObjectNode delete(String account, String kind, String id) { + ResourceKind resourceKind = ResourceKind.fromPath(kind); + ObjectNode resource = get(account, kind, id); + resources.deleteForAccount(account, key(account, kind, id)); + if (resourceKind == ResourceKind.DATA_SET) { + String prefix = key(account, "ingestion", id + "/"); + resources.keysForAccount(account).stream().filter(value -> value.startsWith(prefix)) + .forEach(value -> resources.deleteForAccount(account, value)); + } + return response(200).put("Arn", resource.path("Arn").asText()).put(resourceKind.idField, id); + } + + public synchronized ObjectNode registerUser(String account, String namespace, JsonNode request) { + String name = required(request, "UserName"); + if (!List.of("READER", "AUTHOR", "ADMIN").contains(required(request, "UserRole"))) { + throw invalid("Unsupported UserRole."); + } + if (!"QUICKSIGHT".equals(required(request, "IdentityType"))) { + throw invalid("Only QUICKSIGHT identity registration is supported."); + } + String id = namespace + "/" + name; + if (resources.getForAccount(account, key(account, "user", id)).isPresent()) { + throw new AwsException("ResourceExistsException", "User already registered.", 409); + } + ObjectNode user = mapper.createObjectNode().put("Arn", arn(account, "user", id)) + .put("UserName", name).put("Email", required(request, "Email")) + .put("Role", request.path("UserRole").asText()).put("IdentityType", "QUICKSIGHT") + .put("Active", true).put("PrincipalId", UUID.randomUUID().toString()); + resources.putForAccount(account, key(account, "user", id), new QuickSightResource(user)); + return response(201).set("User", user.deepCopy()); + } + + public ObjectNode describeUser(String account, String namespace, String name) { + return response(200).set("User", get(account, "user", namespace + "/" + name)); + } + + public ObjectNode searchDashboards(String account, JsonNode request) { + JsonNode filters = request.path("Filters"); + if (!filters.isArray() || filters.size() != 1 + || !"QUICKSIGHT_USER".equals(filters.path(0).path("Name").asText()) + || !"StringEquals".equals(filters.path(0).path("Operator").asText())) { + throw invalid("Search requires one QUICKSIGHT_USER StringEquals filter."); + } + String principal = required(filters.path(0), "Value"); + requireRegisteredUser(account, principal); + String prefix = key(account, "dashboard", ""); + List found = resources.scanForAccount(account, value -> value.startsWith(prefix)).stream() + .map(QuickSightResource::document).filter(value -> canRead(value, principal)) + .map(value -> { + ObjectNode summary = value.deepCopy(); + summary.remove(List.of("Version", "Definition", "Permissions")); + return summary; + }).toList(); + Integer maximum = Pagination.parseMaxResults(request, "MaxResults", "InvalidParameterValueException"); + return page(found, maximum == null ? 100 : maximum, + Pagination.parseNextToken(request, "NextToken", "InvalidNextTokenException"), + account + ":" + regions.getRegion() + ":dashboards:" + Base64Url.encode(principal), + "DashboardSummaryList", value -> value.path("DashboardId").asText()); + } + + public synchronized ObjectNode createIngestion(String account, String dataSetId, String id, JsonNode request) { + ObjectNode dataSet = get(account, "dataset", dataSetId); + if (!"SPICE".equals(dataSet.path("ImportMode").asText())) { + throw invalid("Ingestions require a SPICE data set."); + } + String ingestionKey = key(account, "ingestion", dataSetId + "/" + id); + if (resources.getForAccount(account, ingestionKey).isPresent()) { + throw new AwsException("ResourceExistsException", "Ingestion already exists.", 409); + } + String type = request.path("IngestionType").asText("FULL_REFRESH"); + if (!List.of("FULL_REFRESH", "INCREMENTAL_REFRESH").contains(type)) { + throw invalid("Unsupported IngestionType."); + } + ObjectNode ingestion = mapper.createObjectNode().put("IngestionId", id) + .put("Arn", arn(account, "dataset", dataSetId) + "/ingestion/" + id) + .put("CreatedTime", clock.instant().toEpochMilli() / 1000.0).put("IngestionStatus", "COMPLETED") + .put("IngestionTimeInSeconds", 0).put("IngestionSizeInBytes", 0) + .put("RequestType", type) + .put("RequestSource", "MANUAL"); + ingestion.set("RowInfo", mapper.createObjectNode().put("RowsIngested", 0).put("RowsDropped", 0).put("TotalRowsInDataset", 0)); + resources.putForAccount(account, ingestionKey, new QuickSightResource(ingestion)); + return response(201).put("Arn", ingestion.path("Arn").asText()).put("IngestionId", id).put("IngestionStatus", "COMPLETED"); + } + + public ObjectNode listIngestions(String account, String id, int maximum, String token) { + get(account, "dataset", id); + String prefix = key(account, "ingestion", id + "/"); + List found = resources.scanForAccount(account, value -> value.startsWith(prefix)).stream() + .map(QuickSightResource::document) + .map(ObjectNode::deepCopy).toList(); + return page(found, maximum, token, account + ":" + regions.getRegion() + ":ingestions:" + id, + "Ingestions", QuickSightService::ingestionCursor); + } + + public ObjectNode describeIngestion(String account, String dataSetId, String id) { + get(account, "dataset", dataSetId); + return response(200).set("Ingestion", get(account, "ingestion", dataSetId + "/" + id)); + } + + @Override + public String namespace() { + return "quicksight"; + } + + @Override + public Optional find(String type, List names, String region) { + if ("user".equals(type) && names.size() == 3) { + return Optional.of(regions.buildArn("quicksight", region, names.getFirst(), + "user/" + names.get(1) + "/" + names.get(2))); + } + return Optional.empty(); + } + + public synchronized ObjectNode generateEmbedUrl(String account, JsonNode request) { + String principal = required(request, "UserArn"); + requireRegisteredUser(account, principal); + String id = required(request.path("ExperienceConfiguration").path("Dashboard"), "InitialDashboardId"); + ObjectNode dashboard = get(account, "dashboard", id); + if (!canRead(dashboard, principal)) { + throw new AwsException("AccessDeniedException", "User does not have permission to view this dashboard.", 401); + } + long lifetime = request.path("SessionLifetimeInMinutes").asLong(600); + if (lifetime < 15 || lifetime > 600) { + throw new AwsException("SessionLifetimeInMinutesInvalidException", "SessionLifetimeInMinutes must be between 15 and 600.", 400); + } + ArrayNode domains = mapper.createArrayNode(); + JsonNode requested = request.path("AllowedDomains"); + if (!requested.isMissingNode() && (!requested.isArray() || requested.isEmpty() || requested.size() > 3)) { + throw invalid("AllowedDomains must contain between one and three origins."); + } + for (JsonNode domain : requested) { + URI origin; + try { + origin = URI.create(domain.asText()); + } catch (IllegalArgumentException exception) { + throw invalid("Invalid allowed domain."); + } + String normalized = QuickSightOrigins.normalize(origin); + if (normalized.isEmpty() || !("https".equalsIgnoreCase(origin.getScheme()) + || "http".equalsIgnoreCase(origin.getScheme()) && "localhost".equalsIgnoreCase(origin.getHost())) + || origin.getRawQuery() != null || origin.getRawFragment() != null + || origin.getPath() != null && !origin.getPath().isEmpty() && !origin.getPath().equals("/")) { + throw invalid("AllowedDomains must contain HTTPS origins or HTTP localhost."); + } + domains.add(normalized); + } + String token = account + "-" + UUID.randomUUID(); + ObjectNode session = mapper.createObjectNode().put("account", account).put("region", regions.getRegion()) + .put("dashboard", id).put("user", principal).put("redeemUntil", clock.instant().getEpochSecond() + 300) + .put("lifetime", lifetime).put("redeemed", false); + session.set("domains", domains); + sessions.putForAccount(account, token, new QuickSightResource(session)); + return response(200).put("EmbedUrl", embedBaseUrl + "/embed/" + token + "/dashboards/" + id + "?code=" + token); + } + + public synchronized ObjectNode redeem(String token, String code, String id, String origin, String sessionCookie) { + String account = token.length() > 12 ? token.substring(0, 12) : ""; + ObjectNode session = sessions.getForAccount(account, token).map(QuickSightResource::document).map(ObjectNode::deepCopy) + .orElseThrow(() -> denied("Invalid embedding session.")); + long now = clock.instant().getEpochSecond(); + if (!id.equals(session.path("dashboard").asText())) { + throw denied("Dashboard does not match embedding session."); + } + if (!session.path("domains").isEmpty() && !originAllowed(session.path("domains"), origin)) { + throw denied("Embedding origin is not allowed."); + } + ObjectNode dashboard = resources.getForAccount(account, session.path("region").asText() + "/" + account + + "/dashboard/" + id).map(QuickSightResource::document).map(ObjectNode::deepCopy) + .orElseThrow(() -> missing(id)); + if (!canRead(dashboard, session.path("user").asText())) { + throw denied("User does not have permission to view this dashboard."); + } + if (session.path("redeemed").asBoolean()) { + if (!session.path("cookie").asText().equals(sessionCookie) || now >= session.path("expires").asLong()) { + throw denied("Embedding URL has already been redeemed or session expired."); + } + } else { + if (!token.equals(code) || now >= session.path("redeemUntil").asLong()) { + throw denied("Embedding URL has expired."); + } + session.put("redeemed", true).put("cookie", UUID.randomUUID().toString()) + .put("expires", now + session.path("lifetime").asInt() * 60L); + sessions.putForAccount(account, token, new QuickSightResource(session)); + } + ArrayNode allowedOrigins = mapper.createArrayNode(); + for (JsonNode domain : session.path("domains")) { + String normalized = QuickSightOrigins.fromUrl(domain.asText()); + if (!normalized.isEmpty()) { + allowedOrigins.add(normalized); + } + } + return dashboard.put("_SessionCookie", session.path("cookie").asText()).set("_AllowedOrigins", allowedOrigins); + } + + public synchronized int cleanupExpiredSessions(Instant now) { + long deadline = now.getEpochSecond(); + return sessions.deleteAllAccountsMatching(resource -> { + ObjectNode session = resource.document(); + String expiryField = session.path("redeemed").asBoolean() ? "expires" : "redeemUntil"; + return session.path(expiryField).asLong() <= deadline; + }); + } + + private void requireRegisteredUser(String account, String principal) { + String userPrefix = arn(account, "user", ""); + if (!principal.startsWith(userPrefix)) { + throw new AwsException("AccessDeniedException", "UserArn must belong to this account and region.", 401); + } + get(account, "user", principal.substring(userPrefix.length())); + } + + private boolean originAllowed(JsonNode domains, String origin) { + String normalized = QuickSightOrigins.fromUrl(origin); + for (JsonNode domain : domains) { + if (!normalized.isEmpty() && QuickSightOrigins.fromUrl(domain.asText()).equals(normalized)) { + return true; + } + } + return false; + } + + private boolean canRead(ObjectNode resource, String principal) { + for (JsonNode permission : resource.path("Permissions")) { + if (principal.equals(permission.path("Principal").asText())) { + for (JsonNode action : permission.path("Actions")) { + if ("quicksight:DescribeDashboard".equals(action.asText())) { + return true; + } + } + } + } + return false; + } + + private ObjectNode page(List found, int maximum, String token, String scope, String field, + Function cursorOf) { + if (maximum < 1 || maximum > 100) { + throw invalid("MaxResults must be between 1 and 100."); + } + PaginatedResult page = Pagination.paginate(found, cursorOf, maximum, token, scope, + value -> new AwsException("InvalidNextTokenException", "NextToken is invalid for this request.", 400)); + ObjectNode result = response(200); + result.set(field, mapper.valueToTree(page.items())); + if (page.nextToken() != null) { + result.put("NextToken", page.nextToken()); + } + return result; + } + + private static String ingestionCursor(ObjectNode ingestion) { + // Invert epoch milliseconds so the shared ascending cursor lists newest first. + long descendingTime = Long.MAX_VALUE - Math.round(ingestion.path("CreatedTime").asDouble() * 1000); + return "%019d:%s".formatted(descendingTime, ingestion.path("IngestionId").asText()); + } + + private ObjectNode get(String account, String kind, String id) { + return resources.getForAccount(account, key(account, kind, id)).map(QuickSightResource::document).map(ObjectNode::deepCopy) + .orElseThrow(() -> missing(id)); + } + + private String key(String account, String kind, String id) { + if (account == null || !account.matches("[0-9]{12}")) { + throw invalid("AwsAccountId must contain 12 digits."); + } + if (id == null || id.contains("..")) { + throw invalid("Invalid resource identifier."); + } + return regions.getRegion() + "/" + account + "/" + kind + "/" + id; + } + + private String arn(String account, String kind, String id) { + return regions.buildArn("quicksight", regions.getRegion(), account, kind + "/" + id); + } + + private enum ResourceKind { + DASHBOARD("dashboard", "DashboardId", "Dashboard", 202), + DATA_SET("dataset", "DataSetId", "DataSet", 201), + DATA_SOURCE("datasource", "DataSourceId", "DataSource", 202); + + private final String path; + private final String idField; + private final String responseField; + private final int createStatus; + + ResourceKind(String path, String idField, String responseField, int createStatus) { + this.path = path; + this.idField = idField; + this.responseField = responseField; + this.createStatus = createStatus; + } + + private static ResourceKind fromPath(String path) { + for (ResourceKind kind : values()) { + if (kind.path.equals(path)) { + return kind; + } + } + throw invalid("Unsupported resource kind."); + } + } + + private ObjectNode response(int status) { + return mapper.createObjectNode().put("Status", status).put("RequestId", UUID.randomUUID().toString()); + } + + private static String required(JsonNode input, String name) { + JsonNode value = input.path(name); + if (!value.isTextual() || value.asText().isBlank()) { + throw invalid(name + " is required."); + } + return value.asText(); + } + + private static AwsException invalid(String message) { + return new AwsException("InvalidParameterValueException", message, 400); + } + + private static AwsException denied(String message) { + return new AwsException("AccessDeniedException", message, 403); + } + + private static AwsException missing(String id) { + return new AwsException("ResourceNotFoundException", "Resource not found: " + id, 404); + } + + @Override + public synchronized void clear() { + resources.clear(); + sessions.clear(); + } +} diff --git a/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightSessionExpirationScheduler.java b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightSessionExpirationScheduler.java new file mode 100644 index 0000000000..c0fabdc563 --- /dev/null +++ b/src/main/java/io/github/hectorvent/floci/services/quicksight/QuickSightSessionExpirationScheduler.java @@ -0,0 +1,18 @@ +package io.github.hectorvent.floci.services.quicksight; + +import io.github.hectorvent.floci.config.EmulatorConfig; +import io.github.hectorvent.floci.core.common.SweepScheduler; +import io.github.hectorvent.floci.core.common.SweepWorker; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.inject.Inject; + +@ApplicationScoped +public class QuickSightSessionExpirationScheduler extends SweepScheduler { + private static final long SWEEP_INTERVAL_SECONDS = 60; + + @Inject + public QuickSightSessionExpirationScheduler(QuickSightService service, EmulatorConfig config) { + super(new SweepWorker("quicksight-session-expiration", config.services().quicksight().enabled(), + SWEEP_INTERVAL_SECONDS, true, service::cleanupExpiredSessions)); + } +} diff --git a/src/main/java/io/github/hectorvent/floci/services/quicksight/model/QuickSightResource.java b/src/main/java/io/github/hectorvent/floci/services/quicksight/model/QuickSightResource.java new file mode 100644 index 0000000000..d23f4fd137 --- /dev/null +++ b/src/main/java/io/github/hectorvent/floci/services/quicksight/model/QuickSightResource.java @@ -0,0 +1,7 @@ +package io.github.hectorvent.floci.services.quicksight.model; + +import com.fasterxml.jackson.databind.node.ObjectNode; +import io.quarkus.runtime.annotations.RegisterForReflection; + +@RegisterForReflection +public record QuickSightResource(ObjectNode document) {} diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 4e411612a5..f03656b62b 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -1122,6 +1122,9 @@ floci: npm-image: "verdaccio/verdaccio:6.10.4" pypi-image: "pypiserver/pypiserver:v2.4.2" nuget-image: "bagetter/bagetter:1.6.5" + quicksight: + enabled: true + embed-base-url: ${floci.base-url} marketplace: enabled: true dms: diff --git a/src/main/resources/aws/iam-authorized-actions.json b/src/main/resources/aws/iam-authorized-actions.json index eaaacc68fe..bf9cae1636 100644 --- a/src/main/resources/aws/iam-authorized-actions.json +++ b/src/main/resources/aws/iam-authorized-actions.json @@ -3,7 +3,7 @@ "generator": "tools/aws/regen_iam_authorized_actions.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "retrieved": "2026-11-03", - "note": "make iam-authorized-actions-verify checks every entry against AWS." + "note": "make iam-authorized-actions-verify checks every entry against AWS. QuickSight actions without resource types added from its AWS Service Reference on 2026-11-05; other entries retain their vendored snapshot." }, "authorizedActions": { "access-analyzer": { @@ -425,6 +425,97 @@ "pipes": [ "ListPipes" ], + "quicksight": [ + "AccountConfigurations", + "AllowVendedLogDeliveryForResource", + "BatchGetPreferences", + "BatchUpdatePreferences", + "CreateAccountCustomization", + "CreateAccountSubscription", + "CreateDataSource", + "CreateOAuthClientApplication", + "CreateRoleMembership", + "CreateVPCConnection", + "DeleteAccountCustomPermission", + "DeleteBrandAssignment", + "DeleteCustomPermissions", + "DeleteDefaultQBusinessApplication", + "DeleteIdentityPropagationConfig", + "DeleteRoleCustomPermission", + "DeleteRoleMembership", + "DescribeAccountCustomPermission", + "DescribeAccountSettings", + "DescribeBrandAssignment", + "DescribeChatConfiguration", + "DescribeDashboardsQAConfiguration", + "DescribeDefaultQBusinessApplication", + "DescribeIpRestriction", + "DescribeKeyRegistration", + "DescribeQPersonalizationConfiguration", + "DescribeQuickIndexCapacity", + "DescribeQuickSightQSearchConfiguration", + "DescribeRoleCustomPermission", + "DescribeSelfUpgradeConfiguration", + "GenerateEmbedUrlForRegisteredUserWithIdentity", + "GetAnonymousUserEmbedUrl", + "GetCustomPermissionsSummary", + "GetGroupMapping", + "GetSessionEmbedUrl", + "ListActionConnectors", + "ListBrands", + "ListCustomPermissionAssignments", + "ListCustomPermissions", + "ListCustomerManagedKeys", + "ListDataSets", + "ListDataSources", + "ListDlpLabels", + "ListExtensionAccesses", + "ListExtensions", + "ListFlows", + "ListIdentityPropagationConfigs", + "ListIngestions", + "ListKMSKeysForUser", + "ListKnowledgeBases", + "ListNamespaces", + "ListOAuthClientApplications", + "ListRefreshSchedules", + "ListRoleMemberships", + "ListSpaces", + "ListTopicRefreshSchedules", + "ListTopicReviewedAnswers", + "ListTopics", + "ListUsersIndexCapacity", + "ListVPCConnections", + "QuickSuiteUsageMetrics", + "RegisterCustomerManagedKey", + "RemoveCustomerManagedKey", + "ScopeDownPolicy", + "SearchDirectoryGroups", + "SearchFlows", + "SearchSpaces", + "SetGroupMapping", + "StartDashboardSnapshotJobSchedule", + "Subscribe", + "Unsubscribe", + "UpdateAccountCustomPermission", + "UpdateAccountSettings", + "UpdateApplicationWithTokenExchangeGrant", + "UpdateBrandAssignment", + "UpdateChatConfiguration", + "UpdateDashboardsQAConfiguration", + "UpdateDefaultQBusinessApplication", + "UpdateIdentityPropagationConfig", + "UpdateIpRestriction", + "UpdateKeyRegistration", + "UpdatePublicSharingSettings", + "UpdateQPersonalizationConfiguration", + "UpdateQuickIndexCapacity", + "UpdateQuickSightQSearchConfiguration", + "UpdateResourcePermissions", + "UpdateRoleCustomPermission", + "UpdateSPICECapacityConfiguration", + "UpdateSelfUpgradeConfiguration" + ], "scheduler": [ "ListScheduleGroups", "ListSchedules", diff --git a/src/main/resources/aws/iam-passed-roles.json b/src/main/resources/aws/iam-passed-roles.json index a4f36dc20c..86ec65fa1e 100644 --- a/src/main/resources/aws/iam-passed-roles.json +++ b/src/main/resources/aws/iam-passed-roles.json @@ -1,8 +1,8 @@ { "_source": {"generator": "tools/aws/regen_iam_passed_roles.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (local/aws/botocore)", "retrieved": "2026-11-02", "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"], "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"], "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"]}, - "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", "emr-serverless": "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", "rum": "REST routes no rule maps yet", "s3tables": "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", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "elemental-inference", "emr-containers", "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", "quicksight", "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"], + "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", "emr-serverless": "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", "s3tables": "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", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "elemental-inference", "emr-containers", "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"}, "athena:CreateWorkGroup": {"passedTo": ["athena"], "roles": [ diff --git a/src/main/resources/aws/iam-request-resources.json b/src/main/resources/aws/iam-request-resources.json index 915275acfb..c22ba876de 100644 --- a/src/main/resources/aws/iam-request-resources.json +++ b/src/main/resources/aws/iam-request-resources.json @@ -1,11 +1,11 @@ { - "_source": {"generator": "tools/aws/regen_iam_request_resources.py", "reference": "https://servicereference.us-east-1.amazonaws.com/", "botocore": "botocore 1.43.118 (installed package)", "retrieved": "2026-11-05", "note": "make iam-request-resources-check re-derives every operation's resources from botocore; make iam-request-resources-verify checks every action, type and format against AWS."}, - "namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "kinesisanalytics": ["kinesisanalyticsv2"], "logs": ["logs"], "payment-cryptography": ["payment-cryptography"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "rekognition": ["rekognition"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"]}, + "_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-05", "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. QuickSight added from its AWS Service Reference on 2026-11-05; other namespaces retain their vendored snapshot. QuickSight resource types refreshed from the AWS Service Reference on 2026-11-06."}, + "namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudtrail": ["cloudtrail"], "codebuild": ["codebuild"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "cur": ["cur"], "datasync": ["datasync"], "dynamodb": ["dynamodb"], "ecr": ["ecr"], "elasticloadbalancing": ["elb", "elbv2"], "elasticmapreduce": ["emr"], "es": ["es", "opensearch"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "kinesisanalytics": ["kinesisanalyticsv2"], "logs": ["logs"], "payment-cryptography": ["payment-cryptography"], "quicksight": ["quicksight"], "redshift": ["redshift"], "redshift-data": ["redshift-data"], "rekognition": ["rekognition"], "servicediscovery": ["servicediscovery"], "servicequotas": ["service-quotas"], "sso": ["sso", "sso-admin"], "states": ["stepfunctions"], "textract": ["textract"], "timestream-influxdb": ["timestream-influxdb"], "translate": ["translate"]}, "clientsNotRead": {"kinesisanalytics": "Kinesis Data Analytics v1, SQL applications on the KinesisAnalytics_20150814 target, which Floci does not serve (it serves v2, kinesisanalyticsv2); its operations share v2's names and name their resources by other members", "payment-cryptography-data": "the Payment Cryptography data plane, REST routes such as /keys/{KeyIdentifier}/encrypt, which Floci does not serve (it serves the control plane's JSON operations); its KeyIdentifier may be an alias, read on the control plane by the handler, not by its path"}, "handBuilt": ["apigateway", "bedrock", "dsql", "dynamodb", "eks", "iam", "kinesis", "kms", "lambda", "logs", "pipes", "resource-groups", "s3", "scheduler", "secretsmanager", "sns", "sqs", "ssm", "sts"], "notCovered": {"account": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "airflow": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "app-integrations": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appconfig": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "appsync": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "aps": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "autoscaling": "not read yet: AWS's group and launch configuration ARNs carry an id the service mints, `autoScalingGroup::autoScalingGroupName/`, while Floci mints `autoScalingGroup:`, which other services (ECS capacity providers) read back; the mint is fixed first", "aws-marketplace": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "backup": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "batch": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "bedrock-agentcore": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudformation": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "cloudfront": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "cloudhsm": "not read yet: its ARN formats end in ${CloudHsmClusterInstanceName} and ${CloudHsmBackupInstanceName}, names, while its requests give ClusterId and BackupId, ids, which the rule does not fill a name from, so nearly every operation needs a correction", "cloudwatch": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "codeartifact": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "codedeploy": "not read yet: the Service Reference gives an on-premises instance's ARN as `instance:${InstanceName}`, while the CodeDeploy permissions reference gives arn:aws:codedeploy:region:account-id:instance/instance-ID and AWS's GetOnPremisesInstance example answers instance/_, an id the service mints after the name; reading it needs that format corrected", "codeguru-reviewer": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "comprehend": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "config": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "connect": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "controlcatalog": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "controltower": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "detective": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dlm": "REST: its requests name their resources in the path, which RequestResources reads from the route a request matched in the vendored REST routes (regen_rest_routes.MODELS), which do not have its model yet", "dms": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ec2": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ecs": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticache": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "elasticbeanstalk": "not read yet: an environment's ARN carries its application's name, `environment//`, 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", "emr-serverless": "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", "fis": "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", "glue": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "guardduty": "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 batch, with the tests that show its ARNs are the ones its handlers mint", "inspector2": "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", "iot": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "kafka": "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", "lightsail": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "macie2": "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", "memorydb": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "mq": "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", "network-firewall": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "oam": "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", "organizations": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "ram": "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", "rds": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "rds-data": "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", "redshift-serverless": "not read yet: its namespace, workgroup, snapshot and managed VPC endpoint ARNs end in an id the service mints, `namespace/`, while its requests name them by namespaceName, workgroupName, snapshotName and endpointName, so reading it needs the stored ARNs those find, as Redshift Data's workgroups are found", "resource-explorer-2": "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", "route53": "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", "route53resolver": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "rum": "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", "s3tables": "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", "s3vectors": "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", "sagemaker": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "securityhub": "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", "servicecatalog": "not read yet: CreatePortfolioShare, UpdatePortfolioShare and DeletePortfolioShare give in AccountId the account a portfolio is shared with, which the rule reads as the portfolio's; a portfolio or product imported from another account keeps its owner's account in its ARN while requests name it by its id alone; and AppRegistry's applications and attribute groups are named in the path", "ses": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "signin": "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", "sso-oauth": "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", "swf": "not read yet: the Service Reference gives a domain's ARN no Region, `swf:::/domain/`, while the SWF Developer Guide gives it as arn:aws:swf:Region:AccountID:/domain/DomainName, as Floci mints it; reading it needs that format corrected", "transcribe": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "transfer": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint", "verifiedpermissions": "not read yet: a policyStoreId may name its store by an alias, `policy-store-alias/`, which AWS authorizes as the action on the store the alias points to and GetPolicyStoreAlias on the alias, and an aliasName carries the `policy-store-alias/` its format already gives; reading it needs both", "wafv2": "not read yet: a later batch, with the tests that show its ARNs are the ones its handlers mint"}, - "otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "application-signals-mcp", "appmesh", "appmesh-preview", "apprunner", "appstream", "apptest", "arc-region-switch", "arc-zonal-shift", "artifact", "assurance", "auditmanager", "aws-external-anthropic", "b2bi", "backup-gateway", "backup-search", "bedrock-mantle", "bedrock-websearch", "billing", "billingconductor", "braket", "bugbust", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "clouddirectory", "cloudfront-keyvaluestore", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ec2-instance-connect", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "emr-containers", "end-user-messaging", "entityresolution", "evs", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "outposts", "panorama", "partnercentral", "payments", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "private-networks", "profile", "proton", "purchase-orders", "q", "qapps", "qbusiness", "qdeveloper", "qldb", "quicksight", "rbin", "rds-db", "refactor-spaces", "repostspace", "resiliencehub", "robomaker", "rolesanywhere", "route53-recovery-cluster", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3-object-lambda", "s3-outposts", "s3express", "s3files", "sagemaker-geospatial", "sagemaker-mlflow", "savingsplans", "schemas", "scn", "sdb", "security-ir", "securityagent", "securitylake", "serverlessrepo", "shield", "signer", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web", "xray"], - "arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudtrail": {"channel": "arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId}", "dashboard": "arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName}", "eventdatastore": "arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId}", "trail": "arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName}"}, "codebuild": {"build": "arn:${Partition}:codebuild:${Region}:${Account}:build/${BuildId}", "build-batch": "arn:${Partition}:codebuild:${Region}:${Account}:build-batch/${BuildBatchId}", "fleet": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}", "project": "arn:${Partition}:codebuild:${Region}:${Account}:project/${ProjectName}", "report": "arn:${Partition}:codebuild:${Region}:${Account}:report/${ReportGroupName}:${ReportId}", "report-group": "arn:${Partition}:codebuild:${Region}:${Account}:report-group/${ReportGroupName}", "sandbox": "arn:${Partition}:codebuild:${Region}:${Account}:sandbox/${SandboxId}"}, "codepipeline": {"action": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}/${ActionName}", "actiontype": "arn:${Partition}:codepipeline:${Region}:${Account}:actiontype:${Owner}/${Category}/${Provider}/${Version}", "pipeline": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}", "stage": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}", "webhook": "arn:${Partition}:codepipeline:${Region}:${Account}:webhook:${WebhookName}"}, "cognito-identity": {"identitypool": "arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}"}, "cognito-idp": {"userpool": "arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}", "webacl": "arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id}"}, "cur": {"cur": "arn:${Partition}:cur:${Region}:${Account}:definition/${ReportName}"}, "datasync": {"agent": "arn:${Partition}:datasync:${Region}:${Account}:agent/${AgentId}", "discoveryjob": "arn:${Partition}:datasync:${Region}:${Account}:system/${StorageSystemId}/job/${DiscoveryJobId}", "location": "arn:${Partition}:datasync:${Region}:${Account}:location/${LocationId}", "storagesystem": "arn:${Partition}:datasync:${Region}:${Account}:system/${StorageSystemId}", "task": "arn:${Partition}:datasync:${Region}:${Account}:task/${TaskId}", "taskexecution": "arn:${Partition}:datasync:${Region}:${Account}:task/${TaskId}/execution/${ExecutionId}"}, "dynamodb": {"backup": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/backup/${BackupName}", "export": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/export/${ExportName}", "global-table": "arn:${Partition}:dynamodb::${Account}:global-table/${GlobalTableName}", "import": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/import/${ImportName}", "index": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/index/${IndexName}", "stream": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/stream/${StreamLabel}", "table": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}"}, "ecr": {"repository": "arn:${Partition}:ecr:${Region}:${Account}:repository/${RepositoryName}"}, "elasticloadbalancing": {"listener-rule/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener-rule/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/gwy": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/gwy/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "loadbalancer": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/${LoadBalancerName}", "loadbalancer/app/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/app/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/gwy/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/gwy/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/net/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/net/${LoadBalancerName}/${LoadBalancerId}", "targetgroup": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:targetgroup/${TargetGroupName}/${TargetGroupId}", "truststore": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:truststore/${TrustStoreName}/${TrustStoreId}"}, "elasticmapreduce": {"cluster": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId}", "editor": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:editor/${EditorId}", "notebook-execution": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:notebook-execution/${NotebookExecutionId}", "session": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId}/session/${SessionId}", "studio": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:studio/${StudioId}"}, "es": {"application": "arn:${Partition}:opensearch:${Region}:${Account}:application/${AppId}", "datasource": "arn:${Partition}:opensearch:${Region}:${Account}:datasource/${DataSourceName}", "domain": "arn:${Partition}:es:${Region}:${Account}:domain/${DomainName}", "es_role": "arn:${Partition}:iam::${Account}:role/aws-service-role/es.amazonaws.com/AWSServiceRoleForAmazonOpenSearchService", "opensearchservice_role": "arn:${Partition}:iam::${Account}:role/aws-service-role/opensearchservice.amazonaws.com/AWSServiceRoleForAmazonOpenSearchService"}, "events": {"alias": "arn:${Partition}:kms:${Region}:${Account}:alias/${Alias}", "api-destination": "arn:${Partition}:events:${Region}:${Account}:api-destination/${ApiDestinationName}", "archive": "arn:${Partition}:events:${Region}:${Account}:archive/${ArchiveName}", "connection": "arn:${Partition}:events:${Region}:${Account}:connection/${ConnectionName}", "create-snapshot": "arn:${Partition}:events:${Region}:${Account}:target/create-snapshot", "endpoint": "arn:${Partition}:events:${Region}:${Account}:endpoint/${EndpointName}", "event-bus": "arn:${Partition}:events:${Region}:${Account}:event-bus/${EventBusName}", "event-busv2": "arn:${Partition}:events:${Region}:${Account}:event-busv2/${EventBusName}/${OpaqueId}", "event-source": "arn:${Partition}:events:${Region}::event-source/${EventSourceName}", "event-sourcev2": "arn:${Partition}:events:${Region}:${Account}:event-sourcev2/${SourceType}/${EventSourceName}/${OpaqueId}", "key": "arn:${Partition}:kms:${Region}:${Account}:key/${KeyId}", "reboot-instance": "arn:${Partition}:events:${Region}:${Account}:target/reboot-instance", "replay": "arn:${Partition}:events:${Region}:${Account}:replay/${ReplayName}", "rule-on-custom-event-bus": "arn:${Partition}:events:${Region}:${Account}:rule/${EventBusName}/${RuleName}", "rule-on-default-event-bus": "arn:${Partition}:events:${Region}:${Account}:rule/${RuleName}", "stop-instance": "arn:${Partition}:events:${Region}:${Account}:target/stop-instance", "subscriber": "arn:${Partition}:events:${Region}:${Account}:subscriber/${SubscriberName}/${OpaqueId}", "terminate-instance": "arn:${Partition}:events:${Region}:${Account}:target/terminate-instance"}, "firehose": {"deliverystream": "arn:${Partition}:firehose:${Region}:${Account}:deliverystream/${DeliveryStreamName}"}, "globalaccelerator": {"accelerator": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}", "attachment": "arn:${Partition}:globalaccelerator::${Account}:attachment/${ResourceId}", "endpointgroup": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}/listener/${ListenerId}/endpoint-group/${EndpointGroupId}", "listener": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}/listener/${ListenerId}"}, "kinesisanalytics": {"application": "arn:${Partition}:kinesisanalytics:${Region}:${Account}:application/${ApplicationName}"}, "logs": {"anomaly-detector": "arn:${Partition}:logs:${Region}:${Account}:anomaly-detector:${DetectorId}", "delivery": "arn:${Partition}:logs:${Region}:${Account}:delivery:${DeliveryName}", "delivery-destination": "arn:${Partition}:logs:${Region}:${Account}:delivery-destination:${DeliveryDestinationName}", "delivery-source": "arn:${Partition}:logs:${Region}:${Account}:delivery-source:${DeliverySourceName}", "destination": "arn:${Partition}:logs:${Region}:${Account}:destination:${DestinationName}", "log-group": "arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}", "log-stream": "arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}", "lookup-table": "arn:${Partition}:logs:${Region}:${Account}:lookup-table:${LookupTableName}", "scheduled-query": "arn:${Partition}:logs:${Region}:${Account}:scheduled-query:${ScheduledQueryId}"}, "payment-cryptography": {"alias": "arn:${Partition}:payment-cryptography:${Region}:${Account}:alias/${Alias}", "approval-team": "arn:${Partition}:mpa:${Region}:${Account}:approval-team/${ApprovalTeamId}", "key": "arn:${Partition}:payment-cryptography:${Region}:${Account}:key/${KeyId}"}, "redshift": {"cluster": "arn:${Partition}:redshift:${Region}:${Account}:cluster:${ClusterName}", "datashare": "arn:${Partition}:redshift:${Region}:${Account}:datashare:${ProducerClusterNamespace}/${DataShareName}", "dbgroup": "arn:${Partition}:redshift:${Region}:${Account}:dbgroup:${ClusterName}/${DbGroup}", "dbname": "arn:${Partition}:redshift:${Region}:${Account}:dbname:${ClusterName}/${DbName}", "dbuser": "arn:${Partition}:redshift:${Region}:${Account}:dbuser:${ClusterName}/${DbUser}", "eventsubscription": "arn:${Partition}:redshift:${Region}:${Account}:eventsubscription:${EventSubscriptionName}", "hsmclientcertificate": "arn:${Partition}:redshift:${Region}:${Account}:hsmclientcertificate:${HSMClientCertificateId}", "hsmconfiguration": "arn:${Partition}:redshift:${Region}:${Account}:hsmconfiguration:${HSMConfigurationId}", "integration": "arn:${Partition}:redshift:${Region}:${Account}:integration:${IntegrationIdentifier}", "namespace": "arn:${Partition}:redshift:${Region}:${Account}:namespace:${ClusterNamespace}", "parametergroup": "arn:${Partition}:redshift:${Region}:${Account}:parametergroup:${ParameterGroupName}", "qev2idcapplication": "arn:${Partition}:redshift:${Region}:${Account}:qev2idcapplication:${Qev2IdcApplicationId}", "redshiftidcapplication": "arn:${Partition}:redshift:${Region}:${Account}:redshiftidcapplication:${RedshiftIdcApplicationId}", "securitygroup": "arn:${Partition}:redshift:${Region}:${Account}:securitygroup:${SecurityGroupName}/ec2securitygroup/${Owner}/${Ec2SecurityGroupId}", "securitygroupingress-cidr": "arn:${Partition}:redshift:${Region}:${Account}:securitygroupingress:${SecurityGroupName}/cidrip/${IpRange}", "securitygroupingress-ec2securitygroup": "arn:${Partition}:redshift:${Region}:${Account}:securitygroupingress:${SecurityGroupName}/ec2securitygroup/${Owner}/${Ece2SecuritygroupId}", "snapshot": "arn:${Partition}:redshift:${Region}:${Account}:snapshot:${ClusterName}/${SnapshotName}", "snapshotcopygrant": "arn:${Partition}:redshift:${Region}:${Account}:snapshotcopygrant:${SnapshotCopyGrantName}", "snapshotschedule": "arn:${Partition}:redshift:${Region}:${Account}:snapshotschedule:${ScheduleIdentifier}", "subnetgroup": "arn:${Partition}:redshift:${Region}:${Account}:subnetgroup:${SubnetGroupName}", "usagelimit": "arn:${Partition}:redshift:${Region}:${Account}:usagelimit:${UsageLimitId}"}, "redshift-data": {"cluster": "arn:${Partition}:redshift:${Region}:${Account}:cluster:${ClusterName}", "managed-workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:managed-workgroup/${ManagedWorkgroupId}", "workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:workgroup/${WorkgroupId}"}, "rekognition": {"collection": "arn:${Partition}:rekognition:${Region}:${Account}:collection/${CollectionId}", "dataset": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/dataset/${DatasetType}/${CreationTimestamp}", "project": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/${CreationTimestamp}", "projectversion": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/version/${VersionName}/${CreationTimestamp}", "streamprocessor": "arn:${Partition}:rekognition:${Region}:${Account}:streamprocessor/${StreamprocessorId}"}, "servicediscovery": {"namespace": "arn:${Partition}:servicediscovery:${Region}:${Account}:namespace/${NamespaceId}", "service": "arn:${Partition}:servicediscovery:${Region}:${Account}:service/${ServiceId}"}, "servicequotas": {"quota": "arn:${Partition}:servicequotas:${Region}:${Account}:${ServiceCode}/${QuotaCode}"}, "sso": {"Account": "arn:${Partition}:sso:::account/${AccountId}", "Application": "arn:${Partition}:sso::${Account}:application/${InstanceId}/${ApplicationId}", "ApplicationProvider": "arn:${Partition}:sso::aws:applicationProvider/${ApplicationProviderId}", "Instance": "arn:${Partition}:sso:::instance/${InstanceId}", "PermissionSet": "arn:${Partition}:sso:::permissionSet/${InstanceId}/${PermissionSetId}", "TrustedTokenIssuer": "arn:${Partition}:sso::${Account}:trustedTokenIssuer/${InstanceId}/${TrustedTokenIssuerId}"}, "states": {"activity": "arn:${Partition}:states:${Region}:${Account}:activity:${ActivityName}", "execution": "arn:${Partition}:states:${Region}:${Account}:execution:${StateMachineName}:${ExecutionId}", "express": "arn:${Partition}:states:${Region}:${Account}:express:${StateMachineName}:${ExecutionId}:${ExpressId}", "labelled execution": "arn:${Partition}:states:${Region}:${Account}:execution:${StateMachineName}/${MapRunLabel}:${ExecutionId}", "labelled express": "arn:${Partition}:states:${Region}:${Account}:express:${StateMachineName}/${MapRunLabel}:${ExecutionId}:${ExpressId}", "maprun": "arn:${Partition}:states:${Region}:${Account}:mapRun:${StateMachineName}/${MapRunLabel}:${MapRunId}", "statemachine": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}", "statemachinealias": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineAliasName}", "statemachineversion": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineVersionId}"}, "textract": {"adapter": "arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId}", "adapterversion": "arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId}/versions/${AdapterVersion}"}, "timestream-influxdb": {"db-backup": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-backup/${DbBackupId}", "db-cluster": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-cluster/${DbClusterId}", "db-instance": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-instance/${DbInstanceIdentifier}", "db-parameter-group": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-parameter-group/${DbParameterGroupIdentifier}"}, "translate": {"parallel-data": "arn:${Partition}:translate:${Region}:${Account}:parallel-data/${ResourceName}", "terminology": "arn:${Partition}:translate:${Region}:${Account}:terminology/${ResourceName}"}}, + "otherNamespaces": ["a4b", "account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifybackend", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "application-signals-mcp", "appmesh", "appmesh-preview", "apprunner", "appstream", "apptest", "arc-region-switch", "arc-zonal-shift", "artifact", "assurance", "auditmanager", "aws-external-anthropic", "b2bi", "backup-gateway", "backup-search", "bedrock-mantle", "bedrock-websearch", "billing", "billingconductor", "braket", "bugbust", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "clouddirectory", "cloudfront-keyvaluestore", "cloudsearch", "cloudshell", "cloudtrail-data", "codecatalyst", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "codewhisperer", "cognito-sync", "connect-campaigns", "consoleapp", "continuum", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "devicefarm", "devops-guru", "directconnect", "docdb-elastic", "drs", "ds", "ds-data", "ebs", "ec2-instance-connect", "ecr-public", "eks-auth", "elastictranscoder", "elemental-appliances-software", "elemental-inference", "elemental-support-cases", "emr-containers", "end-user-messaging", "entityresolution", "evs", "finspace", "finspace-api", "fms", "forecast", "frauddetector", "freertos", "fsx", "gamelift", "gameliftstreams", "geo", "geo-maps", "geo-places", "geo-routes", "glacier", "grafana", "greengrass", "groundstation", "health", "health-agent", "healthlake", "honeycode", "identity-sync", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotanalytics", "iotdeviceadvisor", "iotfleethub", "iotfleetwise", "iotjobsdata", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "iq", "iq-permission", "ivs", "ivschat", "kafka-cluster", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "lookoutmetrics", "lookoutvision", "m2", "machinelearning", "managedblockchain", "mapcredits", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgh", "mgn", "migrationhub-orchestrator", "mobiletargeting", "monitron", "mpa", "neptune-db", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "nimble", "notifications", "notifications-contacts", "nova-act", "observabilityadmin", "odb", "omics", "one", "opensearch", "opsworks", "osis", "outposts", "panorama", "partnercentral", "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", "signer", "simspaceweaver", "sms-voice", "snow-device-management", "social-messaging", "sqlworkbench", "ssm-contacts", "ssm-incidents", "ssm-quicksetup", "ssm-sap", "storagegateway", "supportauthz", "synthetics", "thinclient", "timestream", "tnb", "transform", "transform-custom", "trustedadvisor", "ts", "vendor-insights", "voiceid", "vpc-lattice", "vpc-lattice-svcs", "vpce", "waf", "waf-regional", "wellarchitected", "wickr", "wisdom", "workdocs", "worklink", "workmail", "workmailmessageflow", "workspaces", "workspaces-instances", "workspaces-web", "xray"], + "arnFormats": {"access-analyzer": {"Analyzer": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}", "ArchiveRule": "arn:${Partition}:access-analyzer:${Region}:${Account}:analyzer/${AnalyzerName}/archive-rule/${RuleName}"}, "acm": {"acme-domain-validation": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-domain-validation/${AcmeDomainValidationId}", "acme-endpoint": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}", "acme-external-account-binding": "arn:${Partition}:acm:${Region}:${Account}:acme-endpoint/${AcmeEndpointId}/acme-external-account-binding/${ExternalAccountBindingId}", "certificate": "arn:${Partition}:acm:${Region}:${Account}:certificate/${CertificateId}"}, "application-autoscaling": {"ScalableTarget": "arn:${Partition}:application-autoscaling:${Region}:${Account}:scalable-target/${ResourceId}"}, "athena": {"capacity-reservation": "arn:${Partition}:athena:${Region}:${Account}:capacity-reservation/${CapacityReservationName}", "datacatalog": "arn:${Partition}:athena:${Region}:${Account}:datacatalog/${DataCatalogName}", "session": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}/session/${SessionId}", "workgroup": "arn:${Partition}:athena:${Region}:${Account}:workgroup/${WorkGroupName}"}, "bcm-data-exports": {"billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "export": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:export/${Identifier}", "table": "arn:${Partition}:bcm-data-exports:${Region}:${Account}:table/${Identifier}"}, "bcm-pricing-calculator": {"bill-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-estimate/${BillEstimateId}", "bill-scenario": "arn:${Partition}:bcm-pricing-calculator::${Account}:bill-scenario/${BillScenarioId}", "workload-estimate": "arn:${Partition}:bcm-pricing-calculator::${Account}:workload-estimate/${WorkloadEstimateId}"}, "budgets": {"budget": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}", "budgetAction": "arn:${Partition}:budgets::${Account}:budget/${BudgetName}/action/${ActionId}"}, "ce": {"anomalymonitor": "arn:${Partition}:ce::${Account}:anomalymonitor/${Identifier}", "anomalysubscription": "arn:${Partition}:ce::${Account}:anomalysubscription/${Identifier}", "billingview": "arn:${Partition}:billing::${Account}:billingview/${ResourceId}", "costcategory": "arn:${Partition}:ce::${Account}:costcategory/${Identifier}"}, "cloudtrail": {"channel": "arn:${Partition}:cloudtrail:${Region}:${Account}:channel/${ChannelId}", "dashboard": "arn:${Partition}:cloudtrail:${Region}:${Account}:dashboard/${DashboardName}", "eventdatastore": "arn:${Partition}:cloudtrail:${Region}:${Account}:eventdatastore/${EventDataStoreId}", "trail": "arn:${Partition}:cloudtrail:${Region}:${Account}:trail/${TrailName}"}, "codebuild": {"build": "arn:${Partition}:codebuild:${Region}:${Account}:build/${BuildId}", "build-batch": "arn:${Partition}:codebuild:${Region}:${Account}:build-batch/${BuildBatchId}", "fleet": "arn:${Partition}:codebuild:${Region}:${Account}:fleet/${FleetName}:${FleetId}", "project": "arn:${Partition}:codebuild:${Region}:${Account}:project/${ProjectName}", "report": "arn:${Partition}:codebuild:${Region}:${Account}:report/${ReportGroupName}:${ReportId}", "report-group": "arn:${Partition}:codebuild:${Region}:${Account}:report-group/${ReportGroupName}", "sandbox": "arn:${Partition}:codebuild:${Region}:${Account}:sandbox/${SandboxId}"}, "codepipeline": {"action": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}/${ActionName}", "actiontype": "arn:${Partition}:codepipeline:${Region}:${Account}:actiontype:${Owner}/${Category}/${Provider}/${Version}", "pipeline": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}", "stage": "arn:${Partition}:codepipeline:${Region}:${Account}:${PipelineName}/${StageName}", "webhook": "arn:${Partition}:codepipeline:${Region}:${Account}:webhook:${WebhookName}"}, "cognito-identity": {"identitypool": "arn:${Partition}:cognito-identity:${Region}:${Account}:identitypool/${IdentityPoolId}"}, "cognito-idp": {"userpool": "arn:${Partition}:cognito-idp:${Region}:${Account}:userpool/${UserPoolId}", "webacl": "arn:${Partition}:wafv2:${Region}:${Account}:${Scope}/webacl/${Name}/${Id}"}, "cur": {"cur": "arn:${Partition}:cur:${Region}:${Account}:definition/${ReportName}"}, "datasync": {"agent": "arn:${Partition}:datasync:${Region}:${Account}:agent/${AgentId}", "discoveryjob": "arn:${Partition}:datasync:${Region}:${Account}:system/${StorageSystemId}/job/${DiscoveryJobId}", "location": "arn:${Partition}:datasync:${Region}:${Account}:location/${LocationId}", "storagesystem": "arn:${Partition}:datasync:${Region}:${Account}:system/${StorageSystemId}", "task": "arn:${Partition}:datasync:${Region}:${Account}:task/${TaskId}", "taskexecution": "arn:${Partition}:datasync:${Region}:${Account}:task/${TaskId}/execution/${ExecutionId}"}, "dynamodb": {"backup": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/backup/${BackupName}", "export": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/export/${ExportName}", "global-table": "arn:${Partition}:dynamodb::${Account}:global-table/${GlobalTableName}", "import": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/import/${ImportName}", "index": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/index/${IndexName}", "stream": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}/stream/${StreamLabel}", "table": "arn:${Partition}:dynamodb:${Region}:${Account}:table/${TableName}"}, "ecr": {"repository": "arn:${Partition}:ecr:${Region}:${Account}:repository/${RepositoryName}"}, "elasticloadbalancing": {"listener-rule/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener-rule/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener-rule/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}/${ListenerRuleId}", "listener/app": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/app/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/gwy": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/gwy/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "listener/net": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:listener/net/${LoadBalancerName}/${LoadBalancerId}/${ListenerId}", "loadbalancer": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/${LoadBalancerName}", "loadbalancer/app/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/app/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/gwy/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/gwy/${LoadBalancerName}/${LoadBalancerId}", "loadbalancer/net/": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:loadbalancer/net/${LoadBalancerName}/${LoadBalancerId}", "targetgroup": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:targetgroup/${TargetGroupName}/${TargetGroupId}", "truststore": "arn:${Partition}:elasticloadbalancing:${Region}:${Account}:truststore/${TrustStoreName}/${TrustStoreId}"}, "elasticmapreduce": {"cluster": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId}", "editor": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:editor/${EditorId}", "notebook-execution": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:notebook-execution/${NotebookExecutionId}", "session": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:cluster/${ClusterId}/session/${SessionId}", "studio": "arn:${Partition}:elasticmapreduce:${Region}:${Account}:studio/${StudioId}"}, "es": {"application": "arn:${Partition}:opensearch:${Region}:${Account}:application/${AppId}", "datasource": "arn:${Partition}:opensearch:${Region}:${Account}:datasource/${DataSourceName}", "domain": "arn:${Partition}:es:${Region}:${Account}:domain/${DomainName}", "es_role": "arn:${Partition}:iam::${Account}:role/aws-service-role/es.amazonaws.com/AWSServiceRoleForAmazonOpenSearchService", "opensearchservice_role": "arn:${Partition}:iam::${Account}:role/aws-service-role/opensearchservice.amazonaws.com/AWSServiceRoleForAmazonOpenSearchService"}, "events": {"alias": "arn:${Partition}:kms:${Region}:${Account}:alias/${Alias}", "api-destination": "arn:${Partition}:events:${Region}:${Account}:api-destination/${ApiDestinationName}", "archive": "arn:${Partition}:events:${Region}:${Account}:archive/${ArchiveName}", "connection": "arn:${Partition}:events:${Region}:${Account}:connection/${ConnectionName}", "create-snapshot": "arn:${Partition}:events:${Region}:${Account}:target/create-snapshot", "endpoint": "arn:${Partition}:events:${Region}:${Account}:endpoint/${EndpointName}", "event-bus": "arn:${Partition}:events:${Region}:${Account}:event-bus/${EventBusName}", "event-busv2": "arn:${Partition}:events:${Region}:${Account}:event-busv2/${EventBusName}/${OpaqueId}", "event-source": "arn:${Partition}:events:${Region}::event-source/${EventSourceName}", "event-sourcev2": "arn:${Partition}:events:${Region}:${Account}:event-sourcev2/${SourceType}/${EventSourceName}/${OpaqueId}", "key": "arn:${Partition}:kms:${Region}:${Account}:key/${KeyId}", "reboot-instance": "arn:${Partition}:events:${Region}:${Account}:target/reboot-instance", "replay": "arn:${Partition}:events:${Region}:${Account}:replay/${ReplayName}", "rule-on-custom-event-bus": "arn:${Partition}:events:${Region}:${Account}:rule/${EventBusName}/${RuleName}", "rule-on-default-event-bus": "arn:${Partition}:events:${Region}:${Account}:rule/${RuleName}", "stop-instance": "arn:${Partition}:events:${Region}:${Account}:target/stop-instance", "subscriber": "arn:${Partition}:events:${Region}:${Account}:subscriber/${SubscriberName}/${OpaqueId}", "terminate-instance": "arn:${Partition}:events:${Region}:${Account}:target/terminate-instance"}, "firehose": {"deliverystream": "arn:${Partition}:firehose:${Region}:${Account}:deliverystream/${DeliveryStreamName}"}, "globalaccelerator": {"accelerator": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}", "attachment": "arn:${Partition}:globalaccelerator::${Account}:attachment/${ResourceId}", "endpointgroup": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}/listener/${ListenerId}/endpoint-group/${EndpointGroupId}", "listener": "arn:${Partition}:globalaccelerator::${Account}:accelerator/${ResourceId}/listener/${ListenerId}"}, "kinesisanalytics": {"application": "arn:${Partition}:kinesisanalytics:${Region}:${Account}:application/${ApplicationName}"}, "logs": {"anomaly-detector": "arn:${Partition}:logs:${Region}:${Account}:anomaly-detector:${DetectorId}", "delivery": "arn:${Partition}:logs:${Region}:${Account}:delivery:${DeliveryName}", "delivery-destination": "arn:${Partition}:logs:${Region}:${Account}:delivery-destination:${DeliveryDestinationName}", "delivery-source": "arn:${Partition}:logs:${Region}:${Account}:delivery-source:${DeliverySourceName}", "destination": "arn:${Partition}:logs:${Region}:${Account}:destination:${DestinationName}", "log-group": "arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}", "log-stream": "arn:${Partition}:logs:${Region}:${Account}:log-group:${LogGroupName}:log-stream:${LogStreamName}", "lookup-table": "arn:${Partition}:logs:${Region}:${Account}:lookup-table:${LookupTableName}", "scheduled-query": "arn:${Partition}:logs:${Region}:${Account}:scheduled-query:${ScheduledQueryId}"}, "payment-cryptography": {"alias": "arn:${Partition}:payment-cryptography:${Region}:${Account}:alias/${Alias}", "approval-team": "arn:${Partition}:mpa:${Region}:${Account}:approval-team/${ApprovalTeamId}", "key": "arn:${Partition}:payment-cryptography:${Region}:${Account}:key/${KeyId}"}, "quicksight": {"accessControlApplication": "arn:${Partition}:quicksight:${Region}:${Account}:access-control-application/${ResourceId}", "account": "arn:${Partition}:quicksight:${Region}:${Account}:account/${ResourceId}", "actionconnector": "arn:${Partition}:quicksight:${Region}:${Account}:action-connector/${ResourceId}", "agent": "arn:${Partition}:quicksight:${Region}:${Account}:agent/${ResourceId}", "analysis": "arn:${Partition}:quicksight:${Region}:${Account}:analysis/${ResourceId}", "app": "arn:${Partition}:quicksight:${Region}:${Account}:app/${ResourceId}", "approvalPolicy": "arn:${Partition}:quicksight:${Region}:${Account}:approval-policy/${ResourceId}", "assetBundleExportJob": "arn:${Partition}:quicksight:${Region}:${Account}:asset-bundle-export-job/${ResourceId}", "assetBundleImportJob": "arn:${Partition}:quicksight:${Region}:${Account}:asset-bundle-import-job/${ResourceId}", "assignment": "arn:${Partition}:quicksight::${Account}:assignment/${ResourceId}", "automation": "arn:${Partition}:quicksight:${Region}:${Account}:automation-group/${AutomationGroupId}/automation/${ResourceId}", "automationGroup": "arn:${Partition}:quicksight:${Region}:${Account}:automation-group/${ResourceId}", "automationJob": "arn:${Partition}:quicksight:${Region}:${Account}:automation-group/${AutomationGroupId}/automation/${AutomationId}/job/${ResourceId}", "brand": "arn:${Partition}:quicksight:${Region}:${Account}:brand/${ResourceId}", "customization": "arn:${Partition}:quicksight:${Region}:${Account}:customization/${ResourceId}", "custompermissions": "arn:${Partition}:quicksight:${Region}:${Account}:custompermissions/${ResourceId}", "dashboard": "arn:${Partition}:quicksight:${Region}:${Account}:dashboard/${ResourceId}", "dashboardSnapshotJob": "arn:${Partition}:quicksight:${Region}:${Account}:dashboard/${DashboardId}/snapshot-job/${ResourceId}", "dataset": "arn:${Partition}:quicksight:${Region}:${Account}:dataset/${ResourceId}", "datasource": "arn:${Partition}:quicksight:${Region}:${Account}:datasource/${ResourceId}", "dlpSetting": "arn:${Partition}:quicksight:${Region}:${Account}:dlpsetting/${ResourceId}", "emailCustomizationTemplate": "arn:${Partition}:quicksight:${Region}:${Account}:email-customization-template/${ResourceId}", "extension": "arn:${Partition}:quicksight:${Region}:${Account}:extension/${ResourceId}", "extensionaccess": "arn:${Partition}:quicksight:${Region}:${Account}:extension-access/${ResourceId}", "flow": "arn:${Partition}:quicksight:${Region}:${Account}:flow/${ResourceId}", "folder": "arn:${Partition}:quicksight:${Region}:${Account}:folder/${ResourceId}", "group": "arn:${Partition}:quicksight:${Region}:${Account}:group/${ResourceId}", "inboundConnector": "arn:${Partition}:quicksight:${Region}:${Account}:inbound-connector/${ResourceId}", "ingestion": "arn:${Partition}:quicksight:${Region}:${Account}:dataset/${DatasetId}/ingestion/${ResourceId}", "knowledgeBase": "arn:${Partition}:quicksight:${Region}:${Account}:knowledge-base/${ResourceId}", "limitsProfile": "arn:${Partition}:quicksight:${Region}:${Account}:limits-profile/${ResourceId}", "namespace": "arn:${Partition}:quicksight:${Region}:${Account}:namespace/${ResourceId}", "oauthClientApplication": "arn:${Partition}:quicksight:${Region}:${Account}:oauthClientApplication/${ResourceId}", "refreshschedule": "arn:${Partition}:quicksight:${Region}:${Account}:dataset/${DatasetId}/refresh-schedule/${ResourceId}", "space": "arn:${Partition}:quicksight:${Region}:${Account}:space/${ResourceId}", "template": "arn:${Partition}:quicksight:${Region}:${Account}:template/${ResourceId}", "theme": "arn:${Partition}:quicksight:${Region}:${Account}:theme/${ResourceId}", "topic": "arn:${Partition}:quicksight:${Region}:${Account}:topic/${ResourceId}", "user": "arn:${Partition}:quicksight:${Region}:${Account}:user/${ResourceId}", "vpcconnection": "arn:${Partition}:quicksight:${Region}:${Account}:vpcConnection/${ResourceId}"}, "redshift": {"cluster": "arn:${Partition}:redshift:${Region}:${Account}:cluster:${ClusterName}", "datashare": "arn:${Partition}:redshift:${Region}:${Account}:datashare:${ProducerClusterNamespace}/${DataShareName}", "dbgroup": "arn:${Partition}:redshift:${Region}:${Account}:dbgroup:${ClusterName}/${DbGroup}", "dbname": "arn:${Partition}:redshift:${Region}:${Account}:dbname:${ClusterName}/${DbName}", "dbuser": "arn:${Partition}:redshift:${Region}:${Account}:dbuser:${ClusterName}/${DbUser}", "eventsubscription": "arn:${Partition}:redshift:${Region}:${Account}:eventsubscription:${EventSubscriptionName}", "hsmclientcertificate": "arn:${Partition}:redshift:${Region}:${Account}:hsmclientcertificate:${HSMClientCertificateId}", "hsmconfiguration": "arn:${Partition}:redshift:${Region}:${Account}:hsmconfiguration:${HSMConfigurationId}", "integration": "arn:${Partition}:redshift:${Region}:${Account}:integration:${IntegrationIdentifier}", "namespace": "arn:${Partition}:redshift:${Region}:${Account}:namespace:${ClusterNamespace}", "parametergroup": "arn:${Partition}:redshift:${Region}:${Account}:parametergroup:${ParameterGroupName}", "qev2idcapplication": "arn:${Partition}:redshift:${Region}:${Account}:qev2idcapplication:${Qev2IdcApplicationId}", "redshiftidcapplication": "arn:${Partition}:redshift:${Region}:${Account}:redshiftidcapplication:${RedshiftIdcApplicationId}", "securitygroup": "arn:${Partition}:redshift:${Region}:${Account}:securitygroup:${SecurityGroupName}/ec2securitygroup/${Owner}/${Ec2SecurityGroupId}", "securitygroupingress-cidr": "arn:${Partition}:redshift:${Region}:${Account}:securitygroupingress:${SecurityGroupName}/cidrip/${IpRange}", "securitygroupingress-ec2securitygroup": "arn:${Partition}:redshift:${Region}:${Account}:securitygroupingress:${SecurityGroupName}/ec2securitygroup/${Owner}/${Ece2SecuritygroupId}", "snapshot": "arn:${Partition}:redshift:${Region}:${Account}:snapshot:${ClusterName}/${SnapshotName}", "snapshotcopygrant": "arn:${Partition}:redshift:${Region}:${Account}:snapshotcopygrant:${SnapshotCopyGrantName}", "snapshotschedule": "arn:${Partition}:redshift:${Region}:${Account}:snapshotschedule:${ScheduleIdentifier}", "subnetgroup": "arn:${Partition}:redshift:${Region}:${Account}:subnetgroup:${SubnetGroupName}", "usagelimit": "arn:${Partition}:redshift:${Region}:${Account}:usagelimit:${UsageLimitId}"}, "redshift-data": {"cluster": "arn:${Partition}:redshift:${Region}:${Account}:cluster:${ClusterName}", "managed-workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:managed-workgroup/${ManagedWorkgroupId}", "workgroup": "arn:${Partition}:redshift-serverless:${Region}:${Account}:workgroup/${WorkgroupId}"}, "rekognition": {"collection": "arn:${Partition}:rekognition:${Region}:${Account}:collection/${CollectionId}", "dataset": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/dataset/${DatasetType}/${CreationTimestamp}", "project": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/${CreationTimestamp}", "projectversion": "arn:${Partition}:rekognition:${Region}:${Account}:project/${ProjectName}/version/${VersionName}/${CreationTimestamp}", "streamprocessor": "arn:${Partition}:rekognition:${Region}:${Account}:streamprocessor/${StreamprocessorId}"}, "servicediscovery": {"namespace": "arn:${Partition}:servicediscovery:${Region}:${Account}:namespace/${NamespaceId}", "service": "arn:${Partition}:servicediscovery:${Region}:${Account}:service/${ServiceId}"}, "servicequotas": {"quota": "arn:${Partition}:servicequotas:${Region}:${Account}:${ServiceCode}/${QuotaCode}"}, "sso": {"Account": "arn:${Partition}:sso:::account/${AccountId}", "Application": "arn:${Partition}:sso::${Account}:application/${InstanceId}/${ApplicationId}", "ApplicationProvider": "arn:${Partition}:sso::aws:applicationProvider/${ApplicationProviderId}", "Instance": "arn:${Partition}:sso:::instance/${InstanceId}", "PermissionSet": "arn:${Partition}:sso:::permissionSet/${InstanceId}/${PermissionSetId}", "TrustedTokenIssuer": "arn:${Partition}:sso::${Account}:trustedTokenIssuer/${InstanceId}/${TrustedTokenIssuerId}"}, "states": {"activity": "arn:${Partition}:states:${Region}:${Account}:activity:${ActivityName}", "execution": "arn:${Partition}:states:${Region}:${Account}:execution:${StateMachineName}:${ExecutionId}", "express": "arn:${Partition}:states:${Region}:${Account}:express:${StateMachineName}:${ExecutionId}:${ExpressId}", "labelled execution": "arn:${Partition}:states:${Region}:${Account}:execution:${StateMachineName}/${MapRunLabel}:${ExecutionId}", "labelled express": "arn:${Partition}:states:${Region}:${Account}:express:${StateMachineName}/${MapRunLabel}:${ExecutionId}:${ExpressId}", "maprun": "arn:${Partition}:states:${Region}:${Account}:mapRun:${StateMachineName}/${MapRunLabel}:${MapRunId}", "statemachine": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}", "statemachinealias": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineAliasName}", "statemachineversion": "arn:${Partition}:states:${Region}:${Account}:stateMachine:${StateMachineName}:${StateMachineVersionId}"}, "textract": {"adapter": "arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId}", "adapterversion": "arn:${Partition}:textract:${Region}:${Account}:/adapters/${AdapterId}/versions/${AdapterVersion}"}, "timestream-influxdb": {"db-backup": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-backup/${DbBackupId}", "db-cluster": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-cluster/${DbClusterId}", "db-instance": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-instance/${DbInstanceIdentifier}", "db-parameter-group": "arn:${Partition}:timestream-influxdb:${Region}:${Account}:db-parameter-group/${DbParameterGroupIdentifier}"}, "translate": {"parallel-data": "arn:${Partition}:translate:${Region}:${Account}:parallel-data/${ResourceName}", "terminology": "arn:${Partition}:translate:${Region}:${Account}:terminology/${ResourceName}"}}, "unqualified": {"states": ["statemachine"]}, "mintedIds": {"events": ["api-destination", "connection"]}, "operations": { @@ -1222,6 +1222,305 @@ "payment-cryptography:VerifyCardValidationData": {"action": "payment-cryptography:VerifyCardValidationData", "types": ["alias", "key"], "resources": []}, "payment-cryptography:VerifyMac": {"action": "payment-cryptography:VerifyMac", "types": ["alias", "key"], "resources": []}, "payment-cryptography:VerifyPinData": {"action": "payment-cryptography:VerifyPinData", "types": ["alias", "key"], "resources": []}, + "quicksight:BatchCreateTopicReviewedAnswer": {"action": "quicksight:BatchCreateTopicReviewedAnswer", "types": ["topic"], "resources": [{"types": ["topic"], "arn": "Answers[].DatasetArn"}, {"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:BatchDeleteKnowledgeBase": {"action": "quicksight:BatchDeleteKnowledgeBase", "types": ["knowledgeBase"], "resources": [{"type": "knowledgeBase", "fill": {"ResourceId": "KnowledgeBaseIds[]"}}]}, + "quicksight:BatchDeleteTopicReviewedAnswer": {"action": "quicksight:BatchDeleteTopicReviewedAnswer", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:BatchDescribeUserLimits": {"action": "quicksight:BatchDescribeUserLimits", "types": ["limitsProfile"], "resources": []}, + "quicksight:CancelIngestion": {"action": "quicksight:CancelIngestion", "types": ["ingestion"], "resources": [{"type": "ingestion", "fill": {"DatasetId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:CreateAccountCustomization": {"action": "quicksight:CreateAccountCustomization", "types": [], "resources": []}, + "quicksight:CreateAccountSubscription": {"action": "quicksight:CreateAccountSubscription", "types": [], "resources": []}, + "quicksight:CreateActionConnector": {"action": "quicksight:CreateActionConnector", "types": ["actionconnector"], "resources": [{"types": ["actionconnector"], "arn": "VpcConnectionArn"}, {"type": "actionconnector", "fill": {"ResourceId": "ActionConnectorId"}}]}, + "quicksight:CreateAgent": {"action": "quicksight:CreateAgent", "types": ["agent"], "resources": [{"type": "agent", "fill": {"ResourceId": "AgentId"}}]}, + "quicksight:CreateAnalysis": {"action": "quicksight:CreateAnalysis", "types": ["analysis"], "resources": [{"types": ["analysis"], "arn": "FolderArns[]"}, {"types": ["analysis"], "arn": "ThemeArn"}, {"type": "analysis", "fill": {"ResourceId": "AnalysisId"}}], "located": {"AnalysisId": "{AnalysisId}"}}, + "quicksight:CreateApprovalPolicy": {"action": "quicksight:CreateApprovalPolicy", "types": ["approvalPolicy"], "resources": [{"types": ["approvalPolicy"], "arn": "ApplicableTo.GroupArns[]"}, {"type": "approvalPolicy", "fill": {"ResourceId": "PolicyId"}}]}, + "quicksight:CreateBrand": {"action": "quicksight:CreateBrand", "types": ["brand"], "resources": [{"type": "brand", "fill": {"ResourceId": "BrandId"}}], "located": {"BrandId": "{BrandId}"}}, + "quicksight:CreateCustomPermissions": {"action": "quicksight:CreateCustomPermissions", "types": ["custompermissions"], "resources": [{"type": "custompermissions", "fill": {}}]}, + "quicksight:CreateDashboard": {"action": "quicksight:CreateDashboard", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:CreateDataSet": {"action": "quicksight:CreateDataSet", "types": ["datasource"], "resources": [{"types": ["datasource"], "arn": "PhysicalTableMap{}.S3Source.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.RelationalTable.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.CustomSql.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.SaaSTable.DataSourceArn"}, {"types": ["datasource"], "arn": "PhysicalTableMap{}.FileSource.DataSourceArn"}]}, + "quicksight:CreateDataSource": {"action": "quicksight:CreateDataSource", "types": [], "resources": []}, + "quicksight:CreateDlpSetting": {"action": "quicksight:CreateDlpSetting", "types": ["dlpSetting"], "resources": [{"type": "dlpSetting", "fill": {"ResourceId": "DlpSettingId"}}], "located": {"DlpSettingId": "{DlpSettingId}"}}, + "quicksight:CreateFlow": {"action": "quicksight:CreateFlow", "types": ["flow"], "resources": [{"type": "flow", "fill": {}}]}, + "quicksight:CreateFolder": {"action": "quicksight:CreateFolder", "types": ["folder"], "resources": [{"types": ["folder"], "arn": "ParentFolderArn"}, {"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:CreateFolderMembership": {"action": "quicksight:CreateFolderMembership", "types": ["analysis", "dashboard", "dataset", "folder"], "resources": [{"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:CreateGroup": {"action": "quicksight:CreateGroup", "types": ["group"], "resources": [{"type": "group", "fill": {}}]}, + "quicksight:CreateGroupMembership": {"action": "quicksight:CreateGroupMembership", "types": ["group"], "resources": []}, + "quicksight:CreateIAMPolicyAssignment": {"action": "quicksight:CreateIAMPolicyAssignment", "types": ["assignment"], "resources": [{"types": ["assignment"], "arn": "PolicyArn"}, {"type": "assignment", "fill": {}}]}, + "quicksight:CreateIngestion": {"action": "quicksight:CreateIngestion", "types": ["ingestion"], "resources": [{"type": "ingestion", "fill": {"DatasetId": "DataSetId", "ResourceId": "IngestionId"}}], "located": {"DataSetId": "{DataSetId}", "IngestionId": "{IngestionId}"}}, + "quicksight:CreateKnowledgeBase": {"action": "quicksight:CreateKnowledgeBase", "types": ["datasource", "knowledgeBase"], "resources": [{"types": ["datasource", "knowledgeBase"], "arn": "DataSourceArn"}, {"types": ["datasource", "knowledgeBase"], "arn": "PrimaryOwnerArn"}, {"type": "knowledgeBase", "fill": {"ResourceId": "KnowledgeBaseId"}, "made": true}]}, + "quicksight:CreateLimitsProfile": {"action": "quicksight:CreateLimitsProfile", "types": ["limitsProfile"], "resources": [{"type": "limitsProfile", "fill": {}}]}, + "quicksight:CreateNamespace": {"action": "quicksight:CreateNamespace", "types": ["namespace"], "resources": [{"type": "namespace", "fill": {"ResourceId": "Namespace"}}]}, + "quicksight:CreateOAuthClientApplication": {"action": "quicksight:CreateOAuthClientApplication", "types": [], "resources": []}, + "quicksight:CreateRefreshSchedule": {"action": "quicksight:CreateRefreshSchedule", "types": ["refreshschedule"], "resources": [{"types": ["refreshschedule"], "arn": "Schedule.Arn"}, {"type": "refreshschedule", "fill": {"DatasetId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:CreateRoleMembership": {"action": "quicksight:CreateRoleMembership", "types": [], "resources": []}, + "quicksight:CreateSpace": {"action": "quicksight:CreateSpace", "types": ["space"], "resources": [{"type": "space", "fill": {"ResourceId": "SpaceId"}}]}, + "quicksight:CreateTemplate": {"action": "quicksight:CreateTemplate", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:CreateTemplateAlias": {"action": "quicksight:CreateTemplateAlias", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:CreateTheme": {"action": "quicksight:CreateTheme", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:CreateThemeAlias": {"action": "quicksight:CreateThemeAlias", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:CreateTopic": {"action": "quicksight:CreateTopic", "types": ["dataset"], "resources": [{"types": ["dataset"], "arn": "FolderArns[]"}]}, + "quicksight:CreateTopicRefreshSchedule": {"action": "quicksight:CreateTopicRefreshSchedule", "types": ["topic"], "resources": [{"types": ["topic"], "arn": "DatasetArn"}, {"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:CreateTopicV2": {"action": "quicksight:CreateTopicV2", "types": [], "resources": []}, + "quicksight:CreateVPCConnection": {"action": "quicksight:CreateVPCConnection", "types": [], "resources": []}, + "quicksight:DeleteAccountCustomPermission": {"action": "quicksight:DeleteAccountCustomPermission", "types": [], "resources": []}, + "quicksight:DeleteAccountCustomization": {"action": "quicksight:DeleteAccountCustomization", "types": ["customization"], "resources": []}, + "quicksight:DeleteAccountSubscription": {"action": "quicksight:DeleteAccountSubscription", "types": ["account"], "resources": [{"type": "account", "fill": {"ResourceId": "AwsAccountId"}}], "located": {"AwsAccountId": "{AwsAccountId}"}}, + "quicksight:DeleteActionConnector": {"action": "quicksight:DeleteActionConnector", "types": ["actionconnector"], "resources": [{"type": "actionconnector", "fill": {"ResourceId": "ActionConnectorId"}}], "located": {"ActionConnectorId": "{ActionConnectorId}"}}, + "quicksight:DeleteAgent": {"action": "quicksight:DeleteAgent", "types": ["agent"], "resources": [{"type": "agent", "fill": {"ResourceId": "AgentId"}}], "located": {"AgentId": "{AgentId}"}}, + "quicksight:DeleteAnalysis": {"action": "quicksight:DeleteAnalysis", "types": ["analysis"], "resources": [{"type": "analysis", "fill": {"ResourceId": "AnalysisId"}}], "located": {"AnalysisId": "{AnalysisId}"}}, + "quicksight:DeleteApp": {"action": "quicksight:DeleteApp", "types": ["app"], "resources": [{"type": "app", "fill": {"ResourceId": "AppId"}}], "located": {"AppId": "{AppId}"}}, + "quicksight:DeleteApprovalPolicy": {"action": "quicksight:DeleteApprovalPolicy", "types": ["approvalPolicy"], "resources": [{"type": "approvalPolicy", "fill": {"ResourceId": "PolicyId"}}], "located": {"PolicyId": "{PolicyId}"}}, + "quicksight:DeleteBrand": {"action": "quicksight:DeleteBrand", "types": ["brand"], "resources": [{"type": "brand", "fill": {"ResourceId": "BrandId"}}], "located": {"BrandId": "{BrandId}"}}, + "quicksight:DeleteBrandAssignment": {"action": "quicksight:DeleteBrandAssignment", "types": [], "resources": []}, + "quicksight:DeleteCustomPermissions": {"action": "quicksight:DeleteCustomPermissions", "types": [], "resources": []}, + "quicksight:DeleteDashboard": {"action": "quicksight:DeleteDashboard", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:DeleteDataSet": {"action": "quicksight:DeleteDataSet", "types": ["dataset"], "resources": [{"type": "dataset", "fill": {"ResourceId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:DeleteDataSetRefreshProperties": {"action": "quicksight:DeleteDataSetRefreshProperties", "types": ["dataset"], "resources": [{"type": "dataset", "fill": {"ResourceId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:DeleteDataSource": {"action": "quicksight:DeleteDataSource", "types": ["datasource"], "resources": [{"type": "datasource", "fill": {"ResourceId": "DataSourceId"}}], "located": {"DataSourceId": "{DataSourceId}"}}, + "quicksight:DeleteDefaultQBusinessApplication": {"action": "quicksight:DeleteDefaultQBusinessApplication", "types": [], "resources": []}, + "quicksight:DeleteDlpSetting": {"action": "quicksight:DeleteDlpSetting", "types": ["dlpSetting"], "resources": [{"type": "dlpSetting", "fill": {"ResourceId": "DlpSettingId"}}], "located": {"DlpSettingId": "{DlpSettingId}"}}, + "quicksight:DeleteFlow": {"action": "quicksight:DeleteFlow", "types": ["flow"], "resources": [{"type": "flow", "fill": {"ResourceId": "FlowId"}}], "located": {"FlowId": "{FlowId}"}}, + "quicksight:DeleteFolder": {"action": "quicksight:DeleteFolder", "types": ["folder"], "resources": [{"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:DeleteFolderMembership": {"action": "quicksight:DeleteFolderMembership", "types": ["analysis", "dashboard", "dataset", "folder"], "resources": [{"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:DeleteGroup": {"action": "quicksight:DeleteGroup", "types": ["group"], "resources": []}, + "quicksight:DeleteGroupMembership": {"action": "quicksight:DeleteGroupMembership", "types": ["group"], "resources": []}, + "quicksight:DeleteIAMPolicyAssignment": {"action": "quicksight:DeleteIAMPolicyAssignment", "types": ["assignment"], "resources": []}, + "quicksight:DeleteIdentityPropagationConfig": {"action": "quicksight:DeleteIdentityPropagationConfig", "types": [], "resources": []}, + "quicksight:DeleteKnowledgeBase": {"action": "quicksight:DeleteKnowledgeBase", "types": ["knowledgeBase"], "resources": [{"type": "knowledgeBase", "fill": {"ResourceId": "KnowledgeBaseId"}}], "located": {"KnowledgeBaseId": "{KnowledgeBaseId}"}}, + "quicksight:DeleteLimitsProfile": {"action": "quicksight:DeleteLimitsProfile", "types": ["limitsProfile"], "resources": [{"type": "limitsProfile", "fill": {"ResourceId": "profileId"}}], "located": {"profileId": "{profileId}"}}, + "quicksight:DeleteNamespace": {"action": "quicksight:DeleteNamespace", "types": ["namespace"], "resources": [{"type": "namespace", "fill": {"ResourceId": "Namespace"}}], "located": {"Namespace": "{Namespace}"}}, + "quicksight:DeleteOAuthClientApplication": {"action": "quicksight:DeleteOAuthClientApplication", "types": ["oauthClientApplication"], "resources": [{"type": "oauthClientApplication", "fill": {"ResourceId": "OAuthClientApplicationId"}}], "located": {"OAuthClientApplicationId": "{OAuthClientApplicationId}"}}, + "quicksight:DeleteRefreshSchedule": {"action": "quicksight:DeleteRefreshSchedule", "types": ["refreshschedule"], "resources": [{"type": "refreshschedule", "fill": {"DatasetId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:DeleteRoleCustomPermission": {"action": "quicksight:DeleteRoleCustomPermission", "types": [], "resources": []}, + "quicksight:DeleteRoleMembership": {"action": "quicksight:DeleteRoleMembership", "types": [], "resources": []}, + "quicksight:DeleteSpace": {"action": "quicksight:DeleteSpace", "types": ["space"], "resources": [{"type": "space", "fill": {"ResourceId": "SpaceId"}}], "located": {"SpaceId": "{SpaceId}"}}, + "quicksight:DeleteTemplate": {"action": "quicksight:DeleteTemplate", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:DeleteTemplateAlias": {"action": "quicksight:DeleteTemplateAlias", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:DeleteTheme": {"action": "quicksight:DeleteTheme", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:DeleteThemeAlias": {"action": "quicksight:DeleteThemeAlias", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:DeleteTopic": {"action": "quicksight:DeleteTopic", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:DeleteTopicRefreshSchedule": {"action": "quicksight:DeleteTopicRefreshSchedule", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:DeleteTopicV2": {"action": "quicksight:DeleteTopic", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:DeleteUser": {"action": "quicksight:DeleteUser", "types": ["user"], "resources": []}, + "quicksight:DeleteUserByPrincipalId": {"action": "quicksight:DeleteUserByPrincipalId", "types": ["user"], "resources": []}, + "quicksight:DeleteUserCustomPermission": {"action": "quicksight:DeleteUserCustomPermission", "types": ["user"], "resources": []}, + "quicksight:DeleteVPCConnection": {"action": "quicksight:DeleteVPCConnection", "types": ["vpcconnection"], "resources": [{"type": "vpcconnection", "fill": {"ResourceId": "VPCConnectionId"}}], "located": {"VPCConnectionId": "{VPCConnectionId}"}}, + "quicksight:DescribeAccountCustomPermission": {"action": "quicksight:DescribeAccountCustomPermission", "types": [], "resources": []}, + "quicksight:DescribeAccountCustomization": {"action": "quicksight:DescribeAccountCustomization", "types": ["customization"], "resources": []}, + "quicksight:DescribeAccountSettings": {"action": "quicksight:DescribeAccountSettings", "types": [], "resources": []}, + "quicksight:DescribeAccountSubscription": {"action": "quicksight:DescribeAccountSubscription", "types": ["account"], "resources": [{"type": "account", "fill": {"ResourceId": "AwsAccountId"}}], "located": {"AwsAccountId": "{AwsAccountId}"}}, + "quicksight:DescribeActionConnector": {"action": "quicksight:DescribeActionConnector", "types": ["actionconnector"], "resources": [{"type": "actionconnector", "fill": {"ResourceId": "ActionConnectorId"}}], "located": {"ActionConnectorId": "{ActionConnectorId}"}}, + "quicksight:DescribeActionConnectorPermissions": {"action": "quicksight:DescribeActionConnectorPermissions", "types": ["actionconnector"], "resources": [{"type": "actionconnector", "fill": {"ResourceId": "ActionConnectorId"}}], "located": {"ActionConnectorId": "{ActionConnectorId}"}}, + "quicksight:DescribeAgent": {"action": "quicksight:DescribeAgent", "types": ["agent"], "resources": [{"type": "agent", "fill": {"ResourceId": "AgentId"}}], "located": {"AgentId": "{AgentId}"}}, + "quicksight:DescribeAgentPermissions": {"action": "quicksight:DescribeAgentPermissions", "types": ["agent"], "resources": [{"type": "agent", "fill": {"ResourceId": "AgentId"}}], "located": {"AgentId": "{AgentId}"}}, + "quicksight:DescribeAnalysis": {"action": "quicksight:DescribeAnalysis", "types": ["analysis"], "resources": [{"type": "analysis", "fill": {"ResourceId": "AnalysisId"}}], "located": {"AnalysisId": "{AnalysisId}"}}, + "quicksight:DescribeAnalysisDefinition": {"action": "quicksight:DescribeAnalysis", "types": ["analysis"], "resources": [{"type": "analysis", "fill": {"ResourceId": "AnalysisId"}}], "located": {"AnalysisId": "{AnalysisId}"}}, + "quicksight:DescribeAnalysisPermissions": {"action": "quicksight:DescribeAnalysisPermissions", "types": ["analysis"], "resources": [{"type": "analysis", "fill": {"ResourceId": "AnalysisId"}}], "located": {"AnalysisId": "{AnalysisId}"}}, + "quicksight:DescribeApp": {"action": "quicksight:DescribeApp", "types": ["app"], "resources": [{"type": "app", "fill": {"ResourceId": "AppId"}}], "located": {"AppId": "{AppId}"}}, + "quicksight:DescribeAppPermissions": {"action": "quicksight:DescribeAppPermissions", "types": ["app"], "resources": [{"type": "app", "fill": {"ResourceId": "AppId"}}], "located": {"AppId": "{AppId}"}}, + "quicksight:DescribeApprovalPolicy": {"action": "quicksight:DescribeApprovalPolicy", "types": ["approvalPolicy"], "resources": [{"type": "approvalPolicy", "fill": {"ResourceId": "PolicyId"}}], "located": {"PolicyId": "{PolicyId}"}}, + "quicksight:DescribeAssetBundleExportJob": {"action": "quicksight:DescribeAssetBundleExportJob", "types": ["assetBundleExportJob"], "resources": [{"type": "assetBundleExportJob", "fill": {"ResourceId": "AssetBundleExportJobId"}}], "located": {"AssetBundleExportJobId": "{AssetBundleExportJobId}"}}, + "quicksight:DescribeAssetBundleImportJob": {"action": "quicksight:DescribeAssetBundleImportJob", "types": ["assetBundleImportJob"], "resources": [{"type": "assetBundleImportJob", "fill": {"ResourceId": "AssetBundleImportJobId"}}], "located": {"AssetBundleImportJobId": "{AssetBundleImportJobId}"}}, + "quicksight:DescribeAutomationJob": {"action": "quicksight:DescribeAutomationJob", "types": ["automationJob"], "resources": [{"type": "automationJob", "fill": {"AutomationGroupId": "AutomationGroupId", "AutomationId": "AutomationId"}}], "located": {"AutomationGroupId": "{AutomationGroupId}", "AutomationId": "{AutomationId}"}}, + "quicksight:DescribeBrand": {"action": "quicksight:DescribeBrand", "types": ["brand"], "resources": [{"type": "brand", "fill": {"ResourceId": "BrandId"}}], "located": {"BrandId": "{BrandId}"}}, + "quicksight:DescribeBrandAssignment": {"action": "quicksight:DescribeBrandAssignment", "types": [], "resources": []}, + "quicksight:DescribeBrandPublishedVersion": {"action": "quicksight:DescribeBrandPublishedVersion", "types": ["brand"], "resources": [{"type": "brand", "fill": {"ResourceId": "BrandId"}}], "located": {"BrandId": "{BrandId}"}}, + "quicksight:DescribeCustomPermissions": {"action": "quicksight:DescribeCustomPermissions", "types": ["custompermissions"], "resources": []}, + "quicksight:DescribeDashboard": {"action": "quicksight:DescribeDashboard", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:DescribeDashboardDefinition": {"action": "quicksight:DescribeDashboard", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:DescribeDashboardPermissions": {"action": "quicksight:DescribeDashboardPermissions", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:DescribeDashboardSnapshotJob": {"action": "quicksight:DescribeDashboardSnapshotJob", "types": ["dashboardSnapshotJob"], "resources": [{"type": "dashboardSnapshotJob", "fill": {"DashboardId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:DescribeDashboardSnapshotJobResult": {"action": "quicksight:DescribeDashboardSnapshotJobResult", "types": ["dashboardSnapshotJob"], "resources": [{"type": "dashboardSnapshotJob", "fill": {"DashboardId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:DescribeDashboardsQAConfiguration": {"action": "quicksight:DescribeDashboardsQAConfiguration", "types": [], "resources": []}, + "quicksight:DescribeDataSet": {"action": "quicksight:DescribeDataSet", "types": ["dataset"], "resources": [{"type": "dataset", "fill": {"ResourceId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:DescribeDataSetPermissions": {"action": "quicksight:DescribeDataSetPermissions", "types": ["dataset"], "resources": [{"type": "dataset", "fill": {"ResourceId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:DescribeDataSetRefreshProperties": {"action": "quicksight:DescribeDataSetRefreshProperties", "types": ["dataset"], "resources": [{"type": "dataset", "fill": {"ResourceId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:DescribeDataSource": {"action": "quicksight:DescribeDataSource", "types": ["datasource"], "resources": [{"type": "datasource", "fill": {"ResourceId": "DataSourceId"}}], "located": {"DataSourceId": "{DataSourceId}"}}, + "quicksight:DescribeDataSourcePermissions": {"action": "quicksight:DescribeDataSourcePermissions", "types": ["datasource"], "resources": [{"type": "datasource", "fill": {"ResourceId": "DataSourceId"}}], "located": {"DataSourceId": "{DataSourceId}"}}, + "quicksight:DescribeDefaultQBusinessApplication": {"action": "quicksight:DescribeDefaultQBusinessApplication", "types": [], "resources": []}, + "quicksight:DescribeDlpSetting": {"action": "quicksight:DescribeDlpSetting", "types": ["dlpSetting"], "resources": [{"type": "dlpSetting", "fill": {"ResourceId": "DlpSettingId"}}], "located": {"DlpSettingId": "{DlpSettingId}"}}, + "quicksight:DescribeFlow": {"action": "quicksight:DescribeFlow", "types": ["flow"], "resources": [{"type": "flow", "fill": {"ResourceId": "FlowId"}}], "located": {"FlowId": "{FlowId}"}}, + "quicksight:DescribeFolder": {"action": "quicksight:DescribeFolder", "types": ["folder"], "resources": [{"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:DescribeFolderPermissions": {"action": "quicksight:DescribeFolderPermissions", "types": ["folder"], "resources": [{"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:DescribeFolderResolvedPermissions": {"action": "quicksight:DescribeFolderResolvedPermissions", "types": ["folder"], "resources": [{"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:DescribeGroup": {"action": "quicksight:DescribeGroup", "types": ["group"], "resources": []}, + "quicksight:DescribeGroupMembership": {"action": "quicksight:DescribeGroupMembership", "types": ["group"], "resources": []}, + "quicksight:DescribeIAMPolicyAssignment": {"action": "quicksight:DescribeIAMPolicyAssignment", "types": ["assignment"], "resources": []}, + "quicksight:DescribeIngestion": {"action": "quicksight:DescribeIngestion", "types": ["ingestion"], "resources": [{"type": "ingestion", "fill": {"DatasetId": "DataSetId", "ResourceId": "IngestionId"}}], "located": {"DataSetId": "{DataSetId}", "IngestionId": "{IngestionId}"}}, + "quicksight:DescribeIpRestriction": {"action": "quicksight:DescribeIpRestriction", "types": [], "resources": []}, + "quicksight:DescribeKeyRegistration": {"action": "quicksight:DescribeKeyRegistration", "types": [], "resources": []}, + "quicksight:DescribeKnowledgeBase": {"action": "quicksight:DescribeKnowledgeBase", "types": ["knowledgeBase"], "resources": [{"type": "knowledgeBase", "fill": {"ResourceId": "KnowledgeBaseId"}}], "located": {"KnowledgeBaseId": "{KnowledgeBaseId}"}}, + "quicksight:DescribeKnowledgeBasePermissions": {"action": "quicksight:DescribeKnowledgeBasePermissions", "types": ["knowledgeBase"], "resources": [{"type": "knowledgeBase", "fill": {"ResourceId": "KnowledgeBaseId"}}], "located": {"KnowledgeBaseId": "{KnowledgeBaseId}"}}, + "quicksight:DescribeLimitsProfile": {"action": "quicksight:DescribeLimitsProfile", "types": ["limitsProfile"], "resources": [{"type": "limitsProfile", "fill": {"ResourceId": "profileId"}}], "located": {"profileId": "{profileId}"}}, + "quicksight:DescribeNamespace": {"action": "quicksight:DescribeNamespace", "types": ["namespace"], "resources": [{"type": "namespace", "fill": {"ResourceId": "Namespace"}}], "located": {"Namespace": "{Namespace}"}}, + "quicksight:DescribeOAuthClientApplication": {"action": "quicksight:DescribeOAuthClientApplication", "types": ["oauthClientApplication"], "resources": [{"type": "oauthClientApplication", "fill": {"ResourceId": "OAuthClientApplicationId"}}], "located": {"OAuthClientApplicationId": "{OAuthClientApplicationId}"}}, + "quicksight:DescribeQPersonalizationConfiguration": {"action": "quicksight:DescribeQPersonalizationConfiguration", "types": [], "resources": []}, + "quicksight:DescribeQuickSightQSearchConfiguration": {"action": "quicksight:DescribeQuickSightQSearchConfiguration", "types": [], "resources": []}, + "quicksight:DescribeRefreshSchedule": {"action": "quicksight:DescribeRefreshSchedule", "types": ["refreshschedule"], "resources": [{"type": "refreshschedule", "fill": {"DatasetId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:DescribeRoleCustomPermission": {"action": "quicksight:DescribeRoleCustomPermission", "types": [], "resources": []}, + "quicksight:DescribeSelfUpgradeConfiguration": {"action": "quicksight:DescribeSelfUpgradeConfiguration", "types": [], "resources": []}, + "quicksight:DescribeSpace": {"action": "quicksight:DescribeSpace", "types": ["space"], "resources": [{"type": "space", "fill": {"ResourceId": "SpaceId"}}], "located": {"SpaceId": "{SpaceId}"}}, + "quicksight:DescribeSpacePermissions": {"action": "quicksight:DescribeSpacePermissions", "types": ["space"], "resources": [{"type": "space", "fill": {"ResourceId": "SpaceId"}}], "located": {"SpaceId": "{SpaceId}"}}, + "quicksight:DescribeTemplate": {"action": "quicksight:DescribeTemplate", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:DescribeTemplateAlias": {"action": "quicksight:DescribeTemplateAlias", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:DescribeTemplateDefinition": {"action": "quicksight:DescribeTemplate", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:DescribeTemplatePermissions": {"action": "quicksight:DescribeTemplatePermissions", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:DescribeTheme": {"action": "quicksight:DescribeTheme", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:DescribeThemeAlias": {"action": "quicksight:DescribeThemeAlias", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:DescribeThemePermissions": {"action": "quicksight:DescribeThemePermissions", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:DescribeTopic": {"action": "quicksight:DescribeTopic", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:DescribeTopicPermissions": {"action": "quicksight:DescribeTopicPermissions", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:DescribeTopicPermissionsV2": {"action": "quicksight:DescribeTopicPermissions", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:DescribeTopicRefresh": {"action": "quicksight:DescribeTopicRefresh", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:DescribeTopicRefreshSchedule": {"action": "quicksight:DescribeTopicRefreshSchedule", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:DescribeTopicV2": {"action": "quicksight:DescribeTopic", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:DescribeUser": {"action": "quicksight:DescribeUser", "types": ["user"], "resources": [{"type": "user", "fill": {}, "find": ["AwsAccountId", "Namespace", "UserName"]}], "located": {"AwsAccountId": "{AwsAccountId}", "Namespace": "{Namespace}", "UserName": "{UserName}"}}, + "quicksight:DescribeVPCConnection": {"action": "quicksight:DescribeVPCConnection", "types": ["vpcconnection"], "resources": [{"type": "vpcconnection", "fill": {"ResourceId": "VPCConnectionId"}}], "located": {"VPCConnectionId": "{VPCConnectionId}"}}, + "quicksight:GenerateEmbedUrlForAnonymousUser": {"action": "quicksight:GenerateEmbedUrlForAnonymousUser", "types": ["dashboard", "namespace", "theme", "topic"], "resources": [{"types": ["dashboard", "namespace", "theme", "topic"], "arn": "AuthorizedResourceArns[]"}, {"type": "namespace", "fill": {"ResourceId": "Namespace"}}]}, + "quicksight:GenerateEmbedUrlForRegisteredUser": {"action": "quicksight:GenerateEmbedUrlForRegisteredUser", "types": ["user"], "resources": [{"types": ["user"], "arn": "UserArn"}]}, + "quicksight:GenerateEmbedUrlForRegisteredUserWithIdentity": {"action": "quicksight:GenerateEmbedUrlForRegisteredUserWithIdentity", "types": [], "resources": []}, + "quicksight:GetDashboardEmbedUrl": {"action": "quicksight:GetDashboardEmbedUrl", "types": ["dashboard"], "resources": [{"types": ["dashboard"], "arn": "UserArn"}, {"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}", "UserArn": "?user-arn"}}, + "quicksight:GetFlowMetadata": {"action": "quicksight:GetFlowMetadata", "types": ["flow"], "resources": [{"type": "flow", "fill": {"ResourceId": "FlowId"}}], "located": {"FlowId": "{FlowId}"}}, + "quicksight:GetFlowPermissions": {"action": "quicksight:GetFlowPermissions", "types": ["flow"], "resources": [{"type": "flow", "fill": {"ResourceId": "FlowId"}}], "located": {"FlowId": "{FlowId}"}}, + "quicksight:GetIdentityContext": {"action": "quicksight:GetIdentityContext", "types": ["user"], "resources": [{"types": ["user"], "arn": "UserIdentifier.UserArn"}]}, + "quicksight:GetSessionEmbedUrl": {"action": "quicksight:GetSessionEmbedUrl", "types": [], "resources": []}, + "quicksight:ListActionConnectors": {"action": "quicksight:ListActionConnectors", "types": [], "resources": []}, + "quicksight:ListAgents": {"action": "quicksight:ListAgents", "types": ["agent"], "resources": []}, + "quicksight:ListAnalyses": {"action": "quicksight:ListAnalyses", "types": ["analysis"], "resources": []}, + "quicksight:ListApprovalPolicies": {"action": "quicksight:ListApprovalPolicies", "types": ["approvalPolicy"], "resources": []}, + "quicksight:ListApps": {"action": "quicksight:ListApps", "types": ["app"], "resources": []}, + "quicksight:ListAssetBundleExportJobs": {"action": "quicksight:ListAssetBundleExportJobs", "types": ["assetBundleExportJob"], "resources": []}, + "quicksight:ListAssetBundleImportJobs": {"action": "quicksight:ListAssetBundleImportJobs", "types": ["assetBundleImportJob"], "resources": []}, + "quicksight:ListBrands": {"action": "quicksight:ListBrands", "types": [], "resources": []}, + "quicksight:ListCustomPermissions": {"action": "quicksight:ListCustomPermissions", "types": [], "resources": []}, + "quicksight:ListDashboardVersions": {"action": "quicksight:ListDashboardVersions", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:ListDashboards": {"action": "quicksight:ListDashboards", "types": ["dashboard"], "resources": []}, + "quicksight:ListDataSets": {"action": "quicksight:ListDataSets", "types": [], "resources": []}, + "quicksight:ListDataSources": {"action": "quicksight:ListDataSources", "types": [], "resources": []}, + "quicksight:ListDlpSettings": {"action": "quicksight:ListDlpSettings", "types": ["dlpSetting"], "resources": []}, + "quicksight:ListFlows": {"action": "quicksight:ListFlows", "types": [], "resources": []}, + "quicksight:ListFolderMembers": {"action": "quicksight:ListFolderMembers", "types": ["folder"], "resources": [{"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:ListFolders": {"action": "quicksight:ListFolders", "types": ["folder"], "resources": []}, + "quicksight:ListFoldersForResource": {"action": "quicksight:ListFoldersForResource", "types": ["analysis", "dashboard", "dataset", "datasource", "topic"], "resources": [{"types": ["analysis", "dashboard", "dataset", "datasource", "topic"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}}, + "quicksight:ListGroupMemberships": {"action": "quicksight:ListGroupMemberships", "types": ["group"], "resources": []}, + "quicksight:ListGroups": {"action": "quicksight:ListGroups", "types": ["group"], "resources": []}, + "quicksight:ListIAMPolicyAssignments": {"action": "quicksight:ListIAMPolicyAssignments", "types": ["assignment"], "resources": []}, + "quicksight:ListIAMPolicyAssignmentsForUser": {"action": "quicksight:ListIAMPolicyAssignmentsForUser", "types": ["assignment"], "resources": []}, + "quicksight:ListIdentityPropagationConfigs": {"action": "quicksight:ListIdentityPropagationConfigs", "types": [], "resources": []}, + "quicksight:ListIngestions": {"action": "quicksight:ListIngestions", "types": [], "resources": []}, + "quicksight:ListKnowledgeBases": {"action": "quicksight:ListKnowledgeBases", "types": [], "resources": []}, + "quicksight:ListLimitsProfiles": {"action": "quicksight:ListLimitsProfiles", "types": ["limitsProfile"], "resources": []}, + "quicksight:ListNamespaces": {"action": "quicksight:ListNamespaces", "types": [], "resources": []}, + "quicksight:ListOAuthClientApplications": {"action": "quicksight:ListOAuthClientApplications", "types": [], "resources": []}, + "quicksight:ListRefreshSchedules": {"action": "quicksight:ListRefreshSchedules", "types": [], "resources": []}, + "quicksight:ListRoleMemberships": {"action": "quicksight:ListRoleMemberships", "types": [], "resources": []}, + "quicksight:ListSelfUpgrades": {"action": "quicksight:ListSelfUpgrades", "types": ["user"], "resources": []}, + "quicksight:ListSpaceResources": {"action": "quicksight:ListSpaceResources", "types": ["space"], "resources": [{"type": "space", "fill": {"ResourceId": "SpaceId"}}], "located": {"SpaceId": "{SpaceId}"}}, + "quicksight:ListSpaces": {"action": "quicksight:ListSpaces", "types": [], "resources": []}, + "quicksight:ListTagsForResource": {"action": "quicksight:ListTagsForResource", "types": ["accessControlApplication", "actionconnector", "analysis", "app", "brand", "customization", "custompermissions", "dashboard", "dataset", "datasource", "dlpSetting", "emailCustomizationTemplate", "flow", "folder", "inboundConnector", "namespace", "oauthClientApplication", "template", "theme", "topic", "user", "vpcconnection"], "resources": [{"types": ["accessControlApplication", "actionconnector", "analysis", "app", "brand", "customization", "custompermissions", "dashboard", "dataset", "datasource", "dlpSetting", "emailCustomizationTemplate", "flow", "folder", "inboundConnector", "namespace", "oauthClientApplication", "template", "theme", "topic", "user", "vpcconnection"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}}, + "quicksight:ListTemplateAliases": {"action": "quicksight:ListTemplateAliases", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:ListTemplateVersions": {"action": "quicksight:ListTemplateVersions", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:ListTemplates": {"action": "quicksight:ListTemplates", "types": ["template"], "resources": []}, + "quicksight:ListThemeAliases": {"action": "quicksight:ListThemeAliases", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:ListThemeVersions": {"action": "quicksight:ListThemeVersions", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:ListThemes": {"action": "quicksight:ListThemes", "types": ["theme"], "resources": []}, + "quicksight:ListTopicRefreshSchedules": {"action": "quicksight:ListTopicRefreshSchedules", "types": [], "resources": []}, + "quicksight:ListTopicReviewedAnswers": {"action": "quicksight:ListTopicReviewedAnswers", "types": [], "resources": []}, + "quicksight:ListTopics": {"action": "quicksight:ListTopics", "types": [], "resources": []}, + "quicksight:ListTopicsV2": {"action": "quicksight:ListTopics", "types": [], "resources": []}, + "quicksight:ListUserGroups": {"action": "quicksight:ListUserGroups", "types": ["user"], "resources": []}, + "quicksight:ListUsers": {"action": "quicksight:ListUsers", "types": ["user"], "resources": []}, + "quicksight:ListUsersIndexCapacity": {"action": "quicksight:ListUsersIndexCapacity", "types": [], "resources": []}, + "quicksight:ListVPCConnections": {"action": "quicksight:ListVPCConnections", "types": [], "resources": []}, + "quicksight:PredictQAResults": {"action": "quicksight:PredictQAResults", "types": ["dashboard", "topic"], "resources": []}, + "quicksight:PutDataSetRefreshProperties": {"action": "quicksight:PutDataSetRefreshProperties", "types": ["dataset"], "resources": [{"type": "dataset", "fill": {"ResourceId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:RegisterUser": {"action": "quicksight:RegisterUser", "types": ["user"], "resources": [{"type": "user", "fill": {}, "find": ["AwsAccountId", "Namespace", "UserName"]}], "located": {"AwsAccountId": "{AwsAccountId}", "Namespace": "{Namespace}"}}, + "quicksight:RestoreAnalysis": {"action": "quicksight:RestoreAnalysis", "types": ["analysis"], "resources": [{"type": "analysis", "fill": {"ResourceId": "AnalysisId"}}], "located": {"AnalysisId": "{AnalysisId}"}}, + "quicksight:SearchActionConnectors": {"action": "quicksight:SearchActionConnectors", "types": ["actionconnector"], "resources": []}, + "quicksight:SearchAgents": {"action": "quicksight:SearchAgents", "types": ["agent"], "resources": []}, + "quicksight:SearchAnalyses": {"action": "quicksight:SearchAnalyses", "types": ["analysis"], "resources": []}, + "quicksight:SearchApps": {"action": "quicksight:SearchApps", "types": ["app"], "resources": []}, + "quicksight:SearchDashboards": {"action": "quicksight:SearchDashboards", "types": ["dashboard"], "resources": []}, + "quicksight:SearchDataSets": {"action": "quicksight:SearchDataSets", "types": ["dataset"], "resources": []}, + "quicksight:SearchDataSources": {"action": "quicksight:SearchDataSources", "types": ["datasource"], "resources": []}, + "quicksight:SearchFlows": {"action": "quicksight:SearchFlows", "types": [], "resources": []}, + "quicksight:SearchFolders": {"action": "quicksight:SearchFolders", "types": ["folder"], "resources": []}, + "quicksight:SearchGroups": {"action": "quicksight:SearchGroups", "types": ["group"], "resources": []}, + "quicksight:SearchKnowledgeBases": {"action": "quicksight:SearchKnowledgeBases", "types": ["knowledgeBase"], "resources": []}, + "quicksight:SearchSpaces": {"action": "quicksight:SearchSpaces", "types": [], "resources": []}, + "quicksight:SearchTopics": {"action": "quicksight:SearchTopics", "types": ["topic"], "resources": []}, + "quicksight:SearchTopicsV2": {"action": "quicksight:SearchTopics", "types": ["topic"], "resources": []}, + "quicksight:StartAssetBundleExportJob": {"action": "quicksight:StartAssetBundleExportJob", "types": ["assetBundleExportJob"], "resources": [{"types": ["assetBundleExportJob"], "arn": "ResourceArns[]"}, {"type": "assetBundleExportJob", "fill": {"ResourceId": "AssetBundleExportJobId"}}]}, + "quicksight:StartAssetBundleImportJob": {"action": "quicksight:StartAssetBundleImportJob", "types": ["assetBundleImportJob"], "resources": [{"type": "assetBundleImportJob", "fill": {"ResourceId": "AssetBundleImportJobId"}}]}, + "quicksight:StartAutomationJob": {"action": "quicksight:StartAutomationJob", "types": ["automation"], "resources": [{"type": "automation", "fill": {"AutomationGroupId": "AutomationGroupId"}}], "located": {"AutomationGroupId": "{AutomationGroupId}"}}, + "quicksight:StartDashboardSnapshotJob": {"action": "quicksight:StartDashboardSnapshotJob", "types": ["dashboardSnapshotJob"], "resources": [{"type": "dashboardSnapshotJob", "fill": {"DashboardId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:StartDashboardSnapshotJobSchedule": {"action": "quicksight:StartDashboardSnapshotJobSchedule", "types": [], "resources": []}, + "quicksight:TagResource": {"action": "quicksight:TagResource", "types": ["accessControlApplication", "actionconnector", "analysis", "app", "brand", "customization", "custompermissions", "dashboard", "dataset", "datasource", "dlpSetting", "emailCustomizationTemplate", "flow", "folder", "inboundConnector", "ingestion", "namespace", "oauthClientApplication", "template", "theme", "topic", "user", "vpcconnection"], "resources": [{"types": ["accessControlApplication", "actionconnector", "analysis", "app", "brand", "customization", "custompermissions", "dashboard", "dataset", "datasource", "dlpSetting", "emailCustomizationTemplate", "flow", "folder", "inboundConnector", "ingestion", "namespace", "oauthClientApplication", "template", "theme", "topic", "user", "vpcconnection"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}}, + "quicksight:UntagResource": {"action": "quicksight:UntagResource", "types": ["accessControlApplication", "actionconnector", "analysis", "app", "brand", "customization", "custompermissions", "dashboard", "dataset", "datasource", "dlpSetting", "emailCustomizationTemplate", "flow", "folder", "inboundConnector", "ingestion", "namespace", "oauthClientApplication", "template", "theme", "topic", "user", "vpcconnection"], "resources": [{"types": ["accessControlApplication", "actionconnector", "analysis", "app", "brand", "customization", "custompermissions", "dashboard", "dataset", "datasource", "dlpSetting", "emailCustomizationTemplate", "flow", "folder", "inboundConnector", "ingestion", "namespace", "oauthClientApplication", "template", "theme", "topic", "user", "vpcconnection"], "arn": "ResourceArn"}], "located": {"ResourceArn": "{ResourceArn}"}}, + "quicksight:UpdateAccountCustomPermission": {"action": "quicksight:UpdateAccountCustomPermission", "types": [], "resources": []}, + "quicksight:UpdateAccountCustomization": {"action": "quicksight:UpdateAccountCustomization", "types": ["customization"], "resources": []}, + "quicksight:UpdateAccountSettings": {"action": "quicksight:UpdateAccountSettings", "types": [], "resources": []}, + "quicksight:UpdateActionConnector": {"action": "quicksight:UpdateActionConnector", "types": ["actionconnector"], "resources": [{"types": ["actionconnector"], "arn": "VpcConnectionArn"}, {"type": "actionconnector", "fill": {"ResourceId": "ActionConnectorId"}}], "located": {"ActionConnectorId": "{ActionConnectorId}"}}, + "quicksight:UpdateActionConnectorPermissions": {"action": "quicksight:UpdateActionConnectorPermissions", "types": ["actionconnector"], "resources": [{"type": "actionconnector", "fill": {"ResourceId": "ActionConnectorId"}}], "located": {"ActionConnectorId": "{ActionConnectorId}"}}, + "quicksight:UpdateAgent": {"action": "quicksight:UpdateAgent", "types": ["agent"], "resources": [{"type": "agent", "fill": {"ResourceId": "AgentId"}}], "located": {"AgentId": "{AgentId}"}}, + "quicksight:UpdateAgentPermissions": {"action": "quicksight:UpdateAgentPermissions", "types": ["agent"], "resources": [{"type": "agent", "fill": {"ResourceId": "AgentId"}}], "located": {"AgentId": "{AgentId}"}}, + "quicksight:UpdateAnalysis": {"action": "quicksight:UpdateAnalysis", "types": ["analysis"], "resources": [{"types": ["analysis"], "arn": "ThemeArn"}, {"type": "analysis", "fill": {"ResourceId": "AnalysisId"}}], "located": {"AnalysisId": "{AnalysisId}"}}, + "quicksight:UpdateAnalysisPermissions": {"action": "quicksight:UpdateAnalysisPermissions", "types": ["analysis"], "resources": [{"type": "analysis", "fill": {"ResourceId": "AnalysisId"}}], "located": {"AnalysisId": "{AnalysisId}"}}, + "quicksight:UpdateAppPermissions": {"action": "quicksight:UpdateAppPermissions", "types": ["app"], "resources": [{"type": "app", "fill": {"ResourceId": "AppId"}}], "located": {"AppId": "{AppId}"}}, + "quicksight:UpdateApplicationWithTokenExchangeGrant": {"action": "quicksight:UpdateApplicationWithTokenExchangeGrant", "types": [], "resources": []}, + "quicksight:UpdateApprovalPolicy": {"action": "quicksight:UpdateApprovalPolicy", "types": ["approvalPolicy"], "resources": [{"types": ["approvalPolicy"], "arn": "ApplicableTo.GroupArns[]"}, {"type": "approvalPolicy", "fill": {"ResourceId": "PolicyId"}}], "located": {"PolicyId": "{PolicyId}"}}, + "quicksight:UpdateBrand": {"action": "quicksight:UpdateBrand", "types": ["brand"], "resources": [{"type": "brand", "fill": {"ResourceId": "BrandId"}}], "located": {"BrandId": "{BrandId}"}}, + "quicksight:UpdateBrandAssignment": {"action": "quicksight:UpdateBrandAssignment", "types": [], "resources": []}, + "quicksight:UpdateBrandPublishedVersion": {"action": "quicksight:UpdateBrandPublishedVersion", "types": ["brand"], "resources": [{"type": "brand", "fill": {"ResourceId": "BrandId"}}], "located": {"BrandId": "{BrandId}"}}, + "quicksight:UpdateCustomPermissions": {"action": "quicksight:UpdateCustomPermissions", "types": ["custompermissions"], "resources": []}, + "quicksight:UpdateDashboard": {"action": "quicksight:UpdateDashboard", "types": ["dashboard"], "resources": [{"types": ["dashboard"], "arn": "ThemeArn"}, {"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:UpdateDashboardLinks": {"action": "quicksight:UpdateDashboardLinks", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:UpdateDashboardPermissions": {"action": "quicksight:UpdateDashboardPermissions", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:UpdateDashboardPublishedVersion": {"action": "quicksight:UpdateDashboardPublishedVersion", "types": ["dashboard"], "resources": [{"type": "dashboard", "fill": {"ResourceId": "DashboardId"}}], "located": {"DashboardId": "{DashboardId}"}}, + "quicksight:UpdateDashboardsQAConfiguration": {"action": "quicksight:UpdateDashboardsQAConfiguration", "types": [], "resources": []}, + "quicksight:UpdateDataSet": {"action": "quicksight:UpdateDataSet", "types": ["dataset", "datasource"], "resources": [{"types": ["dataset", "datasource"], "arn": "RowLevelPermissionDataSet.Arn"}, {"type": "dataset", "fill": {"ResourceId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:UpdateDataSetPermissions": {"action": "quicksight:UpdateDataSetPermissions", "types": ["dataset"], "resources": [{"type": "dataset", "fill": {"ResourceId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:UpdateDataSource": {"action": "quicksight:UpdateDataSource", "types": ["datasource"], "resources": [{"types": ["datasource"], "arn": "Credentials.CopySourceArn"}, {"types": ["datasource"], "arn": "Credentials.SecretArn"}, {"types": ["datasource"], "arn": "VpcConnectionProperties.VpcConnectionArn"}, {"type": "datasource", "fill": {"ResourceId": "DataSourceId"}}], "located": {"DataSourceId": "{DataSourceId}"}}, + "quicksight:UpdateDataSourcePermissions": {"action": "quicksight:UpdateDataSourcePermissions", "types": ["datasource"], "resources": [{"type": "datasource", "fill": {"ResourceId": "DataSourceId"}}], "located": {"DataSourceId": "{DataSourceId}"}}, + "quicksight:UpdateDefaultQBusinessApplication": {"action": "quicksight:UpdateDefaultQBusinessApplication", "types": [], "resources": []}, + "quicksight:UpdateDlpSetting": {"action": "quicksight:UpdateDlpSetting", "types": ["dlpSetting"], "resources": [{"type": "dlpSetting", "fill": {"ResourceId": "DlpSettingId"}}], "located": {"DlpSettingId": "{DlpSettingId}"}}, + "quicksight:UpdateFlow": {"action": "quicksight:UpdateFlow", "types": ["flow"], "resources": [{"type": "flow", "fill": {"ResourceId": "FlowId"}}], "located": {"FlowId": "{FlowId}"}}, + "quicksight:UpdateFlowPermissions": {"action": "quicksight:UpdateFlowPermissions", "types": ["flow"], "resources": [{"type": "flow", "fill": {"ResourceId": "FlowId"}}], "located": {"FlowId": "{FlowId}"}}, + "quicksight:UpdateFolder": {"action": "quicksight:UpdateFolder", "types": ["folder"], "resources": [{"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:UpdateFolderPermissions": {"action": "quicksight:UpdateFolderPermissions", "types": ["folder"], "resources": [{"type": "folder", "fill": {"ResourceId": "FolderId"}}], "located": {"FolderId": "{FolderId}"}}, + "quicksight:UpdateGroup": {"action": "quicksight:UpdateGroup", "types": ["group"], "resources": []}, + "quicksight:UpdateIAMPolicyAssignment": {"action": "quicksight:UpdateIAMPolicyAssignment", "types": ["assignment"], "resources": [{"types": ["assignment"], "arn": "PolicyArn"}]}, + "quicksight:UpdateIdentityPropagationConfig": {"action": "quicksight:UpdateIdentityPropagationConfig", "types": [], "resources": []}, + "quicksight:UpdateIpRestriction": {"action": "quicksight:UpdateIpRestriction", "types": [], "resources": []}, + "quicksight:UpdateKeyRegistration": {"action": "quicksight:UpdateKeyRegistration", "types": [], "resources": []}, + "quicksight:UpdateKnowledgeBase": {"action": "quicksight:UpdateKnowledgeBase", "types": ["knowledgeBase"], "resources": [{"type": "knowledgeBase", "fill": {"ResourceId": "KnowledgeBaseId"}}], "located": {"KnowledgeBaseId": "{KnowledgeBaseId}"}}, + "quicksight:UpdateKnowledgeBasePermissions": {"action": "quicksight:UpdateKnowledgeBasePermissions", "types": ["knowledgeBase"], "resources": [{"type": "knowledgeBase", "fill": {"ResourceId": "KnowledgeBaseId"}}], "located": {"KnowledgeBaseId": "{KnowledgeBaseId}"}}, + "quicksight:UpdateLimitsProfile": {"action": "quicksight:UpdateLimitsProfile", "types": ["limitsProfile"], "resources": [{"type": "limitsProfile", "fill": {"ResourceId": "profileId"}}], "located": {"profileId": "{profileId}"}}, + "quicksight:UpdateOAuthClientApplication": {"action": "quicksight:UpdateOAuthClientApplication", "types": ["oauthClientApplication"], "resources": [{"types": ["oauthClientApplication"], "arn": "IdentityProviderVpcConnectionProperties.VpcConnectionArn"}, {"type": "oauthClientApplication", "fill": {"ResourceId": "OAuthClientApplicationId"}}], "located": {"OAuthClientApplicationId": "{OAuthClientApplicationId}"}}, + "quicksight:UpdatePublicSharingSettings": {"action": "quicksight:UpdatePublicSharingSettings", "types": [], "resources": []}, + "quicksight:UpdateQPersonalizationConfiguration": {"action": "quicksight:UpdateQPersonalizationConfiguration", "types": [], "resources": []}, + "quicksight:UpdateQuickSightQSearchConfiguration": {"action": "quicksight:UpdateQuickSightQSearchConfiguration", "types": [], "resources": []}, + "quicksight:UpdateRefreshSchedule": {"action": "quicksight:UpdateRefreshSchedule", "types": ["refreshschedule"], "resources": [{"types": ["refreshschedule"], "arn": "Schedule.Arn"}, {"type": "refreshschedule", "fill": {"DatasetId": "DataSetId"}}], "located": {"DataSetId": "{DataSetId}"}}, + "quicksight:UpdateRoleCustomPermission": {"action": "quicksight:UpdateRoleCustomPermission", "types": [], "resources": []}, + "quicksight:UpdateSPICECapacityConfiguration": {"action": "quicksight:UpdateSPICECapacityConfiguration", "types": [], "resources": []}, + "quicksight:UpdateSelfUpgrade": {"action": "quicksight:UpdateSelfUpgrade", "types": ["user"], "resources": []}, + "quicksight:UpdateSelfUpgradeConfiguration": {"action": "quicksight:UpdateSelfUpgradeConfiguration", "types": [], "resources": []}, + "quicksight:UpdateSpace": {"action": "quicksight:UpdateSpace", "types": ["space"], "resources": [{"type": "space", "fill": {"ResourceId": "SpaceId"}}], "located": {"SpaceId": "{SpaceId}"}}, + "quicksight:UpdateSpacePermissions": {"action": "quicksight:UpdateSpacePermissions", "types": ["space"], "resources": [{"type": "space", "fill": {"ResourceId": "SpaceId"}}], "located": {"SpaceId": "{SpaceId}"}}, + "quicksight:UpdateSpaceResources": {"action": "quicksight:UpdateSpaceResources", "types": ["space"], "resources": [{"type": "space", "fill": {"ResourceId": "SpaceId"}}], "located": {"SpaceId": "{SpaceId}"}}, + "quicksight:UpdateTemplate": {"action": "quicksight:UpdateTemplate", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:UpdateTemplateAlias": {"action": "quicksight:UpdateTemplateAlias", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:UpdateTemplatePermissions": {"action": "quicksight:UpdateTemplatePermissions", "types": ["template"], "resources": [{"type": "template", "fill": {"ResourceId": "TemplateId"}}], "located": {"TemplateId": "{TemplateId}"}}, + "quicksight:UpdateTheme": {"action": "quicksight:UpdateTheme", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:UpdateThemeAlias": {"action": "quicksight:UpdateThemeAlias", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:UpdateThemePermissions": {"action": "quicksight:UpdateThemePermissions", "types": ["theme"], "resources": [{"type": "theme", "fill": {"ResourceId": "ThemeId"}}], "located": {"ThemeId": "{ThemeId}"}}, + "quicksight:UpdateTopic": {"action": "quicksight:UpdateTopic", "types": ["dataset", "topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:UpdateTopicPermissions": {"action": "quicksight:UpdateTopicPermissions", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:UpdateTopicPermissionsV2": {"action": "quicksight:UpdateTopicPermissions", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:UpdateTopicRefreshSchedule": {"action": "quicksight:UpdateTopicRefreshSchedule", "types": ["topic"], "resources": [{"type": "topic", "fill": {"ResourceId": "TopicId"}}], "located": {"TopicId": "{TopicId}"}}, + "quicksight:UpdateTopicV2": {"action": "quicksight:UpdateTopicV2", "types": [], "resources": []}, + "quicksight:UpdateUser": {"action": "quicksight:UpdateUser", "types": ["user"], "resources": []}, + "quicksight:UpdateUserCustomPermission": {"action": "quicksight:UpdateUserCustomPermission", "types": ["user"], "resources": []}, + "quicksight:UpdateVPCConnection": {"action": "quicksight:UpdateVPCConnection", "types": ["vpcconnection"], "resources": [{"types": ["vpcconnection"], "arn": "RoleArn"}, {"type": "vpcconnection", "fill": {"ResourceId": "VPCConnectionId"}}], "located": {"VPCConnectionId": "{VPCConnectionId}"}}, "redshift-data:BatchExecuteStatement": {"action": "redshift-data:BatchExecuteStatement", "types": ["cluster", "workgroup"], "resources": [{"types": ["cluster", "workgroup"], "arn": "SecretArn"}, {"type": "cluster", "fill": {"ClusterName": "ClusterIdentifier"}}, {"type": "workgroup", "fill": {}, "find": ["WorkgroupName"]}, {"types": ["cluster", "workgroup"], "through": "SessionId"}]}, "redshift-data:CancelStatement": {"action": "redshift-data:CancelStatement", "types": [], "resources": []}, "redshift-data:DescribeStatement": {"action": "redshift-data:DescribeStatement", "types": [], "resources": []}, diff --git a/src/main/resources/aws/iam-tag-on-create.json b/src/main/resources/aws/iam-tag-on-create.json index a566e7aab3..3c41bd13ad 100644 --- a/src/main/resources/aws/iam-tag-on-create.json +++ b/src/main/resources/aws/iam-tag-on-create.json @@ -1,8 +1,8 @@ { "_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-05", "note": "make iam-tag-on-create-check re-derives every member from botocore; make iam-tag-on-create-verify checks every operation against AWS."}, "namespaces": {"access-analyzer": ["accessanalyzer"], "acm": ["acm"], "application-autoscaling": ["application-autoscaling"], "athena": ["athena"], "autoscaling": ["autoscaling"], "bcm-data-exports": ["bcm-data-exports"], "bcm-pricing-calculator": ["bcm-pricing-calculator"], "budgets": ["budgets"], "ce": ["ce"], "cloudformation": ["cloudformation"], "cloudhsm": ["cloudhsmv2"], "cloudtrail": ["cloudtrail"], "cloudwatch": ["cloudwatch", "cloudwatchomni"], "codedeploy": ["codedeploy"], "codepipeline": ["codepipeline"], "cognito-identity": ["cognito-identity"], "cognito-idp": ["cognito-idp"], "comprehend": ["comprehend"], "config": ["config"], "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"], "events": ["eventbridgev2", "events"], "firehose": ["firehose"], "globalaccelerator": ["globalaccelerator"], "glue": ["glue"], "iam": ["iam"], "kinesis": ["kinesis"], "kinesisanalytics": ["kinesisanalytics", "kinesisanalyticsv2"], "kms": ["kms"], "lambda": ["lambda", "lambda-core", "lambda-microvms", "lambda-web"], "lightsail": ["lightsail"], "logs": ["logs"], "memorydb": ["memorydb"], "network-firewall": ["network-firewall"], "organizations": ["organizations"], "payment-cryptography": ["payment-cryptography"], "pipes": ["pipes"], "rds": ["docdb", "neptune", "rds"], "redshift": ["redshift"], "redshift-serverless": ["redshift-serverless"], "rekognition": ["rekognition"], "resource-groups": ["resource-groups"], "route53resolver": ["route53resolver"], "sagemaker": ["sagemaker"], "scheduler": ["scheduler"], "secretsmanager": ["secretsmanager"], "servicediscovery": ["servicediscovery"], "ses": ["mailmanager", "pinpoint-email", "ses", "sesv2"], "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"]}, - "notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "controltower": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "emr-serverless": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "oam": "REST routes no rule maps yet", "ram": "REST routes no rule maps yet", "resource-explorer-2": "REST routes no rule maps yet", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "s3tables": "REST routes no rule maps yet", "securityhub": "REST routes no rule maps yet", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"}, - "otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "appmesh", "apprunner", "appstream", "arc-region-switch", "artifact", "auditmanager", "b2bi", "backup-gateway", "backup-search", "bcm-dashboards", "billing", "billingconductor", "braket", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "connect-campaigns", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "directconnect", "docdb-elastic", "drs", "ds", "ebs", "ecr-public", "elemental-inference", "emr-containers", "entityresolution", "evs", "fms", "forecast", "frauddetector", "fsx", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "ivs", "ivschat", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "m2", "managedblockchain", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgn", "migrationhub-orchestrator", "mobiletargeting", "mpa", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "notifications", "notifications-contacts", "observabilityadmin", "odb", "omics", "opensearch", "osis", "outposts", "partnercentral", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "profile", "proton", "qbusiness", "quicksight", "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", "signer", "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", "xray"], + "notCovered": {"airflow": "REST routes no rule maps yet", "app-integrations": "REST routes no rule maps yet", "appconfig": "REST routes no rule maps yet", "appsync": "REST routes no rule maps yet", "aps": "REST routes no rule maps yet", "aws-marketplace": "REST routes no rule maps yet", "backup": "REST routes no rule maps yet", "batch": "REST routes no rule maps yet", "bedrock": "REST routes no rule maps yet", "bedrock-agentcore": "REST routes no rule maps yet", "cloudfront": "REST routes no rule maps yet", "codeguru-reviewer": "REST routes no rule maps yet", "connect": "REST routes no rule maps yet", "controltower": "REST routes no rule maps yet", "detective": "REST routes no rule maps yet", "dlm": "REST routes no rule maps yet", "elasticfilesystem": "REST routes no rule maps yet", "emr-serverless": "REST routes no rule maps yet", "es": "REST routes no rule maps yet", "fis": "REST routes no rule maps yet", "guardduty": "REST routes no rule maps yet", "inspector2": "REST routes no rule maps yet", "iot": "REST routes no rule maps yet", "kafka": "REST routes no rule maps yet", "macie2": "REST routes no rule maps yet", "mq": "REST routes no rule maps yet", "oam": "REST routes no rule maps yet", "quicksight": "metadata-only REST subset; creation-tag IAM authorization is not implemented", "ram": "REST routes no rule maps yet", "resource-explorer-2": "REST routes no rule maps yet", "rum": "REST routes no rule maps yet", "s3": "authorized by route; S3 checks s3:PutObjectTagging for an object it creates with tags itself", "s3tables": "REST routes no rule maps yet", "securityhub": "REST routes no rule maps yet", "servicecatalog": "its operations that tag are AppRegistry's, whose REST routes no rule maps yet"}, + "otherNamespaces": ["account-access", "acm-pca", "aco-automation", "agent-registry", "aidevops", "aiops", "airflow-serverless", "amplify", "amplifyuibuilder", "aoss", "appfabric", "appflow", "application-signals", "appmesh", "apprunner", "appstream", "arc-region-switch", "artifact", "auditmanager", "b2bi", "backup-gateway", "backup-search", "bcm-dashboards", "billing", "billingconductor", "braket", "cases", "cassandra", "chatbot", "chime", "cleanrooms", "cleanrooms-ml", "cloud9", "codecommit", "codeconnections", "codeguru-profiler", "codeguru-security", "codestar-connections", "codestar-notifications", "connect-campaigns", "databrew", "dataexchange", "datapipeline", "datazone", "dax", "deadline", "directconnect", "docdb-elastic", "drs", "ds", "ebs", "ecr-public", "elemental-inference", "emr-containers", "entityresolution", "evs", "fms", "forecast", "frauddetector", "fsx", "gamelift", "gameliftstreams", "geo", "grafana", "greengrass", "groundstation", "health-agent", "healthlake", "imagebuilder", "interconnect", "internetmonitor", "invoicing", "iotdeviceadvisor", "iotfleetwise", "iotmanagedintegrations", "iotsitewise", "iottwinmaker", "iotwireless", "ivs", "ivschat", "kafkaconnect", "kendra", "kendra-ranking", "kinesisvideo", "launchwizard", "lex", "license-manager", "license-manager-linux-subscriptions", "license-manager-user-subscriptions", "lookoutequipment", "m2", "managedblockchain", "mediaconnect", "mediaconvert", "medialive", "mediapackage", "mediapackage-vod", "mediapackagev2", "mediastore", "mediatailor", "medical-imaging", "mgn", "migrationhub-orchestrator", "mobiletargeting", "mpa", "neptune-graph", "network-security-manager", "networkflowmonitor", "networkmanager", "networkmonitor", "notifications", "notifications-contacts", "observabilityadmin", "odb", "omics", "opensearch", "osis", "outposts", "partnercentral", "pca-connector-ad", "pca-connector-scep", "pcs", "personalize", "pi", "polly", "profile", "proton", "qbusiness", "rbin", "refactor-spaces", "repostspace", "resiliencehub", "rolesanywhere", "route53-recovery-control-config", "route53-recovery-readiness", "route53globalresolver", "route53profiles", "rtbfabric", "s3files", "sagemaker-geospatial", "savingsplans", "schemas", "scn", "security-ir", "securityagent", "securitylake", "shield", "signer", "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", "xray"], "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/*", "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}:local-gateway-virtual-interface-group/*", "mac-modification-task": "arn:${Partition}:ec2:${Region}:${Account}:mac-modification-task/*", "natgateway": "arn:${Partition}:ec2:${Region}:${Account}:natgateway/*", "network-acl": "arn:${Partition}:ec2:${Region}:${Account}:network-acl/*", "network-insights-access-scope": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-access-scope/*", "network-insights-access-scope-analysis": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-access-scope-analysis/*", "network-insights-analysis": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-analysis/*", "network-insights-path": "arn:${Partition}:ec2:${Region}:${Account}:network-insights-path/*", "network-interface": "arn:${Partition}:ec2:${Region}:${Account}:network-interface/*", "outpost-lag": "arn:${Partition}:ec2:${Region}:${Account}:outpost-lag/*", "placement-group": "arn:${Partition}:ec2:${Region}:${Account}:placement-group/*", "prefix-list": "arn:${Partition}:ec2:${Region}:${Account}:prefix-list/*", "replace-root-volume-task": "arn:${Partition}:ec2:${Region}:${Account}:replace-root-volume-task/*", "reserved-instances": "arn:${Partition}:ec2:${Region}:${Account}:reserved-instances/*", "role": "arn:${Partition}:iam::${Account}:role/*", "route-server": "arn:${Partition}:ec2:${Region}:${Account}:route-server/*", "route-server-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:route-server-endpoint/*", "route-server-peer": "arn:${Partition}:ec2:${Region}:${Account}:route-server-peer/*", "route-table": "arn:${Partition}:ec2:${Region}:${Account}:route-table/*", "secondary-interface": "arn:${Partition}:ec2:${Region}:${Account}:secondary-interface/*", "secondary-network": "arn:${Partition}:ec2:${Region}:${Account}:secondary-network/*", "secondary-subnet": "arn:${Partition}:ec2:${Region}:${Account}:secondary-subnet/*", "security-group": "arn:${Partition}:ec2:${Region}:${Account}:security-group/*", "security-group-rule": "arn:${Partition}:ec2:${Region}:${Account}:security-group-rule/*", "snapshot": "arn:${Partition}:ec2:${Region}::snapshot/*", "spot-fleet-request": "arn:${Partition}:ec2:${Region}:${Account}:spot-fleet-request/*", "spot-instances-request": "arn:${Partition}:ec2:${Region}:${Account}:spot-instances-request/*", "subnet": "arn:${Partition}:ec2:${Region}:${Account}:subnet/*", "subnet-cidr-reservation": "arn:${Partition}:ec2:${Region}:${Account}:subnet-cidr-reservation/*", "traffic-mirror-filter": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-filter/*", "traffic-mirror-filter-rule": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-filter-rule/*", "traffic-mirror-session": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-session/*", "traffic-mirror-target": "arn:${Partition}:ec2:${Region}:${Account}:traffic-mirror-target/*", "transit-gateway": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway/*", "transit-gateway-attachment": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-attachment/*", "transit-gateway-connect-peer": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-connect-peer/*", "transit-gateway-metering-policy": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-metering-policy/*", "transit-gateway-multicast-domain": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-multicast-domain/*", "transit-gateway-policy-table": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-policy-table/*", "transit-gateway-route-table": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-route-table/*", "transit-gateway-route-table-announcement": "arn:${Partition}:ec2:${Region}:${Account}:transit-gateway-route-table-announcement/*", "verified-access-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-endpoint/*", "verified-access-endpoint-target": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-endpoint-target/*", "verified-access-group": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-group/*", "verified-access-instance": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-instance/*", "verified-access-policy": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-policy/*", "verified-access-trust-provider": "arn:${Partition}:ec2:${Region}:${Account}:verified-access-trust-provider/*", "volume": "arn:${Partition}:ec2:${Region}:${Account}:volume/*", "vpc": "arn:${Partition}:ec2:${Region}:${Account}:vpc/*", "vpc-block-public-access-exclusion": "arn:${Partition}:ec2:${Region}:${Account}:vpc-block-public-access-exclusion/*", "vpc-encryption-control": "arn:${Partition}:ec2:${Region}:${Account}:vpc-encryption-control/*", "vpc-endpoint": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint/*", "vpc-endpoint-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-connection/*", "vpc-endpoint-service": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-service/*", "vpc-endpoint-service-permission": "arn:${Partition}:ec2:${Region}:${Account}:vpc-endpoint-service-permission/*", "vpc-flow-log": "arn:${Partition}:ec2:${Region}:${Account}:vpc-flow-log/*", "vpc-peering-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpc-peering-connection/*", "vpn-concentrator": "arn:${Partition}:ec2:${Region}:${Account}:vpn-concentrator/*", "vpn-connection": "arn:${Partition}:ec2:${Region}:${Account}:vpn-connection/*", "vpn-connection-device-type": "arn:${Partition}:ec2:${Region}:${Account}:vpn-connection-device-type/*", "vpn-gateway": "arn:${Partition}:ec2:${Region}:${Account}:vpn-gateway/*"}, "rds": {"auto-backup": "arn:${Partition}:rds:${Region}:${Account}:auto-backup:*", "cev": "arn:${Partition}:rds:${Region}:${Account}:cev:*/*/*", "cluster": "arn:${Partition}:rds:${Region}:${Account}:cluster:*", "cluster-auto-backup": "arn:${Partition}:rds:${Region}:${Account}:cluster-auto-backup:*", "cluster-endpoint": "arn:${Partition}:rds:${Region}:${Account}:cluster-endpoint:*", "cluster-pg": "arn:${Partition}:rds:${Region}:${Account}:cluster-pg:*", "cluster-snapshot": "arn:${Partition}:rds:${Region}:${Account}:cluster-snapshot:*", "db": "arn:${Partition}:rds:${Region}:${Account}:db:*", "db-capacity-reservation": "arn:${Partition}:rds:${Region}:${Account}:db-capacity-reservation:*", "deployment": "arn:${Partition}:rds:${Region}:${Account}:deployment:*", "es": "arn:${Partition}:rds:${Region}:${Account}:es:*", "global-cluster": "arn:${Partition}:rds::${Account}:global-cluster:*", "integration": "arn:${Partition}:rds:${Region}:${Account}:integration:*", "og": "arn:${Partition}:rds:${Region}:${Account}:og:*", "pg": "arn:${Partition}:rds:${Region}:${Account}:pg:*", "proxy": "arn:${Partition}:rds:${Region}:${Account}:db-proxy:*", "proxy-endpoint": "arn:${Partition}:rds:${Region}:${Account}:db-proxy-endpoint:*", "ri": "arn:${Partition}:rds:${Region}:${Account}:ri:*", "secgrp": "arn:${Partition}:rds:${Region}:${Account}:secgrp:*", "shardgrp": "arn:${Partition}:rds:${Region}:${Account}:shard-group:*", "snapshot": "arn:${Partition}:rds:${Region}:${Account}:snapshot:*", "snapshot-tenant-database": "arn:${Partition}:rds:${Region}:${Account}:snapshot-tenant-database:*:*", "subgrp": "arn:${Partition}:rds:${Region}:${Account}:subgrp:*", "target-group": "arn:${Partition}:rds:${Region}:${Account}:target-group:*", "tenant-database": "arn:${Partition}:rds:${Region}:${Account}:tenant-database:*"}}, "operations": { "access-analyzer:CreateAnalyzer": {"tagging": ["access-analyzer:TagResource"], "requestTags": true, "tags": [{"member": "tags{}"}]}, diff --git a/src/main/resources/aws/rest-routes.json b/src/main/resources/aws/rest-routes.json index d11d724771..bd4bac620c 100644 --- a/src/main/resources/aws/rest-routes.json +++ b/src/main/resources/aws/rest-routes.json @@ -1,5 +1,5 @@ { - "_source": {"generator": "tools/aws/regen_rest_routes.py", "botocore": "botocore 1.43.118 (local/aws/botocore)"}, + "_source": {"generator": "tools/aws/regen_rest_routes.py", "botocore": "botocore 1.43.118 (installed package)"}, "handRouted": { "apigateway": "API Gateway's management API is authorized by HTTP method, apigateway:GET, apigateway:POST and so on, on the resource path a route names, not by its operations' names, and the registry's rules give every route its method's action", "s3": "S3 tells apart the operations it serves on one route by their query parameters and headers, which the registry's S3 rules and sub-resource overrides read, and an S3 Control route Floci does not serve runs as the S3 data plane, checked as the bucket or object operation that runs" @@ -8,6 +8,7 @@ "accessanalyzer": { "credentialScope": "access-analyzer", "apiVersion": "2019-11-01", + "accessDeniedStatus": 403, "operations": { "ApplyArchiveRule": {"method": "PUT", "requestUri": "/archive-rule"}, "CancelPolicyGeneration": {"method": "PUT", "requestUri": "/policy/generation/{jobId}"}, @@ -183,6 +184,7 @@ "apigatewayv2": { "credentialScope": "apigateway", "apiVersion": "2018-11-29", + "accessDeniedStatus": 403, "operations": { "CreateApi": {"method": "POST", "requestUri": "/v2/apis"}, "CreateApiMapping": {"method": "POST", "requestUri": "/v2/domainnames/{domainName}/apimappings"}, @@ -292,6 +294,7 @@ "dsql": { "credentialScope": "dsql", "apiVersion": "2018-05-10", + "accessDeniedStatus": 403, "operations": { "CreateCluster": {"method": "POST", "requestUri": "/cluster"}, "CreateStream": {"method": "POST", "requestUri": "/stream/{clusterIdentifier}"}, @@ -314,6 +317,7 @@ "eks": { "credentialScope": "eks", "apiVersion": "2017-11-01", + "accessDeniedStatus": 403, "operations": { "ActivateCertificateAuthority": {"method": "POST", "requestUri": "/clusters/{name}/certificate-authorities/{certificateAuthorityId}/activate"}, "AssociateAccessPolicy": {"method": "POST", "requestUri": "/clusters/{name}/access-entries/{principalArn}/access-policies"}, @@ -390,6 +394,7 @@ "es": { "credentialScope": "es", "apiVersion": "2015-01-01", + "accessDeniedStatus": 403, "operations": { "AcceptInboundCrossClusterSearchConnection": {"method": "PUT", "requestUri": "/2015-01-01/es/ccs/inboundConnection/{ConnectionId}/accept"}, "AddTags": {"method": "POST", "requestUri": "/2015-01-01/tags"}, @@ -553,6 +558,7 @@ "lambda-microvms": { "credentialScope": "lambda", "apiVersion": "2025-09-09", + "accessDeniedStatus": 403, "operations": { "CreateMicrovmAuthToken": {"method": "POST", "requestUri": "/2025-09-09/microvms/{microvmIdentifier}/auth-token"}, "CreateMicrovmImage": {"method": "POST", "requestUri": "/2025-09-09/microvm-images"}, @@ -583,6 +589,7 @@ "opensearch": { "credentialScope": "es", "apiVersion": "2021-01-01", + "accessDeniedStatus": 403, "operations": { "AcceptInboundConnection": {"method": "PUT", "requestUri": "/2021-01-01/opensearch/cc/inboundConnection/{ConnectionId}/accept"}, "AddDataSource": {"method": "POST", "requestUri": "/2021-01-01/opensearch/domain/{DomainName}/dataSource"}, @@ -698,9 +705,316 @@ "UpdatePipe": {"method": "PUT", "requestUri": "/v1/pipes/{Name}"} } }, + "quicksight": { + "credentialScope": "quicksight", + "apiVersion": "2018-04-01", + "accessDeniedStatus": 401, + "operations": { + "BatchCreateTopicReviewedAnswer": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/batch-create-reviewed-answers"}, + "BatchDeleteKnowledgeBase": {"method": "POST", "requestUri": "/v1/accounts/{AwsAccountId}/knowledge-bases/batch-delete"}, + "BatchDeleteTopicReviewedAnswer": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/batch-delete-reviewed-answers"}, + "BatchDescribeUserLimits": {"method": "POST", "requestUri": "/governance/limits/accounts/{accountId}/user-limits"}, + "CancelIngestion": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"}, + "CreateAccountCustomization": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/customizations"}, + "CreateAccountSubscription": {"method": "POST", "requestUri": "/account/{AwsAccountId}"}, + "CreateActionConnector": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/action-connectors"}, + "CreateAgent": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/agents"}, + "CreateAnalysis": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/analyses/{AnalysisId}"}, + "CreateApprovalPolicy": {"method": "POST", "requestUri": "/governance/approvalworkflows/policies"}, + "CreateBrand": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/brands/{BrandId}"}, + "CreateCustomPermissions": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/custom-permissions"}, + "CreateDashboard": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}"}, + "CreateDataSet": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/data-sets"}, + "CreateDataSource": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/data-sources"}, + "CreateDlpSetting": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/data-loss-prevention/settings/{DlpSettingId}"}, + "CreateFlow": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/flows"}, + "CreateFolder": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}"}, + "CreateFolderMembership": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}"}, + "CreateGroup": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups"}, + "CreateGroupMembership": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"}, + "CreateIAMPolicyAssignment": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/"}, + "CreateIngestion": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"}, + "CreateKnowledgeBase": {"method": "POST", "requestUri": "/v1/accounts/{AwsAccountId}/knowledge-bases"}, + "CreateLimitsProfile": {"method": "POST", "requestUri": "/governance/limits/accounts/{accountId}/profiles"}, + "CreateNamespace": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}"}, + "CreateOAuthClientApplication": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/oauth-client-applications"}, + "CreateRefreshSchedule": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules"}, + "CreateRoleMembership": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}"}, + "CreateSpace": {"method": "POST", "requestUri": "/v1/accounts/{AwsAccountId}/spaces"}, + "CreateTemplate": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}"}, + "CreateTemplateAlias": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"}, + "CreateTheme": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}"}, + "CreateThemeAlias": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"}, + "CreateTopic": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/topics"}, + "CreateTopicRefreshSchedule": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/schedules"}, + "CreateTopicV2": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/topicsV2"}, + "CreateVPCConnection": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/vpc-connections"}, + "DeleteAccountCustomPermission": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/custom-permission"}, + "DeleteAccountCustomization": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/customizations"}, + "DeleteAccountSubscription": {"method": "DELETE", "requestUri": "/account/{AwsAccountId}"}, + "DeleteActionConnector": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}"}, + "DeleteAgent": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/agents/{AgentId}"}, + "DeleteAnalysis": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/analyses/{AnalysisId}"}, + "DeleteApp": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/apps/{AppId}"}, + "DeleteApprovalPolicy": {"method": "DELETE", "requestUri": "/governance/approvalworkflows/policies/{PolicyId}"}, + "DeleteBrand": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/brands/{BrandId}"}, + "DeleteBrandAssignment": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/brandassignments"}, + "DeleteCustomPermissions": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}"}, + "DeleteDashboard": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}"}, + "DeleteDataSet": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}"}, + "DeleteDataSetRefreshProperties": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"}, + "DeleteDataSource": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/data-sources/{DataSourceId}"}, + "DeleteDefaultQBusinessApplication": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/default-qbusiness-application"}, + "DeleteDlpSetting": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/data-loss-prevention/settings/{DlpSettingId}"}, + "DeleteFlow": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/flows/{FlowId}"}, + "DeleteFolder": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}"}, + "DeleteFolderMembership": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}/members/{MemberType}/{MemberId}"}, + "DeleteGroup": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"}, + "DeleteGroupMembership": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"}, + "DeleteIAMPolicyAssignment": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/namespace/{Namespace}/iam-policy-assignments/{AssignmentName}"}, + "DeleteIdentityPropagationConfig": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/identity-propagation-config/{Service}"}, + "DeleteKnowledgeBase": {"method": "DELETE", "requestUri": "/v1/accounts/{AwsAccountId}/knowledge-bases/{KnowledgeBaseId}"}, + "DeleteLimitsProfile": {"method": "DELETE", "requestUri": "/governance/limits/accounts/{accountId}/profiles/{profileId}"}, + "DeleteNamespace": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}"}, + "DeleteOAuthClientApplication": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/oauth-client-applications/{OAuthClientApplicationId}"}, + "DeleteRefreshSchedule": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}"}, + "DeleteRoleCustomPermission": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission"}, + "DeleteRoleMembership": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members/{MemberName}"}, + "DeleteSpace": {"method": "DELETE", "requestUri": "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}"}, + "DeleteTemplate": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}"}, + "DeleteTemplateAlias": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"}, + "DeleteTheme": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}"}, + "DeleteThemeAlias": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"}, + "DeleteTopic": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}"}, + "DeleteTopicRefreshSchedule": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"}, + "DeleteTopicV2": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/topicsV2/{TopicId}"}, + "DeleteUser": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"}, + "DeleteUserByPrincipalId": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/user-principals/{PrincipalId}"}, + "DeleteUserCustomPermission": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/custom-permission"}, + "DeleteVPCConnection": {"method": "DELETE", "requestUri": "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"}, + "DescribeAccountCustomPermission": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/custom-permission"}, + "DescribeAccountCustomization": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/customizations"}, + "DescribeAccountSettings": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/settings"}, + "DescribeAccountSubscription": {"method": "GET", "requestUri": "/account/{AwsAccountId}"}, + "DescribeActionConnector": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}"}, + "DescribeActionConnectorPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}/permissions"}, + "DescribeAgent": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/agents/{AgentId}"}, + "DescribeAgentPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/agents/{AgentId}/permissions"}, + "DescribeAnalysis": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/analyses/{AnalysisId}"}, + "DescribeAnalysisDefinition": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/analyses/{AnalysisId}/definition"}, + "DescribeAnalysisPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions"}, + "DescribeApp": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/apps/{AppId}"}, + "DescribeAppPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/apps/{AppId}/permissions"}, + "DescribeApprovalPolicy": {"method": "GET", "requestUri": "/governance/approvalworkflows/policies/{PolicyId}"}, + "DescribeAssetBundleExportJob": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/asset-bundle-export-jobs/{AssetBundleExportJobId}"}, + "DescribeAssetBundleImportJob": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/asset-bundle-import-jobs/{AssetBundleImportJobId}"}, + "DescribeAutomationJob": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/automation-groups/{AutomationGroupId}/automations/{AutomationId}/jobs/{JobId}"}, + "DescribeBrand": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/brands/{BrandId}"}, + "DescribeBrandAssignment": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/brandassignments"}, + "DescribeBrandPublishedVersion": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/brands/{BrandId}/publishedversion"}, + "DescribeCustomPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}"}, + "DescribeDashboard": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}"}, + "DescribeDashboardDefinition": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/definition"}, + "DescribeDashboardPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions"}, + "DescribeDashboardSnapshotJob": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs/{SnapshotJobId}"}, + "DescribeDashboardSnapshotJobResult": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs/{SnapshotJobId}/result"}, + "DescribeDashboardsQAConfiguration": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/dashboards-qa-configuration"}, + "DescribeDataSet": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}"}, + "DescribeDataSetPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions"}, + "DescribeDataSetRefreshProperties": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"}, + "DescribeDataSource": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sources/{DataSourceId}"}, + "DescribeDataSourcePermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions"}, + "DescribeDefaultQBusinessApplication": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/default-qbusiness-application"}, + "DescribeDlpSetting": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-loss-prevention/settings/{DlpSettingId}"}, + "DescribeFlow": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/flows/{FlowId}"}, + "DescribeFolder": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}"}, + "DescribeFolderPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}/permissions"}, + "DescribeFolderResolvedPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}/resolved-permissions"}, + "DescribeGroup": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"}, + "DescribeGroupMembership": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members/{MemberName}"}, + "DescribeIAMPolicyAssignment": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"}, + "DescribeIngestion": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions/{IngestionId}"}, + "DescribeIpRestriction": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/ip-restriction"}, + "DescribeKeyRegistration": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/key-registration"}, + "DescribeKnowledgeBase": {"method": "GET", "requestUri": "/v1/accounts/{AwsAccountId}/knowledge-bases/{KnowledgeBaseId}"}, + "DescribeKnowledgeBasePermissions": {"method": "GET", "requestUri": "/v1/accounts/{AwsAccountId}/knowledge-bases/{KnowledgeBaseId}/permissions"}, + "DescribeLimitsProfile": {"method": "GET", "requestUri": "/governance/limits/accounts/{accountId}/profiles/{profileId}"}, + "DescribeNamespace": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}"}, + "DescribeOAuthClientApplication": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/oauth-client-applications/{OAuthClientApplicationId}"}, + "DescribeQPersonalizationConfiguration": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/q-personalization-configuration"}, + "DescribeQuickSightQSearchConfiguration": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/quicksight-q-search-configuration"}, + "DescribeRefreshSchedule": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules/{ScheduleId}"}, + "DescribeRoleCustomPermission": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission"}, + "DescribeSelfUpgradeConfiguration": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/self-upgrade-configuration"}, + "DescribeSpace": {"method": "GET", "requestUri": "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}"}, + "DescribeSpacePermissions": {"method": "GET", "requestUri": "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/permissions"}, + "DescribeTemplate": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}"}, + "DescribeTemplateAlias": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"}, + "DescribeTemplateDefinition": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}/definition"}, + "DescribeTemplatePermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions"}, + "DescribeTheme": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}"}, + "DescribeThemeAlias": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"}, + "DescribeThemePermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}/permissions"}, + "DescribeTopic": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}"}, + "DescribeTopicPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/permissions"}, + "DescribeTopicPermissionsV2": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topicsV2/{TopicId}/permissions"}, + "DescribeTopicRefresh": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/refresh/{RefreshId}"}, + "DescribeTopicRefreshSchedule": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"}, + "DescribeTopicV2": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topicsV2/{TopicId}"}, + "DescribeUser": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"}, + "DescribeVPCConnection": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"}, + "GenerateEmbedUrlForAnonymousUser": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/embed-url/anonymous-user"}, + "GenerateEmbedUrlForRegisteredUser": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/embed-url/registered-user"}, + "GenerateEmbedUrlForRegisteredUserWithIdentity": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/embed-url/registered-user-with-identity"}, + "GetDashboardEmbedUrl": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/embed-url"}, + "GetFlowMetadata": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/flows/{FlowId}/metadata"}, + "GetFlowPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/flows/{FlowId}/permissions"}, + "GetIdentityContext": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/identity-context"}, + "GetSessionEmbedUrl": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/session-embed-url"}, + "ListActionConnectors": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/action-connectors"}, + "ListAgents": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/agents"}, + "ListAnalyses": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/analyses"}, + "ListApprovalPolicies": {"method": "GET", "requestUri": "/governance/approvalworkflows/policies"}, + "ListApps": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/apps"}, + "ListAssetBundleExportJobs": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/asset-bundle-export-jobs"}, + "ListAssetBundleImportJobs": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/asset-bundle-import-jobs"}, + "ListBrands": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/brands"}, + "ListCustomPermissions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/custom-permissions"}, + "ListDashboardVersions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions"}, + "ListDashboards": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/dashboards"}, + "ListDataSets": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sets"}, + "ListDataSources": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sources"}, + "ListDlpSettings": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-loss-prevention/settings"}, + "ListFlows": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/flows"}, + "ListFolderMembers": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}/members"}, + "ListFolders": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/folders"}, + "ListFoldersForResource": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/resource/{ResourceArn}/folders"}, + "ListGroupMemberships": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}/members"}, + "ListGroups": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups"}, + "ListIAMPolicyAssignments": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/v2/iam-policy-assignments"}, + "ListIAMPolicyAssignmentsForUser": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/iam-policy-assignments"}, + "ListIdentityPropagationConfigs": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/identity-propagation-config"}, + "ListIngestions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/ingestions"}, + "ListKnowledgeBases": {"method": "GET", "requestUri": "/v1/accounts/{AwsAccountId}/knowledge-bases/"}, + "ListLimitsProfiles": {"method": "GET", "requestUri": "/governance/limits/accounts/{accountId}/profiles"}, + "ListNamespaces": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces"}, + "ListOAuthClientApplications": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/oauth-client-applications"}, + "ListRefreshSchedules": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules"}, + "ListRoleMemberships": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/members"}, + "ListSelfUpgrades": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/self-upgrade-requests"}, + "ListSpaceResources": {"method": "GET", "requestUri": "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/resources"}, + "ListSpaces": {"method": "GET", "requestUri": "/v1/accounts/{AwsAccountId}/spaces"}, + "ListTagsForResource": {"method": "GET", "requestUri": "/resources/{ResourceArn}/tags"}, + "ListTemplateAliases": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases"}, + "ListTemplateVersions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}/versions"}, + "ListTemplates": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/templates"}, + "ListThemeAliases": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases"}, + "ListThemeVersions": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}/versions"}, + "ListThemes": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/themes"}, + "ListTopicRefreshSchedules": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/schedules"}, + "ListTopicReviewedAnswers": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/reviewed-answers"}, + "ListTopics": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topics"}, + "ListTopicsV2": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/topicsV2"}, + "ListUserGroups": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/groups"}, + "ListUsers": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users"}, + "ListUsersIndexCapacity": {"method": "POST", "requestUri": "/accounts/{awsAccountId}/quick-index/user-capacity"}, + "ListVPCConnections": {"method": "GET", "requestUri": "/accounts/{AwsAccountId}/vpc-connections"}, + "PredictQAResults": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/qa/predict"}, + "PutDataSetRefreshProperties": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-properties"}, + "RegisterUser": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users"}, + "RestoreAnalysis": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/restore/analyses/{AnalysisId}"}, + "SearchActionConnectors": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/action-connectors"}, + "SearchAgents": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/agents"}, + "SearchAnalyses": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/analyses"}, + "SearchApps": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/apps"}, + "SearchDashboards": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/dashboards"}, + "SearchDataSets": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/data-sets"}, + "SearchDataSources": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/data-sources"}, + "SearchFlows": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/flows/searchFlows"}, + "SearchFolders": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/folders"}, + "SearchGroups": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups-search"}, + "SearchKnowledgeBases": {"method": "POST", "requestUri": "/v1/accounts/{AwsAccountId}/search/knowledge-bases"}, + "SearchSpaces": {"method": "POST", "requestUri": "/v1/accounts/{AwsAccountId}/search/spaces"}, + "SearchTopics": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/topics"}, + "SearchTopicsV2": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/search/topicsV2"}, + "StartAssetBundleExportJob": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/asset-bundle-export-jobs/export"}, + "StartAssetBundleImportJob": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/asset-bundle-import-jobs/import"}, + "StartAutomationJob": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/automation-groups/{AutomationGroupId}/automations/{AutomationId}/jobs"}, + "StartDashboardSnapshotJob": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/snapshot-jobs"}, + "StartDashboardSnapshotJobSchedule": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/schedules/{ScheduleId}"}, + "TagResource": {"method": "POST", "requestUri": "/resources/{ResourceArn}/tags"}, + "UntagResource": {"method": "DELETE", "requestUri": "/resources/{ResourceArn}/tags"}, + "UpdateAccountCustomPermission": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/custom-permission"}, + "UpdateAccountCustomization": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/customizations"}, + "UpdateAccountSettings": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/settings"}, + "UpdateActionConnector": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}"}, + "UpdateActionConnectorPermissions": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/action-connectors/{ActionConnectorId}/permissions"}, + "UpdateAgent": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/agents/{AgentId}"}, + "UpdateAgentPermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/agents/{AgentId}/permissions"}, + "UpdateAnalysis": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/analyses/{AnalysisId}"}, + "UpdateAnalysisPermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/analyses/{AnalysisId}/permissions"}, + "UpdateAppPermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/apps/{AppId}/permissions"}, + "UpdateApplicationWithTokenExchangeGrant": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/application-with-token-exchange-grant"}, + "UpdateApprovalPolicy": {"method": "PATCH", "requestUri": "/governance/approvalworkflows/policies/{PolicyId}"}, + "UpdateBrand": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/brands/{BrandId}"}, + "UpdateBrandAssignment": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/brandassignments"}, + "UpdateBrandPublishedVersion": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/brands/{BrandId}/publishedversion"}, + "UpdateCustomPermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/custom-permissions/{CustomPermissionsName}"}, + "UpdateDashboard": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}"}, + "UpdateDashboardLinks": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/linked-entities"}, + "UpdateDashboardPermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/permissions"}, + "UpdateDashboardPublishedVersion": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/dashboards/{DashboardId}/versions/{VersionNumber}"}, + "UpdateDashboardsQAConfiguration": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/dashboards-qa-configuration"}, + "UpdateDataSet": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}"}, + "UpdateDataSetPermissions": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/permissions"}, + "UpdateDataSource": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/data-sources/{DataSourceId}"}, + "UpdateDataSourcePermissions": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/data-sources/{DataSourceId}/permissions"}, + "UpdateDefaultQBusinessApplication": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/default-qbusiness-application"}, + "UpdateDlpSetting": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/data-loss-prevention/settings/{DlpSettingId}"}, + "UpdateFlow": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/flows/{FlowId}"}, + "UpdateFlowPermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/flows/{FlowId}/permissions"}, + "UpdateFolder": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}"}, + "UpdateFolderPermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/folders/{FolderId}/permissions"}, + "UpdateGroup": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/groups/{GroupName}"}, + "UpdateIAMPolicyAssignment": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/iam-policy-assignments/{AssignmentName}"}, + "UpdateIdentityPropagationConfig": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/identity-propagation-config/{Service}"}, + "UpdateIpRestriction": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/ip-restriction"}, + "UpdateKeyRegistration": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/key-registration"}, + "UpdateKnowledgeBase": {"method": "POST", "requestUri": "/v1/accounts/{AwsAccountId}/knowledge-bases/{KnowledgeBaseId}"}, + "UpdateKnowledgeBasePermissions": {"method": "POST", "requestUri": "/v1/accounts/{AwsAccountId}/knowledge-bases/{KnowledgeBaseId}/permissions"}, + "UpdateLimitsProfile": {"method": "PUT", "requestUri": "/governance/limits/accounts/{accountId}/profiles/{profileId}"}, + "UpdateOAuthClientApplication": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/oauth-client-applications/{OAuthClientApplicationId}"}, + "UpdatePublicSharingSettings": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/public-sharing-settings"}, + "UpdateQPersonalizationConfiguration": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/q-personalization-configuration"}, + "UpdateQuickSightQSearchConfiguration": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/quicksight-q-search-configuration"}, + "UpdateRefreshSchedule": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/data-sets/{DataSetId}/refresh-schedules"}, + "UpdateRoleCustomPermission": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/roles/{Role}/custom-permission"}, + "UpdateSPICECapacityConfiguration": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/spice-capacity-configuration"}, + "UpdateSelfUpgrade": {"method": "POST", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/update-self-upgrade-request"}, + "UpdateSelfUpgradeConfiguration": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/self-upgrade-configuration"}, + "UpdateSpace": {"method": "PUT", "requestUri": "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}"}, + "UpdateSpacePermissions": {"method": "PUT", "requestUri": "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/permissions"}, + "UpdateSpaceResources": {"method": "PUT", "requestUri": "/v1/accounts/{AwsAccountId}/spaces/{SpaceId}/resources"}, + "UpdateTemplate": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}"}, + "UpdateTemplateAlias": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}/aliases/{AliasName}"}, + "UpdateTemplatePermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/templates/{TemplateId}/permissions"}, + "UpdateTheme": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}"}, + "UpdateThemeAlias": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}/aliases/{AliasName}"}, + "UpdateThemePermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/themes/{ThemeId}/permissions"}, + "UpdateTopic": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}"}, + "UpdateTopicPermissions": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/permissions"}, + "UpdateTopicPermissionsV2": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/topicsV2/{TopicId}/permissions"}, + "UpdateTopicRefreshSchedule": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/topics/{TopicId}/schedules/{DatasetId}"}, + "UpdateTopicV2": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/topicsV2/{TopicId}"}, + "UpdateUser": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}"}, + "UpdateUserCustomPermission": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/namespaces/{Namespace}/users/{UserName}/custom-permission"}, + "UpdateVPCConnection": {"method": "PUT", "requestUri": "/accounts/{AwsAccountId}/vpc-connections/{VPCConnectionId}"} + } + }, "s3": { "credentialScope": "s3", "apiVersion": "2006-03-01", + "accessDeniedStatus": 403, "operations": { "AbortMultipartUpload": {"method": "DELETE", "requestUri": "/{Bucket}/{Key+}"}, "CompleteMultipartUpload": {"method": "POST", "requestUri": "/{Bucket}/{Key+}"}, diff --git a/src/test/java/io/github/hectorvent/floci/core/common/PartitionCrossServiceSmokeIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/core/common/PartitionCrossServiceSmokeIntegrationTest.java index 87c8f5ceff..2bc4266478 100644 --- a/src/test/java/io/github/hectorvent/floci/core/common/PartitionCrossServiceSmokeIntegrationTest.java +++ b/src/test/java/io/github/hectorvent/floci/core/common/PartitionCrossServiceSmokeIntegrationTest.java @@ -48,7 +48,7 @@ class PartitionCrossServiceSmokeIntegrationTest { "ecr", "ecs", "efs", "eks", "elasticache", "elasticbeanstalk", "elb", "elbv2", "emr", "emrserverless", "eventbridge", "eventbridgev2", "firehose", "fis", "glue", "guardduty", "iot", "kinesis", "kinesisanalytics", "lambda", "lambdamicrovms", "lambdaweb", "memorydb", "msk", "mwaa", "networkfirewall", "oam", "opensearch", "organizations", - "paymentcryptography", "pipes", "ram", "rds", "redshift", "redshiftserverless", + "paymentcryptography", "pipes", "quicksight", "ram", "rds", "redshift", "redshiftserverless", "resourceexplorer2", "resourcegroups", "route53resolver", "s3tables", "s3vectors", "sagemaker", "scheduler", "secretsmanager", "servicequotas", "ses", "sns", "sqs", "stepfunctions", "timestreaminfluxdb", "transfer", "verifiedpermissions", "wafv2"); @@ -65,6 +65,19 @@ class PartitionCrossServiceSmokeIntegrationTest { RestAssuredJsonUtils.configureAwsContentTypes(); } + @ParameterizedTest + @MethodSource(PartitionMatrix.NON_COMMERCIAL_CASES) + void quickSightDashboardArn(PartitionCase partitionCase) { + String region = offered(partitionCase, "quicksight"); + String id = unique("smoke-dashboard", partitionCase); + String path = "/accounts/000000000000/dashboards/" + id; + String arn = signed(region, "quicksight").contentType(JSON) + .body("{\"Name\":\"Smoke dashboard\",\"Definition\":{}}") + .post(path).then().statusCode(202).extract().jsonPath().getString("Arn"); + cleanup.register(() -> signed(region, "quicksight").delete(path)); + PartitionMatrix.assertArnIn(partitionCase, arn); + } + @ParameterizedTest @MethodSource(PartitionMatrix.NON_COMMERCIAL_CASES) void resourceGroupArn(PartitionCase partitionCase) { diff --git a/src/test/java/io/github/hectorvent/floci/core/common/RequestResourceMembersTest.java b/src/test/java/io/github/hectorvent/floci/core/common/RequestResourceMembersTest.java index ce23fff1a1..eb8015c622 100644 --- a/src/test/java/io/github/hectorvent/floci/core/common/RequestResourceMembersTest.java +++ b/src/test/java/io/github/hectorvent/floci/core/common/RequestResourceMembersTest.java @@ -317,6 +317,7 @@ class RequestResourceMembersTest { }); // A member the table locates in a REST request's path or query goes there, where the reader takes it // from, and the body and the form give it another value, which names nothing. + // REST map selectors have no Query form encoding, so they are checked only as JSON. Map located = table.located().getOrDefault(operation.getKey(), Map.of()); Map labels = new LinkedHashMap<>(); MultivaluedMap query = new MultivaluedHashMap<>(); @@ -346,9 +347,11 @@ class RequestResourceMembersTest { assertEquals(named, RequestResources.of(operation.getKey(), sentWith(servedBy(json(body.toString()), resource.endpoint()), query), "aws", "us-east-1", "000000000000", stored, labels), body + " " + labels + " " + query); - assertEquals(named, RequestResources.of(operation.getKey(), - sentWith(servedBy(form(form.toString()), resource.endpoint()), query), "aws", "us-east-1", - "000000000000", stored, labels), form + " " + labels + " " + query); + if (given.keySet().stream().noneMatch(Member::map)) { + assertEquals(named, RequestResources.of(operation.getKey(), + sentWith(servedBy(form(form.toString()), resource.endpoint()), query), "aws", "us-east-1", + "000000000000", stored, labels), form + " " + labels + " " + query); + } }))); } @@ -442,6 +445,8 @@ class RequestResourceMembersTest { } else { body.put(member.name(), value); } + } else if (member.map()) { + put(body.putObject(member.name()).putObject("table"), member.field(), value); } else { put(member.list() ? body.putArray(member.name()).addObject() : body.putObject(member.name()), member.field(), value); } diff --git a/src/test/java/io/github/hectorvent/floci/services/iam/IamRestRoutesTest.java b/src/test/java/io/github/hectorvent/floci/services/iam/IamRestRoutesTest.java index f284091948..b574030926 100644 --- a/src/test/java/io/github/hectorvent/floci/services/iam/IamRestRoutesTest.java +++ b/src/test/java/io/github/hectorvent/floci/services/iam/IamRestRoutesTest.java @@ -54,6 +54,29 @@ class IamRestRoutesTest { } } + @Test + void denialStatusComesFromTheModelAndFallsBackWhenMissing() { + IamRestRoutes modelled = routes(ROUTES.replace("\"credentialScope\": \"svc\"", "\"credentialScope\": \"svc\", \"accessDeniedStatus\": 402")); + assertEquals(402, modelled.accessDeniedStatus("svc", 403)); + assertEquals(403, modelled.accessDeniedStatus("hand", 403)); + assertEquals(400, modelled.accessDeniedStatus("unknown", 400)); + assertEquals(403, modelled.accessDeniedStatus(null, 403)); + } + + @ParameterizedTest + @ValueSource(strings = {"\"401\"", "401.5", "399", "600", "null", "{}"}) + void invalidModelledDenialStatusesAreRejected(String status) { + String document = ROUTES.replace("\"credentialScope\": \"svc\"", "\"credentialScope\": \"svc\", \"accessDeniedStatus\": " + status); + assertThrows(IllegalStateException.class, () -> routes(document)); + } + + @Test + void modelsSharingAScopeMustAgreeOnTheDenialStatus() { + String document = ROUTES.replace("\"credentialScope\": \"svc\"", "\"credentialScope\": \"svc\", \"accessDeniedStatus\": 401") + .replace("\"credentialScope\": \"hand\"", "\"credentialScope\": \"svc\", \"accessDeniedStatus\": 403"); + assertThrows(IllegalStateException.class, () -> routes(document)); + } + @Test void aLiteralSegmentOutranksALabel() { assertEquals(Optional.of("GetThingPolicy"), get("/things/policy")); diff --git a/src/test/java/io/github/hectorvent/floci/services/quicksight/QuickSightIamEnforcementIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/quicksight/QuickSightIamEnforcementIntegrationTest.java new file mode 100644 index 0000000000..4fc6082ad1 --- /dev/null +++ b/src/test/java/io/github/hectorvent/floci/services/quicksight/QuickSightIamEnforcementIntegrationTest.java @@ -0,0 +1,247 @@ +package io.github.hectorvent.floci.services.quicksight; + +import io.github.hectorvent.floci.testing.AwsTestClients; +import io.github.hectorvent.floci.testing.EnforcementFixtures; +import io.github.hectorvent.floci.testing.IamEnforcementProfile; +import io.github.hectorvent.floci.testing.PartitionCleanup; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import io.quarkus.test.junit.TestProfile; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.RegisterExtension; +import org.junit.jupiter.api.function.Executable; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.quicksight.QuickSightClient; +import software.amazon.awssdk.services.quicksight.model.AccessDeniedException; +import software.amazon.awssdk.services.quicksight.model.PhysicalTable; +import software.amazon.awssdk.services.quicksight.model.ResourceNotFoundException; +import software.amazon.awssdk.services.quicksight.model.ResourcePermission; + +import java.net.URI; +import java.util.List; +import java.util.Map; +import java.util.UUID; + +import static io.github.hectorvent.floci.testing.EnforcementFixtures.auth; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; + +@QuarkusTest +@TestProfile(IamEnforcementProfile.class) +class QuickSightIamEnforcementIntegrationTest { + private static final String ACCOUNT = "111122223333"; + private static final Region REGION = Region.EU_WEST_2; + + @TestHTTPResource + URI endpoint; + + @RegisterExtension + final PartitionCleanup cleanup = new PartitionCleanup(); + + @Test + void dashboardPoliciesCheckTheRoutedActionAndExactResource() { + String name = "qs-iam-" + UUID.randomUUID(); + EnforcementFixtures.UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), auth(ACCOUNT, "iam"), name); + try (QuickSightClient root = AwsTestClients.create(QuickSightClient.builder(), ACCOUNT, REGION); + QuickSightClient user = AwsTestClients.create(QuickSightClient.builder(), credentials.accessKeyId(), credentials.secretAccessKey(), REGION)) { + String arn = root.createDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name).name("Protected") + .definition(definition -> definition.sheets(List.of()))).arn(); + try { + List requests = List.of( + () -> user.createDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name + "-new").name("Denied")), + () -> user.describeDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name)), + () -> user.deleteDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name)), + () -> user.searchDashboards(request -> request.awsAccountId(ACCOUNT)), + () -> user.createDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name).name("Denied").importMode("SPICE")), + () -> user.describeDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name)), + () -> user.deleteDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name)), + () -> user.createDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name).name("Denied").type("S3")), + () -> user.describeDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name)), + () -> user.deleteDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name)), + () -> user.registerUser(request -> request.awsAccountId(ACCOUNT).namespace("default").userName(name) + .identityType("QUICKSIGHT").userRole("READER").email("reader@example.com")), + () -> user.describeUser(request -> request.awsAccountId(ACCOUNT).namespace("default").userName(name)), + () -> user.createIngestion(request -> request.awsAccountId(ACCOUNT).dataSetId(name).ingestionId("one")), + () -> user.describeIngestion(request -> request.awsAccountId(ACCOUNT).dataSetId(name).ingestionId("one")), + () -> user.listIngestions(request -> request.awsAccountId(ACCOUNT).dataSetId(name)), + () -> user.generateEmbedUrlForRegisteredUser(request -> request.awsAccountId(ACCOUNT) + .userArn("arn:aws:quicksight:eu-west-2:" + ACCOUNT + ":user/default/" + name))); + for (Executable request : requests) { + assertEquals(401, assertThrows(AccessDeniedException.class, request).statusCode()); + } + policy(name, "quicksight:DescribeDashboard", arn); + assertEquals(arn, user.describeDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name)).dashboard().arn()); + assertThrows(AccessDeniedException.class, + () -> user.deleteDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name))); + policy(name, "quicksight:DescribeDashboard", arn + "-other"); + assertThrows(AccessDeniedException.class, + () -> user.describeDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name))); + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth(ACCOUNT, "iam"), name, "p", """ + {"Version":"2012-10-17","Statement":[ + {"Effect":"Allow","Action":"quicksight:*","Resource":"*"}, + {"Effect":"Deny","Action":"quicksight:DescribeDashboard","Resource":"%s"}]}""".formatted(arn)); + assertThrows(AccessDeniedException.class, + () -> user.describeDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name))); + policy(name, "quicksight:DeleteDashboard", arn); + user.deleteDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name)); + } finally { + try { + root.deleteDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name)); + } catch (ResourceNotFoundException expected) { + // The authorized delete may already have removed the dashboard. + } + } + } + } + + @Test + void namespaceUsersIngestionsAndEmbeddingUseTheirExactArns() { + String name = "qs-resources-" + UUID.randomUUID(); + EnforcementFixtures.UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), auth(ACCOUNT, "iam"), name); + try (QuickSightClient root = AwsTestClients.create(QuickSightClient.builder(), ACCOUNT, REGION); + QuickSightClient user = AwsTestClients.create(QuickSightClient.builder(), credentials.accessKeyId(), credentials.secretAccessKey(), REGION)) { + String principal = "arn:aws:quicksight:eu-west-2:" + ACCOUNT + ":user/default/" + name; + policy(name, "quicksight:RegisterUser", principal); + assertEquals(principal, user.registerUser(request -> request.awsAccountId(ACCOUNT).namespace("default").userName(name) + .identityType("QUICKSIGHT").userRole("READER").email("reader@example.com")).user().arn()); + policy(name, "quicksight:DescribeUser", principal); + assertEquals(principal, user.describeUser(request -> request.awsAccountId(ACCOUNT).namespace("default").userName(name)).user().arn()); + assertThrows(AccessDeniedException.class, + () -> user.describeUser(request -> request.awsAccountId(ACCOUNT).namespace("other").userName(name))); + root.createDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(name).name("Shared") + .definition(definition -> definition.sheets(List.of())) + .permissions(ResourcePermission.builder().principal(principal).actions("quicksight:DescribeDashboard").build())); + cleanup.register(() -> rootDeleteDashboard(name)); + policy(name, "quicksight:GenerateEmbedUrlForRegisteredUser", principal); + user.generateEmbedUrlForRegisteredUser(request -> request.awsAccountId(ACCOUNT).userArn(principal) + .experienceConfiguration(experience -> experience.dashboard(dashboard -> dashboard.initialDashboardId(name)))); + policy(name, "quicksight:GenerateEmbedUrlForRegisteredUser", principal + "-other"); + assertThrows(AccessDeniedException.class, + () -> user.generateEmbedUrlForRegisteredUser(request -> request.awsAccountId(ACCOUNT).userArn(principal) + .experienceConfiguration(experience -> experience.dashboard(dashboard -> dashboard.initialDashboardId(name))))); + String dataset = root.createDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name).name("Data") + .importMode("SPICE").physicalTableMap(Map.of("table", PhysicalTable.builder() + .s3Source(source -> source.inputColumns(column -> column.name("value").type("STRING"))).build()))).arn(); + cleanup.register(() -> rootDeleteDataSet(name)); + policy(name, "quicksight:DescribeDataSet", dataset); + assertEquals(dataset, user.describeDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name)).dataSet().arn()); + assertThrows(AccessDeniedException.class, + () -> user.describeDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name + "-other"))); + String source = root.createDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name).name("Source").type("S3")).arn(); + cleanup.register(() -> rootDeleteDataSource(name)); + policy(name, "quicksight:DescribeDataSource", source); + assertEquals(source, user.describeDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name)).dataSource().arn()); + assertThrows(AccessDeniedException.class, + () -> user.describeDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name + "-other"))); + String ingestion = dataset + "/ingestion/one"; + policy(name, "quicksight:CreateIngestion", ingestion); + assertEquals(ingestion, user.createIngestion(request -> request.awsAccountId(ACCOUNT).dataSetId(name).ingestionId("one")).arn()); + policy(name, "quicksight:DescribeIngestion", ingestion); + assertEquals(ingestion, user.describeIngestion(request -> request.awsAccountId(ACCOUNT).dataSetId(name).ingestionId("one")).ingestion().arn()); + assertThrows(AccessDeniedException.class, + () -> user.describeIngestion(request -> request.awsAccountId(ACCOUNT).dataSetId(name).ingestionId("other"))); + } + } + + @Test + void creatingADataSetChecksEveryPhysicalTablesDataSource() { + String name = "qs-tables-" + UUID.randomUUID(); + EnforcementFixtures.UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), auth(ACCOUNT, "iam"), name); + try (QuickSightClient root = AwsTestClients.create(QuickSightClient.builder(), ACCOUNT, REGION); + QuickSightClient user = AwsTestClients.create(QuickSightClient.builder(), credentials.accessKeyId(), credentials.secretAccessKey(), REGION)) { + String source = root.createDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name).name("Source").type("S3")).arn(); + cleanup.register(() -> rootDeleteDataSource(name)); + String other = root.createDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name + "-other").name("Other").type("S3")).arn(); + cleanup.register(() -> rootDeleteDataSource(name + "-other")); + String sqlSource = root.createDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name + "-sql").name("SQL").type("S3")).arn(); + cleanup.register(() -> rootDeleteDataSource(name + "-sql")); + Map tables = Map.of( + "s3", PhysicalTable.builder().s3Source(table -> table.dataSourceArn(source) + .inputColumns(column -> column.name("value").type("STRING"))).build(), + "relational", PhysicalTable.builder().relationalTable(table -> table.dataSourceArn(other).name("Report") + .inputColumns(column -> column.name("value").type("STRING"))).build(), + "sql", PhysicalTable.builder().customSql(table -> table.dataSourceArn(sqlSource).name("Query").sqlQuery("SELECT value") + .columns(column -> column.name("value").type("STRING"))).build()); + policy(name, "quicksight:CreateDataSet", source); + assertThrows(AccessDeniedException.class, + () -> user.createDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name).name("Data").importMode("SPICE").physicalTableMap(tables))); + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth(ACCOUNT, "iam"), name, "p", """ + {"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"quicksight:CreateDataSet","Resource":["%s","%s","%s"]}]}""" + .formatted(source, other, sqlSource)); + user.createDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name).name("Data").importMode("SPICE").physicalTableMap(tables)); + cleanup.register(() -> rootDeleteDataSet(name)); + for (String denied : List.of(source, other, sqlSource)) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth(ACCOUNT, "iam"), name, "p", """ + {"Version":"2012-10-17","Statement":[ + {"Effect":"Allow","Action":"quicksight:CreateDataSet","Resource":"*"}, + {"Effect":"Deny","Action":"quicksight:CreateDataSet","Resource":"%s"}]}""".formatted(denied)); + assertThrows(AccessDeniedException.class, + () -> user.createDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name + "-denied").name("Denied") + .importMode("SPICE").physicalTableMap(tables))); + } + } + } + + @ParameterizedTest + @ValueSource(strings = {"SaaSTable", "FileSource"}) + void additionalPhysicalTableSourcesHonorScopedGrantsAndDenies(String kind) { + String name = "qs-source-" + UUID.randomUUID(); + EnforcementFixtures.UserCredentials credentials = EnforcementFixtures.createUser(cleanup, endpoint.getPort(), auth(ACCOUNT, "iam"), name); + try (QuickSightClient root = AwsTestClients.create(QuickSightClient.builder(), ACCOUNT, REGION); + QuickSightClient user = AwsTestClients.create(QuickSightClient.builder(), credentials.accessKeyId(), credentials.secretAccessKey(), REGION)) { + String source = root.createDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(name).name("Source").type("S3")).arn(); + cleanup.register(() -> rootDeleteDataSource(name)); + PhysicalTable table = switch (kind) { + case "SaaSTable" -> PhysicalTable.builder().saaSTable(value -> value.dataSourceArn(source) + .inputColumns(column -> column.name("value").type("STRING"))).build(); + case "FileSource" -> PhysicalTable.builder().fileSource(value -> value.dataSourceArn(source) + .inputColumns(column -> column.name("value").type("STRING"))).build(); + default -> throw new IllegalArgumentException(kind); + }; + policy(name, "quicksight:CreateDataSet", source); + user.createDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name).name("Data").importMode("SPICE") + .physicalTableMap(Map.of("table", table))); + cleanup.register(() -> rootDeleteDataSet(name)); + policy(name, "quicksight:CreateDataSet", source + "-other"); + assertThrows(AccessDeniedException.class, + () -> user.createDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name + "-denied").name("Denied") + .importMode("SPICE").physicalTableMap(Map.of("table", table)))); + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth(ACCOUNT, "iam"), name, "p", """ + {"Version":"2012-10-17","Statement":[ + {"Effect":"Allow","Action":"quicksight:CreateDataSet","Resource":"*"}, + {"Effect":"Deny","Action":"quicksight:CreateDataSet","Resource":"%s"}]}""".formatted(source)); + AccessDeniedException denied = assertThrows(AccessDeniedException.class, + () -> user.createDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name + "-denied").name("Denied") + .importMode("SPICE").physicalTableMap(Map.of("table", table)))); + assertEquals(401, denied.statusCode()); + assertThrows(ResourceNotFoundException.class, + () -> root.describeDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(name + "-denied"))); + } + } + + private void rootDeleteDashboard(String id) { + try (QuickSightClient root = AwsTestClients.create(QuickSightClient.builder(), ACCOUNT, REGION)) { + root.deleteDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(id)); + } + } + + private void rootDeleteDataSet(String id) { + try (QuickSightClient root = AwsTestClients.create(QuickSightClient.builder(), ACCOUNT, REGION)) { + root.deleteDataSet(request -> request.awsAccountId(ACCOUNT).dataSetId(id)); + } + } + + private void rootDeleteDataSource(String id) { + try (QuickSightClient root = AwsTestClients.create(QuickSightClient.builder(), ACCOUNT, REGION)) { + root.deleteDataSource(request -> request.awsAccountId(ACCOUNT).dataSourceId(id)); + } + } + + private void policy(String user, String action, String resource) { + EnforcementFixtures.putUserPolicy(endpoint.getPort(), auth(ACCOUNT, "iam"), user, "p", """ + {"Version":"2012-10-17","Statement":[{"Effect":"Allow","Action":"%s","Resource":"%s"}]}""" + .formatted(action, resource)); + } +} diff --git a/src/test/java/io/github/hectorvent/floci/services/quicksight/QuickSightIntegrationTest.java b/src/test/java/io/github/hectorvent/floci/services/quicksight/QuickSightIntegrationTest.java new file mode 100644 index 0000000000..56fd422986 --- /dev/null +++ b/src/test/java/io/github/hectorvent/floci/services/quicksight/QuickSightIntegrationTest.java @@ -0,0 +1,254 @@ +package io.github.hectorvent.floci.services.quicksight; + +import io.github.hectorvent.floci.testing.AwsTestClients; +import io.quarkus.test.common.http.TestHTTPResource; +import io.quarkus.test.junit.QuarkusTest; +import org.junit.jupiter.api.Test; +import software.amazon.awssdk.regions.Region; +import software.amazon.awssdk.services.quicksight.QuickSightClient; +import software.amazon.awssdk.services.quicksight.model.AccessDeniedException; +import software.amazon.awssdk.services.quicksight.model.DashboardSearchFilter; +import software.amazon.awssdk.services.quicksight.model.GenerateEmbedUrlForRegisteredUserResponse; +import software.amazon.awssdk.services.quicksight.model.InvalidNextTokenException; +import software.amazon.awssdk.services.quicksight.model.InvalidParameterValueException; +import software.amazon.awssdk.services.quicksight.model.ListIngestionsResponse; +import software.amazon.awssdk.services.quicksight.model.PhysicalTable; +import software.amazon.awssdk.services.quicksight.model.ResourceNotFoundException; +import software.amazon.awssdk.services.quicksight.model.ResourcePermission; +import software.amazon.awssdk.services.quicksight.model.SearchDashboardsResponse; +import software.amazon.awssdk.services.quicksight.model.SessionLifetimeInMinutesInvalidException; + +import java.net.URI; +import java.net.http.HttpClient; +import java.net.http.HttpRequest; +import java.net.http.HttpResponse; +import java.util.List; +import java.util.Map; +import java.util.UUID; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +@QuarkusTest +class QuickSightIntegrationTest { + private static final String ACCOUNT = "000000000000"; + @TestHTTPResource + URI endpoint; + + @Test + void embeddingUsesTheAuthenticatedResourceAccount() throws Exception { + String account = "111122223333"; + String id = "shared-" + UUID.randomUUID(); + try (QuickSightClient client = AwsTestClients.create(QuickSightClient.builder(), account, Region.EU_WEST_2); HttpClient http = HttpClient.newHttpClient()) { + String principal = client.registerUser(request -> request.awsAccountId(account).namespace("default") + .userName(id).email("reader@example.com").identityType("QUICKSIGHT").userRole("READER")).user().arn(); + try { + client.createDashboard(request -> request.awsAccountId(account).dashboardId(id).name("Other account") + .definition(definition -> definition.sheets(List.of())) + .permissions(ResourcePermission.builder().principal(principal).actions("quicksight:DescribeDashboard").build())); + String url = client.generateEmbedUrlForRegisteredUser(request -> request.awsAccountId(account).userArn(principal) + .experienceConfiguration(experience -> experience.dashboard(dashboard -> dashboard.initialDashboardId(id)))).embedUrl(); + URI generated = URI.create(url); + URI local = endpoint.resolve(generated.getRawPath() + "?" + generated.getRawQuery()); + HttpResponse content = http.send(HttpRequest.newBuilder(local).GET().build(), HttpResponse.BodyHandlers.ofString()); + assertEquals(200, content.statusCode(), content.body()); + assertTrue(content.body().contains("Other account")); + } finally { + client.deleteDashboard(request -> request.awsAccountId(account).dashboardId(id)); + } + } + } + + @Test + void aCallerCannotCreateReadOrDeleteAnotherAccountsDashboard() { + String owner = "111122223333"; + String id = "isolated-" + UUID.randomUUID(); + try (QuickSightClient caller = client(Region.EU_WEST_2); + QuickSightClient target = AwsTestClients.create(QuickSightClient.builder(), owner, Region.EU_WEST_2)) { + target.createDashboard(request -> request.awsAccountId(owner).dashboardId(id).name("Owner") + .definition(definition -> definition.sheets(List.of()))); + try { + AccessDeniedException read = assertThrows(AccessDeniedException.class, + () -> caller.describeDashboard(request -> request.awsAccountId(owner).dashboardId(id))); + assertEquals(401, read.statusCode()); + assertThrows(AccessDeniedException.class, + () -> caller.deleteDashboard(request -> request.awsAccountId(owner).dashboardId(id))); + assertThrows(AccessDeniedException.class, + () -> caller.createDashboard(request -> request.awsAccountId(owner).dashboardId(id + "-new") + .name("Intruder").definition(definition -> definition.sheets(List.of())))); + assertEquals("Owner", target.describeDashboard(request -> request.awsAccountId(owner).dashboardId(id)).dashboard().name()); + assertThrows(ResourceNotFoundException.class, + () -> target.describeDashboard(request -> request.awsAccountId(owner).dashboardId(id + "-new"))); + } finally { + target.deleteDashboard(request -> request.awsAccountId(owner).dashboardId(id)); + } + } + } + + @Test + void searchFiltersDirectSharingAndScopesTokensToUserAccountAndRegion() { + String id = "scoped-" + UUID.randomUUID(); + String otherAccount = "444455556666"; + try (QuickSightClient client = client(Region.EU_WEST_2); QuickSightClient west = client(Region.US_WEST_2); + QuickSightClient foreign = AwsTestClients.create(QuickSightClient.builder(), otherAccount, Region.EU_WEST_2)) { + String user = register(client, ACCOUNT, id); + String otherUser = register(client, ACCOUNT, "other-" + id); + String foreignUser = register(foreign, otherAccount, id); + String westUser = register(west, ACCOUNT, id); + for (String dashboard : List.of(id + "-a", id + "-b")) { + client.createDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(dashboard).name("Shared") + .definition(definition -> definition.sheets(List.of())) + .permissions(ResourcePermission.builder().principal(user).actions("quicksight:DescribeDashboard").build())); + } + client.createDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(id).name("Private") + .definition(definition -> definition.sheets(List.of())) + .permissions(ResourcePermission.builder().principal(user).actions("quicksight:ListDashboards").build())); + try { + List filters = filters(user); + SearchDashboardsResponse page = client.searchDashboards(request -> request.awsAccountId(ACCOUNT).filters(filters).maxResults(1)); + assertEquals(id + "-a", page.dashboardSummaryList().getFirst().dashboardId()); + assertNotNull(page.nextToken()); + assertTrue(client.searchDashboards(request -> request.awsAccountId(ACCOUNT).filters(filters(otherUser))).dashboardSummaryList().isEmpty()); + assertThrows(InvalidNextTokenException.class, () -> client.searchDashboards(request -> request.awsAccountId(ACCOUNT) + .filters(filters(otherUser)).nextToken(page.nextToken()))); + assertThrows(InvalidNextTokenException.class, () -> foreign.searchDashboards(request -> request.awsAccountId(otherAccount) + .filters(filters(foreignUser)).nextToken(page.nextToken()))); + assertThrows(InvalidNextTokenException.class, () -> west.searchDashboards(request -> request.awsAccountId(ACCOUNT) + .filters(filters(westUser)).nextToken(page.nextToken()))); + assertThrows(ResourceNotFoundException.class, () -> west.describeDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(id))); + assertThrows(ResourceNotFoundException.class, () -> foreign.describeDashboard(request -> request.awsAccountId(otherAccount).dashboardId(id))); + assertThrows(InvalidParameterValueException.class, () -> client.searchDashboards(request -> request.awsAccountId(ACCOUNT).filters(filters).maxResults(0))); + assertThrows(InvalidParameterValueException.class, () -> client.searchDashboards(request -> request.awsAccountId(ACCOUNT).filters(filters).maxResults(101))); + assertThrows(AccessDeniedException.class, () -> client.generateEmbedUrlForRegisteredUser(request -> request.awsAccountId(ACCOUNT).userArn(foreignUser) + .experienceConfiguration(experience -> experience.dashboard(dashboard -> dashboard.initialDashboardId(id))))); + client.deleteDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(id + "-a")); + SearchDashboardsResponse remaining = client.searchDashboards(request -> request.awsAccountId(ACCOUNT) + .filters(filters).maxResults(1).nextToken(page.nextToken())); + assertEquals(List.of(id + "-b"), remaining.dashboardSummaryList().stream().map(value -> value.dashboardId()).toList()); + } finally { + for (String dashboard : List.of(id, id + "-a", id + "-b")) { + try { + client.deleteDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(dashboard)); + } catch (ResourceNotFoundException expected) { + // The first page's dashboard was deleted to exercise cursor stability. + } + } + } + } + } + + @Test + void embedPageEscapesMetadataAndChecksOriginAndSessionCookie() throws Exception { + String id = "html-" + UUID.randomUUID(); + try (QuickSightClient client = client(Region.EU_WEST_2); HttpClient http = HttpClient.newHttpClient()) { + String user = register(client, ACCOUNT, id); + client.createDashboard(request -> request.awsAccountId(ACCOUNT).dashboardId(id).name(" & metadata") + .definition(definition -> definition.sheets(List.of())) + .permissions(ResourcePermission.builder().principal(user).actions("quicksight:DescribeDashboard").build())); + try { + URI generated = URI.create(client.generateEmbedUrlForRegisteredUser(request -> request.awsAccountId(ACCOUNT).userArn(user) + .allowedDomains("https://APP.example.com:443", "https://PORTAL.example.com:443") + .experienceConfiguration(experience -> experience.dashboard(dashboard -> dashboard.initialDashboardId(id)))).embedUrl()); + URI local = endpoint.resolve(generated.getRawPath() + "?" + generated.getRawQuery()); + assertEquals(403, http.send(HttpRequest.newBuilder(local).header("Referer", "https://other.example/").build(), HttpResponse.BodyHandlers.ofString()).statusCode()); + assertEquals(403, http.send(HttpRequest.newBuilder(local).header("Referer", "https://app.example.com:8443/").build(), HttpResponse.BodyHandlers.ofString()).statusCode()); + HttpResponse page = http.send(HttpRequest.newBuilder(local).header("Referer", "https://app.example.com/reports").build(), HttpResponse.BodyHandlers.ofString()); + assertEquals(200, page.statusCode()); + assertTrue(page.body().contains("<script>bad()</script> & metadata")); + assertFalse(page.body().contains("