From 75ee39f2f6280c12f13ee1942ac45e8c9e3a3c27 Mon Sep 17 00:00:00 2001 From: awstools Date: Wed, 10 Jan 2024 19:15:57 +0000 Subject: [PATCH] feat(client-location): This release adds API support for custom layers for the maps service APIs: CreateMap, UpdateMap, DescribeMap. --- .../src/commands/CreateMapCommand.ts | 3 ++ .../src/commands/DescribeMapCommand.ts | 3 ++ .../src/commands/UpdateMapCommand.ts | 3 ++ .../client-location/src/models/models_0.ts | 20 +++++++++++ .../src/protocols/Aws_restJson1.ts | 4 +++ codegen/sdk-codegen/aws-models/location.json | 35 +++++++++++++++++++ 6 files changed, 68 insertions(+) diff --git a/clients/client-location/src/commands/CreateMapCommand.ts b/clients/client-location/src/commands/CreateMapCommand.ts index 0f6c6812096b2..454d107afc687 100644 --- a/clients/client-location/src/commands/CreateMapCommand.ts +++ b/clients/client-location/src/commands/CreateMapCommand.ts @@ -47,6 +47,9 @@ export interface CreateMapCommandOutput extends CreateMapResponse, __MetadataBea * Configuration: { // MapConfiguration * Style: "STRING_VALUE", // required * PoliticalView: "STRING_VALUE", + * CustomLayers: [ // CustomLayerList + * "STRING_VALUE", + * ], * }, * PricingPlan: "STRING_VALUE", * Description: "STRING_VALUE", diff --git a/clients/client-location/src/commands/DescribeMapCommand.ts b/clients/client-location/src/commands/DescribeMapCommand.ts index def1c880b8af1..bb379d5c19aec 100644 --- a/clients/client-location/src/commands/DescribeMapCommand.ts +++ b/clients/client-location/src/commands/DescribeMapCommand.ts @@ -48,6 +48,9 @@ export interface DescribeMapCommandOutput extends DescribeMapResponse, __Metadat * // Configuration: { // MapConfiguration * // Style: "STRING_VALUE", // required * // PoliticalView: "STRING_VALUE", + * // CustomLayers: [ // CustomLayerList + * // "STRING_VALUE", + * // ], * // }, * // Description: "STRING_VALUE", // required * // Tags: { // TagMap diff --git a/clients/client-location/src/commands/UpdateMapCommand.ts b/clients/client-location/src/commands/UpdateMapCommand.ts index be61568eecadb..8e16c7779554d 100644 --- a/clients/client-location/src/commands/UpdateMapCommand.ts +++ b/clients/client-location/src/commands/UpdateMapCommand.ts @@ -41,6 +41,9 @@ export interface UpdateMapCommandOutput extends UpdateMapResponse, __MetadataBea * Description: "STRING_VALUE", * ConfigurationUpdate: { // MapConfigurationUpdate * PoliticalView: "STRING_VALUE", + * CustomLayers: [ // CustomLayerList + * "STRING_VALUE", + * ], * }, * }; * const command = new UpdateMapCommand(input); diff --git a/clients/client-location/src/models/models_0.ts b/clients/client-location/src/models/models_0.ts index 8a18f02ec52d8..868690bfc6bbb 100644 --- a/clients/client-location/src/models/models_0.ts +++ b/clients/client-location/src/models/models_0.ts @@ -2680,6 +2680,16 @@ export interface MapConfiguration { * */ PoliticalView?: string; + + /** + * @public + *

Specifies the custom layers for the style. Leave unset to not enable any custom layer, or, for styles that support custom layers, you can enable layer(s), such as POI layer for the VectorEsriNavigation style. + * Default is unset.

+ * + *

Not all map resources or styles support custom layers. See Custom Layers for more information.

+ *
+ */ + CustomLayers?: string[]; } /** @@ -5735,6 +5745,16 @@ export interface MapConfigurationUpdate { * */ PoliticalView?: string; + + /** + * @public + *

Specifies the custom layers for the style. Leave unset to not enable any custom layer, or, for styles that support custom layers, you can enable layer(s), such as POI layer for the VectorEsriNavigation style. + * Default is unset.

+ * + *

Not all map resources or styles support custom layers. See Custom Layers for more information.

+ *
+ */ + CustomLayers?: string[]; } /** diff --git a/clients/client-location/src/protocols/Aws_restJson1.ts b/clients/client-location/src/protocols/Aws_restJson1.ts index 04ad62a584d39..7da5b49f08d9f 100644 --- a/clients/client-location/src/protocols/Aws_restJson1.ts +++ b/clients/client-location/src/protocols/Aws_restJson1.ts @@ -5684,6 +5684,8 @@ const se_Circle = (input: Circle, context: __SerdeContext): any => { // se_CountryCodeList omitted. +// se_CustomLayerList omitted. + // se_DataSourceConfiguration omitted. // se_DeviceIdsList omitted. @@ -5968,6 +5970,8 @@ const de_Circle = (output: any, context: __SerdeContext): Circle => { // de_CountryCodeList omitted. +// de_CustomLayerList omitted. + // de_DataSourceConfiguration omitted. /** diff --git a/codegen/sdk-codegen/aws-models/location.json b/codegen/sdk-codegen/aws-models/location.json index 7e17f903f96df..6292ad96af6e0 100644 --- a/codegen/sdk-codegen/aws-models/location.json +++ b/codegen/sdk-codegen/aws-models/location.json @@ -2216,6 +2216,27 @@ } } }, + "com.amazonaws.location#CustomLayer": { + "type": "string", + "traits": { + "smithy.api#length": { + "min": 1, + "max": 100 + }, + "smithy.api#pattern": "^[-._\\w]+$" + } + }, + "com.amazonaws.location#CustomLayerList": { + "type": "list", + "member": { + "target": "com.amazonaws.location#CustomLayer" + }, + "traits": { + "smithy.api#length": { + "max": 10 + } + } + }, "com.amazonaws.location#DataSourceConfiguration": { "type": "structure", "members": { @@ -6560,6 +6581,13 @@ "traits": { "smithy.api#documentation": "

Specifies the political view for the style. Leave unset to not use a political \n view, or, for styles that support specific political views, you can choose a view, \n such as IND for the Indian view.

\n

Default is unset.

\n \n

Not all map resources or styles support political view styles. See \n Political \n views \n for more information.

\n
" } + }, + "CustomLayers": { + "target": "com.amazonaws.location#CustomLayerList", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Specifies the custom layers for the style. Leave unset to not enable any custom layer, or, for styles that support custom layers, you can enable layer(s), such as POI layer for the VectorEsriNavigation style.\nDefault is unset.

\n \n

Not all map resources or styles support custom layers. See Custom Layers for more information.

\n
" + } } }, "traits": { @@ -6574,6 +6602,13 @@ "traits": { "smithy.api#documentation": "

Specifies the political view for the style. Set to an empty string to not use a\n political view, or, for styles that support specific political views, you can choose a \n view, such as IND for the Indian view.

\n \n

Not all map resources or styles support political view styles. See \n Political \n views \n for more information.

\n
" } + }, + "CustomLayers": { + "target": "com.amazonaws.location#CustomLayerList", + "traits": { + "aws.cloudformation#cfnExcludeProperty": {}, + "smithy.api#documentation": "

Specifies the custom layers for the style. Leave unset to not enable any custom layer, or, for styles that support custom layers, you can enable layer(s), such as POI layer for the VectorEsriNavigation style.\nDefault is unset.

\n \n

Not all map resources or styles support custom layers. See Custom Layers for more information.

\n
" + } } }, "traits": {