@aws-sdk/client-mgn 3.215.0 → 3.218.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.
- package/README.md +7 -7
- package/dist-cjs/Mgn.js +330 -0
- package/dist-cjs/commands/ArchiveApplicationCommand.js +46 -0
- package/dist-cjs/commands/ArchiveWaveCommand.js +46 -0
- package/dist-cjs/commands/AssociateApplicationsCommand.js +46 -0
- package/dist-cjs/commands/AssociateSourceServersCommand.js +46 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +46 -0
- package/dist-cjs/commands/CreateWaveCommand.js +46 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +46 -0
- package/dist-cjs/commands/DeleteWaveCommand.js +46 -0
- package/dist-cjs/commands/DisassociateApplicationsCommand.js +46 -0
- package/dist-cjs/commands/DisassociateSourceServersCommand.js +46 -0
- package/dist-cjs/commands/ListApplicationsCommand.js +46 -0
- package/dist-cjs/commands/ListSourceServerActionsCommand.js +46 -0
- package/dist-cjs/commands/ListTemplateActionsCommand.js +46 -0
- package/dist-cjs/commands/ListWavesCommand.js +46 -0
- package/dist-cjs/commands/PutSourceServerActionCommand.js +46 -0
- package/dist-cjs/commands/PutTemplateActionCommand.js +46 -0
- package/dist-cjs/commands/RemoveSourceServerActionCommand.js +46 -0
- package/dist-cjs/commands/RemoveTemplateActionCommand.js +46 -0
- package/dist-cjs/commands/UnarchiveApplicationCommand.js +46 -0
- package/dist-cjs/commands/UnarchiveWaveCommand.js +46 -0
- package/dist-cjs/commands/UpdateApplicationCommand.js +46 -0
- package/dist-cjs/commands/UpdateWaveCommand.js +46 -0
- package/dist-cjs/commands/index.js +22 -0
- package/dist-cjs/models/models_0.js +290 -68
- package/dist-cjs/pagination/ListApplicationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSourceServerActionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTemplateActionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWavesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2540 -507
- package/dist-es/Mgn.js +330 -0
- package/dist-es/commands/ArchiveApplicationCommand.js +42 -0
- package/dist-es/commands/ArchiveWaveCommand.js +42 -0
- package/dist-es/commands/AssociateApplicationsCommand.js +42 -0
- package/dist-es/commands/AssociateSourceServersCommand.js +42 -0
- package/dist-es/commands/CreateApplicationCommand.js +42 -0
- package/dist-es/commands/CreateWaveCommand.js +42 -0
- package/dist-es/commands/DeleteApplicationCommand.js +42 -0
- package/dist-es/commands/DeleteWaveCommand.js +42 -0
- package/dist-es/commands/DisassociateApplicationsCommand.js +42 -0
- package/dist-es/commands/DisassociateSourceServersCommand.js +42 -0
- package/dist-es/commands/ListApplicationsCommand.js +42 -0
- package/dist-es/commands/ListSourceServerActionsCommand.js +42 -0
- package/dist-es/commands/ListTemplateActionsCommand.js +42 -0
- package/dist-es/commands/ListWavesCommand.js +42 -0
- package/dist-es/commands/PutSourceServerActionCommand.js +42 -0
- package/dist-es/commands/PutTemplateActionCommand.js +42 -0
- package/dist-es/commands/RemoveSourceServerActionCommand.js +42 -0
- package/dist-es/commands/RemoveTemplateActionCommand.js +42 -0
- package/dist-es/commands/UnarchiveApplicationCommand.js +42 -0
- package/dist-es/commands/UnarchiveWaveCommand.js +42 -0
- package/dist-es/commands/UpdateApplicationCommand.js +42 -0
- package/dist-es/commands/UpdateWaveCommand.js +42 -0
- package/dist-es/commands/index.js +22 -0
- package/dist-es/models/models_0.js +237 -61
- package/dist-es/pagination/ListApplicationsPaginator.js +32 -0
- package/dist-es/pagination/ListSourceServerActionsPaginator.js +32 -0
- package/dist-es/pagination/ListTemplateActionsPaginator.js +32 -0
- package/dist-es/pagination/ListWavesPaginator.js +32 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +2589 -601
- package/dist-types/Mgn.d.ts +158 -4
- package/dist-types/MgnClient.d.ts +24 -2
- package/dist-types/commands/ArchiveApplicationCommand.d.ts +37 -0
- package/dist-types/commands/ArchiveWaveCommand.d.ts +37 -0
- package/dist-types/commands/AssociateApplicationsCommand.d.ts +37 -0
- package/dist-types/commands/AssociateSourceServersCommand.d.ts +37 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +37 -0
- package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/CreateWaveCommand.d.ts +37 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +37 -0
- package/dist-types/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWaveCommand.d.ts +37 -0
- package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateApplicationsCommand.d.ts +37 -0
- package/dist-types/commands/DisassociateSourceServersCommand.d.ts +37 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +37 -0
- package/dist-types/commands/ListSourceServerActionsCommand.d.ts +37 -0
- package/dist-types/commands/ListTemplateActionsCommand.d.ts +37 -0
- package/dist-types/commands/ListWavesCommand.d.ts +37 -0
- package/dist-types/commands/PutSourceServerActionCommand.d.ts +37 -0
- package/dist-types/commands/PutTemplateActionCommand.d.ts +37 -0
- package/dist-types/commands/RemoveSourceServerActionCommand.d.ts +37 -0
- package/dist-types/commands/RemoveTemplateActionCommand.d.ts +37 -0
- package/dist-types/commands/UnarchiveApplicationCommand.d.ts +37 -0
- package/dist-types/commands/UnarchiveWaveCommand.d.ts +37 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWaveCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +22 -0
- package/dist-types/models/models_0.d.ts +1211 -198
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSourceServerActionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTemplateActionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWavesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +66 -0
- package/dist-types/ts3.4/Mgn.d.ts +374 -0
- package/dist-types/ts3.4/MgnClient.d.ts +134 -2
- package/dist-types/ts3.4/commands/ArchiveApplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ArchiveWaveCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/AssociateApplicationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/AssociateSourceServersCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateWaveCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteWaveCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DisassociateApplicationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DisassociateSourceServersCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListSourceServerActionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTemplateActionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListWavesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/PutSourceServerActionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutTemplateActionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RemoveSourceServerActionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/RemoveTemplateActionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UnarchiveApplicationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UnarchiveWaveCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateWaveCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/models/models_0.d.ts +475 -53
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSourceServerActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplateActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWavesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +264 -0
- package/package.json +4 -4
package/README.md
CHANGED
|
@@ -26,16 +26,16 @@ using your favorite package manager:
|
|
|
26
26
|
|
|
27
27
|
The AWS SDK is modulized by clients and commands.
|
|
28
28
|
To send a request, you only need to import the `MgnClient` and
|
|
29
|
-
the commands you need, for example `
|
|
29
|
+
the commands you need, for example `ArchiveApplicationCommand`:
|
|
30
30
|
|
|
31
31
|
```js
|
|
32
32
|
// ES5 example
|
|
33
|
-
const { MgnClient,
|
|
33
|
+
const { MgnClient, ArchiveApplicationCommand } = require("@aws-sdk/client-mgn");
|
|
34
34
|
```
|
|
35
35
|
|
|
36
36
|
```ts
|
|
37
37
|
// ES6+ example
|
|
38
|
-
import { MgnClient,
|
|
38
|
+
import { MgnClient, ArchiveApplicationCommand } from "@aws-sdk/client-mgn";
|
|
39
39
|
```
|
|
40
40
|
|
|
41
41
|
### Usage
|
|
@@ -54,7 +54,7 @@ const client = new MgnClient({ region: "REGION" });
|
|
|
54
54
|
const params = {
|
|
55
55
|
/** input parameters */
|
|
56
56
|
};
|
|
57
|
-
const command = new
|
|
57
|
+
const command = new ArchiveApplicationCommand(params);
|
|
58
58
|
```
|
|
59
59
|
|
|
60
60
|
#### Async/await
|
|
@@ -133,7 +133,7 @@ const client = new AWS.Mgn({ region: "REGION" });
|
|
|
133
133
|
|
|
134
134
|
// async/await.
|
|
135
135
|
try {
|
|
136
|
-
const data = await client.
|
|
136
|
+
const data = await client.archiveApplication(params);
|
|
137
137
|
// process data.
|
|
138
138
|
} catch (error) {
|
|
139
139
|
// error handling.
|
|
@@ -141,7 +141,7 @@ try {
|
|
|
141
141
|
|
|
142
142
|
// Promises.
|
|
143
143
|
client
|
|
144
|
-
.
|
|
144
|
+
.archiveApplication(params)
|
|
145
145
|
.then((data) => {
|
|
146
146
|
// process data.
|
|
147
147
|
})
|
|
@@ -150,7 +150,7 @@ client
|
|
|
150
150
|
});
|
|
151
151
|
|
|
152
152
|
// callbacks.
|
|
153
|
-
client.
|
|
153
|
+
client.archiveApplication(params, (err, data) => {
|
|
154
154
|
// process err and data.
|
|
155
155
|
});
|
|
156
156
|
```
|
package/dist-cjs/Mgn.js
CHANGED
|
@@ -1,41 +1,119 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Mgn = void 0;
|
|
4
|
+
const ArchiveApplicationCommand_1 = require("./commands/ArchiveApplicationCommand");
|
|
5
|
+
const ArchiveWaveCommand_1 = require("./commands/ArchiveWaveCommand");
|
|
6
|
+
const AssociateApplicationsCommand_1 = require("./commands/AssociateApplicationsCommand");
|
|
7
|
+
const AssociateSourceServersCommand_1 = require("./commands/AssociateSourceServersCommand");
|
|
4
8
|
const ChangeServerLifeCycleStateCommand_1 = require("./commands/ChangeServerLifeCycleStateCommand");
|
|
9
|
+
const CreateApplicationCommand_1 = require("./commands/CreateApplicationCommand");
|
|
5
10
|
const CreateLaunchConfigurationTemplateCommand_1 = require("./commands/CreateLaunchConfigurationTemplateCommand");
|
|
6
11
|
const CreateReplicationConfigurationTemplateCommand_1 = require("./commands/CreateReplicationConfigurationTemplateCommand");
|
|
12
|
+
const CreateWaveCommand_1 = require("./commands/CreateWaveCommand");
|
|
13
|
+
const DeleteApplicationCommand_1 = require("./commands/DeleteApplicationCommand");
|
|
7
14
|
const DeleteJobCommand_1 = require("./commands/DeleteJobCommand");
|
|
8
15
|
const DeleteLaunchConfigurationTemplateCommand_1 = require("./commands/DeleteLaunchConfigurationTemplateCommand");
|
|
9
16
|
const DeleteReplicationConfigurationTemplateCommand_1 = require("./commands/DeleteReplicationConfigurationTemplateCommand");
|
|
10
17
|
const DeleteSourceServerCommand_1 = require("./commands/DeleteSourceServerCommand");
|
|
11
18
|
const DeleteVcenterClientCommand_1 = require("./commands/DeleteVcenterClientCommand");
|
|
19
|
+
const DeleteWaveCommand_1 = require("./commands/DeleteWaveCommand");
|
|
12
20
|
const DescribeJobLogItemsCommand_1 = require("./commands/DescribeJobLogItemsCommand");
|
|
13
21
|
const DescribeJobsCommand_1 = require("./commands/DescribeJobsCommand");
|
|
14
22
|
const DescribeLaunchConfigurationTemplatesCommand_1 = require("./commands/DescribeLaunchConfigurationTemplatesCommand");
|
|
15
23
|
const DescribeReplicationConfigurationTemplatesCommand_1 = require("./commands/DescribeReplicationConfigurationTemplatesCommand");
|
|
16
24
|
const DescribeSourceServersCommand_1 = require("./commands/DescribeSourceServersCommand");
|
|
17
25
|
const DescribeVcenterClientsCommand_1 = require("./commands/DescribeVcenterClientsCommand");
|
|
26
|
+
const DisassociateApplicationsCommand_1 = require("./commands/DisassociateApplicationsCommand");
|
|
27
|
+
const DisassociateSourceServersCommand_1 = require("./commands/DisassociateSourceServersCommand");
|
|
18
28
|
const DisconnectFromServiceCommand_1 = require("./commands/DisconnectFromServiceCommand");
|
|
19
29
|
const FinalizeCutoverCommand_1 = require("./commands/FinalizeCutoverCommand");
|
|
20
30
|
const GetLaunchConfigurationCommand_1 = require("./commands/GetLaunchConfigurationCommand");
|
|
21
31
|
const GetReplicationConfigurationCommand_1 = require("./commands/GetReplicationConfigurationCommand");
|
|
22
32
|
const InitializeServiceCommand_1 = require("./commands/InitializeServiceCommand");
|
|
33
|
+
const ListApplicationsCommand_1 = require("./commands/ListApplicationsCommand");
|
|
34
|
+
const ListSourceServerActionsCommand_1 = require("./commands/ListSourceServerActionsCommand");
|
|
23
35
|
const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand");
|
|
36
|
+
const ListTemplateActionsCommand_1 = require("./commands/ListTemplateActionsCommand");
|
|
37
|
+
const ListWavesCommand_1 = require("./commands/ListWavesCommand");
|
|
24
38
|
const MarkAsArchivedCommand_1 = require("./commands/MarkAsArchivedCommand");
|
|
39
|
+
const PutSourceServerActionCommand_1 = require("./commands/PutSourceServerActionCommand");
|
|
40
|
+
const PutTemplateActionCommand_1 = require("./commands/PutTemplateActionCommand");
|
|
41
|
+
const RemoveSourceServerActionCommand_1 = require("./commands/RemoveSourceServerActionCommand");
|
|
42
|
+
const RemoveTemplateActionCommand_1 = require("./commands/RemoveTemplateActionCommand");
|
|
25
43
|
const RetryDataReplicationCommand_1 = require("./commands/RetryDataReplicationCommand");
|
|
26
44
|
const StartCutoverCommand_1 = require("./commands/StartCutoverCommand");
|
|
27
45
|
const StartReplicationCommand_1 = require("./commands/StartReplicationCommand");
|
|
28
46
|
const StartTestCommand_1 = require("./commands/StartTestCommand");
|
|
29
47
|
const TagResourceCommand_1 = require("./commands/TagResourceCommand");
|
|
30
48
|
const TerminateTargetInstancesCommand_1 = require("./commands/TerminateTargetInstancesCommand");
|
|
49
|
+
const UnarchiveApplicationCommand_1 = require("./commands/UnarchiveApplicationCommand");
|
|
50
|
+
const UnarchiveWaveCommand_1 = require("./commands/UnarchiveWaveCommand");
|
|
31
51
|
const UntagResourceCommand_1 = require("./commands/UntagResourceCommand");
|
|
52
|
+
const UpdateApplicationCommand_1 = require("./commands/UpdateApplicationCommand");
|
|
32
53
|
const UpdateLaunchConfigurationCommand_1 = require("./commands/UpdateLaunchConfigurationCommand");
|
|
33
54
|
const UpdateLaunchConfigurationTemplateCommand_1 = require("./commands/UpdateLaunchConfigurationTemplateCommand");
|
|
34
55
|
const UpdateReplicationConfigurationCommand_1 = require("./commands/UpdateReplicationConfigurationCommand");
|
|
35
56
|
const UpdateReplicationConfigurationTemplateCommand_1 = require("./commands/UpdateReplicationConfigurationTemplateCommand");
|
|
36
57
|
const UpdateSourceServerReplicationTypeCommand_1 = require("./commands/UpdateSourceServerReplicationTypeCommand");
|
|
58
|
+
const UpdateWaveCommand_1 = require("./commands/UpdateWaveCommand");
|
|
37
59
|
const MgnClient_1 = require("./MgnClient");
|
|
38
60
|
class Mgn extends MgnClient_1.MgnClient {
|
|
61
|
+
archiveApplication(args, optionsOrCb, cb) {
|
|
62
|
+
const command = new ArchiveApplicationCommand_1.ArchiveApplicationCommand(args);
|
|
63
|
+
if (typeof optionsOrCb === "function") {
|
|
64
|
+
this.send(command, optionsOrCb);
|
|
65
|
+
}
|
|
66
|
+
else if (typeof cb === "function") {
|
|
67
|
+
if (typeof optionsOrCb !== "object")
|
|
68
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
69
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
return this.send(command, optionsOrCb);
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
archiveWave(args, optionsOrCb, cb) {
|
|
76
|
+
const command = new ArchiveWaveCommand_1.ArchiveWaveCommand(args);
|
|
77
|
+
if (typeof optionsOrCb === "function") {
|
|
78
|
+
this.send(command, optionsOrCb);
|
|
79
|
+
}
|
|
80
|
+
else if (typeof cb === "function") {
|
|
81
|
+
if (typeof optionsOrCb !== "object")
|
|
82
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
83
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
84
|
+
}
|
|
85
|
+
else {
|
|
86
|
+
return this.send(command, optionsOrCb);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
associateApplications(args, optionsOrCb, cb) {
|
|
90
|
+
const command = new AssociateApplicationsCommand_1.AssociateApplicationsCommand(args);
|
|
91
|
+
if (typeof optionsOrCb === "function") {
|
|
92
|
+
this.send(command, optionsOrCb);
|
|
93
|
+
}
|
|
94
|
+
else if (typeof cb === "function") {
|
|
95
|
+
if (typeof optionsOrCb !== "object")
|
|
96
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
97
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
98
|
+
}
|
|
99
|
+
else {
|
|
100
|
+
return this.send(command, optionsOrCb);
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
associateSourceServers(args, optionsOrCb, cb) {
|
|
104
|
+
const command = new AssociateSourceServersCommand_1.AssociateSourceServersCommand(args);
|
|
105
|
+
if (typeof optionsOrCb === "function") {
|
|
106
|
+
this.send(command, optionsOrCb);
|
|
107
|
+
}
|
|
108
|
+
else if (typeof cb === "function") {
|
|
109
|
+
if (typeof optionsOrCb !== "object")
|
|
110
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
111
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
return this.send(command, optionsOrCb);
|
|
115
|
+
}
|
|
116
|
+
}
|
|
39
117
|
changeServerLifeCycleState(args, optionsOrCb, cb) {
|
|
40
118
|
const command = new ChangeServerLifeCycleStateCommand_1.ChangeServerLifeCycleStateCommand(args);
|
|
41
119
|
if (typeof optionsOrCb === "function") {
|
|
@@ -50,6 +128,20 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
50
128
|
return this.send(command, optionsOrCb);
|
|
51
129
|
}
|
|
52
130
|
}
|
|
131
|
+
createApplication(args, optionsOrCb, cb) {
|
|
132
|
+
const command = new CreateApplicationCommand_1.CreateApplicationCommand(args);
|
|
133
|
+
if (typeof optionsOrCb === "function") {
|
|
134
|
+
this.send(command, optionsOrCb);
|
|
135
|
+
}
|
|
136
|
+
else if (typeof cb === "function") {
|
|
137
|
+
if (typeof optionsOrCb !== "object")
|
|
138
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
139
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
140
|
+
}
|
|
141
|
+
else {
|
|
142
|
+
return this.send(command, optionsOrCb);
|
|
143
|
+
}
|
|
144
|
+
}
|
|
53
145
|
createLaunchConfigurationTemplate(args, optionsOrCb, cb) {
|
|
54
146
|
const command = new CreateLaunchConfigurationTemplateCommand_1.CreateLaunchConfigurationTemplateCommand(args);
|
|
55
147
|
if (typeof optionsOrCb === "function") {
|
|
@@ -78,6 +170,34 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
78
170
|
return this.send(command, optionsOrCb);
|
|
79
171
|
}
|
|
80
172
|
}
|
|
173
|
+
createWave(args, optionsOrCb, cb) {
|
|
174
|
+
const command = new CreateWaveCommand_1.CreateWaveCommand(args);
|
|
175
|
+
if (typeof optionsOrCb === "function") {
|
|
176
|
+
this.send(command, optionsOrCb);
|
|
177
|
+
}
|
|
178
|
+
else if (typeof cb === "function") {
|
|
179
|
+
if (typeof optionsOrCb !== "object")
|
|
180
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
181
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
182
|
+
}
|
|
183
|
+
else {
|
|
184
|
+
return this.send(command, optionsOrCb);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
deleteApplication(args, optionsOrCb, cb) {
|
|
188
|
+
const command = new DeleteApplicationCommand_1.DeleteApplicationCommand(args);
|
|
189
|
+
if (typeof optionsOrCb === "function") {
|
|
190
|
+
this.send(command, optionsOrCb);
|
|
191
|
+
}
|
|
192
|
+
else if (typeof cb === "function") {
|
|
193
|
+
if (typeof optionsOrCb !== "object")
|
|
194
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
195
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
196
|
+
}
|
|
197
|
+
else {
|
|
198
|
+
return this.send(command, optionsOrCb);
|
|
199
|
+
}
|
|
200
|
+
}
|
|
81
201
|
deleteJob(args, optionsOrCb, cb) {
|
|
82
202
|
const command = new DeleteJobCommand_1.DeleteJobCommand(args);
|
|
83
203
|
if (typeof optionsOrCb === "function") {
|
|
@@ -148,6 +268,20 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
148
268
|
return this.send(command, optionsOrCb);
|
|
149
269
|
}
|
|
150
270
|
}
|
|
271
|
+
deleteWave(args, optionsOrCb, cb) {
|
|
272
|
+
const command = new DeleteWaveCommand_1.DeleteWaveCommand(args);
|
|
273
|
+
if (typeof optionsOrCb === "function") {
|
|
274
|
+
this.send(command, optionsOrCb);
|
|
275
|
+
}
|
|
276
|
+
else if (typeof cb === "function") {
|
|
277
|
+
if (typeof optionsOrCb !== "object")
|
|
278
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
279
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
280
|
+
}
|
|
281
|
+
else {
|
|
282
|
+
return this.send(command, optionsOrCb);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
151
285
|
describeJobLogItems(args, optionsOrCb, cb) {
|
|
152
286
|
const command = new DescribeJobLogItemsCommand_1.DescribeJobLogItemsCommand(args);
|
|
153
287
|
if (typeof optionsOrCb === "function") {
|
|
@@ -232,6 +366,34 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
232
366
|
return this.send(command, optionsOrCb);
|
|
233
367
|
}
|
|
234
368
|
}
|
|
369
|
+
disassociateApplications(args, optionsOrCb, cb) {
|
|
370
|
+
const command = new DisassociateApplicationsCommand_1.DisassociateApplicationsCommand(args);
|
|
371
|
+
if (typeof optionsOrCb === "function") {
|
|
372
|
+
this.send(command, optionsOrCb);
|
|
373
|
+
}
|
|
374
|
+
else if (typeof cb === "function") {
|
|
375
|
+
if (typeof optionsOrCb !== "object")
|
|
376
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
377
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
378
|
+
}
|
|
379
|
+
else {
|
|
380
|
+
return this.send(command, optionsOrCb);
|
|
381
|
+
}
|
|
382
|
+
}
|
|
383
|
+
disassociateSourceServers(args, optionsOrCb, cb) {
|
|
384
|
+
const command = new DisassociateSourceServersCommand_1.DisassociateSourceServersCommand(args);
|
|
385
|
+
if (typeof optionsOrCb === "function") {
|
|
386
|
+
this.send(command, optionsOrCb);
|
|
387
|
+
}
|
|
388
|
+
else if (typeof cb === "function") {
|
|
389
|
+
if (typeof optionsOrCb !== "object")
|
|
390
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
391
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
392
|
+
}
|
|
393
|
+
else {
|
|
394
|
+
return this.send(command, optionsOrCb);
|
|
395
|
+
}
|
|
396
|
+
}
|
|
235
397
|
disconnectFromService(args, optionsOrCb, cb) {
|
|
236
398
|
const command = new DisconnectFromServiceCommand_1.DisconnectFromServiceCommand(args);
|
|
237
399
|
if (typeof optionsOrCb === "function") {
|
|
@@ -302,6 +464,34 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
302
464
|
return this.send(command, optionsOrCb);
|
|
303
465
|
}
|
|
304
466
|
}
|
|
467
|
+
listApplications(args, optionsOrCb, cb) {
|
|
468
|
+
const command = new ListApplicationsCommand_1.ListApplicationsCommand(args);
|
|
469
|
+
if (typeof optionsOrCb === "function") {
|
|
470
|
+
this.send(command, optionsOrCb);
|
|
471
|
+
}
|
|
472
|
+
else if (typeof cb === "function") {
|
|
473
|
+
if (typeof optionsOrCb !== "object")
|
|
474
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
475
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
476
|
+
}
|
|
477
|
+
else {
|
|
478
|
+
return this.send(command, optionsOrCb);
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
listSourceServerActions(args, optionsOrCb, cb) {
|
|
482
|
+
const command = new ListSourceServerActionsCommand_1.ListSourceServerActionsCommand(args);
|
|
483
|
+
if (typeof optionsOrCb === "function") {
|
|
484
|
+
this.send(command, optionsOrCb);
|
|
485
|
+
}
|
|
486
|
+
else if (typeof cb === "function") {
|
|
487
|
+
if (typeof optionsOrCb !== "object")
|
|
488
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
489
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
490
|
+
}
|
|
491
|
+
else {
|
|
492
|
+
return this.send(command, optionsOrCb);
|
|
493
|
+
}
|
|
494
|
+
}
|
|
305
495
|
listTagsForResource(args, optionsOrCb, cb) {
|
|
306
496
|
const command = new ListTagsForResourceCommand_1.ListTagsForResourceCommand(args);
|
|
307
497
|
if (typeof optionsOrCb === "function") {
|
|
@@ -316,6 +506,34 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
316
506
|
return this.send(command, optionsOrCb);
|
|
317
507
|
}
|
|
318
508
|
}
|
|
509
|
+
listTemplateActions(args, optionsOrCb, cb) {
|
|
510
|
+
const command = new ListTemplateActionsCommand_1.ListTemplateActionsCommand(args);
|
|
511
|
+
if (typeof optionsOrCb === "function") {
|
|
512
|
+
this.send(command, optionsOrCb);
|
|
513
|
+
}
|
|
514
|
+
else if (typeof cb === "function") {
|
|
515
|
+
if (typeof optionsOrCb !== "object")
|
|
516
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
517
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
518
|
+
}
|
|
519
|
+
else {
|
|
520
|
+
return this.send(command, optionsOrCb);
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
listWaves(args, optionsOrCb, cb) {
|
|
524
|
+
const command = new ListWavesCommand_1.ListWavesCommand(args);
|
|
525
|
+
if (typeof optionsOrCb === "function") {
|
|
526
|
+
this.send(command, optionsOrCb);
|
|
527
|
+
}
|
|
528
|
+
else if (typeof cb === "function") {
|
|
529
|
+
if (typeof optionsOrCb !== "object")
|
|
530
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
531
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
532
|
+
}
|
|
533
|
+
else {
|
|
534
|
+
return this.send(command, optionsOrCb);
|
|
535
|
+
}
|
|
536
|
+
}
|
|
319
537
|
markAsArchived(args, optionsOrCb, cb) {
|
|
320
538
|
const command = new MarkAsArchivedCommand_1.MarkAsArchivedCommand(args);
|
|
321
539
|
if (typeof optionsOrCb === "function") {
|
|
@@ -330,6 +548,62 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
330
548
|
return this.send(command, optionsOrCb);
|
|
331
549
|
}
|
|
332
550
|
}
|
|
551
|
+
putSourceServerAction(args, optionsOrCb, cb) {
|
|
552
|
+
const command = new PutSourceServerActionCommand_1.PutSourceServerActionCommand(args);
|
|
553
|
+
if (typeof optionsOrCb === "function") {
|
|
554
|
+
this.send(command, optionsOrCb);
|
|
555
|
+
}
|
|
556
|
+
else if (typeof cb === "function") {
|
|
557
|
+
if (typeof optionsOrCb !== "object")
|
|
558
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
559
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
560
|
+
}
|
|
561
|
+
else {
|
|
562
|
+
return this.send(command, optionsOrCb);
|
|
563
|
+
}
|
|
564
|
+
}
|
|
565
|
+
putTemplateAction(args, optionsOrCb, cb) {
|
|
566
|
+
const command = new PutTemplateActionCommand_1.PutTemplateActionCommand(args);
|
|
567
|
+
if (typeof optionsOrCb === "function") {
|
|
568
|
+
this.send(command, optionsOrCb);
|
|
569
|
+
}
|
|
570
|
+
else if (typeof cb === "function") {
|
|
571
|
+
if (typeof optionsOrCb !== "object")
|
|
572
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
573
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
574
|
+
}
|
|
575
|
+
else {
|
|
576
|
+
return this.send(command, optionsOrCb);
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
removeSourceServerAction(args, optionsOrCb, cb) {
|
|
580
|
+
const command = new RemoveSourceServerActionCommand_1.RemoveSourceServerActionCommand(args);
|
|
581
|
+
if (typeof optionsOrCb === "function") {
|
|
582
|
+
this.send(command, optionsOrCb);
|
|
583
|
+
}
|
|
584
|
+
else if (typeof cb === "function") {
|
|
585
|
+
if (typeof optionsOrCb !== "object")
|
|
586
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
587
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
590
|
+
return this.send(command, optionsOrCb);
|
|
591
|
+
}
|
|
592
|
+
}
|
|
593
|
+
removeTemplateAction(args, optionsOrCb, cb) {
|
|
594
|
+
const command = new RemoveTemplateActionCommand_1.RemoveTemplateActionCommand(args);
|
|
595
|
+
if (typeof optionsOrCb === "function") {
|
|
596
|
+
this.send(command, optionsOrCb);
|
|
597
|
+
}
|
|
598
|
+
else if (typeof cb === "function") {
|
|
599
|
+
if (typeof optionsOrCb !== "object")
|
|
600
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
601
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
602
|
+
}
|
|
603
|
+
else {
|
|
604
|
+
return this.send(command, optionsOrCb);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
333
607
|
retryDataReplication(args, optionsOrCb, cb) {
|
|
334
608
|
const command = new RetryDataReplicationCommand_1.RetryDataReplicationCommand(args);
|
|
335
609
|
if (typeof optionsOrCb === "function") {
|
|
@@ -414,6 +688,34 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
414
688
|
return this.send(command, optionsOrCb);
|
|
415
689
|
}
|
|
416
690
|
}
|
|
691
|
+
unarchiveApplication(args, optionsOrCb, cb) {
|
|
692
|
+
const command = new UnarchiveApplicationCommand_1.UnarchiveApplicationCommand(args);
|
|
693
|
+
if (typeof optionsOrCb === "function") {
|
|
694
|
+
this.send(command, optionsOrCb);
|
|
695
|
+
}
|
|
696
|
+
else if (typeof cb === "function") {
|
|
697
|
+
if (typeof optionsOrCb !== "object")
|
|
698
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
699
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
700
|
+
}
|
|
701
|
+
else {
|
|
702
|
+
return this.send(command, optionsOrCb);
|
|
703
|
+
}
|
|
704
|
+
}
|
|
705
|
+
unarchiveWave(args, optionsOrCb, cb) {
|
|
706
|
+
const command = new UnarchiveWaveCommand_1.UnarchiveWaveCommand(args);
|
|
707
|
+
if (typeof optionsOrCb === "function") {
|
|
708
|
+
this.send(command, optionsOrCb);
|
|
709
|
+
}
|
|
710
|
+
else if (typeof cb === "function") {
|
|
711
|
+
if (typeof optionsOrCb !== "object")
|
|
712
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
713
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
714
|
+
}
|
|
715
|
+
else {
|
|
716
|
+
return this.send(command, optionsOrCb);
|
|
717
|
+
}
|
|
718
|
+
}
|
|
417
719
|
untagResource(args, optionsOrCb, cb) {
|
|
418
720
|
const command = new UntagResourceCommand_1.UntagResourceCommand(args);
|
|
419
721
|
if (typeof optionsOrCb === "function") {
|
|
@@ -428,6 +730,20 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
428
730
|
return this.send(command, optionsOrCb);
|
|
429
731
|
}
|
|
430
732
|
}
|
|
733
|
+
updateApplication(args, optionsOrCb, cb) {
|
|
734
|
+
const command = new UpdateApplicationCommand_1.UpdateApplicationCommand(args);
|
|
735
|
+
if (typeof optionsOrCb === "function") {
|
|
736
|
+
this.send(command, optionsOrCb);
|
|
737
|
+
}
|
|
738
|
+
else if (typeof cb === "function") {
|
|
739
|
+
if (typeof optionsOrCb !== "object")
|
|
740
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
741
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
742
|
+
}
|
|
743
|
+
else {
|
|
744
|
+
return this.send(command, optionsOrCb);
|
|
745
|
+
}
|
|
746
|
+
}
|
|
431
747
|
updateLaunchConfiguration(args, optionsOrCb, cb) {
|
|
432
748
|
const command = new UpdateLaunchConfigurationCommand_1.UpdateLaunchConfigurationCommand(args);
|
|
433
749
|
if (typeof optionsOrCb === "function") {
|
|
@@ -498,5 +814,19 @@ class Mgn extends MgnClient_1.MgnClient {
|
|
|
498
814
|
return this.send(command, optionsOrCb);
|
|
499
815
|
}
|
|
500
816
|
}
|
|
817
|
+
updateWave(args, optionsOrCb, cb) {
|
|
818
|
+
const command = new UpdateWaveCommand_1.UpdateWaveCommand(args);
|
|
819
|
+
if (typeof optionsOrCb === "function") {
|
|
820
|
+
this.send(command, optionsOrCb);
|
|
821
|
+
}
|
|
822
|
+
else if (typeof cb === "function") {
|
|
823
|
+
if (typeof optionsOrCb !== "object")
|
|
824
|
+
throw new Error(`Expect http options but get ${typeof optionsOrCb}`);
|
|
825
|
+
this.send(command, optionsOrCb || {}, cb);
|
|
826
|
+
}
|
|
827
|
+
else {
|
|
828
|
+
return this.send(command, optionsOrCb);
|
|
829
|
+
}
|
|
830
|
+
}
|
|
501
831
|
}
|
|
502
832
|
exports.Mgn = Mgn;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArchiveApplicationCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ArchiveApplicationCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ArchiveApplicationCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "ArchiveApplicationCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ArchiveApplicationRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.ApplicationFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ArchiveApplicationCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ArchiveApplicationCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ArchiveApplicationCommand = ArchiveApplicationCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ArchiveWaveCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class ArchiveWaveCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ArchiveWaveCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "ArchiveWaveCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.ArchiveWaveRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.WaveFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1ArchiveWaveCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1ArchiveWaveCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.ArchiveWaveCommand = ArchiveWaveCommand;
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AssociateApplicationsCommand = void 0;
|
|
4
|
+
const middleware_endpoint_1 = require("@aws-sdk/middleware-endpoint");
|
|
5
|
+
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
6
|
+
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
|
+
const models_0_1 = require("../models/models_0");
|
|
8
|
+
const Aws_restJson1_1 = require("../protocols/Aws_restJson1");
|
|
9
|
+
class AssociateApplicationsCommand extends smithy_client_1.Command {
|
|
10
|
+
constructor(input) {
|
|
11
|
+
super();
|
|
12
|
+
this.input = input;
|
|
13
|
+
}
|
|
14
|
+
static getEndpointParameterInstructions() {
|
|
15
|
+
return {
|
|
16
|
+
UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" },
|
|
17
|
+
Endpoint: { type: "builtInParams", name: "endpoint" },
|
|
18
|
+
Region: { type: "builtInParams", name: "region" },
|
|
19
|
+
UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" },
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
resolveMiddleware(clientStack, configuration, options) {
|
|
23
|
+
this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize));
|
|
24
|
+
this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssociateApplicationsCommand.getEndpointParameterInstructions()));
|
|
25
|
+
const stack = clientStack.concat(this.middlewareStack);
|
|
26
|
+
const { logger } = configuration;
|
|
27
|
+
const clientName = "MgnClient";
|
|
28
|
+
const commandName = "AssociateApplicationsCommand";
|
|
29
|
+
const handlerExecutionContext = {
|
|
30
|
+
logger,
|
|
31
|
+
clientName,
|
|
32
|
+
commandName,
|
|
33
|
+
inputFilterSensitiveLog: models_0_1.AssociateApplicationsRequestFilterSensitiveLog,
|
|
34
|
+
outputFilterSensitiveLog: models_0_1.AssociateApplicationsResponseFilterSensitiveLog,
|
|
35
|
+
};
|
|
36
|
+
const { requestHandler } = configuration;
|
|
37
|
+
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
38
|
+
}
|
|
39
|
+
serialize(input, context) {
|
|
40
|
+
return (0, Aws_restJson1_1.serializeAws_restJson1AssociateApplicationsCommand)(input, context);
|
|
41
|
+
}
|
|
42
|
+
deserialize(output, context) {
|
|
43
|
+
return (0, Aws_restJson1_1.deserializeAws_restJson1AssociateApplicationsCommand)(output, context);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
exports.AssociateApplicationsCommand = AssociateApplicationsCommand;
|