@aws-sdk/client-drs 3.410.0 → 3.413.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 +28 -28
@@ -0,0 +1,115 @@
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 { ListLaunchActionsRequest, ListLaunchActionsResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListLaunchActionsCommand}.
14
+ */
15
+ export interface ListLaunchActionsCommandInput extends ListLaunchActionsRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListLaunchActionsCommand}.
21
+ */
22
+ export interface ListLaunchActionsCommandOutput extends ListLaunchActionsResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Lists resource launch actions.</p>
27
+ * @example
28
+ * Use a bare-bones client and the command you need to make an API call.
29
+ * ```javascript
30
+ * import { DrsClient, ListLaunchActionsCommand } from "@aws-sdk/client-drs"; // ES Modules import
31
+ * // const { DrsClient, ListLaunchActionsCommand } = require("@aws-sdk/client-drs"); // CommonJS import
32
+ * const client = new DrsClient(config);
33
+ * const input = { // ListLaunchActionsRequest
34
+ * resourceId: "STRING_VALUE", // required
35
+ * filters: { // LaunchActionsRequestFilters
36
+ * actionIds: [ // LaunchActionIds
37
+ * "STRING_VALUE",
38
+ * ],
39
+ * },
40
+ * maxResults: Number("int"),
41
+ * nextToken: "STRING_VALUE",
42
+ * };
43
+ * const command = new ListLaunchActionsCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // ListLaunchActionsResponse
46
+ * // items: [ // LaunchActions
47
+ * // { // LaunchAction
48
+ * // actionId: "STRING_VALUE",
49
+ * // actionCode: "STRING_VALUE",
50
+ * // type: "STRING_VALUE",
51
+ * // name: "STRING_VALUE",
52
+ * // active: true || false,
53
+ * // order: Number("int"),
54
+ * // actionVersion: "STRING_VALUE",
55
+ * // optional: true || false,
56
+ * // parameters: { // LaunchActionParameters
57
+ * // "<keys>": { // LaunchActionParameter
58
+ * // value: "STRING_VALUE",
59
+ * // type: "STRING_VALUE",
60
+ * // },
61
+ * // },
62
+ * // description: "STRING_VALUE",
63
+ * // category: "STRING_VALUE",
64
+ * // },
65
+ * // ],
66
+ * // nextToken: "STRING_VALUE",
67
+ * // };
68
+ *
69
+ * ```
70
+ *
71
+ * @param ListLaunchActionsCommandInput - {@link ListLaunchActionsCommandInput}
72
+ * @returns {@link ListLaunchActionsCommandOutput}
73
+ * @see {@link ListLaunchActionsCommandInput} for command's `input` shape.
74
+ * @see {@link ListLaunchActionsCommandOutput} for command's `response` shape.
75
+ * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape.
76
+ *
77
+ * @throws {@link InternalServerException} (server fault)
78
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
79
+ *
80
+ * @throws {@link ResourceNotFoundException} (client fault)
81
+ * <p>The resource for this operation was not found.</p>
82
+ *
83
+ * @throws {@link ServiceQuotaExceededException} (client fault)
84
+ * <p>The request could not be completed because its exceeded the service quota.</p>
85
+ *
86
+ * @throws {@link ThrottlingException} (client fault)
87
+ * <p>The request was denied due to request throttling.</p>
88
+ *
89
+ * @throws {@link UninitializedAccountException} (client fault)
90
+ * <p>The account performing the request has not been initialized.</p>
91
+ *
92
+ * @throws {@link DrsServiceException}
93
+ * <p>Base exception class for all service exceptions from Drs service.</p>
94
+ *
95
+ */
96
+ export declare class ListLaunchActionsCommand extends $Command<ListLaunchActionsCommandInput, ListLaunchActionsCommandOutput, DrsClientResolvedConfig> {
97
+ readonly input: ListLaunchActionsCommandInput;
98
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
99
+ /**
100
+ * @public
101
+ */
102
+ constructor(input: ListLaunchActionsCommandInput);
103
+ /**
104
+ * @internal
105
+ */
106
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DrsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListLaunchActionsCommandInput, ListLaunchActionsCommandOutput>;
107
+ /**
108
+ * @internal
109
+ */
110
+ private serialize;
111
+ /**
112
+ * @internal
113
+ */
114
+ private deserialize;
115
+ }
@@ -0,0 +1,122 @@
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 { PutLaunchActionRequest, PutLaunchActionResponse } from "../models/models_0";
6
+ /**
7
+ * @public
8
+ */
9
+ export { __MetadataBearer, $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link PutLaunchActionCommand}.
14
+ */
15
+ export interface PutLaunchActionCommandInput extends PutLaunchActionRequest {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link PutLaunchActionCommand}.
21
+ */
22
+ export interface PutLaunchActionCommandOutput extends PutLaunchActionResponse, __MetadataBearer {
23
+ }
24
+ /**
25
+ * @public
26
+ * <p>Puts 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, PutLaunchActionCommand } from "@aws-sdk/client-drs"; // ES Modules import
31
+ * // const { DrsClient, PutLaunchActionCommand } = require("@aws-sdk/client-drs"); // CommonJS import
32
+ * const client = new DrsClient(config);
33
+ * const input = { // PutLaunchActionRequest
34
+ * resourceId: "STRING_VALUE", // required
35
+ * actionCode: "STRING_VALUE", // required
36
+ * order: Number("int"), // required
37
+ * actionId: "STRING_VALUE", // required
38
+ * optional: true || false, // required
39
+ * active: true || false, // required
40
+ * name: "STRING_VALUE", // required
41
+ * actionVersion: "STRING_VALUE", // required
42
+ * category: "STRING_VALUE", // required
43
+ * parameters: { // LaunchActionParameters
44
+ * "<keys>": { // LaunchActionParameter
45
+ * value: "STRING_VALUE",
46
+ * type: "STRING_VALUE",
47
+ * },
48
+ * },
49
+ * description: "STRING_VALUE",
50
+ * };
51
+ * const command = new PutLaunchActionCommand(input);
52
+ * const response = await client.send(command);
53
+ * // { // PutLaunchActionResponse
54
+ * // resourceId: "STRING_VALUE",
55
+ * // actionId: "STRING_VALUE",
56
+ * // actionCode: "STRING_VALUE",
57
+ * // type: "STRING_VALUE",
58
+ * // name: "STRING_VALUE",
59
+ * // active: true || false,
60
+ * // order: Number("int"),
61
+ * // actionVersion: "STRING_VALUE",
62
+ * // optional: true || false,
63
+ * // parameters: { // LaunchActionParameters
64
+ * // "<keys>": { // LaunchActionParameter
65
+ * // value: "STRING_VALUE",
66
+ * // type: "STRING_VALUE",
67
+ * // },
68
+ * // },
69
+ * // description: "STRING_VALUE",
70
+ * // category: "STRING_VALUE",
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param PutLaunchActionCommandInput - {@link PutLaunchActionCommandInput}
76
+ * @returns {@link PutLaunchActionCommandOutput}
77
+ * @see {@link PutLaunchActionCommandInput} for command's `input` shape.
78
+ * @see {@link PutLaunchActionCommandOutput} for command's `response` shape.
79
+ * @see {@link DrsClientResolvedConfig | config} for DrsClient's `config` shape.
80
+ *
81
+ * @throws {@link ConflictException} (client fault)
82
+ * <p>The request could not be completed due to a conflict with the current state of the target resource.</p>
83
+ *
84
+ * @throws {@link InternalServerException} (server fault)
85
+ * <p>The request processing has failed because of an unknown error, exception or failure.</p>
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * <p>The resource for this operation was not found.</p>
89
+ *
90
+ * @throws {@link ThrottlingException} (client fault)
91
+ * <p>The request was denied due to request throttling.</p>
92
+ *
93
+ * @throws {@link UninitializedAccountException} (client fault)
94
+ * <p>The account performing the request has not been initialized.</p>
95
+ *
96
+ * @throws {@link ValidationException} (client fault)
97
+ * <p>The input fails to satisfy the constraints specified by the AWS service.</p>
98
+ *
99
+ * @throws {@link DrsServiceException}
100
+ * <p>Base exception class for all service exceptions from Drs service.</p>
101
+ *
102
+ */
103
+ export declare class PutLaunchActionCommand extends $Command<PutLaunchActionCommandInput, PutLaunchActionCommandOutput, DrsClientResolvedConfig> {
104
+ readonly input: PutLaunchActionCommandInput;
105
+ static getEndpointParameterInstructions(): EndpointParameterInstructions;
106
+ /**
107
+ * @public
108
+ */
109
+ constructor(input: PutLaunchActionCommandInput);
110
+ /**
111
+ * @internal
112
+ */
113
+ resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DrsClientResolvedConfig, options?: __HttpHandlerOptions): Handler<PutLaunchActionCommandInput, PutLaunchActionCommandOutput>;
114
+ /**
115
+ * @internal
116
+ */
117
+ private serialize;
118
+ /**
119
+ * @internal
120
+ */
121
+ private deserialize;
122
+ }
@@ -54,6 +54,34 @@ export interface StartFailbackLaunchCommandOutput extends StartFailbackLaunchRes
54
54
  * // sourceServerID: "STRING_VALUE",
55
55
  * // recoveryInstanceID: "STRING_VALUE",
56
56
  * // launchStatus: "STRING_VALUE",
57
+ * // launchActionsStatus: { // LaunchActionsStatus
58
+ * // ssmAgentDiscoveryDatetime: "STRING_VALUE",
59
+ * // runs: [ // LaunchActionRuns
60
+ * // { // LaunchActionRun
61
+ * // action: { // LaunchAction
62
+ * // actionId: "STRING_VALUE",
63
+ * // actionCode: "STRING_VALUE",
64
+ * // type: "STRING_VALUE",
65
+ * // name: "STRING_VALUE",
66
+ * // active: true || false,
67
+ * // order: Number("int"),
68
+ * // actionVersion: "STRING_VALUE",
69
+ * // optional: true || false,
70
+ * // parameters: { // LaunchActionParameters
71
+ * // "<keys>": { // LaunchActionParameter
72
+ * // value: "STRING_VALUE",
73
+ * // type: "STRING_VALUE",
74
+ * // },
75
+ * // },
76
+ * // description: "STRING_VALUE",
77
+ * // category: "STRING_VALUE",
78
+ * // },
79
+ * // runId: "STRING_VALUE",
80
+ * // status: "STRING_VALUE",
81
+ * // failureReason: "STRING_VALUE",
82
+ * // },
83
+ * // ],
84
+ * // },
57
85
  * // },
58
86
  * // ],
59
87
  * // tags: { // TagsMap
@@ -58,6 +58,34 @@ export interface StartRecoveryCommandOutput extends StartRecoveryResponse, __Met
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
@@ -58,6 +58,34 @@ export interface StartSourceNetworkRecoveryCommandOutput extends StartSourceNetw
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
@@ -51,6 +51,34 @@ export interface TerminateRecoveryInstancesCommandOutput extends TerminateRecove
51
51
  * // sourceServerID: "STRING_VALUE",
52
52
  * // recoveryInstanceID: "STRING_VALUE",
53
53
  * // launchStatus: "STRING_VALUE",
54
+ * // launchActionsStatus: { // LaunchActionsStatus
55
+ * // ssmAgentDiscoveryDatetime: "STRING_VALUE",
56
+ * // runs: [ // LaunchActionRuns
57
+ * // { // LaunchActionRun
58
+ * // action: { // LaunchAction
59
+ * // actionId: "STRING_VALUE",
60
+ * // actionCode: "STRING_VALUE",
61
+ * // type: "STRING_VALUE",
62
+ * // name: "STRING_VALUE",
63
+ * // active: true || false,
64
+ * // order: Number("int"),
65
+ * // actionVersion: "STRING_VALUE",
66
+ * // optional: true || false,
67
+ * // parameters: { // LaunchActionParameters
68
+ * // "<keys>": { // LaunchActionParameter
69
+ * // value: "STRING_VALUE",
70
+ * // type: "STRING_VALUE",
71
+ * // },
72
+ * // },
73
+ * // description: "STRING_VALUE",
74
+ * // category: "STRING_VALUE",
75
+ * // },
76
+ * // runId: "STRING_VALUE",
77
+ * // status: "STRING_VALUE",
78
+ * // failureReason: "STRING_VALUE",
79
+ * // },
80
+ * // ],
81
+ * // },
54
82
  * // },
55
83
  * // ],
56
84
  * // tags: { // TagsMap
@@ -40,6 +40,7 @@ export interface UpdateLaunchConfigurationCommandOutput extends LaunchConfigurat
40
40
  * licensing: { // Licensing
41
41
  * osByol: true || false,
42
42
  * },
43
+ * postLaunchEnabled: true || false,
43
44
  * };
44
45
  * const command = new UpdateLaunchConfigurationCommand(input);
45
46
  * const response = await client.send(command);
@@ -54,6 +55,7 @@ export interface UpdateLaunchConfigurationCommandOutput extends LaunchConfigurat
54
55
  * // licensing: { // Licensing
55
56
  * // osByol: true || false,
56
57
  * // },
58
+ * // postLaunchEnabled: true || false,
57
59
  * // };
58
60
  *
59
61
  * ```
@@ -40,6 +40,7 @@ export interface UpdateLaunchConfigurationTemplateCommandOutput extends UpdateLa
40
40
  * osByol: true || false,
41
41
  * },
42
42
  * exportBucketArn: "STRING_VALUE",
43
+ * postLaunchEnabled: true || false,
43
44
  * };
44
45
  * const command = new UpdateLaunchConfigurationTemplateCommand(input);
45
46
  * const response = await client.send(command);
@@ -58,6 +59,7 @@ export interface UpdateLaunchConfigurationTemplateCommandOutput extends UpdateLa
58
59
  * // osByol: true || false,
59
60
  * // },
60
61
  * // exportBucketArn: "STRING_VALUE",
62
+ * // postLaunchEnabled: true || false,
61
63
  * // },
62
64
  * // };
63
65
  *
@@ -4,6 +4,7 @@ export * from "./CreateLaunchConfigurationTemplateCommand";
4
4
  export * from "./CreateReplicationConfigurationTemplateCommand";
5
5
  export * from "./CreateSourceNetworkCommand";
6
6
  export * from "./DeleteJobCommand";
7
+ export * from "./DeleteLaunchActionCommand";
7
8
  export * from "./DeleteLaunchConfigurationTemplateCommand";
8
9
  export * from "./DeleteRecoveryInstanceCommand";
9
10
  export * from "./DeleteReplicationConfigurationTemplateCommand";
@@ -25,8 +26,10 @@ export * from "./GetLaunchConfigurationCommand";
25
26
  export * from "./GetReplicationConfigurationCommand";
26
27
  export * from "./InitializeServiceCommand";
27
28
  export * from "./ListExtensibleSourceServersCommand";
29
+ export * from "./ListLaunchActionsCommand";
28
30
  export * from "./ListStagingAccountsCommand";
29
31
  export * from "./ListTagsForResourceCommand";
32
+ export * from "./PutLaunchActionCommand";
30
33
  export * from "./RetryDataReplicationCommand";
31
34
  export * from "./ReverseReplicationCommand";
32
35
  export * from "./StartFailbackLaunchCommand";