@aws-sdk/client-launch-wizard 3.587.0 → 3.590.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.
Files changed (35) hide show
  1. package/README.md +32 -0
  2. package/dist-cjs/index.js +189 -1
  3. package/dist-es/LaunchWizard.js +8 -0
  4. package/dist-es/commands/GetWorkloadDeploymentPatternCommand.js +24 -0
  5. package/dist-es/commands/ListTagsForResourceCommand.js +24 -0
  6. package/dist-es/commands/TagResourceCommand.js +24 -0
  7. package/dist-es/commands/UntagResourceCommand.js +24 -0
  8. package/dist-es/commands/index.js +4 -0
  9. package/dist-es/protocols/Aws_restJson1.js +104 -0
  10. package/dist-types/LaunchWizard.d.ts +28 -0
  11. package/dist-types/LaunchWizardClient.d.ts +10 -6
  12. package/dist-types/commands/CreateDeploymentCommand.d.ts +3 -0
  13. package/dist-types/commands/DeleteDeploymentCommand.d.ts +4 -0
  14. package/dist-types/commands/GetDeploymentCommand.d.ts +4 -0
  15. package/dist-types/commands/GetWorkloadDeploymentPatternCommand.d.ts +98 -0
  16. package/dist-types/commands/ListTagsForResourceCommand.d.ts +71 -0
  17. package/dist-types/commands/ListWorkloadDeploymentPatternsCommand.d.ts +1 -1
  18. package/dist-types/commands/ListWorkloadsCommand.d.ts +1 -1
  19. package/dist-types/commands/TagResourceCommand.d.ts +70 -0
  20. package/dist-types/commands/UntagResourceCommand.d.ts +70 -0
  21. package/dist-types/commands/index.d.ts +4 -0
  22. package/dist-types/models/models_0.d.ts +241 -23
  23. package/dist-types/protocols/Aws_restJson1.d.ts +36 -0
  24. package/dist-types/runtimeConfig.native.d.ts +1 -1
  25. package/dist-types/ts3.4/LaunchWizard.d.ts +68 -0
  26. package/dist-types/ts3.4/LaunchWizardClient.d.ts +27 -3
  27. package/dist-types/ts3.4/commands/GetWorkloadDeploymentPatternCommand.d.ts +39 -0
  28. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +39 -0
  29. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +35 -0
  30. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +35 -0
  31. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  32. package/dist-types/ts3.4/models/models_0.d.ts +56 -8
  33. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +48 -0
  34. package/dist-types/ts3.4/runtimeConfig.native.d.ts +1 -1
  35. package/package.json +5 -5
package/README.md CHANGED
@@ -237,6 +237,14 @@ GetWorkload
237
237
 
238
238
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/GetWorkloadCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetWorkloadCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetWorkloadCommandOutput/)
239
239
 
240
+ </details>
241
+ <details>
242
+ <summary>
243
+ GetWorkloadDeploymentPattern
244
+ </summary>
245
+
246
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/GetWorkloadDeploymentPatternCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetWorkloadDeploymentPatternCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/GetWorkloadDeploymentPatternCommandOutput/)
247
+
240
248
  </details>
241
249
  <details>
242
250
  <summary>
@@ -253,6 +261,14 @@ ListDeployments
253
261
 
254
262
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/ListDeploymentsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListDeploymentsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListDeploymentsCommandOutput/)
255
263
 
264
+ </details>
265
+ <details>
266
+ <summary>
267
+ ListTagsForResource
268
+ </summary>
269
+
270
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/ListTagsForResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListTagsForResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListTagsForResourceCommandOutput/)
271
+
256
272
  </details>
257
273
  <details>
258
274
  <summary>
@@ -270,3 +286,19 @@ ListWorkloads
270
286
  [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/ListWorkloadsCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListWorkloadsCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/ListWorkloadsCommandOutput/)
271
287
 
272
288
  </details>
289
+ <details>
290
+ <summary>
291
+ TagResource
292
+ </summary>
293
+
294
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/TagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/TagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/TagResourceCommandOutput/)
295
+
296
+ </details>
297
+ <details>
298
+ <summary>
299
+ UntagResource
300
+ </summary>
301
+
302
+ [Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/client/launch-wizard/command/UntagResourceCommand/) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/UntagResourceCommandInput/) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-aws-sdk-client-launch-wizard/Interface/UntagResourceCommandOutput/)
303
+
304
+ </details>
package/dist-cjs/index.js CHANGED
@@ -31,16 +31,20 @@ __export(src_exports, {
31
31
  GetDeploymentCommand: () => GetDeploymentCommand,
32
32
  GetDeploymentOutputFilterSensitiveLog: () => GetDeploymentOutputFilterSensitiveLog,
33
33
  GetWorkloadCommand: () => GetWorkloadCommand,
34
+ GetWorkloadDeploymentPatternCommand: () => GetWorkloadDeploymentPatternCommand,
34
35
  InternalServerException: () => InternalServerException,
35
36
  LaunchWizard: () => LaunchWizard,
36
37
  LaunchWizardClient: () => LaunchWizardClient,
37
38
  LaunchWizardServiceException: () => LaunchWizardServiceException,
38
39
  ListDeploymentEventsCommand: () => ListDeploymentEventsCommand,
39
40
  ListDeploymentsCommand: () => ListDeploymentsCommand,
41
+ ListTagsForResourceCommand: () => ListTagsForResourceCommand,
40
42
  ListWorkloadDeploymentPatternsCommand: () => ListWorkloadDeploymentPatternsCommand,
41
43
  ListWorkloadsCommand: () => ListWorkloadsCommand,
42
44
  ResourceLimitException: () => ResourceLimitException,
43
45
  ResourceNotFoundException: () => ResourceNotFoundException,
46
+ TagResourceCommand: () => TagResourceCommand,
47
+ UntagResourceCommand: () => UntagResourceCommand,
44
48
  ValidationException: () => ValidationException,
45
49
  WorkloadDeploymentPatternStatus: () => WorkloadDeploymentPatternStatus,
46
50
  WorkloadStatus: () => WorkloadStatus,
@@ -357,6 +361,7 @@ var se_CreateDeploymentCommand = /* @__PURE__ */ __name(async (input, context) =
357
361
  dryRun: [],
358
362
  name: [],
359
363
  specifications: (_) => (0, import_smithy_client._json)(_),
364
+ tags: (_) => (0, import_smithy_client._json)(_),
360
365
  workloadName: []
361
366
  })
362
367
  );
@@ -408,6 +413,22 @@ var se_GetWorkloadCommand = /* @__PURE__ */ __name(async (input, context) => {
408
413
  b.m("POST").h(headers).b(body);
409
414
  return b.build();
410
415
  }, "se_GetWorkloadCommand");
416
+ var se_GetWorkloadDeploymentPatternCommand = /* @__PURE__ */ __name(async (input, context) => {
417
+ const b = (0, import_core.requestBuilder)(input, context);
418
+ const headers = {
419
+ "content-type": "application/json"
420
+ };
421
+ b.bp("/getWorkloadDeploymentPattern");
422
+ let body;
423
+ body = JSON.stringify(
424
+ (0, import_smithy_client.take)(input, {
425
+ deploymentPatternName: [],
426
+ workloadName: []
427
+ })
428
+ );
429
+ b.m("POST").h(headers).b(body);
430
+ return b.build();
431
+ }, "se_GetWorkloadDeploymentPatternCommand");
411
432
  var se_ListDeploymentEventsCommand = /* @__PURE__ */ __name(async (input, context) => {
412
433
  const b = (0, import_core.requestBuilder)(input, context);
413
434
  const headers = {
@@ -442,6 +463,15 @@ var se_ListDeploymentsCommand = /* @__PURE__ */ __name(async (input, context) =>
442
463
  b.m("POST").h(headers).b(body);
443
464
  return b.build();
444
465
  }, "se_ListDeploymentsCommand");
466
+ var se_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
467
+ const b = (0, import_core.requestBuilder)(input, context);
468
+ const headers = {};
469
+ b.bp("/tags/{resourceArn}");
470
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
471
+ let body;
472
+ b.m("GET").h(headers).b(body);
473
+ return b.build();
474
+ }, "se_ListTagsForResourceCommand");
445
475
  var se_ListWorkloadDeploymentPatternsCommand = /* @__PURE__ */ __name(async (input, context) => {
446
476
  const b = (0, import_core.requestBuilder)(input, context);
447
477
  const headers = {
@@ -475,6 +505,37 @@ var se_ListWorkloadsCommand = /* @__PURE__ */ __name(async (input, context) => {
475
505
  b.m("POST").h(headers).b(body);
476
506
  return b.build();
477
507
  }, "se_ListWorkloadsCommand");
508
+ var se_TagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
509
+ const b = (0, import_core.requestBuilder)(input, context);
510
+ const headers = {
511
+ "content-type": "application/json"
512
+ };
513
+ b.bp("/tags/{resourceArn}");
514
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
515
+ let body;
516
+ body = JSON.stringify(
517
+ (0, import_smithy_client.take)(input, {
518
+ tags: (_) => (0, import_smithy_client._json)(_)
519
+ })
520
+ );
521
+ b.m("POST").h(headers).b(body);
522
+ return b.build();
523
+ }, "se_TagResourceCommand");
524
+ var se_UntagResourceCommand = /* @__PURE__ */ __name(async (input, context) => {
525
+ const b = (0, import_core.requestBuilder)(input, context);
526
+ const headers = {};
527
+ b.bp("/tags/{resourceArn}");
528
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
529
+ const query = (0, import_smithy_client.map)({
530
+ [_tK]: [
531
+ (0, import_smithy_client.expectNonNull)(input.tagKeys, `tagKeys`) != null,
532
+ () => (input[_tK] || []).map((_entry) => _entry)
533
+ ]
534
+ });
535
+ let body;
536
+ b.m("DELETE").h(headers).q(query).b(body);
537
+ return b.build();
538
+ }, "se_UntagResourceCommand");
478
539
  var de_CreateDeploymentCommand = /* @__PURE__ */ __name(async (output, context) => {
479
540
  if (output.statusCode !== 200 && output.statusCode >= 300) {
480
541
  return de_CommandError(output, context);
@@ -532,6 +593,20 @@ var de_GetWorkloadCommand = /* @__PURE__ */ __name(async (output, context) => {
532
593
  Object.assign(contents, doc);
533
594
  return contents;
534
595
  }, "de_GetWorkloadCommand");
596
+ var de_GetWorkloadDeploymentPatternCommand = /* @__PURE__ */ __name(async (output, context) => {
597
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
598
+ return de_CommandError(output, context);
599
+ }
600
+ const contents = (0, import_smithy_client.map)({
601
+ $metadata: deserializeMetadata(output)
602
+ });
603
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
604
+ const doc = (0, import_smithy_client.take)(data, {
605
+ workloadDeploymentPattern: import_smithy_client._json
606
+ });
607
+ Object.assign(contents, doc);
608
+ return contents;
609
+ }, "de_GetWorkloadDeploymentPatternCommand");
535
610
  var de_ListDeploymentEventsCommand = /* @__PURE__ */ __name(async (output, context) => {
536
611
  if (output.statusCode !== 200 && output.statusCode >= 300) {
537
612
  return de_CommandError(output, context);
@@ -562,6 +637,20 @@ var de_ListDeploymentsCommand = /* @__PURE__ */ __name(async (output, context) =
562
637
  Object.assign(contents, doc);
563
638
  return contents;
564
639
  }, "de_ListDeploymentsCommand");
640
+ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
641
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
642
+ return de_CommandError(output, context);
643
+ }
644
+ const contents = (0, import_smithy_client.map)({
645
+ $metadata: deserializeMetadata(output)
646
+ });
647
+ const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
648
+ const doc = (0, import_smithy_client.take)(data, {
649
+ tags: import_smithy_client._json
650
+ });
651
+ Object.assign(contents, doc);
652
+ return contents;
653
+ }, "de_ListTagsForResourceCommand");
565
654
  var de_ListWorkloadDeploymentPatternsCommand = /* @__PURE__ */ __name(async (output, context) => {
566
655
  if (output.statusCode !== 200 && output.statusCode >= 300) {
567
656
  return de_CommandError(output, context);
@@ -592,6 +681,26 @@ var de_ListWorkloadsCommand = /* @__PURE__ */ __name(async (output, context) =>
592
681
  Object.assign(contents, doc);
593
682
  return contents;
594
683
  }, "de_ListWorkloadsCommand");
684
+ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
685
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
686
+ return de_CommandError(output, context);
687
+ }
688
+ const contents = (0, import_smithy_client.map)({
689
+ $metadata: deserializeMetadata(output)
690
+ });
691
+ await (0, import_smithy_client.collectBody)(output.body, context);
692
+ return contents;
693
+ }, "de_TagResourceCommand");
694
+ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
695
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
696
+ return de_CommandError(output, context);
697
+ }
698
+ const contents = (0, import_smithy_client.map)({
699
+ $metadata: deserializeMetadata(output)
700
+ });
701
+ await (0, import_smithy_client.collectBody)(output.body, context);
702
+ return contents;
703
+ }, "de_UntagResourceCommand");
595
704
  var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
596
705
  const parsedOutput = {
597
706
  ...output,
@@ -677,12 +786,14 @@ var de_DeploymentData = /* @__PURE__ */ __name((output, context) => {
677
786
  return (0, import_smithy_client.take)(output, {
678
787
  createdAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
679
788
  deletedAt: (_) => (0, import_smithy_client.expectNonNull)((0, import_smithy_client.parseEpochTimestamp)((0, import_smithy_client.expectNumber)(_))),
789
+ deploymentArn: import_smithy_client.expectString,
680
790
  id: import_smithy_client.expectString,
681
791
  name: import_smithy_client.expectString,
682
792
  patternName: import_smithy_client.expectString,
683
793
  resourceGroup: import_smithy_client.expectString,
684
794
  specifications: import_smithy_client._json,
685
795
  status: import_smithy_client.expectString,
796
+ tags: import_smithy_client._json,
686
797
  workloadName: import_smithy_client.expectString
687
798
  });
688
799
  }, "de_DeploymentData");
@@ -723,6 +834,7 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
723
834
  extendedRequestId: output.headers["x-amz-id-2"],
724
835
  cfId: output.headers["x-amz-cf-id"]
725
836
  }), "deserializeMetadata");
837
+ var _tK = "tagKeys";
726
838
 
727
839
  // src/commands/CreateDeploymentCommand.ts
728
840
  var _CreateDeploymentCommand = class _CreateDeploymentCommand extends import_smithy_client.Command.classBuilder().ep({
@@ -788,6 +900,23 @@ var _GetWorkloadCommand = class _GetWorkloadCommand extends import_smithy_client
788
900
  __name(_GetWorkloadCommand, "GetWorkloadCommand");
789
901
  var GetWorkloadCommand = _GetWorkloadCommand;
790
902
 
903
+ // src/commands/GetWorkloadDeploymentPatternCommand.ts
904
+
905
+
906
+
907
+
908
+ var _GetWorkloadDeploymentPatternCommand = class _GetWorkloadDeploymentPatternCommand extends import_smithy_client.Command.classBuilder().ep({
909
+ ...commonParams
910
+ }).m(function(Command, cs, config, o) {
911
+ return [
912
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
913
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
914
+ ];
915
+ }).s("LaunchWizard", "GetWorkloadDeploymentPattern", {}).n("LaunchWizardClient", "GetWorkloadDeploymentPatternCommand").f(void 0, void 0).ser(se_GetWorkloadDeploymentPatternCommand).de(de_GetWorkloadDeploymentPatternCommand).build() {
916
+ };
917
+ __name(_GetWorkloadDeploymentPatternCommand, "GetWorkloadDeploymentPatternCommand");
918
+ var GetWorkloadDeploymentPatternCommand = _GetWorkloadDeploymentPatternCommand;
919
+
791
920
  // src/commands/ListDeploymentEventsCommand.ts
792
921
 
793
922
 
@@ -822,6 +951,23 @@ var _ListDeploymentsCommand = class _ListDeploymentsCommand extends import_smith
822
951
  __name(_ListDeploymentsCommand, "ListDeploymentsCommand");
823
952
  var ListDeploymentsCommand = _ListDeploymentsCommand;
824
953
 
954
+ // src/commands/ListTagsForResourceCommand.ts
955
+
956
+
957
+
958
+
959
+ var _ListTagsForResourceCommand = class _ListTagsForResourceCommand extends import_smithy_client.Command.classBuilder().ep({
960
+ ...commonParams
961
+ }).m(function(Command, cs, config, o) {
962
+ return [
963
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
964
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
965
+ ];
966
+ }).s("LaunchWizard", "ListTagsForResource", {}).n("LaunchWizardClient", "ListTagsForResourceCommand").f(void 0, void 0).ser(se_ListTagsForResourceCommand).de(de_ListTagsForResourceCommand).build() {
967
+ };
968
+ __name(_ListTagsForResourceCommand, "ListTagsForResourceCommand");
969
+ var ListTagsForResourceCommand = _ListTagsForResourceCommand;
970
+
825
971
  // src/commands/ListWorkloadDeploymentPatternsCommand.ts
826
972
 
827
973
 
@@ -856,16 +1002,54 @@ var _ListWorkloadsCommand = class _ListWorkloadsCommand extends import_smithy_cl
856
1002
  __name(_ListWorkloadsCommand, "ListWorkloadsCommand");
857
1003
  var ListWorkloadsCommand = _ListWorkloadsCommand;
858
1004
 
1005
+ // src/commands/TagResourceCommand.ts
1006
+
1007
+
1008
+
1009
+
1010
+ var _TagResourceCommand = class _TagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1011
+ ...commonParams
1012
+ }).m(function(Command, cs, config, o) {
1013
+ return [
1014
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1015
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1016
+ ];
1017
+ }).s("LaunchWizard", "TagResource", {}).n("LaunchWizardClient", "TagResourceCommand").f(void 0, void 0).ser(se_TagResourceCommand).de(de_TagResourceCommand).build() {
1018
+ };
1019
+ __name(_TagResourceCommand, "TagResourceCommand");
1020
+ var TagResourceCommand = _TagResourceCommand;
1021
+
1022
+ // src/commands/UntagResourceCommand.ts
1023
+
1024
+
1025
+
1026
+
1027
+ var _UntagResourceCommand = class _UntagResourceCommand extends import_smithy_client.Command.classBuilder().ep({
1028
+ ...commonParams
1029
+ }).m(function(Command, cs, config, o) {
1030
+ return [
1031
+ (0, import_middleware_serde.getSerdePlugin)(config, this.serialize, this.deserialize),
1032
+ (0, import_middleware_endpoint.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())
1033
+ ];
1034
+ }).s("LaunchWizard", "UntagResource", {}).n("LaunchWizardClient", "UntagResourceCommand").f(void 0, void 0).ser(se_UntagResourceCommand).de(de_UntagResourceCommand).build() {
1035
+ };
1036
+ __name(_UntagResourceCommand, "UntagResourceCommand");
1037
+ var UntagResourceCommand = _UntagResourceCommand;
1038
+
859
1039
  // src/LaunchWizard.ts
860
1040
  var commands = {
861
1041
  CreateDeploymentCommand,
862
1042
  DeleteDeploymentCommand,
863
1043
  GetDeploymentCommand,
864
1044
  GetWorkloadCommand,
1045
+ GetWorkloadDeploymentPatternCommand,
865
1046
  ListDeploymentEventsCommand,
866
1047
  ListDeploymentsCommand,
1048
+ ListTagsForResourceCommand,
867
1049
  ListWorkloadDeploymentPatternsCommand,
868
- ListWorkloadsCommand
1050
+ ListWorkloadsCommand,
1051
+ TagResourceCommand,
1052
+ UntagResourceCommand
869
1053
  };
870
1054
  var _LaunchWizard = class _LaunchWizard extends LaunchWizardClient {
871
1055
  };
@@ -900,10 +1084,14 @@ var paginateListWorkloads = (0, import_core.createPaginator)(LaunchWizardClient,
900
1084
  DeleteDeploymentCommand,
901
1085
  GetDeploymentCommand,
902
1086
  GetWorkloadCommand,
1087
+ GetWorkloadDeploymentPatternCommand,
903
1088
  ListDeploymentEventsCommand,
904
1089
  ListDeploymentsCommand,
1090
+ ListTagsForResourceCommand,
905
1091
  ListWorkloadDeploymentPatternsCommand,
906
1092
  ListWorkloadsCommand,
1093
+ TagResourceCommand,
1094
+ UntagResourceCommand,
907
1095
  paginateListDeploymentEvents,
908
1096
  paginateListDeployments,
909
1097
  paginateListWorkloadDeploymentPatterns,
@@ -3,20 +3,28 @@ import { CreateDeploymentCommand, } from "./commands/CreateDeploymentCommand";
3
3
  import { DeleteDeploymentCommand, } from "./commands/DeleteDeploymentCommand";
4
4
  import { GetDeploymentCommand, } from "./commands/GetDeploymentCommand";
5
5
  import { GetWorkloadCommand } from "./commands/GetWorkloadCommand";
6
+ import { GetWorkloadDeploymentPatternCommand, } from "./commands/GetWorkloadDeploymentPatternCommand";
6
7
  import { ListDeploymentEventsCommand, } from "./commands/ListDeploymentEventsCommand";
7
8
  import { ListDeploymentsCommand, } from "./commands/ListDeploymentsCommand";
9
+ import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand";
8
10
  import { ListWorkloadDeploymentPatternsCommand, } from "./commands/ListWorkloadDeploymentPatternsCommand";
9
11
  import { ListWorkloadsCommand, } from "./commands/ListWorkloadsCommand";
12
+ import { TagResourceCommand } from "./commands/TagResourceCommand";
13
+ import { UntagResourceCommand, } from "./commands/UntagResourceCommand";
10
14
  import { LaunchWizardClient } from "./LaunchWizardClient";
11
15
  const commands = {
12
16
  CreateDeploymentCommand,
13
17
  DeleteDeploymentCommand,
14
18
  GetDeploymentCommand,
15
19
  GetWorkloadCommand,
20
+ GetWorkloadDeploymentPatternCommand,
16
21
  ListDeploymentEventsCommand,
17
22
  ListDeploymentsCommand,
23
+ ListTagsForResourceCommand,
18
24
  ListWorkloadDeploymentPatternsCommand,
19
25
  ListWorkloadsCommand,
26
+ TagResourceCommand,
27
+ UntagResourceCommand,
20
28
  };
21
29
  export class LaunchWizard extends LaunchWizardClient {
22
30
  }
@@ -0,0 +1,24 @@
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_GetWorkloadDeploymentPatternCommand, se_GetWorkloadDeploymentPatternCommand, } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class GetWorkloadDeploymentPatternCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("LaunchWizard", "GetWorkloadDeploymentPattern", {})
19
+ .n("LaunchWizardClient", "GetWorkloadDeploymentPatternCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_GetWorkloadDeploymentPatternCommand)
22
+ .de(de_GetWorkloadDeploymentPatternCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
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_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class ListTagsForResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("LaunchWizard", "ListTagsForResource", {})
19
+ .n("LaunchWizardClient", "ListTagsForResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_ListTagsForResourceCommand)
22
+ .de(de_ListTagsForResourceCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
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_TagResourceCommand, se_TagResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class TagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("LaunchWizard", "TagResource", {})
19
+ .n("LaunchWizardClient", "TagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_TagResourceCommand)
22
+ .de(de_TagResourceCommand)
23
+ .build() {
24
+ }
@@ -0,0 +1,24 @@
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_UntagResourceCommand, se_UntagResourceCommand } from "../protocols/Aws_restJson1";
6
+ export { $Command };
7
+ export class UntagResourceCommand extends $Command
8
+ .classBuilder()
9
+ .ep({
10
+ ...commonParams,
11
+ })
12
+ .m(function (Command, cs, config, o) {
13
+ return [
14
+ getSerdePlugin(config, this.serialize, this.deserialize),
15
+ getEndpointPlugin(config, Command.getEndpointParameterInstructions()),
16
+ ];
17
+ })
18
+ .s("LaunchWizard", "UntagResource", {})
19
+ .n("LaunchWizardClient", "UntagResourceCommand")
20
+ .f(void 0, void 0)
21
+ .ser(se_UntagResourceCommand)
22
+ .de(de_UntagResourceCommand)
23
+ .build() {
24
+ }
@@ -2,7 +2,11 @@ export * from "./CreateDeploymentCommand";
2
2
  export * from "./DeleteDeploymentCommand";
3
3
  export * from "./GetDeploymentCommand";
4
4
  export * from "./GetWorkloadCommand";
5
+ export * from "./GetWorkloadDeploymentPatternCommand";
5
6
  export * from "./ListDeploymentEventsCommand";
6
7
  export * from "./ListDeploymentsCommand";
8
+ export * from "./ListTagsForResourceCommand";
7
9
  export * from "./ListWorkloadDeploymentPatternsCommand";
8
10
  export * from "./ListWorkloadsCommand";
11
+ export * from "./TagResourceCommand";
12
+ export * from "./UntagResourceCommand";
@@ -15,6 +15,7 @@ export const se_CreateDeploymentCommand = async (input, context) => {
15
15
  dryRun: [],
16
16
  name: [],
17
17
  specifications: (_) => _json(_),
18
+ tags: (_) => _json(_),
18
19
  workloadName: [],
19
20
  }));
20
21
  b.m("POST").h(headers).b(body);
@@ -59,6 +60,20 @@ export const se_GetWorkloadCommand = async (input, context) => {
59
60
  b.m("POST").h(headers).b(body);
60
61
  return b.build();
61
62
  };
63
+ export const se_GetWorkloadDeploymentPatternCommand = async (input, context) => {
64
+ const b = rb(input, context);
65
+ const headers = {
66
+ "content-type": "application/json",
67
+ };
68
+ b.bp("/getWorkloadDeploymentPattern");
69
+ let body;
70
+ body = JSON.stringify(take(input, {
71
+ deploymentPatternName: [],
72
+ workloadName: [],
73
+ }));
74
+ b.m("POST").h(headers).b(body);
75
+ return b.build();
76
+ };
62
77
  export const se_ListDeploymentEventsCommand = async (input, context) => {
63
78
  const b = rb(input, context);
64
79
  const headers = {
@@ -89,6 +104,15 @@ export const se_ListDeploymentsCommand = async (input, context) => {
89
104
  b.m("POST").h(headers).b(body);
90
105
  return b.build();
91
106
  };
107
+ export const se_ListTagsForResourceCommand = async (input, context) => {
108
+ const b = rb(input, context);
109
+ const headers = {};
110
+ b.bp("/tags/{resourceArn}");
111
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
112
+ let body;
113
+ b.m("GET").h(headers).b(body);
114
+ return b.build();
115
+ };
92
116
  export const se_ListWorkloadDeploymentPatternsCommand = async (input, context) => {
93
117
  const b = rb(input, context);
94
118
  const headers = {
@@ -118,6 +142,35 @@ export const se_ListWorkloadsCommand = async (input, context) => {
118
142
  b.m("POST").h(headers).b(body);
119
143
  return b.build();
120
144
  };
145
+ export const se_TagResourceCommand = async (input, context) => {
146
+ const b = rb(input, context);
147
+ const headers = {
148
+ "content-type": "application/json",
149
+ };
150
+ b.bp("/tags/{resourceArn}");
151
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
152
+ let body;
153
+ body = JSON.stringify(take(input, {
154
+ tags: (_) => _json(_),
155
+ }));
156
+ b.m("POST").h(headers).b(body);
157
+ return b.build();
158
+ };
159
+ export const se_UntagResourceCommand = async (input, context) => {
160
+ const b = rb(input, context);
161
+ const headers = {};
162
+ b.bp("/tags/{resourceArn}");
163
+ b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
164
+ const query = map({
165
+ [_tK]: [
166
+ __expectNonNull(input.tagKeys, `tagKeys`) != null,
167
+ () => (input[_tK] || []).map((_entry) => _entry),
168
+ ],
169
+ });
170
+ let body;
171
+ b.m("DELETE").h(headers).q(query).b(body);
172
+ return b.build();
173
+ };
121
174
  export const de_CreateDeploymentCommand = async (output, context) => {
122
175
  if (output.statusCode !== 200 && output.statusCode >= 300) {
123
176
  return de_CommandError(output, context);
@@ -175,6 +228,20 @@ export const de_GetWorkloadCommand = async (output, context) => {
175
228
  Object.assign(contents, doc);
176
229
  return contents;
177
230
  };
231
+ export const de_GetWorkloadDeploymentPatternCommand = async (output, context) => {
232
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
233
+ return de_CommandError(output, context);
234
+ }
235
+ const contents = map({
236
+ $metadata: deserializeMetadata(output),
237
+ });
238
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
239
+ const doc = take(data, {
240
+ workloadDeploymentPattern: _json,
241
+ });
242
+ Object.assign(contents, doc);
243
+ return contents;
244
+ };
178
245
  export const de_ListDeploymentEventsCommand = async (output, context) => {
179
246
  if (output.statusCode !== 200 && output.statusCode >= 300) {
180
247
  return de_CommandError(output, context);
@@ -205,6 +272,20 @@ export const de_ListDeploymentsCommand = async (output, context) => {
205
272
  Object.assign(contents, doc);
206
273
  return contents;
207
274
  };
275
+ export const de_ListTagsForResourceCommand = async (output, context) => {
276
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
277
+ return de_CommandError(output, context);
278
+ }
279
+ const contents = map({
280
+ $metadata: deserializeMetadata(output),
281
+ });
282
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
283
+ const doc = take(data, {
284
+ tags: _json,
285
+ });
286
+ Object.assign(contents, doc);
287
+ return contents;
288
+ };
208
289
  export const de_ListWorkloadDeploymentPatternsCommand = async (output, context) => {
209
290
  if (output.statusCode !== 200 && output.statusCode >= 300) {
210
291
  return de_CommandError(output, context);
@@ -235,6 +316,26 @@ export const de_ListWorkloadsCommand = async (output, context) => {
235
316
  Object.assign(contents, doc);
236
317
  return contents;
237
318
  };
319
+ export const de_TagResourceCommand = async (output, context) => {
320
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
321
+ return de_CommandError(output, context);
322
+ }
323
+ const contents = map({
324
+ $metadata: deserializeMetadata(output),
325
+ });
326
+ await collectBody(output.body, context);
327
+ return contents;
328
+ };
329
+ export const de_UntagResourceCommand = async (output, context) => {
330
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
331
+ return de_CommandError(output, context);
332
+ }
333
+ const contents = map({
334
+ $metadata: deserializeMetadata(output),
335
+ });
336
+ await collectBody(output.body, context);
337
+ return contents;
338
+ };
238
339
  const de_CommandError = async (output, context) => {
239
340
  const parsedOutput = {
240
341
  ...output,
@@ -320,12 +421,14 @@ const de_DeploymentData = (output, context) => {
320
421
  return take(output, {
321
422
  createdAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
322
423
  deletedAt: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))),
424
+ deploymentArn: __expectString,
323
425
  id: __expectString,
324
426
  name: __expectString,
325
427
  patternName: __expectString,
326
428
  resourceGroup: __expectString,
327
429
  specifications: _json,
328
430
  status: __expectString,
431
+ tags: _json,
329
432
  workloadName: __expectString,
330
433
  });
331
434
  };
@@ -376,3 +479,4 @@ const isSerializableHeaderValue = (value) => value !== undefined &&
376
479
  value !== "" &&
377
480
  (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
378
481
  (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
482
+ const _tK = "tagKeys";