Skip to content

Commit c6a9665

Browse files
author
awstools
committed
feat(client-outposts): Enabling Asset Level Capacity Management feature, which allows customers to create a Capacity Task for a single Asset on their active Outpost.
1 parent 567956e commit c6a9665

File tree

7 files changed

+112
-19
lines changed

7 files changed

+112
-19
lines changed

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

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface GetCapacityTaskCommandOutput extends GetCapacityTaskOutput, __M
4545
* // CapacityTaskId: "STRING_VALUE",
4646
* // OutpostId: "STRING_VALUE",
4747
* // OrderId: "STRING_VALUE",
48+
* // AssetId: "STRING_VALUE",
4849
* // RequestedInstancePools: [ // RequestedInstancePools
4950
* // { // InstanceTypeCapacity
5051
* // InstanceType: "STRING_VALUE", // required

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

+1
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export interface GetOutpostSupportedInstanceTypesCommandOutput
4545
* const input = { // GetOutpostSupportedInstanceTypesInput
4646
* OutpostIdentifier: "STRING_VALUE", // required
4747
* OrderId: "STRING_VALUE",
48+
* AssetId: "STRING_VALUE",
4849
* MaxResults: Number("int"),
4950
* NextToken: "STRING_VALUE",
5051
* };

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

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface ListCapacityTasksCommandOutput extends ListCapacityTasksOutput,
5454
* // CapacityTaskId: "STRING_VALUE",
5555
* // OutpostId: "STRING_VALUE",
5656
* // OrderId: "STRING_VALUE",
57+
* // AssetId: "STRING_VALUE",
5758
* // CapacityTaskStatus: "REQUESTED" || "IN_PROGRESS" || "FAILED" || "COMPLETED" || "WAITING_FOR_EVACUATION" || "CANCELLATION_IN_PROGRESS" || "CANCELLED",
5859
* // CreationDate: new Date("TIMESTAMP"),
5960
* // CompletionDate: new Date("TIMESTAMP"),

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

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ export interface StartCapacityTaskCommandOutput extends StartCapacityTaskOutput,
3838
* const input = { // StartCapacityTaskInput
3939
* OutpostIdentifier: "STRING_VALUE", // required
4040
* OrderId: "STRING_VALUE",
41+
* AssetId: "STRING_VALUE",
4142
* InstancePools: [ // RequestedInstancePools // required
4243
* { // InstanceTypeCapacity
4344
* InstanceType: "STRING_VALUE", // required
@@ -64,6 +65,7 @@ export interface StartCapacityTaskCommandOutput extends StartCapacityTaskOutput,
6465
* // CapacityTaskId: "STRING_VALUE",
6566
* // OutpostId: "STRING_VALUE",
6667
* // OrderId: "STRING_VALUE",
68+
* // AssetId: "STRING_VALUE",
6769
* // RequestedInstancePools: [ // RequestedInstancePools
6870
* // { // InstanceTypeCapacity
6971
* // InstanceType: "STRING_VALUE", // required

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

+54-13
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ export interface ComputeAttributes {
228228
*/
229229
export interface AssetInfo {
230230
/**
231-
* <p> The ID of the asset. </p>
231+
* <p> The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>
232232
* @public
233233
*/
234234
AssetId?: string | undefined;
@@ -294,7 +294,7 @@ export interface AssetInstance {
294294
InstanceType?: string | undefined;
295295

296296
/**
297-
* <p>The ID of the asset.</p>
297+
* <p>The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>
298298
* @public
299299
*/
300300
AssetId?: string | undefined;
@@ -582,6 +582,12 @@ export interface CapacityTaskSummary {
582582
*/
583583
OrderId?: string | undefined;
584584

585+
/**
586+
* <p>The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>
587+
* @public
588+
*/
589+
AssetId?: string | undefined;
590+
585591
/**
586592
* <p>The status of the capacity task.</p>
587593
* @public
@@ -846,7 +852,7 @@ export interface CreateOrderInput {
846852
*/
847853
export interface LineItemAssetInformation {
848854
/**
849-
* <p> The ID of the asset. </p>
855+
* <p> The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>
850856
* @public
851857
*/
852858
AssetId?: string | undefined;
@@ -1774,6 +1780,12 @@ export interface GetCapacityTaskOutput {
17741780
*/
17751781
OrderId?: string | undefined;
17761782

1783+
/**
1784+
* <p>The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>
1785+
* @public
1786+
*/
1787+
AssetId?: string | undefined;
1788+
17771789
/**
17781790
* <p>List of instance pools requested in the capacity task.</p>
17791791
* @public
@@ -1804,14 +1816,27 @@ export interface GetCapacityTaskOutput {
18041816
* </li>
18051817
* <li>
18061818
* <p>
1807-
* <code>IN_PROGRESS</code> - The capacity task is running and cannot be
1808-
* cancelled.</p>
1819+
* <code>IN_PROGRESS</code> - The capacity task is running and cannot be cancelled.</p>
18091820
* </li>
18101821
* <li>
18111822
* <p>
1812-
* <code>WAITING_FOR_EVACUATION</code> - The capacity task requires capacity to run. You
1813-
* must stop the recommended EC2 running instances to free up capacity for the task to
1814-
* run.</p>
1823+
* <code>FAILED</code> - The capacity task could not be completed.</p>
1824+
* </li>
1825+
* <li>
1826+
* <p>
1827+
* <code>COMPLETED</code> - The capacity task has completed successfully.</p>
1828+
* </li>
1829+
* <li>
1830+
* <p>
1831+
* <code>WAITING_FOR_EVACUATION</code> - The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run.</p>
1832+
* </li>
1833+
* <li>
1834+
* <p>
1835+
* <code>CANCELLATION_IN_PROGRESS</code> - The capacity task has been cancelled and is in the process of cleaning up resources.</p>
1836+
* </li>
1837+
* <li>
1838+
* <p>
1839+
* <code>CANCELLED</code> - The capacity task is cancelled.</p>
18151840
* </li>
18161841
* </ul>
18171842
* @public
@@ -2041,6 +2066,12 @@ export interface GetOutpostSupportedInstanceTypesInput {
20412066
*/
20422067
OrderId?: string | undefined;
20432068

2069+
/**
2070+
* <p>The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>
2071+
* @public
2072+
*/
2073+
AssetId?: string | undefined;
2074+
20442075
/**
20452076
* <p>The maximum page size.</p>
20462077
* @public
@@ -2653,6 +2684,12 @@ export interface StartCapacityTaskInput {
26532684
*/
26542685
OrderId?: string | undefined;
26552686

2687+
/**
2688+
* <p>The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>
2689+
* @public
2690+
*/
2691+
AssetId?: string | undefined;
2692+
26562693
/**
26572694
* <p>The instance pools specified in the capacity task.</p>
26582695
* @public
@@ -2715,6 +2752,12 @@ export interface StartCapacityTaskOutput {
27152752
*/
27162753
OrderId?: string | undefined;
27172754

2755+
/**
2756+
* <p>The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>
2757+
* @public
2758+
*/
2759+
AssetId?: string | undefined;
2760+
27182761
/**
27192762
* <p>List of the instance pools requested in the specified capacity task.</p>
27202763
* @public
@@ -2795,7 +2838,7 @@ export interface StartConnectionRequest {
27952838
DeviceSerialNumber?: string | undefined;
27962839

27972840
/**
2798-
* <p> The ID of the Outpost server. </p>
2841+
* <p> The ID of the Outpost server.</p>
27992842
* @public
28002843
*/
28012844
AssetId: string | undefined;
@@ -3047,13 +3090,11 @@ export interface UpdateSiteRackPhysicalPropertiesInput {
30473090
* <ul>
30483091
* <li>
30493092
* <p>
3050-
* <b>AH530P7W (red)</b> – 3P+N+E, 7hr; 30A; three
3051-
* phase</p>
3093+
* <b>AH530P7W (red)</b> – 3P+N+E, 7hr; 30A; three phase</p>
30523094
* </li>
30533095
* <li>
30543096
* <p>
3055-
* <b>AH532P6W (red)</b> – 3P+N+E, 6hr; 32A; three
3056-
* phase</p>
3097+
* <b>AH532P6W (red)</b> – 3P+N+E, 6hr; 32A; three phase</p>
30573098
* </li>
30583099
* <li>
30593100
* <p>

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

+6
Original file line numberDiff line numberDiff line change
@@ -356,6 +356,7 @@ export const se_GetOutpostSupportedInstanceTypesCommand = async (
356356
b.p("OutpostIdentifier", () => input.OutpostIdentifier!, "{OutpostIdentifier}", false);
357357
const query: any = map({
358358
[_OI]: [, input[_OI]!],
359+
[_AI]: [, input[_AI]!],
359360
[_MR]: [() => input.MaxResults !== void 0, () => input[_MR]!.toString()],
360361
[_NT]: [, input[_NT]!],
361362
});
@@ -605,6 +606,7 @@ export const se_StartCapacityTaskCommand = async (
605606
let body: any;
606607
body = JSON.stringify(
607608
take(input, {
609+
AssetId: [],
608610
DryRun: [],
609611
InstancePools: (_) => _json(_),
610612
InstancesToExclude: (_) => _json(_),
@@ -934,6 +936,7 @@ export const de_GetCapacityTaskCommand = async (
934936
});
935937
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
936938
const doc = take(data, {
939+
AssetId: __expectString,
937940
CapacityTaskId: __expectString,
938941
CapacityTaskStatus: __expectString,
939942
CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1338,6 +1341,7 @@ export const de_StartCapacityTaskCommand = async (
13381341
});
13391342
const data: Record<string, any> = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
13401343
const doc = take(data, {
1344+
AssetId: __expectString,
13411345
CapacityTaskId: __expectString,
13421346
CapacityTaskStatus: __expectString,
13431347
CompletionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1741,6 +1745,7 @@ const de_CapacityTaskList = (output: any, context: __SerdeContext): CapacityTask
17411745
*/
17421746
const de_CapacityTaskSummary = (output: any, context: __SerdeContext): CapacityTaskSummary => {
17431747
return take(output, {
1748+
AssetId: __expectString,
17441749
CapacityTaskId: __expectString,
17451750
CapacityTaskStatus: __expectString,
17461751
CompletionDate: (_: any) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
@@ -1888,6 +1893,7 @@ const deserializeMetadata = (output: __HttpResponse): __ResponseMetadata => ({
18881893
const collectBodyString = (streamBody: any, context: __SerdeContext): Promise<string> =>
18891894
collectBody(streamBody, context).then((body) => context.utf8Encoder(body));
18901895

1896+
const _AI = "AssetId";
18911897
const _AIF = "AssetIdFilter";
18921898
const _AIFc = "AccountIdFilter";
18931899
const _ASF = "AwsServiceFilter";

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

+47-6
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,16 @@
252252
"smithy.api#pattern": "^(\\w+)$"
253253
}
254254
},
255+
"com.amazonaws.outposts#AssetIdInput": {
256+
"type": "string",
257+
"traits": {
258+
"smithy.api#length": {
259+
"min": 10,
260+
"max": 10
261+
},
262+
"smithy.api#pattern": "^\\d{10}$"
263+
}
264+
},
255265
"com.amazonaws.outposts#AssetIdList": {
256266
"type": "list",
257267
"member": {
@@ -264,7 +274,7 @@
264274
"AssetId": {
265275
"target": "com.amazonaws.outposts#AssetId",
266276
"traits": {
267-
"smithy.api#documentation": "<p> The ID of the asset. </p>"
277+
"smithy.api#documentation": "<p> The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>"
268278
}
269279
},
270280
"RackId": {
@@ -314,7 +324,7 @@
314324
"AssetId": {
315325
"target": "com.amazonaws.outposts#AssetId",
316326
"traits": {
317-
"smithy.api#documentation": "<p>The ID of the asset.</p>"
327+
"smithy.api#documentation": "<p>The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>"
318328
}
319329
},
320330
"AccountId": {
@@ -788,6 +798,12 @@
788798
"smithy.api#documentation": "<p>The ID of the Amazon Web Services Outposts order of the host associated with the capacity task.</p>"
789799
}
790800
},
801+
"AssetId": {
802+
"target": "com.amazonaws.outposts#AssetId",
803+
"traits": {
804+
"smithy.api#documentation": "<p>The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>"
805+
}
806+
},
791807
"CapacityTaskStatus": {
792808
"target": "com.amazonaws.outposts#CapacityTaskStatus",
793809
"traits": {
@@ -1670,6 +1686,12 @@
16701686
"smithy.api#documentation": "<p>ID of the Amazon Web Services Outposts order associated with the specified capacity task.</p>"
16711687
}
16721688
},
1689+
"AssetId": {
1690+
"target": "com.amazonaws.outposts#AssetId",
1691+
"traits": {
1692+
"smithy.api#documentation": "<p>The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>"
1693+
}
1694+
},
16731695
"RequestedInstancePools": {
16741696
"target": "com.amazonaws.outposts#RequestedInstancePools",
16751697
"traits": {
@@ -1692,7 +1714,7 @@
16921714
"CapacityTaskStatus": {
16931715
"target": "com.amazonaws.outposts#CapacityTaskStatus",
16941716
"traits": {
1695-
"smithy.api#documentation": "<p>Status of the capacity task.</p>\n <p>A capacity task can have one of the following statuses:</p>\n <ul>\n <li>\n <p>\n <code>REQUESTED</code> - The capacity task was created and is awaiting the next step\n by Amazon Web Services Outposts.</p>\n </li>\n <li>\n <p>\n <code>IN_PROGRESS</code> - The capacity task is running and cannot be\n cancelled.</p>\n </li>\n <li>\n <p>\n <code>WAITING_FOR_EVACUATION</code> - The capacity task requires capacity to run. You\n must stop the recommended EC2 running instances to free up capacity for the task to\n run.</p>\n </li>\n </ul>"
1717+
"smithy.api#documentation": "<p>Status of the capacity task.</p>\n <p>A capacity task can have one of the following statuses:</p>\n <ul>\n <li>\n <p>\n <code>REQUESTED</code> - The capacity task was created and is awaiting the next step\n by Amazon Web Services Outposts.</p>\n </li>\n <li>\n <p>\n <code>IN_PROGRESS</code> - The capacity task is running and cannot be cancelled.</p>\n </li>\n <li>\n <p>\n <code>FAILED</code> - The capacity task could not be completed.</p>\n </li>\n <li>\n <p>\n <code>COMPLETED</code> - The capacity task has completed successfully.</p>\n </li>\n <li>\n <p>\n <code>WAITING_FOR_EVACUATION</code> - The capacity task requires capacity to run. You must stop the recommended EC2 running instances to free up capacity for the task to run.</p>\n </li>\n <li>\n <p>\n <code>CANCELLATION_IN_PROGRESS</code> - The capacity task has been cancelled and is in the process of cleaning up resources.</p>\n </li>\n <li>\n <p>\n <code>CANCELLED</code> - The capacity task is cancelled.</p>\n </li>\n </ul>"
16961718
}
16971719
},
16981720
"Failed": {
@@ -2111,6 +2133,13 @@
21112133
"smithy.api#httpQuery": "OrderId"
21122134
}
21132135
},
2136+
"AssetId": {
2137+
"target": "com.amazonaws.outposts#AssetIdInput",
2138+
"traits": {
2139+
"smithy.api#documentation": "<p>The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>",
2140+
"smithy.api#httpQuery": "AssetId"
2141+
}
2142+
},
21142143
"MaxResults": {
21152144
"target": "com.amazonaws.outposts#MaxResults1000",
21162145
"traits": {
@@ -2528,7 +2557,7 @@
25282557
"AssetId": {
25292558
"target": "com.amazonaws.outposts#AssetId",
25302559
"traits": {
2531-
"smithy.api#documentation": "<p> The ID of the asset. </p>"
2560+
"smithy.api#documentation": "<p> The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>"
25322561
}
25332562
},
25342563
"MacAddressList": {
@@ -5624,6 +5653,12 @@
56245653
"smithy.api#documentation": "<p>The ID of the Amazon Web Services Outposts order associated with the specified capacity task.</p>"
56255654
}
56265655
},
5656+
"AssetId": {
5657+
"target": "com.amazonaws.outposts#AssetIdInput",
5658+
"traits": {
5659+
"smithy.api#documentation": "<p>The ID of the Outpost asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>"
5660+
}
5661+
},
56275662
"InstancePools": {
56285663
"target": "com.amazonaws.outposts#RequestedInstancePools",
56295664
"traits": {
@@ -5676,6 +5711,12 @@
56765711
"smithy.api#documentation": "<p>ID of the Amazon Web Services Outposts order of the host associated with the capacity task.</p>"
56775712
}
56785713
},
5714+
"AssetId": {
5715+
"target": "com.amazonaws.outposts#AssetId",
5716+
"traits": {
5717+
"smithy.api#documentation": "<p>The ID of the asset. An Outpost asset can be a single server within an Outposts rack or an Outposts server configuration.</p>"
5718+
}
5719+
},
56795720
"RequestedInstancePools": {
56805721
"target": "com.amazonaws.outposts#RequestedInstancePools",
56815722
"traits": {
@@ -5779,7 +5820,7 @@
57795820
"AssetId": {
57805821
"target": "com.amazonaws.outposts#AssetId",
57815822
"traits": {
5782-
"smithy.api#documentation": "<p> The ID of the Outpost server. </p>",
5823+
"smithy.api#documentation": "<p> The ID of the Outpost server.</p>",
57835824
"smithy.api#required": {}
57845825
}
57855826
},
@@ -6415,7 +6456,7 @@
64156456
"PowerConnector": {
64166457
"target": "com.amazonaws.outposts#PowerConnector",
64176458
"traits": {
6418-
"smithy.api#documentation": "<p>The power connector that Amazon Web Services should plan to provide for connections to the hardware.\n Note the correlation between <code>PowerPhase</code> and <code>PowerConnector</code>. </p>\n <ul>\n <li>\n <p>Single-phase AC feed</p>\n <ul>\n <li>\n <p>\n <b>L6-30P</b> – (common in US); 30A; single phase</p>\n </li>\n <li>\n <p>\n <b>IEC309 (blue)</b> – P+N+E, 6hr; 32 A; single\n phase</p>\n </li>\n </ul>\n </li>\n <li>\n <p>Three-phase AC feed</p>\n <ul>\n <li>\n <p>\n <b>AH530P7W (red)</b> – 3P+N+E, 7hr; 30A; three\n phase</p>\n </li>\n <li>\n <p>\n <b>AH532P6W (red)</b> – 3P+N+E, 6hr; 32A; three\n phase</p>\n </li>\n <li>\n <p>\n <b>CS8365C</b> – (common in US); 3P+E, 50A; three phase</p>\n </li>\n </ul>\n </li>\n </ul>"
6459+
"smithy.api#documentation": "<p>The power connector that Amazon Web Services should plan to provide for connections to the hardware.\n Note the correlation between <code>PowerPhase</code> and <code>PowerConnector</code>. </p>\n <ul>\n <li>\n <p>Single-phase AC feed</p>\n <ul>\n <li>\n <p>\n <b>L6-30P</b> – (common in US); 30A; single phase</p>\n </li>\n <li>\n <p>\n <b>IEC309 (blue)</b> – P+N+E, 6hr; 32 A; single\n phase</p>\n </li>\n </ul>\n </li>\n <li>\n <p>Three-phase AC feed</p>\n <ul>\n <li>\n <p>\n <b>AH530P7W (red)</b> – 3P+N+E, 7hr; 30A; three phase</p>\n </li>\n <li>\n <p>\n <b>AH532P6W (red)</b> – 3P+N+E, 6hr; 32A; three phase</p>\n </li>\n <li>\n <p>\n <b>CS8365C</b> – (common in US); 3P+E, 50A; three phase</p>\n </li>\n </ul>\n </li>\n </ul>"
64196460
}
64206461
},
64216462
"PowerFeedDrop": {

0 commit comments

Comments
 (0)