Skip to content

Commit

Permalink
feat(client-outposts): This release adds the AssetLocation structure …
Browse files Browse the repository at this point in the history
…to the ListAssets response. AssetLocation includes the RackElevation for an Asset.
  • Loading branch information
awstools committed Jun 20, 2022
1 parent 64f990a commit f24a55d
Show file tree
Hide file tree
Showing 3 changed files with 71 additions and 0 deletions.
30 changes: 30 additions & 0 deletions clients/client-outposts/src/models/models_0.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,29 @@ export enum AddressType {
SHIPPING_ADDRESS = "SHIPPING_ADDRESS",
}

/**
* <p>
* Information about the position of the asset in a rack.
* </p>
*/
export interface AssetLocation {
/**
* <p>
* The position of an asset in a rack measured in rack units.
* </p>
*/
RackElevation?: number;
}

export namespace AssetLocation {
/**
* @internal
*/
export const filterSensitiveLog = (obj: AssetLocation): any => ({
...obj,
});
}

export enum AssetType {
COMPUTE = "COMPUTE",
}
Expand Down Expand Up @@ -160,6 +183,13 @@ export interface AssetInfo {
* </p>
*/
ComputeAttributes?: ComputeAttributes;

/**
* <p>
* The position of an asset in a rack.
* </p>
*/
AssetLocation?: AssetLocation;
}

export namespace AssetInfo {
Expand Down
11 changes: 11 additions & 0 deletions clients/client-outposts/src/protocols/Aws_restJson1.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ import {
AccessDeniedException,
Address,
AssetInfo,
AssetLocation,
CatalogItem,
ComputeAttributes,
ConflictException,
Expand Down Expand Up @@ -2523,6 +2524,10 @@ const deserializeAws_restJson1Address = (output: any, context: __SerdeContext):
const deserializeAws_restJson1AssetInfo = (output: any, context: __SerdeContext): AssetInfo => {
return {
AssetId: __expectString(output.AssetId),
AssetLocation:
output.AssetLocation !== undefined && output.AssetLocation !== null
? deserializeAws_restJson1AssetLocation(output.AssetLocation, context)
: undefined,
AssetType: __expectString(output.AssetType),
ComputeAttributes:
output.ComputeAttributes !== undefined && output.ComputeAttributes !== null
Expand All @@ -2544,6 +2549,12 @@ const deserializeAws_restJson1AssetListDefinition = (output: any, context: __Ser
return retVal;
};

const deserializeAws_restJson1AssetLocation = (output: any, context: __SerdeContext): AssetLocation => {
return {
RackElevation: __limitedParseFloat32(output.RackElevation),
} as any;
};

const deserializeAws_restJson1CatalogItem = (output: any, context: __SerdeContext): CatalogItem => {
return {
CatalogItemId: __expectString(output.CatalogItemId),
Expand Down
30 changes: 30 additions & 0 deletions codegen/sdk-codegen/aws-models/outposts.json
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@
"traits": {
"smithy.api#documentation": "<p>\n Information about compute hardware assets. \n </p>"
}
},
"AssetLocation": {
"target": "com.amazonaws.outposts#AssetLocation",
"traits": {
"smithy.api#documentation": "<p>\n The position of an asset in a rack. \n </p>"
}
}
},
"traits": {
Expand All @@ -235,6 +241,20 @@
"target": "com.amazonaws.outposts#AssetInfo"
}
},
"com.amazonaws.outposts#AssetLocation": {
"type": "structure",
"members": {
"RackElevation": {
"target": "com.amazonaws.outposts#RackElevation",
"traits": {
"smithy.api#documentation": "<p>\n The position of an asset in a rack measured in rack units.\n </p>"
}
}
},
"traits": {
"smithy.api#documentation": "<p>\n Information about the position of the asset in a rack. \n </p>"
}
},
"com.amazonaws.outposts#AssetType": {
"type": "string",
"traits": {
Expand Down Expand Up @@ -2794,6 +2814,16 @@
"com.amazonaws.outposts#Quantity": {
"type": "string"
},
"com.amazonaws.outposts#RackElevation": {
"type": "float",
"traits": {
"smithy.api#box": {},
"smithy.api#range": {
"min": 0,
"max": 99
}
}
},
"com.amazonaws.outposts#RackId": {
"type": "string",
"traits": {
Expand Down

0 comments on commit f24a55d

Please sign in to comment.