@aws-sdk/client-outposts 3.901.0 → 3.906.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -27,6 +27,7 @@ import { ListSitesCommand } from "./commands/ListSitesCommand";
27
27
  import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
28
28
  import { StartCapacityTaskCommand, } from "./commands/StartCapacityTaskCommand";
29
29
  import { StartConnectionCommand, } from "./commands/StartConnectionCommand";
30
+ import { StartOutpostDecommissionCommand, } from "./commands/StartOutpostDecommissionCommand";
30
31
  import { TagResourceCommand } from "./commands/TagResourceCommand";
31
32
  import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
32
33
  import { UpdateOutpostCommand, } from "./commands/UpdateOutpostCommand";
@@ -63,6 +64,7 @@ const commands = {
63
64
  ListTagsForResourceCommand,
64
65
  StartCapacityTaskCommand,
65
66
  StartConnectionCommand,
67
+ StartOutpostDecommissionCommand,
66
68
  TagResourceCommand,
67
69
  UntagResourceCommand,
68
70
  UpdateOutpostCommand,
@@ -0,0 +1,22 @@
1
+ import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
+ import { getSerdePlugin } from "@smithy/middleware-serde";
3
+ import { Command as $Command } from "@smithy/smithy-client";
4
+ import { commonParams } from "../endpoint/EndpointParameters";
5
+ import { de_StartOutpostDecommissionCommand, se_StartOutpostDecommissionCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class StartOutpostDecommissionCommand extends $Command
8
+ .classBuilder()
9
+ .ep(commonParams)
10
+ .m(function (Command, cs, config, o) {
11
+ return [
12
+ getSerdePlugin(config, this.serialize, this.deserialize),
13
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
14
+ ];
15
+ })
16
+ .s("OutpostsOlafService", "StartOutpostDecommission", {})
17
+ .n("OutpostsClient", "StartOutpostDecommissionCommand")
18
+ .f(void 0, void 0)
19
+ .ser(se_StartOutpostDecommissionCommand)
20
+ .de(de_StartOutpostDecommissionCommand)
21
+ .build() {
22
+ }
@@ -26,6 +26,7 @@ export * from "./ListSitesCommand";
26
26
  export * from "./ListTagsForResourceCommand";
27
27
  export * from "./StartCapacityTaskCommand";
28
28
  export * from "./StartConnectionCommand";
29
+ export * from "./StartOutpostDecommissionCommand";
29
30
  export * from "./TagResourceCommand";
30
31
  export * from "./UntagResourceCommand";
31
32
  export * from "./UpdateOutpostCommand";
@@ -38,6 +38,15 @@ export const AssetState = {
38
38
  ISOLATED: "ISOLATED",
39
39
  RETIRING: "RETIRING",
40
40
  };
41
+ export const BlockingResourceType = {
42
+ EC2_INSTANCE: "EC2_INSTANCE",
43
+ LGW_ROUTE_TABLE: "LGW_ROUTE_TABLE",
44
+ LGW_ROUTING_DOMAIN: "LGW_ROUTING_DOMAIN",
45
+ LGW_VIRTUAL_INTERFACE_GROUP: "LGW_VIRTUAL_INTERFACE_GROUP",
46
+ OUTPOST_ORDER_CANCELLABLE: "OUTPOST_ORDER_CANCELLABLE",
47
+ OUTPOST_ORDER_INTERVENTION_REQUIRED: "OUTPOST_ORDER_INTERVENTION_REQUIRED",
48
+ OUTPOST_RAM_SHARE: "OUTPOST_RAM_SHARE",
49
+ };
41
50
  export const ResourceType = {
42
51
  ORDER: "ORDER",
43
52
  OUTPOST: "OUTPOST",
@@ -258,6 +267,11 @@ export const UplinkGbps = {
258
267
  UPLINK_1G: "UPLINK_1G",
259
268
  UPLINK_40G: "UPLINK_40G",
260
269
  };
270
+ export const DecommissionRequestStatus = {
271
+ BLOCKED: "BLOCKED",
272
+ REQUESTED: "REQUESTED",
273
+ SKIPPED: "SKIPPED",
274
+ };
261
275
  export const TaskActionOnBlockingInstances = {
262
276
  FAIL_TASK: "FAIL_TASK",
263
277
  WAIT_FOR_EVACUATION: "WAIT_FOR_EVACUATION",
@@ -364,6 +364,20 @@ export const se_StartConnectionCommand = async (input, context) => {
364
364
  b.m("POST").h(headers).b(body);
365
365
  return b.build();
366
366
  };
367
+ export const se_StartOutpostDecommissionCommand = async (input, context) => {
368
+ const b = rb(input, context);
369
+ const headers = {
370
+ "content-type": "application/json",
371
+ };
372
+ b.bp("/outposts/{OutpostIdentifier}/decommission");
373
+ b.p("OutpostIdentifier", () => input.OutpostIdentifier, "{OutpostIdentifier}", false);
374
+ let body;
375
+ body = JSON.stringify(take(input, {
376
+ ValidateOnly: [],
377
+ }));
378
+ b.m("POST").h(headers).b(body);
379
+ return b.build();
380
+ };
367
381
  export const se_TagResourceCommand = async (input, context) => {
368
382
  const b = rb(input, context);
369
383
  const headers = {
@@ -877,6 +891,21 @@ export const de_StartConnectionCommand = async (output, context) => {
877
891
  Object.assign(contents, doc);
878
892
  return contents;
879
893
  };
894
+ export const de_StartOutpostDecommissionCommand = async (output, context) => {
895
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
896
+ return de_CommandError(output, context);
897
+ }
898
+ const contents = map({
899
+ $metadata: deserializeMetadata(output),
900
+ });
901
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
902
+ const doc = take(data, {
903
+ BlockingResourceTypes: _json,
904
+ Status: __expectString,
905
+ });
906
+ Object.assign(contents, doc);
907
+ return contents;
908
+ };
880
909
  export const de_TagResourceCommand = async (output, context) => {
881
910
  if (output.statusCode !== 200 && output.statusCode >= 300) {
882
911
  return de_CommandError(output, context);
@@ -27,6 +27,7 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSi
27
27
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
28
28
  import { StartCapacityTaskCommandInput, StartCapacityTaskCommandOutput } from "./commands/StartCapacityTaskCommand";
29
29
  import { StartConnectionCommandInput, StartConnectionCommandOutput } from "./commands/StartConnectionCommand";
30
+ import { StartOutpostDecommissionCommandInput, StartOutpostDecommissionCommandOutput } from "./commands/StartOutpostDecommissionCommand";
30
31
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
31
32
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
32
33
  import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
@@ -208,6 +209,12 @@ export interface Outposts {
208
209
  startConnection(args: StartConnectionCommandInput, options?: __HttpHandlerOptions): Promise<StartConnectionCommandOutput>;
209
210
  startConnection(args: StartConnectionCommandInput, cb: (err: any, data?: StartConnectionCommandOutput) => void): void;
210
211
  startConnection(args: StartConnectionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartConnectionCommandOutput) => void): void;
212
+ /**
213
+ * @see {@link StartOutpostDecommissionCommand}
214
+ */
215
+ startOutpostDecommission(args: StartOutpostDecommissionCommandInput, options?: __HttpHandlerOptions): Promise<StartOutpostDecommissionCommandOutput>;
216
+ startOutpostDecommission(args: StartOutpostDecommissionCommandInput, cb: (err: any, data?: StartOutpostDecommissionCommandOutput) => void): void;
217
+ startOutpostDecommission(args: StartOutpostDecommissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartOutpostDecommissionCommandOutput) => void): void;
211
218
  /**
212
219
  * @see {@link TagResourceCommand}
213
220
  */
@@ -35,6 +35,7 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "./commands/ListSi
35
35
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
36
36
  import { StartCapacityTaskCommandInput, StartCapacityTaskCommandOutput } from "./commands/StartCapacityTaskCommand";
37
37
  import { StartConnectionCommandInput, StartConnectionCommandOutput } from "./commands/StartConnectionCommand";
38
+ import { StartOutpostDecommissionCommandInput, StartOutpostDecommissionCommandOutput } from "./commands/StartOutpostDecommissionCommand";
38
39
  import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
39
40
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
40
41
  import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "./commands/UpdateOutpostCommand";
@@ -47,11 +48,11 @@ export { __Client };
47
48
  /**
48
49
  * @public
49
50
  */
50
- export type ServiceInputTypes = CancelCapacityTaskCommandInput | CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCapacityTaskCommandInput | GetCatalogItemCommandInput | GetConnectionCommandInput | GetOrderCommandInput | GetOutpostBillingInformationCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetOutpostSupportedInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListAssetInstancesCommandInput | ListAssetsCommandInput | ListBlockingInstancesForCapacityTaskCommandInput | ListCapacityTasksCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | StartCapacityTaskCommandInput | StartConnectionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOutpostCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
51
+ export type ServiceInputTypes = CancelCapacityTaskCommandInput | CancelOrderCommandInput | CreateOrderCommandInput | CreateOutpostCommandInput | CreateSiteCommandInput | DeleteOutpostCommandInput | DeleteSiteCommandInput | GetCapacityTaskCommandInput | GetCatalogItemCommandInput | GetConnectionCommandInput | GetOrderCommandInput | GetOutpostBillingInformationCommandInput | GetOutpostCommandInput | GetOutpostInstanceTypesCommandInput | GetOutpostSupportedInstanceTypesCommandInput | GetSiteAddressCommandInput | GetSiteCommandInput | ListAssetInstancesCommandInput | ListAssetsCommandInput | ListBlockingInstancesForCapacityTaskCommandInput | ListCapacityTasksCommandInput | ListCatalogItemsCommandInput | ListOrdersCommandInput | ListOutpostsCommandInput | ListSitesCommandInput | ListTagsForResourceCommandInput | StartCapacityTaskCommandInput | StartConnectionCommandInput | StartOutpostDecommissionCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateOutpostCommandInput | UpdateSiteAddressCommandInput | UpdateSiteCommandInput | UpdateSiteRackPhysicalPropertiesCommandInput;
51
52
  /**
52
53
  * @public
53
54
  */
54
- export type ServiceOutputTypes = CancelCapacityTaskCommandOutput | CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCapacityTaskCommandOutput | GetCatalogItemCommandOutput | GetConnectionCommandOutput | GetOrderCommandOutput | GetOutpostBillingInformationCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetOutpostSupportedInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListAssetInstancesCommandOutput | ListAssetsCommandOutput | ListBlockingInstancesForCapacityTaskCommandOutput | ListCapacityTasksCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | StartCapacityTaskCommandOutput | StartConnectionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOutpostCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
55
+ export type ServiceOutputTypes = CancelCapacityTaskCommandOutput | CancelOrderCommandOutput | CreateOrderCommandOutput | CreateOutpostCommandOutput | CreateSiteCommandOutput | DeleteOutpostCommandOutput | DeleteSiteCommandOutput | GetCapacityTaskCommandOutput | GetCatalogItemCommandOutput | GetConnectionCommandOutput | GetOrderCommandOutput | GetOutpostBillingInformationCommandOutput | GetOutpostCommandOutput | GetOutpostInstanceTypesCommandOutput | GetOutpostSupportedInstanceTypesCommandOutput | GetSiteAddressCommandOutput | GetSiteCommandOutput | ListAssetInstancesCommandOutput | ListAssetsCommandOutput | ListBlockingInstancesForCapacityTaskCommandOutput | ListCapacityTasksCommandOutput | ListCatalogItemsCommandOutput | ListOrdersCommandOutput | ListOutpostsCommandOutput | ListSitesCommandOutput | ListTagsForResourceCommandOutput | StartCapacityTaskCommandOutput | StartConnectionCommandOutput | StartOutpostDecommissionCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateOutpostCommandOutput | UpdateSiteAddressCommandOutput | UpdateSiteCommandOutput | UpdateSiteRackPhysicalPropertiesCommandOutput;
55
56
  /**
56
57
  * @public
57
58
  */
@@ -38,7 +38,7 @@ declare const CreateOrderCommand_base: {
38
38
  * const client = new OutpostsClient(config);
39
39
  * const input = { // CreateOrderInput
40
40
  * OutpostIdentifier: "STRING_VALUE", // required
41
- * LineItems: [ // LineItemRequestListDefinition // required
41
+ * LineItems: [ // LineItemRequestListDefinition
42
42
  * { // LineItemRequest
43
43
  * CatalogItemId: "STRING_VALUE",
44
44
  * Quantity: Number("int"),
@@ -0,0 +1,93 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { StartOutpostDecommissionInput, StartOutpostDecommissionOutput } from "../models/models_0";
4
+ import { OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../OutpostsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link StartOutpostDecommissionCommand}.
14
+ */
15
+ export interface StartOutpostDecommissionCommandInput extends StartOutpostDecommissionInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link StartOutpostDecommissionCommand}.
21
+ */
22
+ export interface StartOutpostDecommissionCommandOutput extends StartOutpostDecommissionOutput, __MetadataBearer {
23
+ }
24
+ declare const StartOutpostDecommissionCommand_base: {
25
+ new (input: StartOutpostDecommissionCommandInput): import("@smithy/smithy-client").CommandImpl<StartOutpostDecommissionCommandInput, StartOutpostDecommissionCommandOutput, OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: StartOutpostDecommissionCommandInput): import("@smithy/smithy-client").CommandImpl<StartOutpostDecommissionCommandInput, StartOutpostDecommissionCommandOutput, OutpostsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Starts the decommission process to return the Outposts racks or servers.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { OutpostsClient, StartOutpostDecommissionCommand } from "@aws-sdk/client-outposts"; // ES Modules import
35
+ * // const { OutpostsClient, StartOutpostDecommissionCommand } = require("@aws-sdk/client-outposts"); // CommonJS import
36
+ * // import type { OutpostsClientConfig } from "@aws-sdk/client-outposts";
37
+ * const config = {}; // type is OutpostsClientConfig
38
+ * const client = new OutpostsClient(config);
39
+ * const input = { // StartOutpostDecommissionInput
40
+ * OutpostIdentifier: "STRING_VALUE", // required
41
+ * ValidateOnly: true || false,
42
+ * };
43
+ * const command = new StartOutpostDecommissionCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // StartOutpostDecommissionOutput
46
+ * // Status: "SKIPPED" || "BLOCKED" || "REQUESTED",
47
+ * // BlockingResourceTypes: [ // BlockingResourceTypeList
48
+ * // "EC2_INSTANCE" || "OUTPOST_RAM_SHARE" || "LGW_ROUTING_DOMAIN" || "LGW_ROUTE_TABLE" || "LGW_VIRTUAL_INTERFACE_GROUP" || "OUTPOST_ORDER_CANCELLABLE" || "OUTPOST_ORDER_INTERVENTION_REQUIRED",
49
+ * // ],
50
+ * // };
51
+ *
52
+ * ```
53
+ *
54
+ * @param StartOutpostDecommissionCommandInput - {@link StartOutpostDecommissionCommandInput}
55
+ * @returns {@link StartOutpostDecommissionCommandOutput}
56
+ * @see {@link StartOutpostDecommissionCommandInput} for command's `input` shape.
57
+ * @see {@link StartOutpostDecommissionCommandOutput} for command's `response` shape.
58
+ * @see {@link OutpostsClientResolvedConfig | config} for OutpostsClient's `config` shape.
59
+ *
60
+ * @throws {@link AccessDeniedException} (client fault)
61
+ * <p>You do not have permission to perform this operation.</p>
62
+ *
63
+ * @throws {@link ConflictException} (client fault)
64
+ * <p>Updating or deleting this resource can cause an inconsistent state.</p>
65
+ *
66
+ * @throws {@link InternalServerException} (server fault)
67
+ * <p>An internal error has occurred.</p>
68
+ *
69
+ * @throws {@link NotFoundException} (client fault)
70
+ * <p>The specified request is not valid.</p>
71
+ *
72
+ * @throws {@link ValidationException} (client fault)
73
+ * <p>A parameter is not valid.</p>
74
+ *
75
+ * @throws {@link OutpostsServiceException}
76
+ * <p>Base exception class for all service exceptions from Outposts service.</p>
77
+ *
78
+ *
79
+ * @public
80
+ */
81
+ export declare class StartOutpostDecommissionCommand extends StartOutpostDecommissionCommand_base {
82
+ /** @internal type navigation helper, not in runtime. */
83
+ protected static __types: {
84
+ api: {
85
+ input: StartOutpostDecommissionInput;
86
+ output: StartOutpostDecommissionOutput;
87
+ };
88
+ sdk: {
89
+ input: StartOutpostDecommissionCommandInput;
90
+ output: StartOutpostDecommissionCommandOutput;
91
+ };
92
+ };
93
+ }
@@ -26,6 +26,7 @@ export * from "./ListSitesCommand";
26
26
  export * from "./ListTagsForResourceCommand";
27
27
  export * from "./StartCapacityTaskCommand";
28
28
  export * from "./StartConnectionCommand";
29
+ export * from "./StartOutpostDecommissionCommand";
29
30
  export * from "./TagResourceCommand";
30
31
  export * from "./UntagResourceCommand";
31
32
  export * from "./UpdateOutpostCommand";
@@ -300,6 +300,23 @@ export interface BlockingInstance {
300
300
  */
301
301
  AwsServiceName?: AWSServiceName | undefined;
302
302
  }
303
+ /**
304
+ * @public
305
+ * @enum
306
+ */
307
+ export declare const BlockingResourceType: {
308
+ readonly EC2_INSTANCE: "EC2_INSTANCE";
309
+ readonly LGW_ROUTE_TABLE: "LGW_ROUTE_TABLE";
310
+ readonly LGW_ROUTING_DOMAIN: "LGW_ROUTING_DOMAIN";
311
+ readonly LGW_VIRTUAL_INTERFACE_GROUP: "LGW_VIRTUAL_INTERFACE_GROUP";
312
+ readonly OUTPOST_ORDER_CANCELLABLE: "OUTPOST_ORDER_CANCELLABLE";
313
+ readonly OUTPOST_ORDER_INTERVENTION_REQUIRED: "OUTPOST_ORDER_INTERVENTION_REQUIRED";
314
+ readonly OUTPOST_RAM_SHARE: "OUTPOST_RAM_SHARE";
315
+ };
316
+ /**
317
+ * @public
318
+ */
319
+ export type BlockingResourceType = (typeof BlockingResourceType)[keyof typeof BlockingResourceType];
303
320
  /**
304
321
  * @public
305
322
  */
@@ -693,7 +710,7 @@ export interface CreateOrderInput {
693
710
  * <p>The line items that make up the order.</p>
694
711
  * @public
695
712
  */
696
- LineItems: LineItemRequest[] | undefined;
713
+ LineItems?: LineItemRequest[] | undefined;
697
714
  /**
698
715
  * <p>The payment option.</p>
699
716
  * @public
@@ -1402,6 +1419,19 @@ export interface CreateSiteOutput {
1402
1419
  */
1403
1420
  Site?: Site | undefined;
1404
1421
  }
1422
+ /**
1423
+ * @public
1424
+ * @enum
1425
+ */
1426
+ export declare const DecommissionRequestStatus: {
1427
+ readonly BLOCKED: "BLOCKED";
1428
+ readonly REQUESTED: "REQUESTED";
1429
+ readonly SKIPPED: "SKIPPED";
1430
+ };
1431
+ /**
1432
+ * @public
1433
+ */
1434
+ export type DecommissionRequestStatus = (typeof DecommissionRequestStatus)[keyof typeof DecommissionRequestStatus];
1405
1435
  /**
1406
1436
  * @public
1407
1437
  */
@@ -2635,6 +2665,36 @@ export interface StartConnectionResponse {
2635
2665
  */
2636
2666
  UnderlayIpAddress?: string | undefined;
2637
2667
  }
2668
+ /**
2669
+ * @public
2670
+ */
2671
+ export interface StartOutpostDecommissionInput {
2672
+ /**
2673
+ * <p>The ID or ARN of the Outpost that you want to decommission.</p>
2674
+ * @public
2675
+ */
2676
+ OutpostIdentifier: string | undefined;
2677
+ /**
2678
+ * <p>Validates the request without starting the decommission process.</p>
2679
+ * @public
2680
+ */
2681
+ ValidateOnly?: boolean | undefined;
2682
+ }
2683
+ /**
2684
+ * @public
2685
+ */
2686
+ export interface StartOutpostDecommissionOutput {
2687
+ /**
2688
+ * <p>The status of the decommission request.</p>
2689
+ * @public
2690
+ */
2691
+ Status?: DecommissionRequestStatus | undefined;
2692
+ /**
2693
+ * <p>The resources still associated with the Outpost that you are decommissioning.</p>
2694
+ * @public
2695
+ */
2696
+ BlockingResourceTypes?: BlockingResourceType[] | undefined;
2697
+ }
2638
2698
  /**
2639
2699
  * @public
2640
2700
  */
@@ -28,6 +28,7 @@ import { ListSitesCommandInput, ListSitesCommandOutput } from "../commands/ListS
28
28
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
29
29
  import { StartCapacityTaskCommandInput, StartCapacityTaskCommandOutput } from "../commands/StartCapacityTaskCommand";
30
30
  import { StartConnectionCommandInput, StartConnectionCommandOutput } from "../commands/StartConnectionCommand";
31
+ import { StartOutpostDecommissionCommandInput, StartOutpostDecommissionCommandOutput } from "../commands/StartOutpostDecommissionCommand";
31
32
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
32
33
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
33
34
  import { UpdateOutpostCommandInput, UpdateOutpostCommandOutput } from "../commands/UpdateOutpostCommand";
@@ -146,6 +147,10 @@ export declare const se_StartCapacityTaskCommand: (input: StartCapacityTaskComma
146
147
  * serializeAws_restJson1StartConnectionCommand
147
148
  */
148
149
  export declare const se_StartConnectionCommand: (input: StartConnectionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
150
+ /**
151
+ * serializeAws_restJson1StartOutpostDecommissionCommand
152
+ */
153
+ export declare const se_StartOutpostDecommissionCommand: (input: StartOutpostDecommissionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
149
154
  /**
150
155
  * serializeAws_restJson1TagResourceCommand
151
156
  */
@@ -282,6 +287,10 @@ export declare const de_StartCapacityTaskCommand: (output: __HttpResponse, conte
282
287
  * deserializeAws_restJson1StartConnectionCommand
283
288
  */
284
289
  export declare const de_StartConnectionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartConnectionCommandOutput>;
290
+ /**
291
+ * deserializeAws_restJson1StartOutpostDecommissionCommand
292
+ */
293
+ export declare const de_StartOutpostDecommissionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartOutpostDecommissionCommandOutput>;
285
294
  /**
286
295
  * deserializeAws_restJson1TagResourceCommand
287
296
  */
@@ -111,6 +111,10 @@ import {
111
111
  StartConnectionCommandInput,
112
112
  StartConnectionCommandOutput,
113
113
  } from "./commands/StartConnectionCommand";
114
+ import {
115
+ StartOutpostDecommissionCommandInput,
116
+ StartOutpostDecommissionCommandOutput,
117
+ } from "./commands/StartOutpostDecommissionCommand";
114
118
  import {
115
119
  TagResourceCommandInput,
116
120
  TagResourceCommandOutput,
@@ -512,6 +516,19 @@ export interface Outposts {
512
516
  options: __HttpHandlerOptions,
513
517
  cb: (err: any, data?: StartConnectionCommandOutput) => void
514
518
  ): void;
519
+ startOutpostDecommission(
520
+ args: StartOutpostDecommissionCommandInput,
521
+ options?: __HttpHandlerOptions
522
+ ): Promise<StartOutpostDecommissionCommandOutput>;
523
+ startOutpostDecommission(
524
+ args: StartOutpostDecommissionCommandInput,
525
+ cb: (err: any, data?: StartOutpostDecommissionCommandOutput) => void
526
+ ): void;
527
+ startOutpostDecommission(
528
+ args: StartOutpostDecommissionCommandInput,
529
+ options: __HttpHandlerOptions,
530
+ cb: (err: any, data?: StartOutpostDecommissionCommandOutput) => void
531
+ ): void;
515
532
  tagResource(
516
533
  args: TagResourceCommandInput,
517
534
  options?: __HttpHandlerOptions
@@ -157,6 +157,10 @@ import {
157
157
  StartConnectionCommandInput,
158
158
  StartConnectionCommandOutput,
159
159
  } from "./commands/StartConnectionCommand";
160
+ import {
161
+ StartOutpostDecommissionCommandInput,
162
+ StartOutpostDecommissionCommandOutput,
163
+ } from "./commands/StartOutpostDecommissionCommand";
160
164
  import {
161
165
  TagResourceCommandInput,
162
166
  TagResourceCommandOutput,
@@ -217,6 +221,7 @@ export type ServiceInputTypes =
217
221
  | ListTagsForResourceCommandInput
218
222
  | StartCapacityTaskCommandInput
219
223
  | StartConnectionCommandInput
224
+ | StartOutpostDecommissionCommandInput
220
225
  | TagResourceCommandInput
221
226
  | UntagResourceCommandInput
222
227
  | UpdateOutpostCommandInput
@@ -252,6 +257,7 @@ export type ServiceOutputTypes =
252
257
  | ListTagsForResourceCommandOutput
253
258
  | StartCapacityTaskCommandOutput
254
259
  | StartConnectionCommandOutput
260
+ | StartOutpostDecommissionCommandOutput
255
261
  | TagResourceCommandOutput
256
262
  | UntagResourceCommandOutput
257
263
  | UpdateOutpostCommandOutput
@@ -0,0 +1,51 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ StartOutpostDecommissionInput,
5
+ StartOutpostDecommissionOutput,
6
+ } from "../models/models_0";
7
+ import {
8
+ OutpostsClientResolvedConfig,
9
+ ServiceInputTypes,
10
+ ServiceOutputTypes,
11
+ } from "../OutpostsClient";
12
+ export { __MetadataBearer };
13
+ export { $Command };
14
+ export interface StartOutpostDecommissionCommandInput
15
+ extends StartOutpostDecommissionInput {}
16
+ export interface StartOutpostDecommissionCommandOutput
17
+ extends StartOutpostDecommissionOutput,
18
+ __MetadataBearer {}
19
+ declare const StartOutpostDecommissionCommand_base: {
20
+ new (
21
+ input: StartOutpostDecommissionCommandInput
22
+ ): import("@smithy/smithy-client").CommandImpl<
23
+ StartOutpostDecommissionCommandInput,
24
+ StartOutpostDecommissionCommandOutput,
25
+ OutpostsClientResolvedConfig,
26
+ ServiceInputTypes,
27
+ ServiceOutputTypes
28
+ >;
29
+ new (
30
+ input: StartOutpostDecommissionCommandInput
31
+ ): import("@smithy/smithy-client").CommandImpl<
32
+ StartOutpostDecommissionCommandInput,
33
+ StartOutpostDecommissionCommandOutput,
34
+ OutpostsClientResolvedConfig,
35
+ ServiceInputTypes,
36
+ ServiceOutputTypes
37
+ >;
38
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
39
+ };
40
+ export declare class StartOutpostDecommissionCommand extends StartOutpostDecommissionCommand_base {
41
+ protected static __types: {
42
+ api: {
43
+ input: StartOutpostDecommissionInput;
44
+ output: StartOutpostDecommissionOutput;
45
+ };
46
+ sdk: {
47
+ input: StartOutpostDecommissionCommandInput;
48
+ output: StartOutpostDecommissionCommandOutput;
49
+ };
50
+ };
51
+ }
@@ -26,6 +26,7 @@ export * from "./ListSitesCommand";
26
26
  export * from "./ListTagsForResourceCommand";
27
27
  export * from "./StartCapacityTaskCommand";
28
28
  export * from "./StartConnectionCommand";
29
+ export * from "./StartOutpostDecommissionCommand";
29
30
  export * from "./TagResourceCommand";
30
31
  export * from "./UntagResourceCommand";
31
32
  export * from "./UpdateOutpostCommand";
@@ -86,6 +86,17 @@ export interface BlockingInstance {
86
86
  AccountId?: string | undefined;
87
87
  AwsServiceName?: AWSServiceName | undefined;
88
88
  }
89
+ export declare const BlockingResourceType: {
90
+ readonly EC2_INSTANCE: "EC2_INSTANCE";
91
+ readonly LGW_ROUTE_TABLE: "LGW_ROUTE_TABLE";
92
+ readonly LGW_ROUTING_DOMAIN: "LGW_ROUTING_DOMAIN";
93
+ readonly LGW_VIRTUAL_INTERFACE_GROUP: "LGW_VIRTUAL_INTERFACE_GROUP";
94
+ readonly OUTPOST_ORDER_CANCELLABLE: "OUTPOST_ORDER_CANCELLABLE";
95
+ readonly OUTPOST_ORDER_INTERVENTION_REQUIRED: "OUTPOST_ORDER_INTERVENTION_REQUIRED";
96
+ readonly OUTPOST_RAM_SHARE: "OUTPOST_RAM_SHARE";
97
+ };
98
+ export type BlockingResourceType =
99
+ (typeof BlockingResourceType)[keyof typeof BlockingResourceType];
89
100
  export interface CancelCapacityTaskInput {
90
101
  CapacityTaskId: string | undefined;
91
102
  OutpostIdentifier: string | undefined;
@@ -222,7 +233,7 @@ export declare const PaymentTerm: {
222
233
  export type PaymentTerm = (typeof PaymentTerm)[keyof typeof PaymentTerm];
223
234
  export interface CreateOrderInput {
224
235
  OutpostIdentifier: string | undefined;
225
- LineItems: LineItemRequest[] | undefined;
236
+ LineItems?: LineItemRequest[] | undefined;
226
237
  PaymentOption: PaymentOption | undefined;
227
238
  PaymentTerm?: PaymentTerm | undefined;
228
239
  }
@@ -453,6 +464,13 @@ export interface Site {
453
464
  export interface CreateSiteOutput {
454
465
  Site?: Site | undefined;
455
466
  }
467
+ export declare const DecommissionRequestStatus: {
468
+ readonly BLOCKED: "BLOCKED";
469
+ readonly REQUESTED: "REQUESTED";
470
+ readonly SKIPPED: "SKIPPED";
471
+ };
472
+ export type DecommissionRequestStatus =
473
+ (typeof DecommissionRequestStatus)[keyof typeof DecommissionRequestStatus];
456
474
  export interface DeleteOutpostInput {
457
475
  OutpostId: string | undefined;
458
476
  }
@@ -730,6 +748,14 @@ export interface StartConnectionResponse {
730
748
  ConnectionId?: string | undefined;
731
749
  UnderlayIpAddress?: string | undefined;
732
750
  }
751
+ export interface StartOutpostDecommissionInput {
752
+ OutpostIdentifier: string | undefined;
753
+ ValidateOnly?: boolean | undefined;
754
+ }
755
+ export interface StartOutpostDecommissionOutput {
756
+ Status?: DecommissionRequestStatus | undefined;
757
+ BlockingResourceTypes?: BlockingResourceType[] | undefined;
758
+ }
733
759
  export interface TagResourceRequest {
734
760
  ResourceArn: string | undefined;
735
761
  Tags: Record<string, string> | undefined;
@@ -115,6 +115,10 @@ import {
115
115
  StartConnectionCommandInput,
116
116
  StartConnectionCommandOutput,
117
117
  } from "../commands/StartConnectionCommand";
118
+ import {
119
+ StartOutpostDecommissionCommandInput,
120
+ StartOutpostDecommissionCommandOutput,
121
+ } from "../commands/StartOutpostDecommissionCommand";
118
122
  import {
119
123
  TagResourceCommandInput,
120
124
  TagResourceCommandOutput,
@@ -251,6 +255,10 @@ export declare const se_StartConnectionCommand: (
251
255
  input: StartConnectionCommandInput,
252
256
  context: __SerdeContext
253
257
  ) => Promise<__HttpRequest>;
258
+ export declare const se_StartOutpostDecommissionCommand: (
259
+ input: StartOutpostDecommissionCommandInput,
260
+ context: __SerdeContext
261
+ ) => Promise<__HttpRequest>;
254
262
  export declare const se_TagResourceCommand: (
255
263
  input: TagResourceCommandInput,
256
264
  context: __SerdeContext
@@ -387,6 +395,10 @@ export declare const de_StartConnectionCommand: (
387
395
  output: __HttpResponse,
388
396
  context: __SerdeContext
389
397
  ) => Promise<StartConnectionCommandOutput>;
398
+ export declare const de_StartOutpostDecommissionCommand: (
399
+ output: __HttpResponse,
400
+ context: __SerdeContext
401
+ ) => Promise<StartOutpostDecommissionCommandOutput>;
390
402
  export declare const de_TagResourceCommand: (
391
403
  output: __HttpResponse,
392
404
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-outposts",
3
3
  "description": "AWS SDK for JavaScript Outposts Client for Node.js, Browser and React Native",
4
- "version": "3.901.0",
4
+ "version": "3.906.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-outposts",
@@ -20,17 +20,17 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.901.0",
24
- "@aws-sdk/credential-provider-node": "3.901.0",
23
+ "@aws-sdk/core": "3.906.0",
24
+ "@aws-sdk/credential-provider-node": "3.906.0",
25
25
  "@aws-sdk/middleware-host-header": "3.901.0",
26
26
  "@aws-sdk/middleware-logger": "3.901.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.901.0",
28
- "@aws-sdk/middleware-user-agent": "3.901.0",
28
+ "@aws-sdk/middleware-user-agent": "3.906.0",
29
29
  "@aws-sdk/region-config-resolver": "3.901.0",
30
30
  "@aws-sdk/types": "3.901.0",
31
31
  "@aws-sdk/util-endpoints": "3.901.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.901.0",
33
- "@aws-sdk/util-user-agent-node": "3.901.0",
33
+ "@aws-sdk/util-user-agent-node": "3.906.0",
34
34
  "@smithy/config-resolver": "^4.3.0",
35
35
  "@smithy/core": "^3.14.0",
36
36
  "@smithy/fetch-http-handler": "^5.3.0",