Skip to content

Commit f24a55d

Browse files
author
awstools
committed
feat(client-outposts): This release adds the AssetLocation structure to the ListAssets response. AssetLocation includes the RackElevation for an Asset.
1 parent 64f990a commit f24a55d

File tree

3 files changed

+71
-0
lines changed

3 files changed

+71
-0
lines changed

clients/client-outposts/src/models/models_0.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,29 @@ export enum AddressType {
100100
SHIPPING_ADDRESS = "SHIPPING_ADDRESS",
101101
}
102102

103+
/**
104+
* <p>
105+
* Information about the position of the asset in a rack.
106+
* </p>
107+
*/
108+
export interface AssetLocation {
109+
/**
110+
* <p>
111+
* The position of an asset in a rack measured in rack units.
112+
* </p>
113+
*/
114+
RackElevation?: number;
115+
}
116+
117+
export namespace AssetLocation {
118+
/**
119+
* @internal
120+
*/
121+
export const filterSensitiveLog = (obj: AssetLocation): any => ({
122+
...obj,
123+
});
124+
}
125+
103126
export enum AssetType {
104127
COMPUTE = "COMPUTE",
105128
}
@@ -160,6 +183,13 @@ export interface AssetInfo {
160183
* </p>
161184
*/
162185
ComputeAttributes?: ComputeAttributes;
186+
187+
/**
188+
* <p>
189+
* The position of an asset in a rack.
190+
* </p>
191+
*/
192+
AssetLocation?: AssetLocation;
163193
}
164194

165195
export namespace AssetInfo {

clients/client-outposts/src/protocols/Aws_restJson1.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ import {
5656
AccessDeniedException,
5757
Address,
5858
AssetInfo,
59+
AssetLocation,
5960
CatalogItem,
6061
ComputeAttributes,
6162
ConflictException,
@@ -2523,6 +2524,10 @@ const deserializeAws_restJson1Address = (output: any, context: __SerdeContext):
25232524
const deserializeAws_restJson1AssetInfo = (output: any, context: __SerdeContext): AssetInfo => {
25242525
return {
25252526
AssetId: __expectString(output.AssetId),
2527+
AssetLocation:
2528+
output.AssetLocation !== undefined && output.AssetLocation !== null
2529+
? deserializeAws_restJson1AssetLocation(output.AssetLocation, context)
2530+
: undefined,
25262531
AssetType: __expectString(output.AssetType),
25272532
ComputeAttributes:
25282533
output.ComputeAttributes !== undefined && output.ComputeAttributes !== null
@@ -2544,6 +2549,12 @@ const deserializeAws_restJson1AssetListDefinition = (output: any, context: __Ser
25442549
return retVal;
25452550
};
25462551

2552+
const deserializeAws_restJson1AssetLocation = (output: any, context: __SerdeContext): AssetLocation => {
2553+
return {
2554+
RackElevation: __limitedParseFloat32(output.RackElevation),
2555+
} as any;
2556+
};
2557+
25472558
const deserializeAws_restJson1CatalogItem = (output: any, context: __SerdeContext): CatalogItem => {
25482559
return {
25492560
CatalogItemId: __expectString(output.CatalogItemId),

codegen/sdk-codegen/aws-models/outposts.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,12 @@
223223
"traits": {
224224
"smithy.api#documentation": "<p>\n Information about compute hardware assets. \n </p>"
225225
}
226+
},
227+
"AssetLocation": {
228+
"target": "com.amazonaws.outposts#AssetLocation",
229+
"traits": {
230+
"smithy.api#documentation": "<p>\n The position of an asset in a rack. \n </p>"
231+
}
226232
}
227233
},
228234
"traits": {
@@ -235,6 +241,20 @@
235241
"target": "com.amazonaws.outposts#AssetInfo"
236242
}
237243
},
244+
"com.amazonaws.outposts#AssetLocation": {
245+
"type": "structure",
246+
"members": {
247+
"RackElevation": {
248+
"target": "com.amazonaws.outposts#RackElevation",
249+
"traits": {
250+
"smithy.api#documentation": "<p>\n The position of an asset in a rack measured in rack units.\n </p>"
251+
}
252+
}
253+
},
254+
"traits": {
255+
"smithy.api#documentation": "<p>\n Information about the position of the asset in a rack. \n </p>"
256+
}
257+
},
238258
"com.amazonaws.outposts#AssetType": {
239259
"type": "string",
240260
"traits": {
@@ -2794,6 +2814,16 @@
27942814
"com.amazonaws.outposts#Quantity": {
27952815
"type": "string"
27962816
},
2817+
"com.amazonaws.outposts#RackElevation": {
2818+
"type": "float",
2819+
"traits": {
2820+
"smithy.api#box": {},
2821+
"smithy.api#range": {
2822+
"min": 0,
2823+
"max": 99
2824+
}
2825+
}
2826+
},
27972827
"com.amazonaws.outposts#RackId": {
27982828
"type": "string",
27992829
"traits": {

0 commit comments

Comments
 (0)