Skip to content

Commit 12921a6

Browse files
author
awstools
committed
feat(client-outposts): This change allows listAssets to surface pending and non-compute asset information. Adds the INSTALLING asset state enum and the STORAGE, POWERSHELF, SWITCH, and NETWORKING AssetTypes.
1 parent 229167d commit 12921a6

5 files changed

Lines changed: 100 additions & 7 deletions

File tree

clients/client-outposts/src/commands/ListAssetsCommand.ts

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,10 @@ export interface ListAssetsCommandOutput extends ListAssetsOutput, __MetadataBea
4747
* MaxResults: Number("int"),
4848
* NextToken: "STRING_VALUE",
4949
* StatusFilter: [ // StatusList
50-
* "ACTIVE" || "RETIRING" || "ISOLATED",
50+
* "ACTIVE" || "RETIRING" || "ISOLATED" || "INSTALLING",
51+
* ],
52+
* AssetTypeFilter: [ // AssetTypeList
53+
* "COMPUTE" || "STORAGE" || "POWERSHELF" || "SWITCH" || "NETWORKING",
5154
* ],
5255
* };
5356
* const command = new ListAssetsCommand(input);
@@ -57,10 +60,10 @@ export interface ListAssetsCommandOutput extends ListAssetsOutput, __MetadataBea
5760
* // { // AssetInfo
5861
* // AssetId: "STRING_VALUE",
5962
* // RackId: "STRING_VALUE",
60-
* // AssetType: "COMPUTE",
63+
* // AssetType: "COMPUTE" || "STORAGE" || "POWERSHELF" || "SWITCH" || "NETWORKING",
6164
* // ComputeAttributes: { // ComputeAttributes
6265
* // HostId: "STRING_VALUE",
63-
* // State: "ACTIVE" || "ISOLATED" || "RETIRING",
66+
* // State: "ACTIVE" || "ISOLATED" || "RETIRING" || "INSTALLING",
6467
* // InstanceFamilies: [ // InstanceFamilies
6568
* // "STRING_VALUE",
6669
* // ],

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,10 @@ export type AddressType = (typeof AddressType)[keyof typeof AddressType];
1818
*/
1919
export const AssetType = {
2020
COMPUTE: "COMPUTE",
21+
NETWORKING: "NETWORKING",
22+
POWERSHELF: "POWERSHELF",
23+
STORAGE: "STORAGE",
24+
SWITCH: "SWITCH",
2125
} as const;
2226
/**
2327
* @public
@@ -30,6 +34,7 @@ export type AssetType = (typeof AssetType)[keyof typeof AssetType];
3034
*/
3135
export const ComputeAssetState = {
3236
ACTIVE: "ACTIVE",
37+
INSTALLING: "INSTALLING",
3338
ISOLATED: "ISOLATED",
3439
RETIRING: "RETIRING",
3540
} as const;
@@ -61,6 +66,7 @@ export type AWSServiceName = (typeof AWSServiceName)[keyof typeof AWSServiceName
6166
*/
6267
export const AssetState = {
6368
ACTIVE: "ACTIVE",
69+
INSTALLING: "INSTALLING",
6470
ISOLATED: "ISOLATED",
6571
RETIRING: "RETIRING",
6672
} as const;

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

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,6 +162,10 @@ export interface ComputeAttributes {
162162
* resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before
163163
* the asset can be replaced.</p>
164164
* </li>
165+
* <li>
166+
* <p>INSTALLING - The asset is being installed and can't yet provide capacity for new compute
167+
* resources.</p>
168+
* </li>
165169
* </ul>
166170
* @public
167171
*/
@@ -1836,6 +1840,29 @@ export interface ListAssetsInput {
18361840
* @public
18371841
*/
18381842
StatusFilter?: AssetState[] | undefined;
1843+
1844+
/**
1845+
* <p>Filters the results by asset type.</p>
1846+
* <ul>
1847+
* <li>
1848+
* <p>COMPUTE - Server asset used for customer compute </p>
1849+
* </li>
1850+
* <li>
1851+
* <p>STORAGE - Server asset used by storage services </p>
1852+
* </li>
1853+
* <li>
1854+
* <p>POWERSHELF - Powershelf assets </p>
1855+
* </li>
1856+
* <li>
1857+
* <p>SWITCH - Switch assets </p>
1858+
* </li>
1859+
* <li>
1860+
* <p>NETWORKING - Asset managed by Amazon Web Services for networking purposes </p>
1861+
* </li>
1862+
* </ul>
1863+
* @public
1864+
*/
1865+
AssetTypeFilter?: AssetType[] | undefined;
18391866
}
18401867

18411868
/**

clients/client-outposts/src/schemas/schemas_0.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ const _ALs = "AssetLocation";
2121
const _ASF = "AwsServiceFilter";
2222
const _ASN = "AwsServiceName";
2323
const _AT = "AssetType";
24+
const _ATF = "AssetTypeFilter";
2425
const _ATd = "AddressType";
2526
const _AZ = "AvailabilityZone";
2627
const _AZF = "AvailabilityZoneFilter";
@@ -652,8 +653,8 @@ export var ListAssetInstancesOutput$: StaticStructureSchema = [3, n0, _LAIO,
652653
];
653654
export var ListAssetsInput$: StaticStructureSchema = [3, n0, _LAI,
654655
0,
655-
[_OI, _HIF, _MR, _NT, _SF],
656-
[[0, 1], [64 | 0, { [_hQ]: _HIF }], [1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }], [64 | 0, { [_hQ]: _SF }]], 1
656+
[_OI, _HIF, _MR, _NT, _SF, _ATF],
657+
[[0, 1], [64 | 0, { [_hQ]: _HIF }], [1, { [_hQ]: _MR }], [0, { [_hQ]: _NT }], [64 | 0, { [_hQ]: _SF }], [64 | 0, { [_hQ]: _ATF }]], 1
657658
];
658659
export var ListAssetsOutput$: StaticStructureSchema = [3, n0, _LAO,
659660
0,
@@ -866,6 +867,7 @@ var AssetInstanceList: StaticListSchema = [1, n0, _AILs,
866867
var AssetListDefinition: StaticListSchema = [1, n0, _ALD,
867868
0, () => AssetInfo$
868869
];
870+
var AssetTypeList = 64 | 0;
869871
var AvailabilityZoneIdList = 64 | 0;
870872
var AvailabilityZoneList = 64 | 0;
871873
var AWSServiceNameList = 64 | 0;

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

Lines changed: 57 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,12 @@
418418
"traits": {
419419
"smithy.api#enumValue": "ISOLATED"
420420
}
421+
},
422+
"INSTALLING": {
423+
"target": "smithy.api#Unit",
424+
"traits": {
425+
"smithy.api#enumValue": "INSTALLING"
426+
}
421427
}
422428
}
423429
},
@@ -429,6 +435,42 @@
429435
"traits": {
430436
"smithy.api#enumValue": "COMPUTE"
431437
}
438+
},
439+
"STORAGE": {
440+
"target": "smithy.api#Unit",
441+
"traits": {
442+
"smithy.api#enumValue": "STORAGE"
443+
}
444+
},
445+
"POWERSHELF": {
446+
"target": "smithy.api#Unit",
447+
"traits": {
448+
"smithy.api#enumValue": "POWERSHELF"
449+
}
450+
},
451+
"SWITCH": {
452+
"target": "smithy.api#Unit",
453+
"traits": {
454+
"smithy.api#enumValue": "SWITCH"
455+
}
456+
},
457+
"NETWORKING": {
458+
"target": "smithy.api#Unit",
459+
"traits": {
460+
"smithy.api#enumValue": "NETWORKING"
461+
}
462+
}
463+
}
464+
},
465+
"com.amazonaws.outposts#AssetTypeList": {
466+
"type": "list",
467+
"member": {
468+
"target": "com.amazonaws.outposts#AssetType"
469+
},
470+
"traits": {
471+
"smithy.api#length": {
472+
"min": 1,
473+
"max": 5
432474
}
433475
}
434476
},
@@ -1026,6 +1068,12 @@
10261068
"traits": {
10271069
"smithy.api#enumValue": "RETIRING"
10281070
}
1071+
},
1072+
"INSTALLING": {
1073+
"target": "smithy.api#Unit",
1074+
"traits": {
1075+
"smithy.api#enumValue": "INSTALLING"
1076+
}
10291077
}
10301078
}
10311079
},
@@ -1041,7 +1089,7 @@
10411089
"State": {
10421090
"target": "com.amazonaws.outposts#ComputeAssetState",
10431091
"traits": {
1044-
"smithy.api#documentation": "<p>The state.</p>\n <ul>\n <li>\n <p>ACTIVE - The asset is available and can provide capacity for new compute\n resources.</p>\n </li>\n <li>\n <p>ISOLATED - The asset is undergoing maintenance and can't provide capacity for new\n compute resources. Existing compute resources on the asset are not affected.</p>\n </li>\n <li>\n <p>RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute\n resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before\n the asset can be replaced.</p>\n </li>\n </ul>"
1092+
"smithy.api#documentation": "<p>The state.</p>\n <ul>\n <li>\n <p>ACTIVE - The asset is available and can provide capacity for new compute\n resources.</p>\n </li>\n <li>\n <p>ISOLATED - The asset is undergoing maintenance and can't provide capacity for new\n compute resources. Existing compute resources on the asset are not affected.</p>\n </li>\n <li>\n <p>RETIRING - The underlying hardware for the asset is degraded. Capacity for new compute\n resources is reduced. Amazon Web Services sends notifications for resources that must be stopped before\n the asset can be replaced.</p>\n </li>\n <li>\n <p>INSTALLING - The asset is being installed and can't yet provide capacity for new compute\n resources.</p>\n </li>\n </ul>"
10451093
}
10461094
},
10471095
"InstanceFamilies": {
@@ -3045,6 +3093,13 @@
30453093
"smithy.api#documentation": "<p>Filters the results by state.</p>",
30463094
"smithy.api#httpQuery": "StatusFilter"
30473095
}
3096+
},
3097+
"AssetTypeFilter": {
3098+
"target": "com.amazonaws.outposts#AssetTypeList",
3099+
"traits": {
3100+
"smithy.api#documentation": "<p>Filters the results by asset type.</p>\n <ul>\n <li>\n <p>COMPUTE - Server asset used for customer compute </p>\n </li>\n <li>\n <p>STORAGE - Server asset used by storage services </p>\n </li>\n <li>\n <p>POWERSHELF - Powershelf assets </p>\n </li>\n <li>\n <p>SWITCH - Switch assets </p>\n </li>\n <li>\n <p>NETWORKING - Asset managed by Amazon Web Services for networking purposes </p>\n </li>\n </ul>",
3101+
"smithy.api#httpQuery": "AssetTypeFilter"
3102+
}
30483103
}
30493104
},
30503105
"traits": {
@@ -6104,7 +6159,7 @@
61046159
"traits": {
61056160
"smithy.api#length": {
61066161
"min": 1,
6107-
"max": 3
6162+
"max": 5
61086163
}
61096164
}
61106165
},

0 commit comments

Comments
 (0)