@aws-sdk/client-drs 3.410.0 → 3.412.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 (51) hide show
  1. package/README.md +24 -0
  2. package/dist-cjs/Drs.js +6 -0
  3. package/dist-cjs/commands/DeleteLaunchActionCommand.js +46 -0
  4. package/dist-cjs/commands/ListLaunchActionsCommand.js +46 -0
  5. package/dist-cjs/commands/PutLaunchActionCommand.js +46 -0
  6. package/dist-cjs/commands/index.js +3 -0
  7. package/dist-cjs/models/models_0.js +22 -2
  8. package/dist-cjs/pagination/ListLaunchActionsPaginator.js +29 -0
  9. package/dist-cjs/pagination/index.js +1 -0
  10. package/dist-cjs/protocols/Aws_restJson1.js +233 -2
  11. package/dist-es/Drs.js +6 -0
  12. package/dist-es/commands/DeleteLaunchActionCommand.js +42 -0
  13. package/dist-es/commands/ListLaunchActionsCommand.js +42 -0
  14. package/dist-es/commands/PutLaunchActionCommand.js +42 -0
  15. package/dist-es/commands/index.js +3 -0
  16. package/dist-es/models/models_0.js +20 -0
  17. package/dist-es/pagination/ListLaunchActionsPaginator.js +25 -0
  18. package/dist-es/pagination/index.js +1 -0
  19. package/dist-es/protocols/Aws_restJson1.js +226 -1
  20. package/dist-types/Drs.d.ts +21 -0
  21. package/dist-types/DrsClient.d.ts +5 -2
  22. package/dist-types/commands/AssociateSourceNetworkStackCommand.d.ts +28 -0
  23. package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +2 -0
  24. package/dist-types/commands/DeleteLaunchActionCommand.d.ts +87 -0
  25. package/dist-types/commands/DescribeJobsCommand.d.ts +28 -0
  26. package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +1 -0
  27. package/dist-types/commands/GetLaunchConfigurationCommand.d.ts +1 -0
  28. package/dist-types/commands/ListLaunchActionsCommand.d.ts +115 -0
  29. package/dist-types/commands/PutLaunchActionCommand.d.ts +122 -0
  30. package/dist-types/commands/StartFailbackLaunchCommand.d.ts +28 -0
  31. package/dist-types/commands/StartRecoveryCommand.d.ts +28 -0
  32. package/dist-types/commands/StartSourceNetworkRecoveryCommand.d.ts +28 -0
  33. package/dist-types/commands/TerminateRecoveryInstancesCommand.d.ts +28 -0
  34. package/dist-types/commands/UpdateLaunchConfigurationCommand.d.ts +2 -0
  35. package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +2 -0
  36. package/dist-types/commands/index.d.ts +3 -0
  37. package/dist-types/models/models_0.d.ts +397 -0
  38. package/dist-types/pagination/ListLaunchActionsPaginator.d.ts +7 -0
  39. package/dist-types/pagination/index.d.ts +1 -0
  40. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  41. package/dist-types/ts3.4/Drs.d.ts +51 -0
  42. package/dist-types/ts3.4/DrsClient.d.ts +18 -0
  43. package/dist-types/ts3.4/commands/DeleteLaunchActionCommand.d.ts +39 -0
  44. package/dist-types/ts3.4/commands/ListLaunchActionsCommand.d.ts +39 -0
  45. package/dist-types/ts3.4/commands/PutLaunchActionCommand.d.ts +38 -0
  46. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  47. package/dist-types/ts3.4/models/models_0.d.ts +106 -0
  48. package/dist-types/ts3.4/pagination/ListLaunchActionsPaginator.d.ts +11 -0
  49. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  50. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  51. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
2
- import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, take, withBaseException, } from "@smithy/smithy-client";
2
+ import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, resolvedPath as __resolvedPath, strictParseLong as __strictParseLong, take, withBaseException, } from "@smithy/smithy-client";
3
3
  import { DrsServiceException as __BaseException } from "../models/DrsServiceException";
4
4
  import { AccessDeniedException, ConflictException, InternalServerException, ResourceNotFoundException, ServiceQuotaExceededException, ThrottlingException, UninitializedAccountException, ValidationException, } from "../models/models_0";
5
5
  export const se_AssociateSourceNetworkStackCommand = async (input, context) => {
@@ -57,6 +57,7 @@ export const se_CreateLaunchConfigurationTemplateCommand = async (input, context
57
57
  exportBucketArn: [],
58
58
  launchDisposition: [],
59
59
  licensing: (_) => _json(_),
60
+ postLaunchEnabled: [],
60
61
  tags: (_) => _json(_),
61
62
  targetInstanceTypeRightSizingMethod: [],
62
63
  }));
@@ -147,6 +148,27 @@ export const se_DeleteJobCommand = async (input, context) => {
147
148
  body,
148
149
  });
149
150
  };
151
+ export const se_DeleteLaunchActionCommand = async (input, context) => {
152
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
153
+ const headers = {
154
+ "content-type": "application/json",
155
+ };
156
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteLaunchAction";
157
+ let body;
158
+ body = JSON.stringify(take(input, {
159
+ actionId: [],
160
+ resourceId: [],
161
+ }));
162
+ return new __HttpRequest({
163
+ protocol,
164
+ hostname,
165
+ port,
166
+ method: "POST",
167
+ headers,
168
+ path: resolvedPath,
169
+ body,
170
+ });
171
+ };
150
172
  export const se_DeleteLaunchConfigurationTemplateCommand = async (input, context) => {
151
173
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
152
174
  const headers = {
@@ -586,6 +608,29 @@ export const se_ListExtensibleSourceServersCommand = async (input, context) => {
586
608
  body,
587
609
  });
588
610
  };
611
+ export const se_ListLaunchActionsCommand = async (input, context) => {
612
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
613
+ const headers = {
614
+ "content-type": "application/json",
615
+ };
616
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListLaunchActions";
617
+ let body;
618
+ body = JSON.stringify(take(input, {
619
+ filters: (_) => _json(_),
620
+ maxResults: [],
621
+ nextToken: [],
622
+ resourceId: [],
623
+ }));
624
+ return new __HttpRequest({
625
+ protocol,
626
+ hostname,
627
+ port,
628
+ method: "POST",
629
+ headers,
630
+ path: resolvedPath,
631
+ body,
632
+ });
633
+ };
589
634
  export const se_ListStagingAccountsCommand = async (input, context) => {
590
635
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
591
636
  const headers = {};
@@ -622,6 +667,36 @@ export const se_ListTagsForResourceCommand = async (input, context) => {
622
667
  body,
623
668
  });
624
669
  };
670
+ export const se_PutLaunchActionCommand = async (input, context) => {
671
+ const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
672
+ const headers = {
673
+ "content-type": "application/json",
674
+ };
675
+ const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutLaunchAction";
676
+ let body;
677
+ body = JSON.stringify(take(input, {
678
+ actionCode: [],
679
+ actionId: [],
680
+ actionVersion: [],
681
+ active: [],
682
+ category: [],
683
+ description: [],
684
+ name: [],
685
+ optional: [],
686
+ order: [],
687
+ parameters: (_) => _json(_),
688
+ resourceId: [],
689
+ }));
690
+ return new __HttpRequest({
691
+ protocol,
692
+ hostname,
693
+ port,
694
+ method: "POST",
695
+ headers,
696
+ path: resolvedPath,
697
+ body,
698
+ });
699
+ };
625
700
  export const se_RetryDataReplicationCommand = async (input, context) => {
626
701
  const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
627
702
  const headers = {
@@ -927,6 +1002,7 @@ export const se_UpdateLaunchConfigurationCommand = async (input, context) => {
927
1002
  launchDisposition: [],
928
1003
  licensing: (_) => _json(_),
929
1004
  name: [],
1005
+ postLaunchEnabled: [],
930
1006
  sourceServerID: [],
931
1007
  targetInstanceTypeRightSizingMethod: [],
932
1008
  }));
@@ -954,6 +1030,7 @@ export const se_UpdateLaunchConfigurationTemplateCommand = async (input, context
954
1030
  launchConfigurationTemplateID: [],
955
1031
  launchDisposition: [],
956
1032
  licensing: (_) => _json(_),
1033
+ postLaunchEnabled: [],
957
1034
  targetInstanceTypeRightSizingMethod: [],
958
1035
  }));
959
1036
  return new __HttpRequest({
@@ -1343,6 +1420,47 @@ const de_DeleteJobCommandError = async (output, context) => {
1343
1420
  });
1344
1421
  }
1345
1422
  };
1423
+ export const de_DeleteLaunchActionCommand = async (output, context) => {
1424
+ if (output.statusCode !== 204 && output.statusCode >= 300) {
1425
+ return de_DeleteLaunchActionCommandError(output, context);
1426
+ }
1427
+ const contents = map({
1428
+ $metadata: deserializeMetadata(output),
1429
+ });
1430
+ await collectBody(output.body, context);
1431
+ return contents;
1432
+ };
1433
+ const de_DeleteLaunchActionCommandError = async (output, context) => {
1434
+ const parsedOutput = {
1435
+ ...output,
1436
+ body: await parseErrorBody(output.body, context),
1437
+ };
1438
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
1439
+ switch (errorCode) {
1440
+ case "InternalServerException":
1441
+ case "com.amazonaws.drs#InternalServerException":
1442
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
1443
+ case "ResourceNotFoundException":
1444
+ case "com.amazonaws.drs#ResourceNotFoundException":
1445
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
1446
+ case "ThrottlingException":
1447
+ case "com.amazonaws.drs#ThrottlingException":
1448
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
1449
+ case "UninitializedAccountException":
1450
+ case "com.amazonaws.drs#UninitializedAccountException":
1451
+ throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
1452
+ case "ValidationException":
1453
+ case "com.amazonaws.drs#ValidationException":
1454
+ throw await de_ValidationExceptionRes(parsedOutput, context);
1455
+ default:
1456
+ const parsedBody = parsedOutput.body;
1457
+ return throwDefaultError({
1458
+ output,
1459
+ parsedBody,
1460
+ errorCode,
1461
+ });
1462
+ }
1463
+ };
1346
1464
  export const de_DeleteLaunchConfigurationTemplateCommand = async (output, context) => {
1347
1465
  if (output.statusCode !== 204 && output.statusCode >= 300) {
1348
1466
  return de_DeleteLaunchConfigurationTemplateCommandError(output, context);
@@ -2110,6 +2228,7 @@ export const de_GetLaunchConfigurationCommand = async (output, context) => {
2110
2228
  launchDisposition: __expectString,
2111
2229
  licensing: _json,
2112
2230
  name: __expectString,
2231
+ postLaunchEnabled: __expectBoolean,
2113
2232
  sourceServerID: __expectString,
2114
2233
  targetInstanceTypeRightSizingMethod: __expectString,
2115
2234
  });
@@ -2289,6 +2408,52 @@ const de_ListExtensibleSourceServersCommandError = async (output, context) => {
2289
2408
  });
2290
2409
  }
2291
2410
  };
2411
+ export const de_ListLaunchActionsCommand = async (output, context) => {
2412
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2413
+ return de_ListLaunchActionsCommandError(output, context);
2414
+ }
2415
+ const contents = map({
2416
+ $metadata: deserializeMetadata(output),
2417
+ });
2418
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2419
+ const doc = take(data, {
2420
+ items: _json,
2421
+ nextToken: __expectString,
2422
+ });
2423
+ Object.assign(contents, doc);
2424
+ return contents;
2425
+ };
2426
+ const de_ListLaunchActionsCommandError = async (output, context) => {
2427
+ const parsedOutput = {
2428
+ ...output,
2429
+ body: await parseErrorBody(output.body, context),
2430
+ };
2431
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2432
+ switch (errorCode) {
2433
+ case "InternalServerException":
2434
+ case "com.amazonaws.drs#InternalServerException":
2435
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2436
+ case "ResourceNotFoundException":
2437
+ case "com.amazonaws.drs#ResourceNotFoundException":
2438
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2439
+ case "ServiceQuotaExceededException":
2440
+ case "com.amazonaws.drs#ServiceQuotaExceededException":
2441
+ throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
2442
+ case "ThrottlingException":
2443
+ case "com.amazonaws.drs#ThrottlingException":
2444
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2445
+ case "UninitializedAccountException":
2446
+ case "com.amazonaws.drs#UninitializedAccountException":
2447
+ throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
2448
+ default:
2449
+ const parsedBody = parsedOutput.body;
2450
+ return throwDefaultError({
2451
+ output,
2452
+ parsedBody,
2453
+ errorCode,
2454
+ });
2455
+ }
2456
+ };
2292
2457
  export const de_ListStagingAccountsCommand = async (output, context) => {
2293
2458
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2294
2459
  return de_ListStagingAccountsCommandError(output, context);
@@ -2380,6 +2545,65 @@ const de_ListTagsForResourceCommandError = async (output, context) => {
2380
2545
  });
2381
2546
  }
2382
2547
  };
2548
+ export const de_PutLaunchActionCommand = async (output, context) => {
2549
+ if (output.statusCode !== 200 && output.statusCode >= 300) {
2550
+ return de_PutLaunchActionCommandError(output, context);
2551
+ }
2552
+ const contents = map({
2553
+ $metadata: deserializeMetadata(output),
2554
+ });
2555
+ const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body");
2556
+ const doc = take(data, {
2557
+ actionCode: __expectString,
2558
+ actionId: __expectString,
2559
+ actionVersion: __expectString,
2560
+ active: __expectBoolean,
2561
+ category: __expectString,
2562
+ description: __expectString,
2563
+ name: __expectString,
2564
+ optional: __expectBoolean,
2565
+ order: __expectInt32,
2566
+ parameters: _json,
2567
+ resourceId: __expectString,
2568
+ type: __expectString,
2569
+ });
2570
+ Object.assign(contents, doc);
2571
+ return contents;
2572
+ };
2573
+ const de_PutLaunchActionCommandError = async (output, context) => {
2574
+ const parsedOutput = {
2575
+ ...output,
2576
+ body: await parseErrorBody(output.body, context),
2577
+ };
2578
+ const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
2579
+ switch (errorCode) {
2580
+ case "ConflictException":
2581
+ case "com.amazonaws.drs#ConflictException":
2582
+ throw await de_ConflictExceptionRes(parsedOutput, context);
2583
+ case "InternalServerException":
2584
+ case "com.amazonaws.drs#InternalServerException":
2585
+ throw await de_InternalServerExceptionRes(parsedOutput, context);
2586
+ case "ResourceNotFoundException":
2587
+ case "com.amazonaws.drs#ResourceNotFoundException":
2588
+ throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
2589
+ case "ThrottlingException":
2590
+ case "com.amazonaws.drs#ThrottlingException":
2591
+ throw await de_ThrottlingExceptionRes(parsedOutput, context);
2592
+ case "UninitializedAccountException":
2593
+ case "com.amazonaws.drs#UninitializedAccountException":
2594
+ throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
2595
+ case "ValidationException":
2596
+ case "com.amazonaws.drs#ValidationException":
2597
+ throw await de_ValidationExceptionRes(parsedOutput, context);
2598
+ default:
2599
+ const parsedBody = parsedOutput.body;
2600
+ return throwDefaultError({
2601
+ output,
2602
+ parsedBody,
2603
+ errorCode,
2604
+ });
2605
+ }
2606
+ };
2383
2607
  export const de_RetryDataReplicationCommand = async (output, context) => {
2384
2608
  if (output.statusCode !== 200 && output.statusCode >= 300) {
2385
2609
  return de_RetryDataReplicationCommandError(output, context);
@@ -3033,6 +3257,7 @@ export const de_UpdateLaunchConfigurationCommand = async (output, context) => {
3033
3257
  launchDisposition: __expectString,
3034
3258
  licensing: _json,
3035
3259
  name: __expectString,
3260
+ postLaunchEnabled: __expectBoolean,
3036
3261
  sourceServerID: __expectString,
3037
3262
  targetInstanceTypeRightSizingMethod: __expectString,
3038
3263
  });
@@ -5,6 +5,7 @@ import { CreateLaunchConfigurationTemplateCommandInput, CreateLaunchConfiguratio
5
5
  import { CreateReplicationConfigurationTemplateCommandInput, CreateReplicationConfigurationTemplateCommandOutput } from "./commands/CreateReplicationConfigurationTemplateCommand";
6
6
  import { CreateSourceNetworkCommandInput, CreateSourceNetworkCommandOutput } from "./commands/CreateSourceNetworkCommand";
7
7
  import { DeleteJobCommandInput, DeleteJobCommandOutput } from "./commands/DeleteJobCommand";
8
+ import { DeleteLaunchActionCommandInput, DeleteLaunchActionCommandOutput } from "./commands/DeleteLaunchActionCommand";
8
9
  import { DeleteLaunchConfigurationTemplateCommandInput, DeleteLaunchConfigurationTemplateCommandOutput } from "./commands/DeleteLaunchConfigurationTemplateCommand";
9
10
  import { DeleteRecoveryInstanceCommandInput, DeleteRecoveryInstanceCommandOutput } from "./commands/DeleteRecoveryInstanceCommand";
10
11
  import { DeleteReplicationConfigurationTemplateCommandInput, DeleteReplicationConfigurationTemplateCommandOutput } from "./commands/DeleteReplicationConfigurationTemplateCommand";
@@ -26,8 +27,10 @@ import { GetLaunchConfigurationCommandInput, GetLaunchConfigurationCommandOutput
26
27
  import { GetReplicationConfigurationCommandInput, GetReplicationConfigurationCommandOutput } from "./commands/GetReplicationConfigurationCommand";
27
28
  import { InitializeServiceCommandInput, InitializeServiceCommandOutput } from "./commands/InitializeServiceCommand";
28
29
  import { ListExtensibleSourceServersCommandInput, ListExtensibleSourceServersCommandOutput } from "./commands/ListExtensibleSourceServersCommand";
30
+ import { ListLaunchActionsCommandInput, ListLaunchActionsCommandOutput } from "./commands/ListLaunchActionsCommand";
29
31
  import { ListStagingAccountsCommandInput, ListStagingAccountsCommandOutput } from "./commands/ListStagingAccountsCommand";
30
32
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
33
+ import { PutLaunchActionCommandInput, PutLaunchActionCommandOutput } from "./commands/PutLaunchActionCommand";
31
34
  import { RetryDataReplicationCommandInput, RetryDataReplicationCommandOutput } from "./commands/RetryDataReplicationCommand";
32
35
  import { ReverseReplicationCommandInput, ReverseReplicationCommandOutput } from "./commands/ReverseReplicationCommand";
33
36
  import { StartFailbackLaunchCommandInput, StartFailbackLaunchCommandOutput } from "./commands/StartFailbackLaunchCommand";
@@ -84,6 +87,12 @@ export interface Drs {
84
87
  deleteJob(args: DeleteJobCommandInput, options?: __HttpHandlerOptions): Promise<DeleteJobCommandOutput>;
85
88
  deleteJob(args: DeleteJobCommandInput, cb: (err: any, data?: DeleteJobCommandOutput) => void): void;
86
89
  deleteJob(args: DeleteJobCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteJobCommandOutput) => void): void;
90
+ /**
91
+ * @see {@link DeleteLaunchActionCommand}
92
+ */
93
+ deleteLaunchAction(args: DeleteLaunchActionCommandInput, options?: __HttpHandlerOptions): Promise<DeleteLaunchActionCommandOutput>;
94
+ deleteLaunchAction(args: DeleteLaunchActionCommandInput, cb: (err: any, data?: DeleteLaunchActionCommandOutput) => void): void;
95
+ deleteLaunchAction(args: DeleteLaunchActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteLaunchActionCommandOutput) => void): void;
87
96
  /**
88
97
  * @see {@link DeleteLaunchConfigurationTemplateCommand}
89
98
  */
@@ -210,6 +219,12 @@ export interface Drs {
210
219
  listExtensibleSourceServers(args: ListExtensibleSourceServersCommandInput, options?: __HttpHandlerOptions): Promise<ListExtensibleSourceServersCommandOutput>;
211
220
  listExtensibleSourceServers(args: ListExtensibleSourceServersCommandInput, cb: (err: any, data?: ListExtensibleSourceServersCommandOutput) => void): void;
212
221
  listExtensibleSourceServers(args: ListExtensibleSourceServersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListExtensibleSourceServersCommandOutput) => void): void;
222
+ /**
223
+ * @see {@link ListLaunchActionsCommand}
224
+ */
225
+ listLaunchActions(args: ListLaunchActionsCommandInput, options?: __HttpHandlerOptions): Promise<ListLaunchActionsCommandOutput>;
226
+ listLaunchActions(args: ListLaunchActionsCommandInput, cb: (err: any, data?: ListLaunchActionsCommandOutput) => void): void;
227
+ listLaunchActions(args: ListLaunchActionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListLaunchActionsCommandOutput) => void): void;
213
228
  /**
214
229
  * @see {@link ListStagingAccountsCommand}
215
230
  */
@@ -222,6 +237,12 @@ export interface Drs {
222
237
  listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
223
238
  listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
224
239
  listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
240
+ /**
241
+ * @see {@link PutLaunchActionCommand}
242
+ */
243
+ putLaunchAction(args: PutLaunchActionCommandInput, options?: __HttpHandlerOptions): Promise<PutLaunchActionCommandOutput>;
244
+ putLaunchAction(args: PutLaunchActionCommandInput, cb: (err: any, data?: PutLaunchActionCommandOutput) => void): void;
245
+ putLaunchAction(args: PutLaunchActionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutLaunchActionCommandOutput) => void): void;
225
246
  /**
226
247
  * @see {@link RetryDataReplicationCommand}
227
248
  */
@@ -14,6 +14,7 @@ import { CreateLaunchConfigurationTemplateCommandInput, CreateLaunchConfiguratio
14
14
  import { CreateReplicationConfigurationTemplateCommandInput, CreateReplicationConfigurationTemplateCommandOutput } from "./commands/CreateReplicationConfigurationTemplateCommand";
15
15
  import { CreateSourceNetworkCommandInput, CreateSourceNetworkCommandOutput } from "./commands/CreateSourceNetworkCommand";
16
16
  import { DeleteJobCommandInput, DeleteJobCommandOutput } from "./commands/DeleteJobCommand";
17
+ import { DeleteLaunchActionCommandInput, DeleteLaunchActionCommandOutput } from "./commands/DeleteLaunchActionCommand";
17
18
  import { DeleteLaunchConfigurationTemplateCommandInput, DeleteLaunchConfigurationTemplateCommandOutput } from "./commands/DeleteLaunchConfigurationTemplateCommand";
18
19
  import { DeleteRecoveryInstanceCommandInput, DeleteRecoveryInstanceCommandOutput } from "./commands/DeleteRecoveryInstanceCommand";
19
20
  import { DeleteReplicationConfigurationTemplateCommandInput, DeleteReplicationConfigurationTemplateCommandOutput } from "./commands/DeleteReplicationConfigurationTemplateCommand";
@@ -35,8 +36,10 @@ import { GetLaunchConfigurationCommandInput, GetLaunchConfigurationCommandOutput
35
36
  import { GetReplicationConfigurationCommandInput, GetReplicationConfigurationCommandOutput } from "./commands/GetReplicationConfigurationCommand";
36
37
  import { InitializeServiceCommandInput, InitializeServiceCommandOutput } from "./commands/InitializeServiceCommand";
37
38
  import { ListExtensibleSourceServersCommandInput, ListExtensibleSourceServersCommandOutput } from "./commands/ListExtensibleSourceServersCommand";
39
+ import { ListLaunchActionsCommandInput, ListLaunchActionsCommandOutput } from "./commands/ListLaunchActionsCommand";
38
40
  import { ListStagingAccountsCommandInput, ListStagingAccountsCommandOutput } from "./commands/ListStagingAccountsCommand";
39
41
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
42
+ import { PutLaunchActionCommandInput, PutLaunchActionCommandOutput } from "./commands/PutLaunchActionCommand";
40
43
  import { RetryDataReplicationCommandInput, RetryDataReplicationCommandOutput } from "./commands/RetryDataReplicationCommand";
41
44
  import { ReverseReplicationCommandInput, ReverseReplicationCommandOutput } from "./commands/ReverseReplicationCommand";
42
45
  import { StartFailbackLaunchCommandInput, StartFailbackLaunchCommandOutput } from "./commands/StartFailbackLaunchCommand";
@@ -61,11 +64,11 @@ export { __Client };
61
64
  /**
62
65
  * @public
63
66
  */
64
- export type ServiceInputTypes = AssociateSourceNetworkStackCommandInput | CreateExtendedSourceServerCommandInput | CreateLaunchConfigurationTemplateCommandInput | CreateReplicationConfigurationTemplateCommandInput | CreateSourceNetworkCommandInput | DeleteJobCommandInput | DeleteLaunchConfigurationTemplateCommandInput | DeleteRecoveryInstanceCommandInput | DeleteReplicationConfigurationTemplateCommandInput | DeleteSourceNetworkCommandInput | DeleteSourceServerCommandInput | DescribeJobLogItemsCommandInput | DescribeJobsCommandInput | DescribeLaunchConfigurationTemplatesCommandInput | DescribeRecoveryInstancesCommandInput | DescribeRecoverySnapshotsCommandInput | DescribeReplicationConfigurationTemplatesCommandInput | DescribeSourceNetworksCommandInput | DescribeSourceServersCommandInput | DisconnectRecoveryInstanceCommandInput | DisconnectSourceServerCommandInput | ExportSourceNetworkCfnTemplateCommandInput | GetFailbackReplicationConfigurationCommandInput | GetLaunchConfigurationCommandInput | GetReplicationConfigurationCommandInput | InitializeServiceCommandInput | ListExtensibleSourceServersCommandInput | ListStagingAccountsCommandInput | ListTagsForResourceCommandInput | RetryDataReplicationCommandInput | ReverseReplicationCommandInput | StartFailbackLaunchCommandInput | StartRecoveryCommandInput | StartReplicationCommandInput | StartSourceNetworkRecoveryCommandInput | StartSourceNetworkReplicationCommandInput | StopFailbackCommandInput | StopReplicationCommandInput | StopSourceNetworkReplicationCommandInput | TagResourceCommandInput | TerminateRecoveryInstancesCommandInput | UntagResourceCommandInput | UpdateFailbackReplicationConfigurationCommandInput | UpdateLaunchConfigurationCommandInput | UpdateLaunchConfigurationTemplateCommandInput | UpdateReplicationConfigurationCommandInput | UpdateReplicationConfigurationTemplateCommandInput;
67
+ export type ServiceInputTypes = AssociateSourceNetworkStackCommandInput | CreateExtendedSourceServerCommandInput | CreateLaunchConfigurationTemplateCommandInput | CreateReplicationConfigurationTemplateCommandInput | CreateSourceNetworkCommandInput | DeleteJobCommandInput | DeleteLaunchActionCommandInput | DeleteLaunchConfigurationTemplateCommandInput | DeleteRecoveryInstanceCommandInput | DeleteReplicationConfigurationTemplateCommandInput | DeleteSourceNetworkCommandInput | DeleteSourceServerCommandInput | DescribeJobLogItemsCommandInput | DescribeJobsCommandInput | DescribeLaunchConfigurationTemplatesCommandInput | DescribeRecoveryInstancesCommandInput | DescribeRecoverySnapshotsCommandInput | DescribeReplicationConfigurationTemplatesCommandInput | DescribeSourceNetworksCommandInput | DescribeSourceServersCommandInput | DisconnectRecoveryInstanceCommandInput | DisconnectSourceServerCommandInput | ExportSourceNetworkCfnTemplateCommandInput | GetFailbackReplicationConfigurationCommandInput | GetLaunchConfigurationCommandInput | GetReplicationConfigurationCommandInput | InitializeServiceCommandInput | ListExtensibleSourceServersCommandInput | ListLaunchActionsCommandInput | ListStagingAccountsCommandInput | ListTagsForResourceCommandInput | PutLaunchActionCommandInput | RetryDataReplicationCommandInput | ReverseReplicationCommandInput | StartFailbackLaunchCommandInput | StartRecoveryCommandInput | StartReplicationCommandInput | StartSourceNetworkRecoveryCommandInput | StartSourceNetworkReplicationCommandInput | StopFailbackCommandInput | StopReplicationCommandInput | StopSourceNetworkReplicationCommandInput | TagResourceCommandInput | TerminateRecoveryInstancesCommandInput | UntagResourceCommandInput | UpdateFailbackReplicationConfigurationCommandInput | UpdateLaunchConfigurationCommandInput | UpdateLaunchConfigurationTemplateCommandInput | UpdateReplicationConfigurationCommandInput | UpdateReplicationConfigurationTemplateCommandInput;
65
68
  /**
66
69
  * @public
67
70
  */
68
- export type ServiceOutputTypes = AssociateSourceNetworkStackCommandOutput | CreateExtendedSourceServerCommandOutput | CreateLaunchConfigurationTemplateCommandOutput | CreateReplicationConfigurationTemplateCommandOutput | CreateSourceNetworkCommandOutput | DeleteJobCommandOutput | DeleteLaunchConfigurationTemplateCommandOutput | DeleteRecoveryInstanceCommandOutput | DeleteReplicationConfigurationTemplateCommandOutput | DeleteSourceNetworkCommandOutput | DeleteSourceServerCommandOutput | DescribeJobLogItemsCommandOutput | DescribeJobsCommandOutput | DescribeLaunchConfigurationTemplatesCommandOutput | DescribeRecoveryInstancesCommandOutput | DescribeRecoverySnapshotsCommandOutput | DescribeReplicationConfigurationTemplatesCommandOutput | DescribeSourceNetworksCommandOutput | DescribeSourceServersCommandOutput | DisconnectRecoveryInstanceCommandOutput | DisconnectSourceServerCommandOutput | ExportSourceNetworkCfnTemplateCommandOutput | GetFailbackReplicationConfigurationCommandOutput | GetLaunchConfigurationCommandOutput | GetReplicationConfigurationCommandOutput | InitializeServiceCommandOutput | ListExtensibleSourceServersCommandOutput | ListStagingAccountsCommandOutput | ListTagsForResourceCommandOutput | RetryDataReplicationCommandOutput | ReverseReplicationCommandOutput | StartFailbackLaunchCommandOutput | StartRecoveryCommandOutput | StartReplicationCommandOutput | StartSourceNetworkRecoveryCommandOutput | StartSourceNetworkReplicationCommandOutput | StopFailbackCommandOutput | StopReplicationCommandOutput | StopSourceNetworkReplicationCommandOutput | TagResourceCommandOutput | TerminateRecoveryInstancesCommandOutput | UntagResourceCommandOutput | UpdateFailbackReplicationConfigurationCommandOutput | UpdateLaunchConfigurationCommandOutput | UpdateLaunchConfigurationTemplateCommandOutput | UpdateReplicationConfigurationCommandOutput | UpdateReplicationConfigurationTemplateCommandOutput;
71
+ export type ServiceOutputTypes = AssociateSourceNetworkStackCommandOutput | CreateExtendedSourceServerCommandOutput | CreateLaunchConfigurationTemplateCommandOutput | CreateReplicationConfigurationTemplateCommandOutput | CreateSourceNetworkCommandOutput | DeleteJobCommandOutput | DeleteLaunchActionCommandOutput | DeleteLaunchConfigurationTemplateCommandOutput | DeleteRecoveryInstanceCommandOutput | DeleteReplicationConfigurationTemplateCommandOutput | DeleteSourceNetworkCommandOutput | DeleteSourceServerCommandOutput | DescribeJobLogItemsCommandOutput | DescribeJobsCommandOutput | DescribeLaunchConfigurationTemplatesCommandOutput | DescribeRecoveryInstancesCommandOutput | DescribeRecoverySnapshotsCommandOutput | DescribeReplicationConfigurationTemplatesCommandOutput | DescribeSourceNetworksCommandOutput | DescribeSourceServersCommandOutput | DisconnectRecoveryInstanceCommandOutput | DisconnectSourceServerCommandOutput | ExportSourceNetworkCfnTemplateCommandOutput | GetFailbackReplicationConfigurationCommandOutput | GetLaunchConfigurationCommandOutput | GetReplicationConfigurationCommandOutput | InitializeServiceCommandOutput | ListExtensibleSourceServersCommandOutput | ListLaunchActionsCommandOutput | ListStagingAccountsCommandOutput | ListTagsForResourceCommandOutput | PutLaunchActionCommandOutput | RetryDataReplicationCommandOutput | ReverseReplicationCommandOutput | StartFailbackLaunchCommandOutput | StartRecoveryCommandOutput | StartReplicationCommandOutput | StartSourceNetworkRecoveryCommandOutput | StartSourceNetworkReplicationCommandOutput | StopFailbackCommandOutput | StopReplicationCommandOutput | StopSourceNetworkReplicationCommandOutput | TagResourceCommandOutput | TerminateRecoveryInstancesCommandOutput | UntagResourceCommandOutput | UpdateFailbackReplicationConfigurationCommandOutput | UpdateLaunchConfigurationCommandOutput | UpdateLaunchConfigurationTemplateCommandOutput | UpdateReplicationConfigurationCommandOutput | UpdateReplicationConfigurationTemplateCommandOutput;
69
72
  /**
70
73
  * @public
71
74
  */
@@ -50,6 +50,34 @@ export interface AssociateSourceNetworkStackCommandOutput extends AssociateSourc
50
50
  * // sourceServerID: "STRING_VALUE",
51
51
  * // recoveryInstanceID: "STRING_VALUE",
52
52
  * // launchStatus: "STRING_VALUE",
53
+ * // launchActionsStatus: { // LaunchActionsStatus
54
+ * // ssmAgentDiscoveryDatetime: "STRING_VALUE",
55
+ * // runs: [ // LaunchActionRuns
56
+ * // { // LaunchActionRun
57
+ * // action: { // LaunchAction
58
+ * // actionId: "STRING_VALUE",
59
+ * // actionCode: "STRING_VALUE",
60
+ * // type: "STRING_VALUE",
61
+ * // name: "STRING_VALUE",
62
+ * // active: true || false,
63
+ * // order: Number("int"),
64
+ * // actionVersion: "STRING_VALUE",
65
+ * // optional: true || false,
66
+ * // parameters: { // LaunchActionParameters
67
+ * // "<keys>": { // LaunchActionParameter
68
+ * // value: "STRING_VALUE",
69
+ * // type: "STRING_VALUE",
70
+ * // },
71
+ * // },
72
+ * // description: "STRING_VALUE",
73
+ * // category: "STRING_VALUE",
74
+ * // },
75
+ * // runId: "STRING_VALUE",
76
+ * // status: "STRING_VALUE",
77
+ * // failureReason: "STRING_VALUE",
78
+ * // },
79
+ * // ],
80
+ * // },
53
81
  * // },
54
82
  * // ],
55
83
  * // tags: { // TagsMap
@@ -42,6 +42,7 @@ export interface CreateLaunchConfigurationTemplateCommandOutput extends CreateLa
42
42
  * osByol: true || false,
43
43
  * },
44
44
  * exportBucketArn: "STRING_VALUE",
45
+ * postLaunchEnabled: true || false,
45
46
  * };
46
47
  * const command = new CreateLaunchConfigurationTemplateCommand(input);
47
48
  * const response = await client.send(command);
@@ -60,6 +61,7 @@ export interface CreateLaunchConfigurationTemplateCommandOutput extends CreateLa
60
61
  * // osByol: true || false,
61
62
  * // },
62
63
  * // exportBucketArn: "STRING_VALUE",
64
+ * // postLaunchEnabled: true || false,
63
65
  * // },
64
66
  * // };
65
67
  *
@@ -0,0 +1,87 @@
1
+ import { EndpointParameterInstructions } from "@smithy/middleware-endpoint";
2
+ import { Command as $Command } from "@smithy/smithy-client";
3
+ import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types";
4
+ import { DrsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DrsClient";
5
+ import { DeleteLaunchActionRequest, DeleteLaunchActionResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link DeleteLaunchActionCommand}.
14
+ */
15
+ export interface DeleteLaunchActionCommandInput extends DeleteLaunchActionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link DeleteLaunchActionCommand}.
21
+ */
22
+ export interface DeleteLaunchActionCommandOutput extends DeleteLaunchActionResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Deletes a resource launch action.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { DrsClient, DeleteLaunchActionCommand } from "@aws-sdk/client-drs"; // ES Modules import
31
+ * // const { DrsClient, DeleteLaunchActionCommand } = require("@aws-sdk/client-drs"); // CommonJS import
32
+ * const client = new DrsClient(config);
33
+ * const input = { // DeleteLaunchActionRequest
34
+ * resourceId: "STRING_VALUE", // required
35
+ * actionId: "STRING_VALUE", // required
36
+ * };
37
+ * const command = new DeleteLaunchActionCommand(input);
38
+ * const response = await client.send(command);
39
+ * // {};
40
+ *
41
+ * ```
42
+ *
43
+ * @param DeleteLaunchActionCommandInput - {@link DeleteLaunchActionCommandInput}
44
+ * @returns {@link DeleteLaunchActionCommandOutput}
45
+ * @see {@link DeleteLaunchActionCommandInput} for command's `input` shape.
46
+ * @see {@link DeleteLaunchActionCommandOutput} for command's `response` shape.
47
+ * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape.
48
+ *
49
+ * @throws {@link InternalServerException} (server fault)
50
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
51
+ *
52
+ * @throws {@link ResourceNotFoundException} (client fault)
53
+ * <p>The resource for this operation was not found.</p>
54
+ *
55
+ * @throws {@link ThrottlingException} (client fault)
56
+ * <p>The request was denied due to request throttling.</p>
57
+ *
58
+ * @throws {@link UninitializedAccountException} (client fault)
59
+ * <p>The account performing the request has not been initialized.</p>
60
+ *
61
+ * @throws {@link ValidationException} (client fault)
62
+ * <p>The input fails to satisfy the constraints specified by the AWS service.</p>
63
+ *
64
+ * @throws {@link DrsServiceException}
65
+ * <p>Base exception class for all service exceptions from Drs service.</p>
66
+ *
67
+ */
68
+ export declare class DeleteLaunchActionCommand extends $Command<DeleteLaunchActionCommandInput, DeleteLaunchActionCommandOutput, DrsClientResolvedConfig> {
69
+ readonly input: DeleteLaunchActionCommandInput;
70
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
71
+ /**
72
+ * @public
73
+ */
74
+ constructor(input: DeleteLaunchActionCommandInput);
75
+ /**
76
+ * @internal
77
+ */
78
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DrsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteLaunchActionCommandInput, DeleteLaunchActionCommandOutput>;
79
+ /**
80
+ * @internal
81
+ */
82
+ private serialize;
83
+ /**
84
+ * @internal
85
+ */
86
+ private deserialize;
87
+ }
@@ -58,6 +58,34 @@ export interface DescribeJobsCommandOutput extends DescribeJobsResponse, __Metad
58
58
  * // sourceServerID: "STRING_VALUE",
59
59
  * // recoveryInstanceID: "STRING_VALUE",
60
60
  * // launchStatus: "STRING_VALUE",
61
+ * // launchActionsStatus: { // LaunchActionsStatus
62
+ * // ssmAgentDiscoveryDatetime: "STRING_VALUE",
63
+ * // runs: [ // LaunchActionRuns
64
+ * // { // LaunchActionRun
65
+ * // action: { // LaunchAction
66
+ * // actionId: "STRING_VALUE",
67
+ * // actionCode: "STRING_VALUE",
68
+ * // type: "STRING_VALUE",
69
+ * // name: "STRING_VALUE",
70
+ * // active: true || false,
71
+ * // order: Number("int"),
72
+ * // actionVersion: "STRING_VALUE",
73
+ * // optional: true || false,
74
+ * // parameters: { // LaunchActionParameters
75
+ * // "<keys>": { // LaunchActionParameter
76
+ * // value: "STRING_VALUE",
77
+ * // type: "STRING_VALUE",
78
+ * // },
79
+ * // },
80
+ * // description: "STRING_VALUE",
81
+ * // category: "STRING_VALUE",
82
+ * // },
83
+ * // runId: "STRING_VALUE",
84
+ * // status: "STRING_VALUE",
85
+ * // failureReason: "STRING_VALUE",
86
+ * // },
87
+ * // ],
88
+ * // },
61
89
  * // },
62
90
  * // ],
63
91
  * // tags: { // TagsMap
@@ -55,6 +55,7 @@ export interface DescribeLaunchConfigurationTemplatesCommandOutput extends Descr
55
55
  * // osByol: true || false,
56
56
  * // },
57
57
  * // exportBucketArn: "STRING_VALUE",
58
+ * // postLaunchEnabled: true || false,
58
59
  * // },
59
60
  * // ],
60
61
  * // nextToken: "STRING_VALUE",
@@ -46,6 +46,7 @@ export interface GetLaunchConfigurationCommandOutput extends LaunchConfiguration
46
46
  * // licensing: { // Licensing
47
47
  * // osByol: true || false,
48
48
  * // },
49
+ * // postLaunchEnabled: true || false,
49
50
  * // };
50
51
  *
51
52
  * ```