Skip to content

Commit

Permalink
feat(client-location): This release adds API support for custom layer…
Browse files Browse the repository at this point in the history
…s for the maps service APIs: CreateMap, UpdateMap, DescribeMap.
  • Loading branch information
awstools committed Jan 10, 2024
1 parent e7c58be commit 75ee39f
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 0 deletions.
3 changes: 3 additions & 0 deletions clients/client-location/src/commands/CreateMapCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 3 additions & 0 deletions clients/client-location/src/commands/DescribeMapCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 3 additions & 0 deletions clients/client-location/src/commands/UpdateMapCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
20 changes: 20 additions & 0 deletions clients/client-location/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2680,6 +2680,16 @@ export interface MapConfiguration {
* </note>
*/
PoliticalView?: string;

/**
* @public
* <p>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 <code>unset</code>.</p>
* <note>
* <p>Not all map resources or styles support custom layers. See Custom Layers for more information.</p>
* </note>
*/
CustomLayers?: string[];
}

/**
Expand Down Expand Up @@ -5735,6 +5745,16 @@ export interface MapConfigurationUpdate {
* </note>
*/
PoliticalView?: string;

/**
* @public
* <p>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 <code>unset</code>.</p>
* <note>
* <p>Not all map resources or styles support custom layers. See Custom Layers for more information.</p>
* </note>
*/
CustomLayers?: string[];
}

/**
Expand Down
4 changes: 4 additions & 0 deletions clients/client-location/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5684,6 +5684,8 @@ const se_Circle = (input: Circle, context: __SerdeContext): any => {

// se_CountryCodeList omitted.

// se_CustomLayerList omitted.

// se_DataSourceConfiguration omitted.

// se_DeviceIdsList omitted.
Expand Down Expand Up @@ -5968,6 +5970,8 @@ const de_Circle = (output: any, context: __SerdeContext): Circle => {

// de_CountryCodeList omitted.

// de_CustomLayerList omitted.

// de_DataSourceConfiguration omitted.

/**
Expand Down
35 changes: 35 additions & 0 deletions codegen/sdk-codegen/aws-models/location.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -6560,6 +6581,13 @@
"traits": {
"smithy.api#documentation": "<p>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 <code>IND</code> for the Indian view.</p>\n <p>Default is unset.</p>\n <note>\n <p>Not all map resources or styles support political view styles. See \n <a href=\"https://docs.aws.amazon.com/location/latest/developerguide/map-concepts.html#political-views\">Political \n views</a> \n for more information.</p>\n </note>"
}
},
"CustomLayers": {
"target": "com.amazonaws.location#CustomLayerList",
"traits": {
"aws.cloudformation#cfnExcludeProperty": {},
"smithy.api#documentation": "<p>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 <code>unset</code>.</p>\n <note>\n <p>Not all map resources or styles support custom layers. See Custom Layers for more information.</p>\n </note>"
}
}
},
"traits": {
Expand All @@ -6574,6 +6602,13 @@
"traits": {
"smithy.api#documentation": "<p>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 <code>IND</code> for the Indian view.</p>\n <note>\n <p>Not all map resources or styles support political view styles. See \n <a href=\"https://docs.aws.amazon.com/location/latest/developerguide/map-concepts.html#political-views\">Political \n views</a> \n for more information.</p>\n </note>"
}
},
"CustomLayers": {
"target": "com.amazonaws.location#CustomLayerList",
"traits": {
"aws.cloudformation#cfnExcludeProperty": {},
"smithy.api#documentation": "<p>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 <code>unset</code>.</p>\n <note>\n <p>Not all map resources or styles support custom layers. See Custom Layers for more information.</p>\n </note>"
}
}
},
"traits": {
Expand Down

0 comments on commit 75ee39f

Please sign in to comment.