@aws-sdk/client-mgn 3.490.0 → 3.495.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/dist-cjs/Mgn.js +1 -151
- package/dist-cjs/MgnClient.js +1 -43
- package/dist-cjs/commands/ArchiveApplicationCommand.js +1 -29
- package/dist-cjs/commands/ArchiveWaveCommand.js +1 -29
- package/dist-cjs/commands/AssociateApplicationsCommand.js +1 -28
- package/dist-cjs/commands/AssociateSourceServersCommand.js +1 -28
- package/dist-cjs/commands/ChangeServerLifeCycleStateCommand.js +1 -29
- package/dist-cjs/commands/CreateApplicationCommand.js +1 -29
- package/dist-cjs/commands/CreateConnectorCommand.js +1 -29
- package/dist-cjs/commands/CreateLaunchConfigurationTemplateCommand.js +1 -29
- package/dist-cjs/commands/CreateReplicationConfigurationTemplateCommand.js +1 -29
- package/dist-cjs/commands/CreateWaveCommand.js +1 -29
- package/dist-cjs/commands/DeleteApplicationCommand.js +1 -28
- package/dist-cjs/commands/DeleteConnectorCommand.js +1 -28
- package/dist-cjs/commands/DeleteJobCommand.js +1 -28
- package/dist-cjs/commands/DeleteLaunchConfigurationTemplateCommand.js +1 -28
- package/dist-cjs/commands/DeleteReplicationConfigurationTemplateCommand.js +1 -28
- package/dist-cjs/commands/DeleteSourceServerCommand.js +1 -28
- package/dist-cjs/commands/DeleteVcenterClientCommand.js +1 -28
- package/dist-cjs/commands/DeleteWaveCommand.js +1 -28
- package/dist-cjs/commands/DescribeJobLogItemsCommand.js +1 -28
- package/dist-cjs/commands/DescribeJobsCommand.js +1 -29
- package/dist-cjs/commands/DescribeLaunchConfigurationTemplatesCommand.js +1 -29
- package/dist-cjs/commands/DescribeReplicationConfigurationTemplatesCommand.js +1 -29
- package/dist-cjs/commands/DescribeSourceServersCommand.js +1 -29
- package/dist-cjs/commands/DescribeVcenterClientsCommand.js +1 -29
- package/dist-cjs/commands/DisassociateApplicationsCommand.js +1 -28
- package/dist-cjs/commands/DisassociateSourceServersCommand.js +1 -28
- package/dist-cjs/commands/DisconnectFromServiceCommand.js +1 -29
- package/dist-cjs/commands/FinalizeCutoverCommand.js +1 -29
- package/dist-cjs/commands/GetLaunchConfigurationCommand.js +1 -28
- package/dist-cjs/commands/GetReplicationConfigurationCommand.js +1 -29
- package/dist-cjs/commands/InitializeServiceCommand.js +1 -28
- package/dist-cjs/commands/ListApplicationsCommand.js +1 -29
- package/dist-cjs/commands/ListConnectorsCommand.js +1 -29
- package/dist-cjs/commands/ListExportErrorsCommand.js +1 -28
- package/dist-cjs/commands/ListExportsCommand.js +1 -28
- package/dist-cjs/commands/ListImportErrorsCommand.js +1 -28
- package/dist-cjs/commands/ListImportsCommand.js +1 -28
- package/dist-cjs/commands/ListManagedAccountsCommand.js +1 -28
- package/dist-cjs/commands/ListSourceServerActionsCommand.js +1 -28
- package/dist-cjs/commands/ListTagsForResourceCommand.js +1 -29
- package/dist-cjs/commands/ListTemplateActionsCommand.js +1 -28
- package/dist-cjs/commands/ListWavesCommand.js +1 -29
- package/dist-cjs/commands/MarkAsArchivedCommand.js +1 -29
- package/dist-cjs/commands/PauseReplicationCommand.js +1 -29
- package/dist-cjs/commands/PutSourceServerActionCommand.js +1 -28
- package/dist-cjs/commands/PutTemplateActionCommand.js +1 -28
- package/dist-cjs/commands/RemoveSourceServerActionCommand.js +1 -28
- package/dist-cjs/commands/RemoveTemplateActionCommand.js +1 -28
- package/dist-cjs/commands/ResumeReplicationCommand.js +1 -29
- package/dist-cjs/commands/RetryDataReplicationCommand.js +1 -29
- package/dist-cjs/commands/StartCutoverCommand.js +1 -29
- package/dist-cjs/commands/StartExportCommand.js +1 -28
- package/dist-cjs/commands/StartImportCommand.js +1 -28
- package/dist-cjs/commands/StartReplicationCommand.js +1 -29
- package/dist-cjs/commands/StartTestCommand.js +1 -29
- package/dist-cjs/commands/StopReplicationCommand.js +1 -29
- package/dist-cjs/commands/TagResourceCommand.js +1 -29
- package/dist-cjs/commands/TerminateTargetInstancesCommand.js +1 -29
- package/dist-cjs/commands/UnarchiveApplicationCommand.js +1 -29
- package/dist-cjs/commands/UnarchiveWaveCommand.js +1 -29
- package/dist-cjs/commands/UntagResourceCommand.js +1 -29
- package/dist-cjs/commands/UpdateApplicationCommand.js +1 -29
- package/dist-cjs/commands/UpdateConnectorCommand.js +1 -29
- package/dist-cjs/commands/UpdateLaunchConfigurationCommand.js +1 -28
- package/dist-cjs/commands/UpdateLaunchConfigurationTemplateCommand.js +1 -29
- package/dist-cjs/commands/UpdateReplicationConfigurationCommand.js +1 -29
- package/dist-cjs/commands/UpdateReplicationConfigurationTemplateCommand.js +1 -29
- package/dist-cjs/commands/UpdateSourceServerCommand.js +1 -29
- package/dist-cjs/commands/UpdateSourceServerReplicationTypeCommand.js +1 -29
- package/dist-cjs/commands/UpdateWaveCommand.js +1 -29
- package/dist-cjs/commands/index.js +1 -73
- package/dist-cjs/endpoint/EndpointParameters.js +1 -18
- package/dist-cjs/extensionConfiguration.js +1 -2
- package/dist-cjs/index.js +6883 -11
- package/dist-cjs/models/MgnServiceException.js +1 -12
- package/dist-cjs/models/index.js +1 -4
- package/dist-cjs/models/models_0.js +1 -544
- package/dist-cjs/pagination/DescribeJobLogItemsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeJobsPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeLaunchConfigurationTemplatesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeSourceServersPaginator.js +1 -7
- package/dist-cjs/pagination/DescribeVcenterClientsPaginator.js +1 -7
- package/dist-cjs/pagination/Interfaces.js +1 -2
- package/dist-cjs/pagination/ListApplicationsPaginator.js +1 -7
- package/dist-cjs/pagination/ListConnectorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListExportErrorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListExportsPaginator.js +1 -7
- package/dist-cjs/pagination/ListImportErrorsPaginator.js +1 -7
- package/dist-cjs/pagination/ListImportsPaginator.js +1 -7
- package/dist-cjs/pagination/ListManagedAccountsPaginator.js +1 -7
- package/dist-cjs/pagination/ListSourceServerActionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListTemplateActionsPaginator.js +1 -7
- package/dist-cjs/pagination/ListWavesPaginator.js +1 -7
- package/dist-cjs/pagination/index.js +1 -20
- package/dist-cjs/protocols/Aws_restJson1.js +1 -4560
- package/dist-cjs/runtimeExtensions.js +1 -22
- package/package.json +40 -40
|
@@ -1,4560 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.se_RetryDataReplicationCommand = exports.se_ResumeReplicationCommand = exports.se_RemoveTemplateActionCommand = exports.se_RemoveSourceServerActionCommand = exports.se_PutTemplateActionCommand = exports.se_PutSourceServerActionCommand = exports.se_PauseReplicationCommand = exports.se_MarkAsArchivedCommand = exports.se_ListWavesCommand = exports.se_ListTemplateActionsCommand = exports.se_ListTagsForResourceCommand = exports.se_ListSourceServerActionsCommand = exports.se_ListManagedAccountsCommand = exports.se_ListImportsCommand = exports.se_ListImportErrorsCommand = exports.se_ListExportsCommand = exports.se_ListExportErrorsCommand = exports.se_ListConnectorsCommand = exports.se_ListApplicationsCommand = exports.se_InitializeServiceCommand = exports.se_GetReplicationConfigurationCommand = exports.se_GetLaunchConfigurationCommand = exports.se_FinalizeCutoverCommand = exports.se_DisconnectFromServiceCommand = exports.se_DisassociateSourceServersCommand = exports.se_DisassociateApplicationsCommand = exports.se_DescribeVcenterClientsCommand = exports.se_DescribeSourceServersCommand = exports.se_DescribeReplicationConfigurationTemplatesCommand = exports.se_DescribeLaunchConfigurationTemplatesCommand = exports.se_DescribeJobsCommand = exports.se_DescribeJobLogItemsCommand = exports.se_DeleteWaveCommand = exports.se_DeleteVcenterClientCommand = exports.se_DeleteSourceServerCommand = exports.se_DeleteReplicationConfigurationTemplateCommand = exports.se_DeleteLaunchConfigurationTemplateCommand = exports.se_DeleteJobCommand = exports.se_DeleteConnectorCommand = exports.se_DeleteApplicationCommand = exports.se_CreateWaveCommand = exports.se_CreateReplicationConfigurationTemplateCommand = exports.se_CreateLaunchConfigurationTemplateCommand = exports.se_CreateConnectorCommand = exports.se_CreateApplicationCommand = exports.se_ChangeServerLifeCycleStateCommand = exports.se_AssociateSourceServersCommand = exports.se_AssociateApplicationsCommand = exports.se_ArchiveWaveCommand = exports.se_ArchiveApplicationCommand = void 0;
|
|
4
|
-
exports.de_GetReplicationConfigurationCommand = exports.de_GetLaunchConfigurationCommand = exports.de_FinalizeCutoverCommand = exports.de_DisconnectFromServiceCommand = exports.de_DisassociateSourceServersCommand = exports.de_DisassociateApplicationsCommand = exports.de_DescribeVcenterClientsCommand = exports.de_DescribeSourceServersCommand = exports.de_DescribeReplicationConfigurationTemplatesCommand = exports.de_DescribeLaunchConfigurationTemplatesCommand = exports.de_DescribeJobsCommand = exports.de_DescribeJobLogItemsCommand = exports.de_DeleteWaveCommand = exports.de_DeleteVcenterClientCommand = exports.de_DeleteSourceServerCommand = exports.de_DeleteReplicationConfigurationTemplateCommand = exports.de_DeleteLaunchConfigurationTemplateCommand = exports.de_DeleteJobCommand = exports.de_DeleteConnectorCommand = exports.de_DeleteApplicationCommand = exports.de_CreateWaveCommand = exports.de_CreateReplicationConfigurationTemplateCommand = exports.de_CreateLaunchConfigurationTemplateCommand = exports.de_CreateConnectorCommand = exports.de_CreateApplicationCommand = exports.de_ChangeServerLifeCycleStateCommand = exports.de_AssociateSourceServersCommand = exports.de_AssociateApplicationsCommand = exports.de_ArchiveWaveCommand = exports.de_ArchiveApplicationCommand = exports.se_UpdateWaveCommand = exports.se_UpdateSourceServerReplicationTypeCommand = exports.se_UpdateSourceServerCommand = exports.se_UpdateReplicationConfigurationTemplateCommand = exports.se_UpdateReplicationConfigurationCommand = exports.se_UpdateLaunchConfigurationTemplateCommand = exports.se_UpdateLaunchConfigurationCommand = exports.se_UpdateConnectorCommand = exports.se_UpdateApplicationCommand = exports.se_UntagResourceCommand = exports.se_UnarchiveWaveCommand = exports.se_UnarchiveApplicationCommand = exports.se_TerminateTargetInstancesCommand = exports.se_TagResourceCommand = exports.se_StopReplicationCommand = exports.se_StartTestCommand = exports.se_StartReplicationCommand = exports.se_StartImportCommand = exports.se_StartExportCommand = exports.se_StartCutoverCommand = void 0;
|
|
5
|
-
exports.de_UpdateWaveCommand = exports.de_UpdateSourceServerReplicationTypeCommand = exports.de_UpdateSourceServerCommand = exports.de_UpdateReplicationConfigurationTemplateCommand = exports.de_UpdateReplicationConfigurationCommand = exports.de_UpdateLaunchConfigurationTemplateCommand = exports.de_UpdateLaunchConfigurationCommand = exports.de_UpdateConnectorCommand = exports.de_UpdateApplicationCommand = exports.de_UntagResourceCommand = exports.de_UnarchiveWaveCommand = exports.de_UnarchiveApplicationCommand = exports.de_TerminateTargetInstancesCommand = exports.de_TagResourceCommand = exports.de_StopReplicationCommand = exports.de_StartTestCommand = exports.de_StartReplicationCommand = exports.de_StartImportCommand = exports.de_StartExportCommand = exports.de_StartCutoverCommand = exports.de_RetryDataReplicationCommand = exports.de_ResumeReplicationCommand = exports.de_RemoveTemplateActionCommand = exports.de_RemoveSourceServerActionCommand = exports.de_PutTemplateActionCommand = exports.de_PutSourceServerActionCommand = exports.de_PauseReplicationCommand = exports.de_MarkAsArchivedCommand = exports.de_ListWavesCommand = exports.de_ListTemplateActionsCommand = exports.de_ListTagsForResourceCommand = exports.de_ListSourceServerActionsCommand = exports.de_ListManagedAccountsCommand = exports.de_ListImportsCommand = exports.de_ListImportErrorsCommand = exports.de_ListExportsCommand = exports.de_ListExportErrorsCommand = exports.de_ListConnectorsCommand = exports.de_ListApplicationsCommand = exports.de_InitializeServiceCommand = void 0;
|
|
6
|
-
const core_1 = require("@smithy/core");
|
|
7
|
-
const smithy_client_1 = require("@smithy/smithy-client");
|
|
8
|
-
const uuid_1 = require("uuid");
|
|
9
|
-
const MgnServiceException_1 = require("../models/MgnServiceException");
|
|
10
|
-
const models_0_1 = require("../models/models_0");
|
|
11
|
-
const se_ArchiveApplicationCommand = async (input, context) => {
|
|
12
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
13
|
-
const headers = {
|
|
14
|
-
"content-type": "application/json",
|
|
15
|
-
};
|
|
16
|
-
b.bp("/ArchiveApplication");
|
|
17
|
-
let body;
|
|
18
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
19
|
-
accountID: [],
|
|
20
|
-
applicationID: [],
|
|
21
|
-
}));
|
|
22
|
-
b.m("POST").h(headers).b(body);
|
|
23
|
-
return b.build();
|
|
24
|
-
};
|
|
25
|
-
exports.se_ArchiveApplicationCommand = se_ArchiveApplicationCommand;
|
|
26
|
-
const se_ArchiveWaveCommand = async (input, context) => {
|
|
27
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
28
|
-
const headers = {
|
|
29
|
-
"content-type": "application/json",
|
|
30
|
-
};
|
|
31
|
-
b.bp("/ArchiveWave");
|
|
32
|
-
let body;
|
|
33
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
34
|
-
accountID: [],
|
|
35
|
-
waveID: [],
|
|
36
|
-
}));
|
|
37
|
-
b.m("POST").h(headers).b(body);
|
|
38
|
-
return b.build();
|
|
39
|
-
};
|
|
40
|
-
exports.se_ArchiveWaveCommand = se_ArchiveWaveCommand;
|
|
41
|
-
const se_AssociateApplicationsCommand = async (input, context) => {
|
|
42
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
43
|
-
const headers = {
|
|
44
|
-
"content-type": "application/json",
|
|
45
|
-
};
|
|
46
|
-
b.bp("/AssociateApplications");
|
|
47
|
-
let body;
|
|
48
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
49
|
-
accountID: [],
|
|
50
|
-
applicationIDs: (_) => (0, smithy_client_1._json)(_),
|
|
51
|
-
waveID: [],
|
|
52
|
-
}));
|
|
53
|
-
b.m("POST").h(headers).b(body);
|
|
54
|
-
return b.build();
|
|
55
|
-
};
|
|
56
|
-
exports.se_AssociateApplicationsCommand = se_AssociateApplicationsCommand;
|
|
57
|
-
const se_AssociateSourceServersCommand = async (input, context) => {
|
|
58
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
59
|
-
const headers = {
|
|
60
|
-
"content-type": "application/json",
|
|
61
|
-
};
|
|
62
|
-
b.bp("/AssociateSourceServers");
|
|
63
|
-
let body;
|
|
64
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
65
|
-
accountID: [],
|
|
66
|
-
applicationID: [],
|
|
67
|
-
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
68
|
-
}));
|
|
69
|
-
b.m("POST").h(headers).b(body);
|
|
70
|
-
return b.build();
|
|
71
|
-
};
|
|
72
|
-
exports.se_AssociateSourceServersCommand = se_AssociateSourceServersCommand;
|
|
73
|
-
const se_ChangeServerLifeCycleStateCommand = async (input, context) => {
|
|
74
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
75
|
-
const headers = {
|
|
76
|
-
"content-type": "application/json",
|
|
77
|
-
};
|
|
78
|
-
b.bp("/ChangeServerLifeCycleState");
|
|
79
|
-
let body;
|
|
80
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
81
|
-
accountID: [],
|
|
82
|
-
lifeCycle: (_) => (0, smithy_client_1._json)(_),
|
|
83
|
-
sourceServerID: [],
|
|
84
|
-
}));
|
|
85
|
-
b.m("POST").h(headers).b(body);
|
|
86
|
-
return b.build();
|
|
87
|
-
};
|
|
88
|
-
exports.se_ChangeServerLifeCycleStateCommand = se_ChangeServerLifeCycleStateCommand;
|
|
89
|
-
const se_CreateApplicationCommand = async (input, context) => {
|
|
90
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
91
|
-
const headers = {
|
|
92
|
-
"content-type": "application/json",
|
|
93
|
-
};
|
|
94
|
-
b.bp("/CreateApplication");
|
|
95
|
-
let body;
|
|
96
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
97
|
-
accountID: [],
|
|
98
|
-
description: [],
|
|
99
|
-
name: [],
|
|
100
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
101
|
-
}));
|
|
102
|
-
b.m("POST").h(headers).b(body);
|
|
103
|
-
return b.build();
|
|
104
|
-
};
|
|
105
|
-
exports.se_CreateApplicationCommand = se_CreateApplicationCommand;
|
|
106
|
-
const se_CreateConnectorCommand = async (input, context) => {
|
|
107
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
108
|
-
const headers = {
|
|
109
|
-
"content-type": "application/json",
|
|
110
|
-
};
|
|
111
|
-
b.bp("/CreateConnector");
|
|
112
|
-
let body;
|
|
113
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
114
|
-
name: [],
|
|
115
|
-
ssmCommandConfig: (_) => (0, smithy_client_1._json)(_),
|
|
116
|
-
ssmInstanceID: [],
|
|
117
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
118
|
-
}));
|
|
119
|
-
b.m("POST").h(headers).b(body);
|
|
120
|
-
return b.build();
|
|
121
|
-
};
|
|
122
|
-
exports.se_CreateConnectorCommand = se_CreateConnectorCommand;
|
|
123
|
-
const se_CreateLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
124
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
125
|
-
const headers = {
|
|
126
|
-
"content-type": "application/json",
|
|
127
|
-
};
|
|
128
|
-
b.bp("/CreateLaunchConfigurationTemplate");
|
|
129
|
-
let body;
|
|
130
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
131
|
-
associatePublicIpAddress: [],
|
|
132
|
-
bootMode: [],
|
|
133
|
-
copyPrivateIp: [],
|
|
134
|
-
copyTags: [],
|
|
135
|
-
enableMapAutoTagging: [],
|
|
136
|
-
largeVolumeConf: (_) => (0, smithy_client_1._json)(_),
|
|
137
|
-
launchDisposition: [],
|
|
138
|
-
licensing: (_) => (0, smithy_client_1._json)(_),
|
|
139
|
-
mapAutoTaggingMpeID: [],
|
|
140
|
-
postLaunchActions: (_) => (0, smithy_client_1._json)(_),
|
|
141
|
-
smallVolumeConf: (_) => (0, smithy_client_1._json)(_),
|
|
142
|
-
smallVolumeMaxSize: [],
|
|
143
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
144
|
-
targetInstanceTypeRightSizingMethod: [],
|
|
145
|
-
}));
|
|
146
|
-
b.m("POST").h(headers).b(body);
|
|
147
|
-
return b.build();
|
|
148
|
-
};
|
|
149
|
-
exports.se_CreateLaunchConfigurationTemplateCommand = se_CreateLaunchConfigurationTemplateCommand;
|
|
150
|
-
const se_CreateReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
151
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
152
|
-
const headers = {
|
|
153
|
-
"content-type": "application/json",
|
|
154
|
-
};
|
|
155
|
-
b.bp("/CreateReplicationConfigurationTemplate");
|
|
156
|
-
let body;
|
|
157
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
158
|
-
associateDefaultSecurityGroup: [],
|
|
159
|
-
bandwidthThrottling: [],
|
|
160
|
-
createPublicIP: [],
|
|
161
|
-
dataPlaneRouting: [],
|
|
162
|
-
defaultLargeStagingDiskType: [],
|
|
163
|
-
ebsEncryption: [],
|
|
164
|
-
ebsEncryptionKeyArn: [],
|
|
165
|
-
replicationServerInstanceType: [],
|
|
166
|
-
replicationServersSecurityGroupsIDs: (_) => (0, smithy_client_1._json)(_),
|
|
167
|
-
stagingAreaSubnetId: [],
|
|
168
|
-
stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
|
|
169
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
170
|
-
useDedicatedReplicationServer: [],
|
|
171
|
-
useFipsEndpoint: [],
|
|
172
|
-
}));
|
|
173
|
-
b.m("POST").h(headers).b(body);
|
|
174
|
-
return b.build();
|
|
175
|
-
};
|
|
176
|
-
exports.se_CreateReplicationConfigurationTemplateCommand = se_CreateReplicationConfigurationTemplateCommand;
|
|
177
|
-
const se_CreateWaveCommand = async (input, context) => {
|
|
178
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
179
|
-
const headers = {
|
|
180
|
-
"content-type": "application/json",
|
|
181
|
-
};
|
|
182
|
-
b.bp("/CreateWave");
|
|
183
|
-
let body;
|
|
184
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
185
|
-
accountID: [],
|
|
186
|
-
description: [],
|
|
187
|
-
name: [],
|
|
188
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
189
|
-
}));
|
|
190
|
-
b.m("POST").h(headers).b(body);
|
|
191
|
-
return b.build();
|
|
192
|
-
};
|
|
193
|
-
exports.se_CreateWaveCommand = se_CreateWaveCommand;
|
|
194
|
-
const se_DeleteApplicationCommand = async (input, context) => {
|
|
195
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
196
|
-
const headers = {
|
|
197
|
-
"content-type": "application/json",
|
|
198
|
-
};
|
|
199
|
-
b.bp("/DeleteApplication");
|
|
200
|
-
let body;
|
|
201
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
202
|
-
accountID: [],
|
|
203
|
-
applicationID: [],
|
|
204
|
-
}));
|
|
205
|
-
b.m("POST").h(headers).b(body);
|
|
206
|
-
return b.build();
|
|
207
|
-
};
|
|
208
|
-
exports.se_DeleteApplicationCommand = se_DeleteApplicationCommand;
|
|
209
|
-
const se_DeleteConnectorCommand = async (input, context) => {
|
|
210
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
211
|
-
const headers = {
|
|
212
|
-
"content-type": "application/json",
|
|
213
|
-
};
|
|
214
|
-
b.bp("/DeleteConnector");
|
|
215
|
-
let body;
|
|
216
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
217
|
-
connectorID: [],
|
|
218
|
-
}));
|
|
219
|
-
b.m("POST").h(headers).b(body);
|
|
220
|
-
return b.build();
|
|
221
|
-
};
|
|
222
|
-
exports.se_DeleteConnectorCommand = se_DeleteConnectorCommand;
|
|
223
|
-
const se_DeleteJobCommand = async (input, context) => {
|
|
224
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
225
|
-
const headers = {
|
|
226
|
-
"content-type": "application/json",
|
|
227
|
-
};
|
|
228
|
-
b.bp("/DeleteJob");
|
|
229
|
-
let body;
|
|
230
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
231
|
-
accountID: [],
|
|
232
|
-
jobID: [],
|
|
233
|
-
}));
|
|
234
|
-
b.m("POST").h(headers).b(body);
|
|
235
|
-
return b.build();
|
|
236
|
-
};
|
|
237
|
-
exports.se_DeleteJobCommand = se_DeleteJobCommand;
|
|
238
|
-
const se_DeleteLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
239
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
240
|
-
const headers = {
|
|
241
|
-
"content-type": "application/json",
|
|
242
|
-
};
|
|
243
|
-
b.bp("/DeleteLaunchConfigurationTemplate");
|
|
244
|
-
let body;
|
|
245
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
246
|
-
launchConfigurationTemplateID: [],
|
|
247
|
-
}));
|
|
248
|
-
b.m("POST").h(headers).b(body);
|
|
249
|
-
return b.build();
|
|
250
|
-
};
|
|
251
|
-
exports.se_DeleteLaunchConfigurationTemplateCommand = se_DeleteLaunchConfigurationTemplateCommand;
|
|
252
|
-
const se_DeleteReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
253
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
254
|
-
const headers = {
|
|
255
|
-
"content-type": "application/json",
|
|
256
|
-
};
|
|
257
|
-
b.bp("/DeleteReplicationConfigurationTemplate");
|
|
258
|
-
let body;
|
|
259
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
260
|
-
replicationConfigurationTemplateID: [],
|
|
261
|
-
}));
|
|
262
|
-
b.m("POST").h(headers).b(body);
|
|
263
|
-
return b.build();
|
|
264
|
-
};
|
|
265
|
-
exports.se_DeleteReplicationConfigurationTemplateCommand = se_DeleteReplicationConfigurationTemplateCommand;
|
|
266
|
-
const se_DeleteSourceServerCommand = async (input, context) => {
|
|
267
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
268
|
-
const headers = {
|
|
269
|
-
"content-type": "application/json",
|
|
270
|
-
};
|
|
271
|
-
b.bp("/DeleteSourceServer");
|
|
272
|
-
let body;
|
|
273
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
274
|
-
accountID: [],
|
|
275
|
-
sourceServerID: [],
|
|
276
|
-
}));
|
|
277
|
-
b.m("POST").h(headers).b(body);
|
|
278
|
-
return b.build();
|
|
279
|
-
};
|
|
280
|
-
exports.se_DeleteSourceServerCommand = se_DeleteSourceServerCommand;
|
|
281
|
-
const se_DeleteVcenterClientCommand = async (input, context) => {
|
|
282
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
283
|
-
const headers = {
|
|
284
|
-
"content-type": "application/json",
|
|
285
|
-
};
|
|
286
|
-
b.bp("/DeleteVcenterClient");
|
|
287
|
-
let body;
|
|
288
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
289
|
-
vcenterClientID: [],
|
|
290
|
-
}));
|
|
291
|
-
b.m("POST").h(headers).b(body);
|
|
292
|
-
return b.build();
|
|
293
|
-
};
|
|
294
|
-
exports.se_DeleteVcenterClientCommand = se_DeleteVcenterClientCommand;
|
|
295
|
-
const se_DeleteWaveCommand = async (input, context) => {
|
|
296
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
297
|
-
const headers = {
|
|
298
|
-
"content-type": "application/json",
|
|
299
|
-
};
|
|
300
|
-
b.bp("/DeleteWave");
|
|
301
|
-
let body;
|
|
302
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
303
|
-
accountID: [],
|
|
304
|
-
waveID: [],
|
|
305
|
-
}));
|
|
306
|
-
b.m("POST").h(headers).b(body);
|
|
307
|
-
return b.build();
|
|
308
|
-
};
|
|
309
|
-
exports.se_DeleteWaveCommand = se_DeleteWaveCommand;
|
|
310
|
-
const se_DescribeJobLogItemsCommand = async (input, context) => {
|
|
311
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
312
|
-
const headers = {
|
|
313
|
-
"content-type": "application/json",
|
|
314
|
-
};
|
|
315
|
-
b.bp("/DescribeJobLogItems");
|
|
316
|
-
let body;
|
|
317
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
318
|
-
accountID: [],
|
|
319
|
-
jobID: [],
|
|
320
|
-
maxResults: [],
|
|
321
|
-
nextToken: [],
|
|
322
|
-
}));
|
|
323
|
-
b.m("POST").h(headers).b(body);
|
|
324
|
-
return b.build();
|
|
325
|
-
};
|
|
326
|
-
exports.se_DescribeJobLogItemsCommand = se_DescribeJobLogItemsCommand;
|
|
327
|
-
const se_DescribeJobsCommand = async (input, context) => {
|
|
328
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
329
|
-
const headers = {
|
|
330
|
-
"content-type": "application/json",
|
|
331
|
-
};
|
|
332
|
-
b.bp("/DescribeJobs");
|
|
333
|
-
let body;
|
|
334
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
335
|
-
accountID: [],
|
|
336
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
337
|
-
maxResults: [],
|
|
338
|
-
nextToken: [],
|
|
339
|
-
}));
|
|
340
|
-
b.m("POST").h(headers).b(body);
|
|
341
|
-
return b.build();
|
|
342
|
-
};
|
|
343
|
-
exports.se_DescribeJobsCommand = se_DescribeJobsCommand;
|
|
344
|
-
const se_DescribeLaunchConfigurationTemplatesCommand = async (input, context) => {
|
|
345
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
346
|
-
const headers = {
|
|
347
|
-
"content-type": "application/json",
|
|
348
|
-
};
|
|
349
|
-
b.bp("/DescribeLaunchConfigurationTemplates");
|
|
350
|
-
let body;
|
|
351
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
352
|
-
launchConfigurationTemplateIDs: (_) => (0, smithy_client_1._json)(_),
|
|
353
|
-
maxResults: [],
|
|
354
|
-
nextToken: [],
|
|
355
|
-
}));
|
|
356
|
-
b.m("POST").h(headers).b(body);
|
|
357
|
-
return b.build();
|
|
358
|
-
};
|
|
359
|
-
exports.se_DescribeLaunchConfigurationTemplatesCommand = se_DescribeLaunchConfigurationTemplatesCommand;
|
|
360
|
-
const se_DescribeReplicationConfigurationTemplatesCommand = async (input, context) => {
|
|
361
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
362
|
-
const headers = {
|
|
363
|
-
"content-type": "application/json",
|
|
364
|
-
};
|
|
365
|
-
b.bp("/DescribeReplicationConfigurationTemplates");
|
|
366
|
-
let body;
|
|
367
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
368
|
-
maxResults: [],
|
|
369
|
-
nextToken: [],
|
|
370
|
-
replicationConfigurationTemplateIDs: (_) => (0, smithy_client_1._json)(_),
|
|
371
|
-
}));
|
|
372
|
-
b.m("POST").h(headers).b(body);
|
|
373
|
-
return b.build();
|
|
374
|
-
};
|
|
375
|
-
exports.se_DescribeReplicationConfigurationTemplatesCommand = se_DescribeReplicationConfigurationTemplatesCommand;
|
|
376
|
-
const se_DescribeSourceServersCommand = async (input, context) => {
|
|
377
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
378
|
-
const headers = {
|
|
379
|
-
"content-type": "application/json",
|
|
380
|
-
};
|
|
381
|
-
b.bp("/DescribeSourceServers");
|
|
382
|
-
let body;
|
|
383
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
384
|
-
accountID: [],
|
|
385
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
386
|
-
maxResults: [],
|
|
387
|
-
nextToken: [],
|
|
388
|
-
}));
|
|
389
|
-
b.m("POST").h(headers).b(body);
|
|
390
|
-
return b.build();
|
|
391
|
-
};
|
|
392
|
-
exports.se_DescribeSourceServersCommand = se_DescribeSourceServersCommand;
|
|
393
|
-
const se_DescribeVcenterClientsCommand = async (input, context) => {
|
|
394
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
395
|
-
const headers = {};
|
|
396
|
-
b.bp("/DescribeVcenterClients");
|
|
397
|
-
const query = (0, smithy_client_1.map)({
|
|
398
|
-
[_mR]: [() => input.maxResults !== void 0, () => input[_mR].toString()],
|
|
399
|
-
[_nT]: [, input[_nT]],
|
|
400
|
-
});
|
|
401
|
-
let body;
|
|
402
|
-
b.m("GET").h(headers).q(query).b(body);
|
|
403
|
-
return b.build();
|
|
404
|
-
};
|
|
405
|
-
exports.se_DescribeVcenterClientsCommand = se_DescribeVcenterClientsCommand;
|
|
406
|
-
const se_DisassociateApplicationsCommand = async (input, context) => {
|
|
407
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
408
|
-
const headers = {
|
|
409
|
-
"content-type": "application/json",
|
|
410
|
-
};
|
|
411
|
-
b.bp("/DisassociateApplications");
|
|
412
|
-
let body;
|
|
413
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
414
|
-
accountID: [],
|
|
415
|
-
applicationIDs: (_) => (0, smithy_client_1._json)(_),
|
|
416
|
-
waveID: [],
|
|
417
|
-
}));
|
|
418
|
-
b.m("POST").h(headers).b(body);
|
|
419
|
-
return b.build();
|
|
420
|
-
};
|
|
421
|
-
exports.se_DisassociateApplicationsCommand = se_DisassociateApplicationsCommand;
|
|
422
|
-
const se_DisassociateSourceServersCommand = async (input, context) => {
|
|
423
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
424
|
-
const headers = {
|
|
425
|
-
"content-type": "application/json",
|
|
426
|
-
};
|
|
427
|
-
b.bp("/DisassociateSourceServers");
|
|
428
|
-
let body;
|
|
429
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
430
|
-
accountID: [],
|
|
431
|
-
applicationID: [],
|
|
432
|
-
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
433
|
-
}));
|
|
434
|
-
b.m("POST").h(headers).b(body);
|
|
435
|
-
return b.build();
|
|
436
|
-
};
|
|
437
|
-
exports.se_DisassociateSourceServersCommand = se_DisassociateSourceServersCommand;
|
|
438
|
-
const se_DisconnectFromServiceCommand = async (input, context) => {
|
|
439
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
440
|
-
const headers = {
|
|
441
|
-
"content-type": "application/json",
|
|
442
|
-
};
|
|
443
|
-
b.bp("/DisconnectFromService");
|
|
444
|
-
let body;
|
|
445
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
446
|
-
accountID: [],
|
|
447
|
-
sourceServerID: [],
|
|
448
|
-
}));
|
|
449
|
-
b.m("POST").h(headers).b(body);
|
|
450
|
-
return b.build();
|
|
451
|
-
};
|
|
452
|
-
exports.se_DisconnectFromServiceCommand = se_DisconnectFromServiceCommand;
|
|
453
|
-
const se_FinalizeCutoverCommand = async (input, context) => {
|
|
454
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
455
|
-
const headers = {
|
|
456
|
-
"content-type": "application/json",
|
|
457
|
-
};
|
|
458
|
-
b.bp("/FinalizeCutover");
|
|
459
|
-
let body;
|
|
460
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
461
|
-
accountID: [],
|
|
462
|
-
sourceServerID: [],
|
|
463
|
-
}));
|
|
464
|
-
b.m("POST").h(headers).b(body);
|
|
465
|
-
return b.build();
|
|
466
|
-
};
|
|
467
|
-
exports.se_FinalizeCutoverCommand = se_FinalizeCutoverCommand;
|
|
468
|
-
const se_GetLaunchConfigurationCommand = async (input, context) => {
|
|
469
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
470
|
-
const headers = {
|
|
471
|
-
"content-type": "application/json",
|
|
472
|
-
};
|
|
473
|
-
b.bp("/GetLaunchConfiguration");
|
|
474
|
-
let body;
|
|
475
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
476
|
-
accountID: [],
|
|
477
|
-
sourceServerID: [],
|
|
478
|
-
}));
|
|
479
|
-
b.m("POST").h(headers).b(body);
|
|
480
|
-
return b.build();
|
|
481
|
-
};
|
|
482
|
-
exports.se_GetLaunchConfigurationCommand = se_GetLaunchConfigurationCommand;
|
|
483
|
-
const se_GetReplicationConfigurationCommand = async (input, context) => {
|
|
484
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
485
|
-
const headers = {
|
|
486
|
-
"content-type": "application/json",
|
|
487
|
-
};
|
|
488
|
-
b.bp("/GetReplicationConfiguration");
|
|
489
|
-
let body;
|
|
490
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
491
|
-
accountID: [],
|
|
492
|
-
sourceServerID: [],
|
|
493
|
-
}));
|
|
494
|
-
b.m("POST").h(headers).b(body);
|
|
495
|
-
return b.build();
|
|
496
|
-
};
|
|
497
|
-
exports.se_GetReplicationConfigurationCommand = se_GetReplicationConfigurationCommand;
|
|
498
|
-
const se_InitializeServiceCommand = async (input, context) => {
|
|
499
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
500
|
-
const headers = {
|
|
501
|
-
"content-type": "application/json",
|
|
502
|
-
};
|
|
503
|
-
b.bp("/InitializeService");
|
|
504
|
-
let body;
|
|
505
|
-
body = "";
|
|
506
|
-
b.m("POST").h(headers).b(body);
|
|
507
|
-
return b.build();
|
|
508
|
-
};
|
|
509
|
-
exports.se_InitializeServiceCommand = se_InitializeServiceCommand;
|
|
510
|
-
const se_ListApplicationsCommand = async (input, context) => {
|
|
511
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
512
|
-
const headers = {
|
|
513
|
-
"content-type": "application/json",
|
|
514
|
-
};
|
|
515
|
-
b.bp("/ListApplications");
|
|
516
|
-
let body;
|
|
517
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
518
|
-
accountID: [],
|
|
519
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
520
|
-
maxResults: [],
|
|
521
|
-
nextToken: [],
|
|
522
|
-
}));
|
|
523
|
-
b.m("POST").h(headers).b(body);
|
|
524
|
-
return b.build();
|
|
525
|
-
};
|
|
526
|
-
exports.se_ListApplicationsCommand = se_ListApplicationsCommand;
|
|
527
|
-
const se_ListConnectorsCommand = async (input, context) => {
|
|
528
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
529
|
-
const headers = {
|
|
530
|
-
"content-type": "application/json",
|
|
531
|
-
};
|
|
532
|
-
b.bp("/ListConnectors");
|
|
533
|
-
let body;
|
|
534
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
535
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
536
|
-
maxResults: [],
|
|
537
|
-
nextToken: [],
|
|
538
|
-
}));
|
|
539
|
-
b.m("POST").h(headers).b(body);
|
|
540
|
-
return b.build();
|
|
541
|
-
};
|
|
542
|
-
exports.se_ListConnectorsCommand = se_ListConnectorsCommand;
|
|
543
|
-
const se_ListExportErrorsCommand = async (input, context) => {
|
|
544
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
545
|
-
const headers = {
|
|
546
|
-
"content-type": "application/json",
|
|
547
|
-
};
|
|
548
|
-
b.bp("/ListExportErrors");
|
|
549
|
-
let body;
|
|
550
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
551
|
-
exportID: [],
|
|
552
|
-
maxResults: [],
|
|
553
|
-
nextToken: [],
|
|
554
|
-
}));
|
|
555
|
-
b.m("POST").h(headers).b(body);
|
|
556
|
-
return b.build();
|
|
557
|
-
};
|
|
558
|
-
exports.se_ListExportErrorsCommand = se_ListExportErrorsCommand;
|
|
559
|
-
const se_ListExportsCommand = async (input, context) => {
|
|
560
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
561
|
-
const headers = {
|
|
562
|
-
"content-type": "application/json",
|
|
563
|
-
};
|
|
564
|
-
b.bp("/ListExports");
|
|
565
|
-
let body;
|
|
566
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
567
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
568
|
-
maxResults: [],
|
|
569
|
-
nextToken: [],
|
|
570
|
-
}));
|
|
571
|
-
b.m("POST").h(headers).b(body);
|
|
572
|
-
return b.build();
|
|
573
|
-
};
|
|
574
|
-
exports.se_ListExportsCommand = se_ListExportsCommand;
|
|
575
|
-
const se_ListImportErrorsCommand = async (input, context) => {
|
|
576
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
577
|
-
const headers = {
|
|
578
|
-
"content-type": "application/json",
|
|
579
|
-
};
|
|
580
|
-
b.bp("/ListImportErrors");
|
|
581
|
-
let body;
|
|
582
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
583
|
-
importID: [],
|
|
584
|
-
maxResults: [],
|
|
585
|
-
nextToken: [],
|
|
586
|
-
}));
|
|
587
|
-
b.m("POST").h(headers).b(body);
|
|
588
|
-
return b.build();
|
|
589
|
-
};
|
|
590
|
-
exports.se_ListImportErrorsCommand = se_ListImportErrorsCommand;
|
|
591
|
-
const se_ListImportsCommand = async (input, context) => {
|
|
592
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
593
|
-
const headers = {
|
|
594
|
-
"content-type": "application/json",
|
|
595
|
-
};
|
|
596
|
-
b.bp("/ListImports");
|
|
597
|
-
let body;
|
|
598
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
599
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
600
|
-
maxResults: [],
|
|
601
|
-
nextToken: [],
|
|
602
|
-
}));
|
|
603
|
-
b.m("POST").h(headers).b(body);
|
|
604
|
-
return b.build();
|
|
605
|
-
};
|
|
606
|
-
exports.se_ListImportsCommand = se_ListImportsCommand;
|
|
607
|
-
const se_ListManagedAccountsCommand = async (input, context) => {
|
|
608
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
609
|
-
const headers = {
|
|
610
|
-
"content-type": "application/json",
|
|
611
|
-
};
|
|
612
|
-
b.bp("/ListManagedAccounts");
|
|
613
|
-
let body;
|
|
614
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
615
|
-
maxResults: [],
|
|
616
|
-
nextToken: [],
|
|
617
|
-
}));
|
|
618
|
-
b.m("POST").h(headers).b(body);
|
|
619
|
-
return b.build();
|
|
620
|
-
};
|
|
621
|
-
exports.se_ListManagedAccountsCommand = se_ListManagedAccountsCommand;
|
|
622
|
-
const se_ListSourceServerActionsCommand = async (input, context) => {
|
|
623
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
624
|
-
const headers = {
|
|
625
|
-
"content-type": "application/json",
|
|
626
|
-
};
|
|
627
|
-
b.bp("/ListSourceServerActions");
|
|
628
|
-
let body;
|
|
629
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
630
|
-
accountID: [],
|
|
631
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
632
|
-
maxResults: [],
|
|
633
|
-
nextToken: [],
|
|
634
|
-
sourceServerID: [],
|
|
635
|
-
}));
|
|
636
|
-
b.m("POST").h(headers).b(body);
|
|
637
|
-
return b.build();
|
|
638
|
-
};
|
|
639
|
-
exports.se_ListSourceServerActionsCommand = se_ListSourceServerActionsCommand;
|
|
640
|
-
const se_ListTagsForResourceCommand = async (input, context) => {
|
|
641
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
642
|
-
const headers = {};
|
|
643
|
-
b.bp("/tags/{resourceArn}");
|
|
644
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
645
|
-
let body;
|
|
646
|
-
b.m("GET").h(headers).b(body);
|
|
647
|
-
return b.build();
|
|
648
|
-
};
|
|
649
|
-
exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand;
|
|
650
|
-
const se_ListTemplateActionsCommand = async (input, context) => {
|
|
651
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
652
|
-
const headers = {
|
|
653
|
-
"content-type": "application/json",
|
|
654
|
-
};
|
|
655
|
-
b.bp("/ListTemplateActions");
|
|
656
|
-
let body;
|
|
657
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
658
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
659
|
-
launchConfigurationTemplateID: [],
|
|
660
|
-
maxResults: [],
|
|
661
|
-
nextToken: [],
|
|
662
|
-
}));
|
|
663
|
-
b.m("POST").h(headers).b(body);
|
|
664
|
-
return b.build();
|
|
665
|
-
};
|
|
666
|
-
exports.se_ListTemplateActionsCommand = se_ListTemplateActionsCommand;
|
|
667
|
-
const se_ListWavesCommand = async (input, context) => {
|
|
668
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
669
|
-
const headers = {
|
|
670
|
-
"content-type": "application/json",
|
|
671
|
-
};
|
|
672
|
-
b.bp("/ListWaves");
|
|
673
|
-
let body;
|
|
674
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
675
|
-
accountID: [],
|
|
676
|
-
filters: (_) => (0, smithy_client_1._json)(_),
|
|
677
|
-
maxResults: [],
|
|
678
|
-
nextToken: [],
|
|
679
|
-
}));
|
|
680
|
-
b.m("POST").h(headers).b(body);
|
|
681
|
-
return b.build();
|
|
682
|
-
};
|
|
683
|
-
exports.se_ListWavesCommand = se_ListWavesCommand;
|
|
684
|
-
const se_MarkAsArchivedCommand = async (input, context) => {
|
|
685
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
686
|
-
const headers = {
|
|
687
|
-
"content-type": "application/json",
|
|
688
|
-
};
|
|
689
|
-
b.bp("/MarkAsArchived");
|
|
690
|
-
let body;
|
|
691
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
692
|
-
accountID: [],
|
|
693
|
-
sourceServerID: [],
|
|
694
|
-
}));
|
|
695
|
-
b.m("POST").h(headers).b(body);
|
|
696
|
-
return b.build();
|
|
697
|
-
};
|
|
698
|
-
exports.se_MarkAsArchivedCommand = se_MarkAsArchivedCommand;
|
|
699
|
-
const se_PauseReplicationCommand = async (input, context) => {
|
|
700
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
701
|
-
const headers = {
|
|
702
|
-
"content-type": "application/json",
|
|
703
|
-
};
|
|
704
|
-
b.bp("/PauseReplication");
|
|
705
|
-
let body;
|
|
706
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
707
|
-
accountID: [],
|
|
708
|
-
sourceServerID: [],
|
|
709
|
-
}));
|
|
710
|
-
b.m("POST").h(headers).b(body);
|
|
711
|
-
return b.build();
|
|
712
|
-
};
|
|
713
|
-
exports.se_PauseReplicationCommand = se_PauseReplicationCommand;
|
|
714
|
-
const se_PutSourceServerActionCommand = async (input, context) => {
|
|
715
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
716
|
-
const headers = {
|
|
717
|
-
"content-type": "application/json",
|
|
718
|
-
};
|
|
719
|
-
b.bp("/PutSourceServerAction");
|
|
720
|
-
let body;
|
|
721
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
722
|
-
accountID: [],
|
|
723
|
-
actionID: [],
|
|
724
|
-
actionName: [],
|
|
725
|
-
active: [],
|
|
726
|
-
category: [],
|
|
727
|
-
description: [],
|
|
728
|
-
documentIdentifier: [],
|
|
729
|
-
documentVersion: [],
|
|
730
|
-
externalParameters: (_) => (0, smithy_client_1._json)(_),
|
|
731
|
-
mustSucceedForCutover: [],
|
|
732
|
-
order: [],
|
|
733
|
-
parameters: (_) => (0, smithy_client_1._json)(_),
|
|
734
|
-
sourceServerID: [],
|
|
735
|
-
timeoutSeconds: [],
|
|
736
|
-
}));
|
|
737
|
-
b.m("POST").h(headers).b(body);
|
|
738
|
-
return b.build();
|
|
739
|
-
};
|
|
740
|
-
exports.se_PutSourceServerActionCommand = se_PutSourceServerActionCommand;
|
|
741
|
-
const se_PutTemplateActionCommand = async (input, context) => {
|
|
742
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
743
|
-
const headers = {
|
|
744
|
-
"content-type": "application/json",
|
|
745
|
-
};
|
|
746
|
-
b.bp("/PutTemplateAction");
|
|
747
|
-
let body;
|
|
748
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
749
|
-
actionID: [],
|
|
750
|
-
actionName: [],
|
|
751
|
-
active: [],
|
|
752
|
-
category: [],
|
|
753
|
-
description: [],
|
|
754
|
-
documentIdentifier: [],
|
|
755
|
-
documentVersion: [],
|
|
756
|
-
externalParameters: (_) => (0, smithy_client_1._json)(_),
|
|
757
|
-
launchConfigurationTemplateID: [],
|
|
758
|
-
mustSucceedForCutover: [],
|
|
759
|
-
operatingSystem: [],
|
|
760
|
-
order: [],
|
|
761
|
-
parameters: (_) => (0, smithy_client_1._json)(_),
|
|
762
|
-
timeoutSeconds: [],
|
|
763
|
-
}));
|
|
764
|
-
b.m("POST").h(headers).b(body);
|
|
765
|
-
return b.build();
|
|
766
|
-
};
|
|
767
|
-
exports.se_PutTemplateActionCommand = se_PutTemplateActionCommand;
|
|
768
|
-
const se_RemoveSourceServerActionCommand = async (input, context) => {
|
|
769
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
770
|
-
const headers = {
|
|
771
|
-
"content-type": "application/json",
|
|
772
|
-
};
|
|
773
|
-
b.bp("/RemoveSourceServerAction");
|
|
774
|
-
let body;
|
|
775
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
776
|
-
accountID: [],
|
|
777
|
-
actionID: [],
|
|
778
|
-
sourceServerID: [],
|
|
779
|
-
}));
|
|
780
|
-
b.m("POST").h(headers).b(body);
|
|
781
|
-
return b.build();
|
|
782
|
-
};
|
|
783
|
-
exports.se_RemoveSourceServerActionCommand = se_RemoveSourceServerActionCommand;
|
|
784
|
-
const se_RemoveTemplateActionCommand = async (input, context) => {
|
|
785
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
786
|
-
const headers = {
|
|
787
|
-
"content-type": "application/json",
|
|
788
|
-
};
|
|
789
|
-
b.bp("/RemoveTemplateAction");
|
|
790
|
-
let body;
|
|
791
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
792
|
-
actionID: [],
|
|
793
|
-
launchConfigurationTemplateID: [],
|
|
794
|
-
}));
|
|
795
|
-
b.m("POST").h(headers).b(body);
|
|
796
|
-
return b.build();
|
|
797
|
-
};
|
|
798
|
-
exports.se_RemoveTemplateActionCommand = se_RemoveTemplateActionCommand;
|
|
799
|
-
const se_ResumeReplicationCommand = async (input, context) => {
|
|
800
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
801
|
-
const headers = {
|
|
802
|
-
"content-type": "application/json",
|
|
803
|
-
};
|
|
804
|
-
b.bp("/ResumeReplication");
|
|
805
|
-
let body;
|
|
806
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
807
|
-
accountID: [],
|
|
808
|
-
sourceServerID: [],
|
|
809
|
-
}));
|
|
810
|
-
b.m("POST").h(headers).b(body);
|
|
811
|
-
return b.build();
|
|
812
|
-
};
|
|
813
|
-
exports.se_ResumeReplicationCommand = se_ResumeReplicationCommand;
|
|
814
|
-
const se_RetryDataReplicationCommand = async (input, context) => {
|
|
815
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
816
|
-
const headers = {
|
|
817
|
-
"content-type": "application/json",
|
|
818
|
-
};
|
|
819
|
-
b.bp("/RetryDataReplication");
|
|
820
|
-
let body;
|
|
821
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
822
|
-
accountID: [],
|
|
823
|
-
sourceServerID: [],
|
|
824
|
-
}));
|
|
825
|
-
b.m("POST").h(headers).b(body);
|
|
826
|
-
return b.build();
|
|
827
|
-
};
|
|
828
|
-
exports.se_RetryDataReplicationCommand = se_RetryDataReplicationCommand;
|
|
829
|
-
const se_StartCutoverCommand = async (input, context) => {
|
|
830
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
831
|
-
const headers = {
|
|
832
|
-
"content-type": "application/json",
|
|
833
|
-
};
|
|
834
|
-
b.bp("/StartCutover");
|
|
835
|
-
let body;
|
|
836
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
837
|
-
accountID: [],
|
|
838
|
-
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
839
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
840
|
-
}));
|
|
841
|
-
b.m("POST").h(headers).b(body);
|
|
842
|
-
return b.build();
|
|
843
|
-
};
|
|
844
|
-
exports.se_StartCutoverCommand = se_StartCutoverCommand;
|
|
845
|
-
const se_StartExportCommand = async (input, context) => {
|
|
846
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
847
|
-
const headers = {
|
|
848
|
-
"content-type": "application/json",
|
|
849
|
-
};
|
|
850
|
-
b.bp("/StartExport");
|
|
851
|
-
let body;
|
|
852
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
853
|
-
s3Bucket: [],
|
|
854
|
-
s3BucketOwner: [],
|
|
855
|
-
s3Key: [],
|
|
856
|
-
}));
|
|
857
|
-
b.m("POST").h(headers).b(body);
|
|
858
|
-
return b.build();
|
|
859
|
-
};
|
|
860
|
-
exports.se_StartExportCommand = se_StartExportCommand;
|
|
861
|
-
const se_StartImportCommand = async (input, context) => {
|
|
862
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
863
|
-
const headers = {
|
|
864
|
-
"content-type": "application/json",
|
|
865
|
-
};
|
|
866
|
-
b.bp("/StartImport");
|
|
867
|
-
let body;
|
|
868
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
869
|
-
clientToken: [true, (_) => _ ?? (0, uuid_1.v4)()],
|
|
870
|
-
s3BucketSource: (_) => (0, smithy_client_1._json)(_),
|
|
871
|
-
}));
|
|
872
|
-
b.m("POST").h(headers).b(body);
|
|
873
|
-
return b.build();
|
|
874
|
-
};
|
|
875
|
-
exports.se_StartImportCommand = se_StartImportCommand;
|
|
876
|
-
const se_StartReplicationCommand = async (input, context) => {
|
|
877
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
878
|
-
const headers = {
|
|
879
|
-
"content-type": "application/json",
|
|
880
|
-
};
|
|
881
|
-
b.bp("/StartReplication");
|
|
882
|
-
let body;
|
|
883
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
884
|
-
accountID: [],
|
|
885
|
-
sourceServerID: [],
|
|
886
|
-
}));
|
|
887
|
-
b.m("POST").h(headers).b(body);
|
|
888
|
-
return b.build();
|
|
889
|
-
};
|
|
890
|
-
exports.se_StartReplicationCommand = se_StartReplicationCommand;
|
|
891
|
-
const se_StartTestCommand = async (input, context) => {
|
|
892
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
893
|
-
const headers = {
|
|
894
|
-
"content-type": "application/json",
|
|
895
|
-
};
|
|
896
|
-
b.bp("/StartTest");
|
|
897
|
-
let body;
|
|
898
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
899
|
-
accountID: [],
|
|
900
|
-
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
901
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
902
|
-
}));
|
|
903
|
-
b.m("POST").h(headers).b(body);
|
|
904
|
-
return b.build();
|
|
905
|
-
};
|
|
906
|
-
exports.se_StartTestCommand = se_StartTestCommand;
|
|
907
|
-
const se_StopReplicationCommand = async (input, context) => {
|
|
908
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
909
|
-
const headers = {
|
|
910
|
-
"content-type": "application/json",
|
|
911
|
-
};
|
|
912
|
-
b.bp("/StopReplication");
|
|
913
|
-
let body;
|
|
914
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
915
|
-
accountID: [],
|
|
916
|
-
sourceServerID: [],
|
|
917
|
-
}));
|
|
918
|
-
b.m("POST").h(headers).b(body);
|
|
919
|
-
return b.build();
|
|
920
|
-
};
|
|
921
|
-
exports.se_StopReplicationCommand = se_StopReplicationCommand;
|
|
922
|
-
const se_TagResourceCommand = async (input, context) => {
|
|
923
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
924
|
-
const headers = {
|
|
925
|
-
"content-type": "application/json",
|
|
926
|
-
};
|
|
927
|
-
b.bp("/tags/{resourceArn}");
|
|
928
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
929
|
-
let body;
|
|
930
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
931
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
932
|
-
}));
|
|
933
|
-
b.m("POST").h(headers).b(body);
|
|
934
|
-
return b.build();
|
|
935
|
-
};
|
|
936
|
-
exports.se_TagResourceCommand = se_TagResourceCommand;
|
|
937
|
-
const se_TerminateTargetInstancesCommand = async (input, context) => {
|
|
938
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
939
|
-
const headers = {
|
|
940
|
-
"content-type": "application/json",
|
|
941
|
-
};
|
|
942
|
-
b.bp("/TerminateTargetInstances");
|
|
943
|
-
let body;
|
|
944
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
945
|
-
accountID: [],
|
|
946
|
-
sourceServerIDs: (_) => (0, smithy_client_1._json)(_),
|
|
947
|
-
tags: (_) => (0, smithy_client_1._json)(_),
|
|
948
|
-
}));
|
|
949
|
-
b.m("POST").h(headers).b(body);
|
|
950
|
-
return b.build();
|
|
951
|
-
};
|
|
952
|
-
exports.se_TerminateTargetInstancesCommand = se_TerminateTargetInstancesCommand;
|
|
953
|
-
const se_UnarchiveApplicationCommand = async (input, context) => {
|
|
954
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
955
|
-
const headers = {
|
|
956
|
-
"content-type": "application/json",
|
|
957
|
-
};
|
|
958
|
-
b.bp("/UnarchiveApplication");
|
|
959
|
-
let body;
|
|
960
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
961
|
-
accountID: [],
|
|
962
|
-
applicationID: [],
|
|
963
|
-
}));
|
|
964
|
-
b.m("POST").h(headers).b(body);
|
|
965
|
-
return b.build();
|
|
966
|
-
};
|
|
967
|
-
exports.se_UnarchiveApplicationCommand = se_UnarchiveApplicationCommand;
|
|
968
|
-
const se_UnarchiveWaveCommand = async (input, context) => {
|
|
969
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
970
|
-
const headers = {
|
|
971
|
-
"content-type": "application/json",
|
|
972
|
-
};
|
|
973
|
-
b.bp("/UnarchiveWave");
|
|
974
|
-
let body;
|
|
975
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
976
|
-
accountID: [],
|
|
977
|
-
waveID: [],
|
|
978
|
-
}));
|
|
979
|
-
b.m("POST").h(headers).b(body);
|
|
980
|
-
return b.build();
|
|
981
|
-
};
|
|
982
|
-
exports.se_UnarchiveWaveCommand = se_UnarchiveWaveCommand;
|
|
983
|
-
const se_UntagResourceCommand = async (input, context) => {
|
|
984
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
985
|
-
const headers = {};
|
|
986
|
-
b.bp("/tags/{resourceArn}");
|
|
987
|
-
b.p("resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
988
|
-
const query = (0, smithy_client_1.map)({
|
|
989
|
-
[_tK]: [
|
|
990
|
-
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
991
|
-
() => (input[_tK] || []).map((_entry) => _entry),
|
|
992
|
-
],
|
|
993
|
-
});
|
|
994
|
-
let body;
|
|
995
|
-
b.m("DELETE").h(headers).q(query).b(body);
|
|
996
|
-
return b.build();
|
|
997
|
-
};
|
|
998
|
-
exports.se_UntagResourceCommand = se_UntagResourceCommand;
|
|
999
|
-
const se_UpdateApplicationCommand = async (input, context) => {
|
|
1000
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1001
|
-
const headers = {
|
|
1002
|
-
"content-type": "application/json",
|
|
1003
|
-
};
|
|
1004
|
-
b.bp("/UpdateApplication");
|
|
1005
|
-
let body;
|
|
1006
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1007
|
-
accountID: [],
|
|
1008
|
-
applicationID: [],
|
|
1009
|
-
description: [],
|
|
1010
|
-
name: [],
|
|
1011
|
-
}));
|
|
1012
|
-
b.m("POST").h(headers).b(body);
|
|
1013
|
-
return b.build();
|
|
1014
|
-
};
|
|
1015
|
-
exports.se_UpdateApplicationCommand = se_UpdateApplicationCommand;
|
|
1016
|
-
const se_UpdateConnectorCommand = async (input, context) => {
|
|
1017
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1018
|
-
const headers = {
|
|
1019
|
-
"content-type": "application/json",
|
|
1020
|
-
};
|
|
1021
|
-
b.bp("/UpdateConnector");
|
|
1022
|
-
let body;
|
|
1023
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1024
|
-
connectorID: [],
|
|
1025
|
-
name: [],
|
|
1026
|
-
ssmCommandConfig: (_) => (0, smithy_client_1._json)(_),
|
|
1027
|
-
}));
|
|
1028
|
-
b.m("POST").h(headers).b(body);
|
|
1029
|
-
return b.build();
|
|
1030
|
-
};
|
|
1031
|
-
exports.se_UpdateConnectorCommand = se_UpdateConnectorCommand;
|
|
1032
|
-
const se_UpdateLaunchConfigurationCommand = async (input, context) => {
|
|
1033
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1034
|
-
const headers = {
|
|
1035
|
-
"content-type": "application/json",
|
|
1036
|
-
};
|
|
1037
|
-
b.bp("/UpdateLaunchConfiguration");
|
|
1038
|
-
let body;
|
|
1039
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1040
|
-
accountID: [],
|
|
1041
|
-
bootMode: [],
|
|
1042
|
-
copyPrivateIp: [],
|
|
1043
|
-
copyTags: [],
|
|
1044
|
-
enableMapAutoTagging: [],
|
|
1045
|
-
launchDisposition: [],
|
|
1046
|
-
licensing: (_) => (0, smithy_client_1._json)(_),
|
|
1047
|
-
mapAutoTaggingMpeID: [],
|
|
1048
|
-
name: [],
|
|
1049
|
-
postLaunchActions: (_) => (0, smithy_client_1._json)(_),
|
|
1050
|
-
sourceServerID: [],
|
|
1051
|
-
targetInstanceTypeRightSizingMethod: [],
|
|
1052
|
-
}));
|
|
1053
|
-
b.m("POST").h(headers).b(body);
|
|
1054
|
-
return b.build();
|
|
1055
|
-
};
|
|
1056
|
-
exports.se_UpdateLaunchConfigurationCommand = se_UpdateLaunchConfigurationCommand;
|
|
1057
|
-
const se_UpdateLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
1058
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1059
|
-
const headers = {
|
|
1060
|
-
"content-type": "application/json",
|
|
1061
|
-
};
|
|
1062
|
-
b.bp("/UpdateLaunchConfigurationTemplate");
|
|
1063
|
-
let body;
|
|
1064
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1065
|
-
associatePublicIpAddress: [],
|
|
1066
|
-
bootMode: [],
|
|
1067
|
-
copyPrivateIp: [],
|
|
1068
|
-
copyTags: [],
|
|
1069
|
-
enableMapAutoTagging: [],
|
|
1070
|
-
largeVolumeConf: (_) => (0, smithy_client_1._json)(_),
|
|
1071
|
-
launchConfigurationTemplateID: [],
|
|
1072
|
-
launchDisposition: [],
|
|
1073
|
-
licensing: (_) => (0, smithy_client_1._json)(_),
|
|
1074
|
-
mapAutoTaggingMpeID: [],
|
|
1075
|
-
postLaunchActions: (_) => (0, smithy_client_1._json)(_),
|
|
1076
|
-
smallVolumeConf: (_) => (0, smithy_client_1._json)(_),
|
|
1077
|
-
smallVolumeMaxSize: [],
|
|
1078
|
-
targetInstanceTypeRightSizingMethod: [],
|
|
1079
|
-
}));
|
|
1080
|
-
b.m("POST").h(headers).b(body);
|
|
1081
|
-
return b.build();
|
|
1082
|
-
};
|
|
1083
|
-
exports.se_UpdateLaunchConfigurationTemplateCommand = se_UpdateLaunchConfigurationTemplateCommand;
|
|
1084
|
-
const se_UpdateReplicationConfigurationCommand = async (input, context) => {
|
|
1085
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1086
|
-
const headers = {
|
|
1087
|
-
"content-type": "application/json",
|
|
1088
|
-
};
|
|
1089
|
-
b.bp("/UpdateReplicationConfiguration");
|
|
1090
|
-
let body;
|
|
1091
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1092
|
-
accountID: [],
|
|
1093
|
-
associateDefaultSecurityGroup: [],
|
|
1094
|
-
bandwidthThrottling: [],
|
|
1095
|
-
createPublicIP: [],
|
|
1096
|
-
dataPlaneRouting: [],
|
|
1097
|
-
defaultLargeStagingDiskType: [],
|
|
1098
|
-
ebsEncryption: [],
|
|
1099
|
-
ebsEncryptionKeyArn: [],
|
|
1100
|
-
name: [],
|
|
1101
|
-
replicatedDisks: (_) => (0, smithy_client_1._json)(_),
|
|
1102
|
-
replicationServerInstanceType: [],
|
|
1103
|
-
replicationServersSecurityGroupsIDs: (_) => (0, smithy_client_1._json)(_),
|
|
1104
|
-
sourceServerID: [],
|
|
1105
|
-
stagingAreaSubnetId: [],
|
|
1106
|
-
stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
|
|
1107
|
-
useDedicatedReplicationServer: [],
|
|
1108
|
-
useFipsEndpoint: [],
|
|
1109
|
-
}));
|
|
1110
|
-
b.m("POST").h(headers).b(body);
|
|
1111
|
-
return b.build();
|
|
1112
|
-
};
|
|
1113
|
-
exports.se_UpdateReplicationConfigurationCommand = se_UpdateReplicationConfigurationCommand;
|
|
1114
|
-
const se_UpdateReplicationConfigurationTemplateCommand = async (input, context) => {
|
|
1115
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1116
|
-
const headers = {
|
|
1117
|
-
"content-type": "application/json",
|
|
1118
|
-
};
|
|
1119
|
-
b.bp("/UpdateReplicationConfigurationTemplate");
|
|
1120
|
-
let body;
|
|
1121
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1122
|
-
arn: [],
|
|
1123
|
-
associateDefaultSecurityGroup: [],
|
|
1124
|
-
bandwidthThrottling: [],
|
|
1125
|
-
createPublicIP: [],
|
|
1126
|
-
dataPlaneRouting: [],
|
|
1127
|
-
defaultLargeStagingDiskType: [],
|
|
1128
|
-
ebsEncryption: [],
|
|
1129
|
-
ebsEncryptionKeyArn: [],
|
|
1130
|
-
replicationConfigurationTemplateID: [],
|
|
1131
|
-
replicationServerInstanceType: [],
|
|
1132
|
-
replicationServersSecurityGroupsIDs: (_) => (0, smithy_client_1._json)(_),
|
|
1133
|
-
stagingAreaSubnetId: [],
|
|
1134
|
-
stagingAreaTags: (_) => (0, smithy_client_1._json)(_),
|
|
1135
|
-
useDedicatedReplicationServer: [],
|
|
1136
|
-
useFipsEndpoint: [],
|
|
1137
|
-
}));
|
|
1138
|
-
b.m("POST").h(headers).b(body);
|
|
1139
|
-
return b.build();
|
|
1140
|
-
};
|
|
1141
|
-
exports.se_UpdateReplicationConfigurationTemplateCommand = se_UpdateReplicationConfigurationTemplateCommand;
|
|
1142
|
-
const se_UpdateSourceServerCommand = async (input, context) => {
|
|
1143
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1144
|
-
const headers = {
|
|
1145
|
-
"content-type": "application/json",
|
|
1146
|
-
};
|
|
1147
|
-
b.bp("/UpdateSourceServer");
|
|
1148
|
-
let body;
|
|
1149
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1150
|
-
accountID: [],
|
|
1151
|
-
connectorAction: (_) => (0, smithy_client_1._json)(_),
|
|
1152
|
-
sourceServerID: [],
|
|
1153
|
-
}));
|
|
1154
|
-
b.m("POST").h(headers).b(body);
|
|
1155
|
-
return b.build();
|
|
1156
|
-
};
|
|
1157
|
-
exports.se_UpdateSourceServerCommand = se_UpdateSourceServerCommand;
|
|
1158
|
-
const se_UpdateSourceServerReplicationTypeCommand = async (input, context) => {
|
|
1159
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1160
|
-
const headers = {
|
|
1161
|
-
"content-type": "application/json",
|
|
1162
|
-
};
|
|
1163
|
-
b.bp("/UpdateSourceServerReplicationType");
|
|
1164
|
-
let body;
|
|
1165
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1166
|
-
accountID: [],
|
|
1167
|
-
replicationType: [],
|
|
1168
|
-
sourceServerID: [],
|
|
1169
|
-
}));
|
|
1170
|
-
b.m("POST").h(headers).b(body);
|
|
1171
|
-
return b.build();
|
|
1172
|
-
};
|
|
1173
|
-
exports.se_UpdateSourceServerReplicationTypeCommand = se_UpdateSourceServerReplicationTypeCommand;
|
|
1174
|
-
const se_UpdateWaveCommand = async (input, context) => {
|
|
1175
|
-
const b = (0, core_1.requestBuilder)(input, context);
|
|
1176
|
-
const headers = {
|
|
1177
|
-
"content-type": "application/json",
|
|
1178
|
-
};
|
|
1179
|
-
b.bp("/UpdateWave");
|
|
1180
|
-
let body;
|
|
1181
|
-
body = JSON.stringify((0, smithy_client_1.take)(input, {
|
|
1182
|
-
accountID: [],
|
|
1183
|
-
description: [],
|
|
1184
|
-
name: [],
|
|
1185
|
-
waveID: [],
|
|
1186
|
-
}));
|
|
1187
|
-
b.m("POST").h(headers).b(body);
|
|
1188
|
-
return b.build();
|
|
1189
|
-
};
|
|
1190
|
-
exports.se_UpdateWaveCommand = se_UpdateWaveCommand;
|
|
1191
|
-
const de_ArchiveApplicationCommand = async (output, context) => {
|
|
1192
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1193
|
-
return de_ArchiveApplicationCommandError(output, context);
|
|
1194
|
-
}
|
|
1195
|
-
const contents = (0, smithy_client_1.map)({
|
|
1196
|
-
$metadata: deserializeMetadata(output),
|
|
1197
|
-
});
|
|
1198
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1199
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1200
|
-
applicationAggregatedStatus: smithy_client_1._json,
|
|
1201
|
-
applicationID: smithy_client_1.expectString,
|
|
1202
|
-
arn: smithy_client_1.expectString,
|
|
1203
|
-
creationDateTime: smithy_client_1.expectString,
|
|
1204
|
-
description: smithy_client_1.expectString,
|
|
1205
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
1206
|
-
lastModifiedDateTime: smithy_client_1.expectString,
|
|
1207
|
-
name: smithy_client_1.expectString,
|
|
1208
|
-
tags: smithy_client_1._json,
|
|
1209
|
-
waveID: smithy_client_1.expectString,
|
|
1210
|
-
});
|
|
1211
|
-
Object.assign(contents, doc);
|
|
1212
|
-
return contents;
|
|
1213
|
-
};
|
|
1214
|
-
exports.de_ArchiveApplicationCommand = de_ArchiveApplicationCommand;
|
|
1215
|
-
const de_ArchiveApplicationCommandError = async (output, context) => {
|
|
1216
|
-
const parsedOutput = {
|
|
1217
|
-
...output,
|
|
1218
|
-
body: await parseErrorBody(output.body, context),
|
|
1219
|
-
};
|
|
1220
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1221
|
-
switch (errorCode) {
|
|
1222
|
-
case "ConflictException":
|
|
1223
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1224
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1225
|
-
case "ResourceNotFoundException":
|
|
1226
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1227
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1228
|
-
case "ServiceQuotaExceededException":
|
|
1229
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1230
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1231
|
-
case "UninitializedAccountException":
|
|
1232
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1233
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1234
|
-
default:
|
|
1235
|
-
const parsedBody = parsedOutput.body;
|
|
1236
|
-
return throwDefaultError({
|
|
1237
|
-
output,
|
|
1238
|
-
parsedBody,
|
|
1239
|
-
errorCode,
|
|
1240
|
-
});
|
|
1241
|
-
}
|
|
1242
|
-
};
|
|
1243
|
-
const de_ArchiveWaveCommand = async (output, context) => {
|
|
1244
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1245
|
-
return de_ArchiveWaveCommandError(output, context);
|
|
1246
|
-
}
|
|
1247
|
-
const contents = (0, smithy_client_1.map)({
|
|
1248
|
-
$metadata: deserializeMetadata(output),
|
|
1249
|
-
});
|
|
1250
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1251
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1252
|
-
arn: smithy_client_1.expectString,
|
|
1253
|
-
creationDateTime: smithy_client_1.expectString,
|
|
1254
|
-
description: smithy_client_1.expectString,
|
|
1255
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
1256
|
-
lastModifiedDateTime: smithy_client_1.expectString,
|
|
1257
|
-
name: smithy_client_1.expectString,
|
|
1258
|
-
tags: smithy_client_1._json,
|
|
1259
|
-
waveAggregatedStatus: smithy_client_1._json,
|
|
1260
|
-
waveID: smithy_client_1.expectString,
|
|
1261
|
-
});
|
|
1262
|
-
Object.assign(contents, doc);
|
|
1263
|
-
return contents;
|
|
1264
|
-
};
|
|
1265
|
-
exports.de_ArchiveWaveCommand = de_ArchiveWaveCommand;
|
|
1266
|
-
const de_ArchiveWaveCommandError = async (output, context) => {
|
|
1267
|
-
const parsedOutput = {
|
|
1268
|
-
...output,
|
|
1269
|
-
body: await parseErrorBody(output.body, context),
|
|
1270
|
-
};
|
|
1271
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1272
|
-
switch (errorCode) {
|
|
1273
|
-
case "ConflictException":
|
|
1274
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1275
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1276
|
-
case "ResourceNotFoundException":
|
|
1277
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1278
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1279
|
-
case "ServiceQuotaExceededException":
|
|
1280
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1281
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1282
|
-
case "UninitializedAccountException":
|
|
1283
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1284
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1285
|
-
default:
|
|
1286
|
-
const parsedBody = parsedOutput.body;
|
|
1287
|
-
return throwDefaultError({
|
|
1288
|
-
output,
|
|
1289
|
-
parsedBody,
|
|
1290
|
-
errorCode,
|
|
1291
|
-
});
|
|
1292
|
-
}
|
|
1293
|
-
};
|
|
1294
|
-
const de_AssociateApplicationsCommand = async (output, context) => {
|
|
1295
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1296
|
-
return de_AssociateApplicationsCommandError(output, context);
|
|
1297
|
-
}
|
|
1298
|
-
const contents = (0, smithy_client_1.map)({
|
|
1299
|
-
$metadata: deserializeMetadata(output),
|
|
1300
|
-
});
|
|
1301
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1302
|
-
return contents;
|
|
1303
|
-
};
|
|
1304
|
-
exports.de_AssociateApplicationsCommand = de_AssociateApplicationsCommand;
|
|
1305
|
-
const de_AssociateApplicationsCommandError = async (output, context) => {
|
|
1306
|
-
const parsedOutput = {
|
|
1307
|
-
...output,
|
|
1308
|
-
body: await parseErrorBody(output.body, context),
|
|
1309
|
-
};
|
|
1310
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1311
|
-
switch (errorCode) {
|
|
1312
|
-
case "ConflictException":
|
|
1313
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1314
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1315
|
-
case "ResourceNotFoundException":
|
|
1316
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1317
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1318
|
-
case "ServiceQuotaExceededException":
|
|
1319
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1320
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1321
|
-
case "UninitializedAccountException":
|
|
1322
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1323
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1324
|
-
default:
|
|
1325
|
-
const parsedBody = parsedOutput.body;
|
|
1326
|
-
return throwDefaultError({
|
|
1327
|
-
output,
|
|
1328
|
-
parsedBody,
|
|
1329
|
-
errorCode,
|
|
1330
|
-
});
|
|
1331
|
-
}
|
|
1332
|
-
};
|
|
1333
|
-
const de_AssociateSourceServersCommand = async (output, context) => {
|
|
1334
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1335
|
-
return de_AssociateSourceServersCommandError(output, context);
|
|
1336
|
-
}
|
|
1337
|
-
const contents = (0, smithy_client_1.map)({
|
|
1338
|
-
$metadata: deserializeMetadata(output),
|
|
1339
|
-
});
|
|
1340
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1341
|
-
return contents;
|
|
1342
|
-
};
|
|
1343
|
-
exports.de_AssociateSourceServersCommand = de_AssociateSourceServersCommand;
|
|
1344
|
-
const de_AssociateSourceServersCommandError = async (output, context) => {
|
|
1345
|
-
const parsedOutput = {
|
|
1346
|
-
...output,
|
|
1347
|
-
body: await parseErrorBody(output.body, context),
|
|
1348
|
-
};
|
|
1349
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1350
|
-
switch (errorCode) {
|
|
1351
|
-
case "ConflictException":
|
|
1352
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1353
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1354
|
-
case "ResourceNotFoundException":
|
|
1355
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1356
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1357
|
-
case "ServiceQuotaExceededException":
|
|
1358
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1359
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1360
|
-
case "UninitializedAccountException":
|
|
1361
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1362
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1363
|
-
default:
|
|
1364
|
-
const parsedBody = parsedOutput.body;
|
|
1365
|
-
return throwDefaultError({
|
|
1366
|
-
output,
|
|
1367
|
-
parsedBody,
|
|
1368
|
-
errorCode,
|
|
1369
|
-
});
|
|
1370
|
-
}
|
|
1371
|
-
};
|
|
1372
|
-
const de_ChangeServerLifeCycleStateCommand = async (output, context) => {
|
|
1373
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1374
|
-
return de_ChangeServerLifeCycleStateCommandError(output, context);
|
|
1375
|
-
}
|
|
1376
|
-
const contents = (0, smithy_client_1.map)({
|
|
1377
|
-
$metadata: deserializeMetadata(output),
|
|
1378
|
-
});
|
|
1379
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1380
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1381
|
-
applicationID: smithy_client_1.expectString,
|
|
1382
|
-
arn: smithy_client_1.expectString,
|
|
1383
|
-
connectorAction: smithy_client_1._json,
|
|
1384
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
1385
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
1386
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
1387
|
-
launchedInstance: smithy_client_1._json,
|
|
1388
|
-
lifeCycle: smithy_client_1._json,
|
|
1389
|
-
replicationType: smithy_client_1.expectString,
|
|
1390
|
-
sourceProperties: smithy_client_1._json,
|
|
1391
|
-
sourceServerID: smithy_client_1.expectString,
|
|
1392
|
-
tags: smithy_client_1._json,
|
|
1393
|
-
userProvidedID: smithy_client_1.expectString,
|
|
1394
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
1395
|
-
});
|
|
1396
|
-
Object.assign(contents, doc);
|
|
1397
|
-
return contents;
|
|
1398
|
-
};
|
|
1399
|
-
exports.de_ChangeServerLifeCycleStateCommand = de_ChangeServerLifeCycleStateCommand;
|
|
1400
|
-
const de_ChangeServerLifeCycleStateCommandError = async (output, context) => {
|
|
1401
|
-
const parsedOutput = {
|
|
1402
|
-
...output,
|
|
1403
|
-
body: await parseErrorBody(output.body, context),
|
|
1404
|
-
};
|
|
1405
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1406
|
-
switch (errorCode) {
|
|
1407
|
-
case "ConflictException":
|
|
1408
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1409
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1410
|
-
case "ResourceNotFoundException":
|
|
1411
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1412
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1413
|
-
case "UninitializedAccountException":
|
|
1414
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1415
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1416
|
-
case "ValidationException":
|
|
1417
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1418
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1419
|
-
default:
|
|
1420
|
-
const parsedBody = parsedOutput.body;
|
|
1421
|
-
return throwDefaultError({
|
|
1422
|
-
output,
|
|
1423
|
-
parsedBody,
|
|
1424
|
-
errorCode,
|
|
1425
|
-
});
|
|
1426
|
-
}
|
|
1427
|
-
};
|
|
1428
|
-
const de_CreateApplicationCommand = async (output, context) => {
|
|
1429
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1430
|
-
return de_CreateApplicationCommandError(output, context);
|
|
1431
|
-
}
|
|
1432
|
-
const contents = (0, smithy_client_1.map)({
|
|
1433
|
-
$metadata: deserializeMetadata(output),
|
|
1434
|
-
});
|
|
1435
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1436
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1437
|
-
applicationAggregatedStatus: smithy_client_1._json,
|
|
1438
|
-
applicationID: smithy_client_1.expectString,
|
|
1439
|
-
arn: smithy_client_1.expectString,
|
|
1440
|
-
creationDateTime: smithy_client_1.expectString,
|
|
1441
|
-
description: smithy_client_1.expectString,
|
|
1442
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
1443
|
-
lastModifiedDateTime: smithy_client_1.expectString,
|
|
1444
|
-
name: smithy_client_1.expectString,
|
|
1445
|
-
tags: smithy_client_1._json,
|
|
1446
|
-
waveID: smithy_client_1.expectString,
|
|
1447
|
-
});
|
|
1448
|
-
Object.assign(contents, doc);
|
|
1449
|
-
return contents;
|
|
1450
|
-
};
|
|
1451
|
-
exports.de_CreateApplicationCommand = de_CreateApplicationCommand;
|
|
1452
|
-
const de_CreateApplicationCommandError = async (output, context) => {
|
|
1453
|
-
const parsedOutput = {
|
|
1454
|
-
...output,
|
|
1455
|
-
body: await parseErrorBody(output.body, context),
|
|
1456
|
-
};
|
|
1457
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1458
|
-
switch (errorCode) {
|
|
1459
|
-
case "ConflictException":
|
|
1460
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1461
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1462
|
-
case "ServiceQuotaExceededException":
|
|
1463
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1464
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1465
|
-
case "UninitializedAccountException":
|
|
1466
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1467
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1468
|
-
default:
|
|
1469
|
-
const parsedBody = parsedOutput.body;
|
|
1470
|
-
return throwDefaultError({
|
|
1471
|
-
output,
|
|
1472
|
-
parsedBody,
|
|
1473
|
-
errorCode,
|
|
1474
|
-
});
|
|
1475
|
-
}
|
|
1476
|
-
};
|
|
1477
|
-
const de_CreateConnectorCommand = async (output, context) => {
|
|
1478
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1479
|
-
return de_CreateConnectorCommandError(output, context);
|
|
1480
|
-
}
|
|
1481
|
-
const contents = (0, smithy_client_1.map)({
|
|
1482
|
-
$metadata: deserializeMetadata(output),
|
|
1483
|
-
});
|
|
1484
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1485
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1486
|
-
arn: smithy_client_1.expectString,
|
|
1487
|
-
connectorID: smithy_client_1.expectString,
|
|
1488
|
-
name: smithy_client_1.expectString,
|
|
1489
|
-
ssmCommandConfig: smithy_client_1._json,
|
|
1490
|
-
ssmInstanceID: smithy_client_1.expectString,
|
|
1491
|
-
tags: smithy_client_1._json,
|
|
1492
|
-
});
|
|
1493
|
-
Object.assign(contents, doc);
|
|
1494
|
-
return contents;
|
|
1495
|
-
};
|
|
1496
|
-
exports.de_CreateConnectorCommand = de_CreateConnectorCommand;
|
|
1497
|
-
const de_CreateConnectorCommandError = async (output, context) => {
|
|
1498
|
-
const parsedOutput = {
|
|
1499
|
-
...output,
|
|
1500
|
-
body: await parseErrorBody(output.body, context),
|
|
1501
|
-
};
|
|
1502
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1503
|
-
switch (errorCode) {
|
|
1504
|
-
case "UninitializedAccountException":
|
|
1505
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1506
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1507
|
-
case "ValidationException":
|
|
1508
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1509
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1510
|
-
default:
|
|
1511
|
-
const parsedBody = parsedOutput.body;
|
|
1512
|
-
return throwDefaultError({
|
|
1513
|
-
output,
|
|
1514
|
-
parsedBody,
|
|
1515
|
-
errorCode,
|
|
1516
|
-
});
|
|
1517
|
-
}
|
|
1518
|
-
};
|
|
1519
|
-
const de_CreateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
1520
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1521
|
-
return de_CreateLaunchConfigurationTemplateCommandError(output, context);
|
|
1522
|
-
}
|
|
1523
|
-
const contents = (0, smithy_client_1.map)({
|
|
1524
|
-
$metadata: deserializeMetadata(output),
|
|
1525
|
-
});
|
|
1526
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1527
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1528
|
-
arn: smithy_client_1.expectString,
|
|
1529
|
-
associatePublicIpAddress: smithy_client_1.expectBoolean,
|
|
1530
|
-
bootMode: smithy_client_1.expectString,
|
|
1531
|
-
copyPrivateIp: smithy_client_1.expectBoolean,
|
|
1532
|
-
copyTags: smithy_client_1.expectBoolean,
|
|
1533
|
-
ec2LaunchTemplateID: smithy_client_1.expectString,
|
|
1534
|
-
enableMapAutoTagging: smithy_client_1.expectBoolean,
|
|
1535
|
-
largeVolumeConf: smithy_client_1._json,
|
|
1536
|
-
launchConfigurationTemplateID: smithy_client_1.expectString,
|
|
1537
|
-
launchDisposition: smithy_client_1.expectString,
|
|
1538
|
-
licensing: smithy_client_1._json,
|
|
1539
|
-
mapAutoTaggingMpeID: smithy_client_1.expectString,
|
|
1540
|
-
postLaunchActions: smithy_client_1._json,
|
|
1541
|
-
smallVolumeConf: smithy_client_1._json,
|
|
1542
|
-
smallVolumeMaxSize: smithy_client_1.expectLong,
|
|
1543
|
-
tags: smithy_client_1._json,
|
|
1544
|
-
targetInstanceTypeRightSizingMethod: smithy_client_1.expectString,
|
|
1545
|
-
});
|
|
1546
|
-
Object.assign(contents, doc);
|
|
1547
|
-
return contents;
|
|
1548
|
-
};
|
|
1549
|
-
exports.de_CreateLaunchConfigurationTemplateCommand = de_CreateLaunchConfigurationTemplateCommand;
|
|
1550
|
-
const de_CreateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
1551
|
-
const parsedOutput = {
|
|
1552
|
-
...output,
|
|
1553
|
-
body: await parseErrorBody(output.body, context),
|
|
1554
|
-
};
|
|
1555
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1556
|
-
switch (errorCode) {
|
|
1557
|
-
case "AccessDeniedException":
|
|
1558
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
1559
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1560
|
-
case "UninitializedAccountException":
|
|
1561
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1562
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1563
|
-
case "ValidationException":
|
|
1564
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1565
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1566
|
-
default:
|
|
1567
|
-
const parsedBody = parsedOutput.body;
|
|
1568
|
-
return throwDefaultError({
|
|
1569
|
-
output,
|
|
1570
|
-
parsedBody,
|
|
1571
|
-
errorCode,
|
|
1572
|
-
});
|
|
1573
|
-
}
|
|
1574
|
-
};
|
|
1575
|
-
const de_CreateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
1576
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1577
|
-
return de_CreateReplicationConfigurationTemplateCommandError(output, context);
|
|
1578
|
-
}
|
|
1579
|
-
const contents = (0, smithy_client_1.map)({
|
|
1580
|
-
$metadata: deserializeMetadata(output),
|
|
1581
|
-
});
|
|
1582
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1583
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1584
|
-
arn: smithy_client_1.expectString,
|
|
1585
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean,
|
|
1586
|
-
bandwidthThrottling: smithy_client_1.expectLong,
|
|
1587
|
-
createPublicIP: smithy_client_1.expectBoolean,
|
|
1588
|
-
dataPlaneRouting: smithy_client_1.expectString,
|
|
1589
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString,
|
|
1590
|
-
ebsEncryption: smithy_client_1.expectString,
|
|
1591
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString,
|
|
1592
|
-
replicationConfigurationTemplateID: smithy_client_1.expectString,
|
|
1593
|
-
replicationServerInstanceType: smithy_client_1.expectString,
|
|
1594
|
-
replicationServersSecurityGroupsIDs: smithy_client_1._json,
|
|
1595
|
-
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
1596
|
-
stagingAreaTags: smithy_client_1._json,
|
|
1597
|
-
tags: smithy_client_1._json,
|
|
1598
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
1599
|
-
useFipsEndpoint: smithy_client_1.expectBoolean,
|
|
1600
|
-
});
|
|
1601
|
-
Object.assign(contents, doc);
|
|
1602
|
-
return contents;
|
|
1603
|
-
};
|
|
1604
|
-
exports.de_CreateReplicationConfigurationTemplateCommand = de_CreateReplicationConfigurationTemplateCommand;
|
|
1605
|
-
const de_CreateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
1606
|
-
const parsedOutput = {
|
|
1607
|
-
...output,
|
|
1608
|
-
body: await parseErrorBody(output.body, context),
|
|
1609
|
-
};
|
|
1610
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1611
|
-
switch (errorCode) {
|
|
1612
|
-
case "AccessDeniedException":
|
|
1613
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
1614
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
1615
|
-
case "UninitializedAccountException":
|
|
1616
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1617
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1618
|
-
case "ValidationException":
|
|
1619
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1620
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1621
|
-
default:
|
|
1622
|
-
const parsedBody = parsedOutput.body;
|
|
1623
|
-
return throwDefaultError({
|
|
1624
|
-
output,
|
|
1625
|
-
parsedBody,
|
|
1626
|
-
errorCode,
|
|
1627
|
-
});
|
|
1628
|
-
}
|
|
1629
|
-
};
|
|
1630
|
-
const de_CreateWaveCommand = async (output, context) => {
|
|
1631
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1632
|
-
return de_CreateWaveCommandError(output, context);
|
|
1633
|
-
}
|
|
1634
|
-
const contents = (0, smithy_client_1.map)({
|
|
1635
|
-
$metadata: deserializeMetadata(output),
|
|
1636
|
-
});
|
|
1637
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1638
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1639
|
-
arn: smithy_client_1.expectString,
|
|
1640
|
-
creationDateTime: smithy_client_1.expectString,
|
|
1641
|
-
description: smithy_client_1.expectString,
|
|
1642
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
1643
|
-
lastModifiedDateTime: smithy_client_1.expectString,
|
|
1644
|
-
name: smithy_client_1.expectString,
|
|
1645
|
-
tags: smithy_client_1._json,
|
|
1646
|
-
waveAggregatedStatus: smithy_client_1._json,
|
|
1647
|
-
waveID: smithy_client_1.expectString,
|
|
1648
|
-
});
|
|
1649
|
-
Object.assign(contents, doc);
|
|
1650
|
-
return contents;
|
|
1651
|
-
};
|
|
1652
|
-
exports.de_CreateWaveCommand = de_CreateWaveCommand;
|
|
1653
|
-
const de_CreateWaveCommandError = async (output, context) => {
|
|
1654
|
-
const parsedOutput = {
|
|
1655
|
-
...output,
|
|
1656
|
-
body: await parseErrorBody(output.body, context),
|
|
1657
|
-
};
|
|
1658
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1659
|
-
switch (errorCode) {
|
|
1660
|
-
case "ConflictException":
|
|
1661
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1662
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1663
|
-
case "ServiceQuotaExceededException":
|
|
1664
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1665
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
1666
|
-
case "UninitializedAccountException":
|
|
1667
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1668
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1669
|
-
default:
|
|
1670
|
-
const parsedBody = parsedOutput.body;
|
|
1671
|
-
return throwDefaultError({
|
|
1672
|
-
output,
|
|
1673
|
-
parsedBody,
|
|
1674
|
-
errorCode,
|
|
1675
|
-
});
|
|
1676
|
-
}
|
|
1677
|
-
};
|
|
1678
|
-
const de_DeleteApplicationCommand = async (output, context) => {
|
|
1679
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1680
|
-
return de_DeleteApplicationCommandError(output, context);
|
|
1681
|
-
}
|
|
1682
|
-
const contents = (0, smithy_client_1.map)({
|
|
1683
|
-
$metadata: deserializeMetadata(output),
|
|
1684
|
-
});
|
|
1685
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1686
|
-
return contents;
|
|
1687
|
-
};
|
|
1688
|
-
exports.de_DeleteApplicationCommand = de_DeleteApplicationCommand;
|
|
1689
|
-
const de_DeleteApplicationCommandError = async (output, context) => {
|
|
1690
|
-
const parsedOutput = {
|
|
1691
|
-
...output,
|
|
1692
|
-
body: await parseErrorBody(output.body, context),
|
|
1693
|
-
};
|
|
1694
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1695
|
-
switch (errorCode) {
|
|
1696
|
-
case "ConflictException":
|
|
1697
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1698
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1699
|
-
case "ResourceNotFoundException":
|
|
1700
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1701
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1702
|
-
case "UninitializedAccountException":
|
|
1703
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1704
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1705
|
-
default:
|
|
1706
|
-
const parsedBody = parsedOutput.body;
|
|
1707
|
-
return throwDefaultError({
|
|
1708
|
-
output,
|
|
1709
|
-
parsedBody,
|
|
1710
|
-
errorCode,
|
|
1711
|
-
});
|
|
1712
|
-
}
|
|
1713
|
-
};
|
|
1714
|
-
const de_DeleteConnectorCommand = async (output, context) => {
|
|
1715
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1716
|
-
return de_DeleteConnectorCommandError(output, context);
|
|
1717
|
-
}
|
|
1718
|
-
const contents = (0, smithy_client_1.map)({
|
|
1719
|
-
$metadata: deserializeMetadata(output),
|
|
1720
|
-
});
|
|
1721
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1722
|
-
return contents;
|
|
1723
|
-
};
|
|
1724
|
-
exports.de_DeleteConnectorCommand = de_DeleteConnectorCommand;
|
|
1725
|
-
const de_DeleteConnectorCommandError = async (output, context) => {
|
|
1726
|
-
const parsedOutput = {
|
|
1727
|
-
...output,
|
|
1728
|
-
body: await parseErrorBody(output.body, context),
|
|
1729
|
-
};
|
|
1730
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1731
|
-
switch (errorCode) {
|
|
1732
|
-
case "ResourceNotFoundException":
|
|
1733
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1734
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1735
|
-
case "UninitializedAccountException":
|
|
1736
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1737
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1738
|
-
case "ValidationException":
|
|
1739
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1740
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1741
|
-
default:
|
|
1742
|
-
const parsedBody = parsedOutput.body;
|
|
1743
|
-
return throwDefaultError({
|
|
1744
|
-
output,
|
|
1745
|
-
parsedBody,
|
|
1746
|
-
errorCode,
|
|
1747
|
-
});
|
|
1748
|
-
}
|
|
1749
|
-
};
|
|
1750
|
-
const de_DeleteJobCommand = async (output, context) => {
|
|
1751
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1752
|
-
return de_DeleteJobCommandError(output, context);
|
|
1753
|
-
}
|
|
1754
|
-
const contents = (0, smithy_client_1.map)({
|
|
1755
|
-
$metadata: deserializeMetadata(output),
|
|
1756
|
-
});
|
|
1757
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1758
|
-
return contents;
|
|
1759
|
-
};
|
|
1760
|
-
exports.de_DeleteJobCommand = de_DeleteJobCommand;
|
|
1761
|
-
const de_DeleteJobCommandError = async (output, context) => {
|
|
1762
|
-
const parsedOutput = {
|
|
1763
|
-
...output,
|
|
1764
|
-
body: await parseErrorBody(output.body, context),
|
|
1765
|
-
};
|
|
1766
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1767
|
-
switch (errorCode) {
|
|
1768
|
-
case "ConflictException":
|
|
1769
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1770
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1771
|
-
case "ResourceNotFoundException":
|
|
1772
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1773
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1774
|
-
case "UninitializedAccountException":
|
|
1775
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1776
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1777
|
-
default:
|
|
1778
|
-
const parsedBody = parsedOutput.body;
|
|
1779
|
-
return throwDefaultError({
|
|
1780
|
-
output,
|
|
1781
|
-
parsedBody,
|
|
1782
|
-
errorCode,
|
|
1783
|
-
});
|
|
1784
|
-
}
|
|
1785
|
-
};
|
|
1786
|
-
const de_DeleteLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
1787
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1788
|
-
return de_DeleteLaunchConfigurationTemplateCommandError(output, context);
|
|
1789
|
-
}
|
|
1790
|
-
const contents = (0, smithy_client_1.map)({
|
|
1791
|
-
$metadata: deserializeMetadata(output),
|
|
1792
|
-
});
|
|
1793
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1794
|
-
return contents;
|
|
1795
|
-
};
|
|
1796
|
-
exports.de_DeleteLaunchConfigurationTemplateCommand = de_DeleteLaunchConfigurationTemplateCommand;
|
|
1797
|
-
const de_DeleteLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
1798
|
-
const parsedOutput = {
|
|
1799
|
-
...output,
|
|
1800
|
-
body: await parseErrorBody(output.body, context),
|
|
1801
|
-
};
|
|
1802
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1803
|
-
switch (errorCode) {
|
|
1804
|
-
case "ConflictException":
|
|
1805
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1806
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1807
|
-
case "ResourceNotFoundException":
|
|
1808
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1809
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1810
|
-
case "UninitializedAccountException":
|
|
1811
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1812
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1813
|
-
default:
|
|
1814
|
-
const parsedBody = parsedOutput.body;
|
|
1815
|
-
return throwDefaultError({
|
|
1816
|
-
output,
|
|
1817
|
-
parsedBody,
|
|
1818
|
-
errorCode,
|
|
1819
|
-
});
|
|
1820
|
-
}
|
|
1821
|
-
};
|
|
1822
|
-
const de_DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
1823
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1824
|
-
return de_DeleteReplicationConfigurationTemplateCommandError(output, context);
|
|
1825
|
-
}
|
|
1826
|
-
const contents = (0, smithy_client_1.map)({
|
|
1827
|
-
$metadata: deserializeMetadata(output),
|
|
1828
|
-
});
|
|
1829
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1830
|
-
return contents;
|
|
1831
|
-
};
|
|
1832
|
-
exports.de_DeleteReplicationConfigurationTemplateCommand = de_DeleteReplicationConfigurationTemplateCommand;
|
|
1833
|
-
const de_DeleteReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
1834
|
-
const parsedOutput = {
|
|
1835
|
-
...output,
|
|
1836
|
-
body: await parseErrorBody(output.body, context),
|
|
1837
|
-
};
|
|
1838
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1839
|
-
switch (errorCode) {
|
|
1840
|
-
case "ConflictException":
|
|
1841
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1842
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1843
|
-
case "ResourceNotFoundException":
|
|
1844
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1846
|
-
case "UninitializedAccountException":
|
|
1847
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1848
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1849
|
-
default:
|
|
1850
|
-
const parsedBody = parsedOutput.body;
|
|
1851
|
-
return throwDefaultError({
|
|
1852
|
-
output,
|
|
1853
|
-
parsedBody,
|
|
1854
|
-
errorCode,
|
|
1855
|
-
});
|
|
1856
|
-
}
|
|
1857
|
-
};
|
|
1858
|
-
const de_DeleteSourceServerCommand = async (output, context) => {
|
|
1859
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1860
|
-
return de_DeleteSourceServerCommandError(output, context);
|
|
1861
|
-
}
|
|
1862
|
-
const contents = (0, smithy_client_1.map)({
|
|
1863
|
-
$metadata: deserializeMetadata(output),
|
|
1864
|
-
});
|
|
1865
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1866
|
-
return contents;
|
|
1867
|
-
};
|
|
1868
|
-
exports.de_DeleteSourceServerCommand = de_DeleteSourceServerCommand;
|
|
1869
|
-
const de_DeleteSourceServerCommandError = async (output, context) => {
|
|
1870
|
-
const parsedOutput = {
|
|
1871
|
-
...output,
|
|
1872
|
-
body: await parseErrorBody(output.body, context),
|
|
1873
|
-
};
|
|
1874
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1875
|
-
switch (errorCode) {
|
|
1876
|
-
case "ConflictException":
|
|
1877
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1878
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1879
|
-
case "ResourceNotFoundException":
|
|
1880
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1881
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1882
|
-
case "UninitializedAccountException":
|
|
1883
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1884
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1885
|
-
default:
|
|
1886
|
-
const parsedBody = parsedOutput.body;
|
|
1887
|
-
return throwDefaultError({
|
|
1888
|
-
output,
|
|
1889
|
-
parsedBody,
|
|
1890
|
-
errorCode,
|
|
1891
|
-
});
|
|
1892
|
-
}
|
|
1893
|
-
};
|
|
1894
|
-
const de_DeleteVcenterClientCommand = async (output, context) => {
|
|
1895
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1896
|
-
return de_DeleteVcenterClientCommandError(output, context);
|
|
1897
|
-
}
|
|
1898
|
-
const contents = (0, smithy_client_1.map)({
|
|
1899
|
-
$metadata: deserializeMetadata(output),
|
|
1900
|
-
});
|
|
1901
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1902
|
-
return contents;
|
|
1903
|
-
};
|
|
1904
|
-
exports.de_DeleteVcenterClientCommand = de_DeleteVcenterClientCommand;
|
|
1905
|
-
const de_DeleteVcenterClientCommandError = async (output, context) => {
|
|
1906
|
-
const parsedOutput = {
|
|
1907
|
-
...output,
|
|
1908
|
-
body: await parseErrorBody(output.body, context),
|
|
1909
|
-
};
|
|
1910
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1911
|
-
switch (errorCode) {
|
|
1912
|
-
case "ResourceNotFoundException":
|
|
1913
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1914
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1915
|
-
case "UninitializedAccountException":
|
|
1916
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1917
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1918
|
-
case "ValidationException":
|
|
1919
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1920
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1921
|
-
default:
|
|
1922
|
-
const parsedBody = parsedOutput.body;
|
|
1923
|
-
return throwDefaultError({
|
|
1924
|
-
output,
|
|
1925
|
-
parsedBody,
|
|
1926
|
-
errorCode,
|
|
1927
|
-
});
|
|
1928
|
-
}
|
|
1929
|
-
};
|
|
1930
|
-
const de_DeleteWaveCommand = async (output, context) => {
|
|
1931
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1932
|
-
return de_DeleteWaveCommandError(output, context);
|
|
1933
|
-
}
|
|
1934
|
-
const contents = (0, smithy_client_1.map)({
|
|
1935
|
-
$metadata: deserializeMetadata(output),
|
|
1936
|
-
});
|
|
1937
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
1938
|
-
return contents;
|
|
1939
|
-
};
|
|
1940
|
-
exports.de_DeleteWaveCommand = de_DeleteWaveCommand;
|
|
1941
|
-
const de_DeleteWaveCommandError = async (output, context) => {
|
|
1942
|
-
const parsedOutput = {
|
|
1943
|
-
...output,
|
|
1944
|
-
body: await parseErrorBody(output.body, context),
|
|
1945
|
-
};
|
|
1946
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1947
|
-
switch (errorCode) {
|
|
1948
|
-
case "ConflictException":
|
|
1949
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1950
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
1951
|
-
case "ResourceNotFoundException":
|
|
1952
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1953
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
1954
|
-
case "UninitializedAccountException":
|
|
1955
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1956
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1957
|
-
default:
|
|
1958
|
-
const parsedBody = parsedOutput.body;
|
|
1959
|
-
return throwDefaultError({
|
|
1960
|
-
output,
|
|
1961
|
-
parsedBody,
|
|
1962
|
-
errorCode,
|
|
1963
|
-
});
|
|
1964
|
-
}
|
|
1965
|
-
};
|
|
1966
|
-
const de_DescribeJobLogItemsCommand = async (output, context) => {
|
|
1967
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1968
|
-
return de_DescribeJobLogItemsCommandError(output, context);
|
|
1969
|
-
}
|
|
1970
|
-
const contents = (0, smithy_client_1.map)({
|
|
1971
|
-
$metadata: deserializeMetadata(output),
|
|
1972
|
-
});
|
|
1973
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1974
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
1975
|
-
items: smithy_client_1._json,
|
|
1976
|
-
nextToken: smithy_client_1.expectString,
|
|
1977
|
-
});
|
|
1978
|
-
Object.assign(contents, doc);
|
|
1979
|
-
return contents;
|
|
1980
|
-
};
|
|
1981
|
-
exports.de_DescribeJobLogItemsCommand = de_DescribeJobLogItemsCommand;
|
|
1982
|
-
const de_DescribeJobLogItemsCommandError = async (output, context) => {
|
|
1983
|
-
const parsedOutput = {
|
|
1984
|
-
...output,
|
|
1985
|
-
body: await parseErrorBody(output.body, context),
|
|
1986
|
-
};
|
|
1987
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1988
|
-
switch (errorCode) {
|
|
1989
|
-
case "UninitializedAccountException":
|
|
1990
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1991
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
1992
|
-
case "ValidationException":
|
|
1993
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1994
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
1995
|
-
default:
|
|
1996
|
-
const parsedBody = parsedOutput.body;
|
|
1997
|
-
return throwDefaultError({
|
|
1998
|
-
output,
|
|
1999
|
-
parsedBody,
|
|
2000
|
-
errorCode,
|
|
2001
|
-
});
|
|
2002
|
-
}
|
|
2003
|
-
};
|
|
2004
|
-
const de_DescribeJobsCommand = async (output, context) => {
|
|
2005
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2006
|
-
return de_DescribeJobsCommandError(output, context);
|
|
2007
|
-
}
|
|
2008
|
-
const contents = (0, smithy_client_1.map)({
|
|
2009
|
-
$metadata: deserializeMetadata(output),
|
|
2010
|
-
});
|
|
2011
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2012
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2013
|
-
items: (_) => de_JobsList(_, context),
|
|
2014
|
-
nextToken: smithy_client_1.expectString,
|
|
2015
|
-
});
|
|
2016
|
-
Object.assign(contents, doc);
|
|
2017
|
-
return contents;
|
|
2018
|
-
};
|
|
2019
|
-
exports.de_DescribeJobsCommand = de_DescribeJobsCommand;
|
|
2020
|
-
const de_DescribeJobsCommandError = async (output, context) => {
|
|
2021
|
-
const parsedOutput = {
|
|
2022
|
-
...output,
|
|
2023
|
-
body: await parseErrorBody(output.body, context),
|
|
2024
|
-
};
|
|
2025
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2026
|
-
switch (errorCode) {
|
|
2027
|
-
case "UninitializedAccountException":
|
|
2028
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2029
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2030
|
-
case "ValidationException":
|
|
2031
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2032
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2033
|
-
default:
|
|
2034
|
-
const parsedBody = parsedOutput.body;
|
|
2035
|
-
return throwDefaultError({
|
|
2036
|
-
output,
|
|
2037
|
-
parsedBody,
|
|
2038
|
-
errorCode,
|
|
2039
|
-
});
|
|
2040
|
-
}
|
|
2041
|
-
};
|
|
2042
|
-
const de_DescribeLaunchConfigurationTemplatesCommand = async (output, context) => {
|
|
2043
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2044
|
-
return de_DescribeLaunchConfigurationTemplatesCommandError(output, context);
|
|
2045
|
-
}
|
|
2046
|
-
const contents = (0, smithy_client_1.map)({
|
|
2047
|
-
$metadata: deserializeMetadata(output),
|
|
2048
|
-
});
|
|
2049
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2050
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2051
|
-
items: smithy_client_1._json,
|
|
2052
|
-
nextToken: smithy_client_1.expectString,
|
|
2053
|
-
});
|
|
2054
|
-
Object.assign(contents, doc);
|
|
2055
|
-
return contents;
|
|
2056
|
-
};
|
|
2057
|
-
exports.de_DescribeLaunchConfigurationTemplatesCommand = de_DescribeLaunchConfigurationTemplatesCommand;
|
|
2058
|
-
const de_DescribeLaunchConfigurationTemplatesCommandError = async (output, context) => {
|
|
2059
|
-
const parsedOutput = {
|
|
2060
|
-
...output,
|
|
2061
|
-
body: await parseErrorBody(output.body, context),
|
|
2062
|
-
};
|
|
2063
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2064
|
-
switch (errorCode) {
|
|
2065
|
-
case "ResourceNotFoundException":
|
|
2066
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2067
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2068
|
-
case "UninitializedAccountException":
|
|
2069
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2070
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2071
|
-
case "ValidationException":
|
|
2072
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2073
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2074
|
-
default:
|
|
2075
|
-
const parsedBody = parsedOutput.body;
|
|
2076
|
-
return throwDefaultError({
|
|
2077
|
-
output,
|
|
2078
|
-
parsedBody,
|
|
2079
|
-
errorCode,
|
|
2080
|
-
});
|
|
2081
|
-
}
|
|
2082
|
-
};
|
|
2083
|
-
const de_DescribeReplicationConfigurationTemplatesCommand = async (output, context) => {
|
|
2084
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2085
|
-
return de_DescribeReplicationConfigurationTemplatesCommandError(output, context);
|
|
2086
|
-
}
|
|
2087
|
-
const contents = (0, smithy_client_1.map)({
|
|
2088
|
-
$metadata: deserializeMetadata(output),
|
|
2089
|
-
});
|
|
2090
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2091
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2092
|
-
items: smithy_client_1._json,
|
|
2093
|
-
nextToken: smithy_client_1.expectString,
|
|
2094
|
-
});
|
|
2095
|
-
Object.assign(contents, doc);
|
|
2096
|
-
return contents;
|
|
2097
|
-
};
|
|
2098
|
-
exports.de_DescribeReplicationConfigurationTemplatesCommand = de_DescribeReplicationConfigurationTemplatesCommand;
|
|
2099
|
-
const de_DescribeReplicationConfigurationTemplatesCommandError = async (output, context) => {
|
|
2100
|
-
const parsedOutput = {
|
|
2101
|
-
...output,
|
|
2102
|
-
body: await parseErrorBody(output.body, context),
|
|
2103
|
-
};
|
|
2104
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2105
|
-
switch (errorCode) {
|
|
2106
|
-
case "ResourceNotFoundException":
|
|
2107
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2108
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2109
|
-
case "UninitializedAccountException":
|
|
2110
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2111
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2112
|
-
case "ValidationException":
|
|
2113
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2114
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2115
|
-
default:
|
|
2116
|
-
const parsedBody = parsedOutput.body;
|
|
2117
|
-
return throwDefaultError({
|
|
2118
|
-
output,
|
|
2119
|
-
parsedBody,
|
|
2120
|
-
errorCode,
|
|
2121
|
-
});
|
|
2122
|
-
}
|
|
2123
|
-
};
|
|
2124
|
-
const de_DescribeSourceServersCommand = async (output, context) => {
|
|
2125
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2126
|
-
return de_DescribeSourceServersCommandError(output, context);
|
|
2127
|
-
}
|
|
2128
|
-
const contents = (0, smithy_client_1.map)({
|
|
2129
|
-
$metadata: deserializeMetadata(output),
|
|
2130
|
-
});
|
|
2131
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2132
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2133
|
-
items: smithy_client_1._json,
|
|
2134
|
-
nextToken: smithy_client_1.expectString,
|
|
2135
|
-
});
|
|
2136
|
-
Object.assign(contents, doc);
|
|
2137
|
-
return contents;
|
|
2138
|
-
};
|
|
2139
|
-
exports.de_DescribeSourceServersCommand = de_DescribeSourceServersCommand;
|
|
2140
|
-
const de_DescribeSourceServersCommandError = async (output, context) => {
|
|
2141
|
-
const parsedOutput = {
|
|
2142
|
-
...output,
|
|
2143
|
-
body: await parseErrorBody(output.body, context),
|
|
2144
|
-
};
|
|
2145
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2146
|
-
switch (errorCode) {
|
|
2147
|
-
case "UninitializedAccountException":
|
|
2148
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2149
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2150
|
-
case "ValidationException":
|
|
2151
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2152
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2153
|
-
default:
|
|
2154
|
-
const parsedBody = parsedOutput.body;
|
|
2155
|
-
return throwDefaultError({
|
|
2156
|
-
output,
|
|
2157
|
-
parsedBody,
|
|
2158
|
-
errorCode,
|
|
2159
|
-
});
|
|
2160
|
-
}
|
|
2161
|
-
};
|
|
2162
|
-
const de_DescribeVcenterClientsCommand = async (output, context) => {
|
|
2163
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2164
|
-
return de_DescribeVcenterClientsCommandError(output, context);
|
|
2165
|
-
}
|
|
2166
|
-
const contents = (0, smithy_client_1.map)({
|
|
2167
|
-
$metadata: deserializeMetadata(output),
|
|
2168
|
-
});
|
|
2169
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2170
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2171
|
-
items: smithy_client_1._json,
|
|
2172
|
-
nextToken: smithy_client_1.expectString,
|
|
2173
|
-
});
|
|
2174
|
-
Object.assign(contents, doc);
|
|
2175
|
-
return contents;
|
|
2176
|
-
};
|
|
2177
|
-
exports.de_DescribeVcenterClientsCommand = de_DescribeVcenterClientsCommand;
|
|
2178
|
-
const de_DescribeVcenterClientsCommandError = async (output, context) => {
|
|
2179
|
-
const parsedOutput = {
|
|
2180
|
-
...output,
|
|
2181
|
-
body: await parseErrorBody(output.body, context),
|
|
2182
|
-
};
|
|
2183
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2184
|
-
switch (errorCode) {
|
|
2185
|
-
case "ResourceNotFoundException":
|
|
2186
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2187
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2188
|
-
case "UninitializedAccountException":
|
|
2189
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2190
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2191
|
-
case "ValidationException":
|
|
2192
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2193
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2194
|
-
default:
|
|
2195
|
-
const parsedBody = parsedOutput.body;
|
|
2196
|
-
return throwDefaultError({
|
|
2197
|
-
output,
|
|
2198
|
-
parsedBody,
|
|
2199
|
-
errorCode,
|
|
2200
|
-
});
|
|
2201
|
-
}
|
|
2202
|
-
};
|
|
2203
|
-
const de_DisassociateApplicationsCommand = async (output, context) => {
|
|
2204
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2205
|
-
return de_DisassociateApplicationsCommandError(output, context);
|
|
2206
|
-
}
|
|
2207
|
-
const contents = (0, smithy_client_1.map)({
|
|
2208
|
-
$metadata: deserializeMetadata(output),
|
|
2209
|
-
});
|
|
2210
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2211
|
-
return contents;
|
|
2212
|
-
};
|
|
2213
|
-
exports.de_DisassociateApplicationsCommand = de_DisassociateApplicationsCommand;
|
|
2214
|
-
const de_DisassociateApplicationsCommandError = async (output, context) => {
|
|
2215
|
-
const parsedOutput = {
|
|
2216
|
-
...output,
|
|
2217
|
-
body: await parseErrorBody(output.body, context),
|
|
2218
|
-
};
|
|
2219
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2220
|
-
switch (errorCode) {
|
|
2221
|
-
case "ConflictException":
|
|
2222
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
2223
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2224
|
-
case "ResourceNotFoundException":
|
|
2225
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2226
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2227
|
-
case "UninitializedAccountException":
|
|
2228
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2229
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2230
|
-
default:
|
|
2231
|
-
const parsedBody = parsedOutput.body;
|
|
2232
|
-
return throwDefaultError({
|
|
2233
|
-
output,
|
|
2234
|
-
parsedBody,
|
|
2235
|
-
errorCode,
|
|
2236
|
-
});
|
|
2237
|
-
}
|
|
2238
|
-
};
|
|
2239
|
-
const de_DisassociateSourceServersCommand = async (output, context) => {
|
|
2240
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2241
|
-
return de_DisassociateSourceServersCommandError(output, context);
|
|
2242
|
-
}
|
|
2243
|
-
const contents = (0, smithy_client_1.map)({
|
|
2244
|
-
$metadata: deserializeMetadata(output),
|
|
2245
|
-
});
|
|
2246
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2247
|
-
return contents;
|
|
2248
|
-
};
|
|
2249
|
-
exports.de_DisassociateSourceServersCommand = de_DisassociateSourceServersCommand;
|
|
2250
|
-
const de_DisassociateSourceServersCommandError = async (output, context) => {
|
|
2251
|
-
const parsedOutput = {
|
|
2252
|
-
...output,
|
|
2253
|
-
body: await parseErrorBody(output.body, context),
|
|
2254
|
-
};
|
|
2255
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2256
|
-
switch (errorCode) {
|
|
2257
|
-
case "ConflictException":
|
|
2258
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
2259
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2260
|
-
case "ResourceNotFoundException":
|
|
2261
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2262
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2263
|
-
case "UninitializedAccountException":
|
|
2264
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2265
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2266
|
-
default:
|
|
2267
|
-
const parsedBody = parsedOutput.body;
|
|
2268
|
-
return throwDefaultError({
|
|
2269
|
-
output,
|
|
2270
|
-
parsedBody,
|
|
2271
|
-
errorCode,
|
|
2272
|
-
});
|
|
2273
|
-
}
|
|
2274
|
-
};
|
|
2275
|
-
const de_DisconnectFromServiceCommand = async (output, context) => {
|
|
2276
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2277
|
-
return de_DisconnectFromServiceCommandError(output, context);
|
|
2278
|
-
}
|
|
2279
|
-
const contents = (0, smithy_client_1.map)({
|
|
2280
|
-
$metadata: deserializeMetadata(output),
|
|
2281
|
-
});
|
|
2282
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2283
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2284
|
-
applicationID: smithy_client_1.expectString,
|
|
2285
|
-
arn: smithy_client_1.expectString,
|
|
2286
|
-
connectorAction: smithy_client_1._json,
|
|
2287
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
2288
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
2289
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
2290
|
-
launchedInstance: smithy_client_1._json,
|
|
2291
|
-
lifeCycle: smithy_client_1._json,
|
|
2292
|
-
replicationType: smithy_client_1.expectString,
|
|
2293
|
-
sourceProperties: smithy_client_1._json,
|
|
2294
|
-
sourceServerID: smithy_client_1.expectString,
|
|
2295
|
-
tags: smithy_client_1._json,
|
|
2296
|
-
userProvidedID: smithy_client_1.expectString,
|
|
2297
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
2298
|
-
});
|
|
2299
|
-
Object.assign(contents, doc);
|
|
2300
|
-
return contents;
|
|
2301
|
-
};
|
|
2302
|
-
exports.de_DisconnectFromServiceCommand = de_DisconnectFromServiceCommand;
|
|
2303
|
-
const de_DisconnectFromServiceCommandError = async (output, context) => {
|
|
2304
|
-
const parsedOutput = {
|
|
2305
|
-
...output,
|
|
2306
|
-
body: await parseErrorBody(output.body, context),
|
|
2307
|
-
};
|
|
2308
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2309
|
-
switch (errorCode) {
|
|
2310
|
-
case "ConflictException":
|
|
2311
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
2312
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2313
|
-
case "ResourceNotFoundException":
|
|
2314
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2315
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2316
|
-
case "UninitializedAccountException":
|
|
2317
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2318
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2319
|
-
default:
|
|
2320
|
-
const parsedBody = parsedOutput.body;
|
|
2321
|
-
return throwDefaultError({
|
|
2322
|
-
output,
|
|
2323
|
-
parsedBody,
|
|
2324
|
-
errorCode,
|
|
2325
|
-
});
|
|
2326
|
-
}
|
|
2327
|
-
};
|
|
2328
|
-
const de_FinalizeCutoverCommand = async (output, context) => {
|
|
2329
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2330
|
-
return de_FinalizeCutoverCommandError(output, context);
|
|
2331
|
-
}
|
|
2332
|
-
const contents = (0, smithy_client_1.map)({
|
|
2333
|
-
$metadata: deserializeMetadata(output),
|
|
2334
|
-
});
|
|
2335
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2336
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2337
|
-
applicationID: smithy_client_1.expectString,
|
|
2338
|
-
arn: smithy_client_1.expectString,
|
|
2339
|
-
connectorAction: smithy_client_1._json,
|
|
2340
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
2341
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
2342
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
2343
|
-
launchedInstance: smithy_client_1._json,
|
|
2344
|
-
lifeCycle: smithy_client_1._json,
|
|
2345
|
-
replicationType: smithy_client_1.expectString,
|
|
2346
|
-
sourceProperties: smithy_client_1._json,
|
|
2347
|
-
sourceServerID: smithy_client_1.expectString,
|
|
2348
|
-
tags: smithy_client_1._json,
|
|
2349
|
-
userProvidedID: smithy_client_1.expectString,
|
|
2350
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
2351
|
-
});
|
|
2352
|
-
Object.assign(contents, doc);
|
|
2353
|
-
return contents;
|
|
2354
|
-
};
|
|
2355
|
-
exports.de_FinalizeCutoverCommand = de_FinalizeCutoverCommand;
|
|
2356
|
-
const de_FinalizeCutoverCommandError = async (output, context) => {
|
|
2357
|
-
const parsedOutput = {
|
|
2358
|
-
...output,
|
|
2359
|
-
body: await parseErrorBody(output.body, context),
|
|
2360
|
-
};
|
|
2361
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2362
|
-
switch (errorCode) {
|
|
2363
|
-
case "ConflictException":
|
|
2364
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
2365
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2366
|
-
case "ResourceNotFoundException":
|
|
2367
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2368
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2369
|
-
case "UninitializedAccountException":
|
|
2370
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2371
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2372
|
-
case "ValidationException":
|
|
2373
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2374
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2375
|
-
default:
|
|
2376
|
-
const parsedBody = parsedOutput.body;
|
|
2377
|
-
return throwDefaultError({
|
|
2378
|
-
output,
|
|
2379
|
-
parsedBody,
|
|
2380
|
-
errorCode,
|
|
2381
|
-
});
|
|
2382
|
-
}
|
|
2383
|
-
};
|
|
2384
|
-
const de_GetLaunchConfigurationCommand = async (output, context) => {
|
|
2385
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2386
|
-
return de_GetLaunchConfigurationCommandError(output, context);
|
|
2387
|
-
}
|
|
2388
|
-
const contents = (0, smithy_client_1.map)({
|
|
2389
|
-
$metadata: deserializeMetadata(output),
|
|
2390
|
-
});
|
|
2391
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2392
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2393
|
-
bootMode: smithy_client_1.expectString,
|
|
2394
|
-
copyPrivateIp: smithy_client_1.expectBoolean,
|
|
2395
|
-
copyTags: smithy_client_1.expectBoolean,
|
|
2396
|
-
ec2LaunchTemplateID: smithy_client_1.expectString,
|
|
2397
|
-
enableMapAutoTagging: smithy_client_1.expectBoolean,
|
|
2398
|
-
launchDisposition: smithy_client_1.expectString,
|
|
2399
|
-
licensing: smithy_client_1._json,
|
|
2400
|
-
mapAutoTaggingMpeID: smithy_client_1.expectString,
|
|
2401
|
-
name: smithy_client_1.expectString,
|
|
2402
|
-
postLaunchActions: smithy_client_1._json,
|
|
2403
|
-
sourceServerID: smithy_client_1.expectString,
|
|
2404
|
-
targetInstanceTypeRightSizingMethod: smithy_client_1.expectString,
|
|
2405
|
-
});
|
|
2406
|
-
Object.assign(contents, doc);
|
|
2407
|
-
return contents;
|
|
2408
|
-
};
|
|
2409
|
-
exports.de_GetLaunchConfigurationCommand = de_GetLaunchConfigurationCommand;
|
|
2410
|
-
const de_GetLaunchConfigurationCommandError = async (output, context) => {
|
|
2411
|
-
const parsedOutput = {
|
|
2412
|
-
...output,
|
|
2413
|
-
body: await parseErrorBody(output.body, context),
|
|
2414
|
-
};
|
|
2415
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2416
|
-
switch (errorCode) {
|
|
2417
|
-
case "ResourceNotFoundException":
|
|
2418
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2419
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2420
|
-
case "UninitializedAccountException":
|
|
2421
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2422
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2423
|
-
default:
|
|
2424
|
-
const parsedBody = parsedOutput.body;
|
|
2425
|
-
return throwDefaultError({
|
|
2426
|
-
output,
|
|
2427
|
-
parsedBody,
|
|
2428
|
-
errorCode,
|
|
2429
|
-
});
|
|
2430
|
-
}
|
|
2431
|
-
};
|
|
2432
|
-
const de_GetReplicationConfigurationCommand = async (output, context) => {
|
|
2433
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2434
|
-
return de_GetReplicationConfigurationCommandError(output, context);
|
|
2435
|
-
}
|
|
2436
|
-
const contents = (0, smithy_client_1.map)({
|
|
2437
|
-
$metadata: deserializeMetadata(output),
|
|
2438
|
-
});
|
|
2439
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2440
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2441
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean,
|
|
2442
|
-
bandwidthThrottling: smithy_client_1.expectLong,
|
|
2443
|
-
createPublicIP: smithy_client_1.expectBoolean,
|
|
2444
|
-
dataPlaneRouting: smithy_client_1.expectString,
|
|
2445
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString,
|
|
2446
|
-
ebsEncryption: smithy_client_1.expectString,
|
|
2447
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString,
|
|
2448
|
-
name: smithy_client_1.expectString,
|
|
2449
|
-
replicatedDisks: smithy_client_1._json,
|
|
2450
|
-
replicationServerInstanceType: smithy_client_1.expectString,
|
|
2451
|
-
replicationServersSecurityGroupsIDs: smithy_client_1._json,
|
|
2452
|
-
sourceServerID: smithy_client_1.expectString,
|
|
2453
|
-
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
2454
|
-
stagingAreaTags: smithy_client_1._json,
|
|
2455
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
2456
|
-
useFipsEndpoint: smithy_client_1.expectBoolean,
|
|
2457
|
-
});
|
|
2458
|
-
Object.assign(contents, doc);
|
|
2459
|
-
return contents;
|
|
2460
|
-
};
|
|
2461
|
-
exports.de_GetReplicationConfigurationCommand = de_GetReplicationConfigurationCommand;
|
|
2462
|
-
const de_GetReplicationConfigurationCommandError = async (output, context) => {
|
|
2463
|
-
const parsedOutput = {
|
|
2464
|
-
...output,
|
|
2465
|
-
body: await parseErrorBody(output.body, context),
|
|
2466
|
-
};
|
|
2467
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2468
|
-
switch (errorCode) {
|
|
2469
|
-
case "ResourceNotFoundException":
|
|
2470
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2471
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2472
|
-
case "UninitializedAccountException":
|
|
2473
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2474
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2475
|
-
default:
|
|
2476
|
-
const parsedBody = parsedOutput.body;
|
|
2477
|
-
return throwDefaultError({
|
|
2478
|
-
output,
|
|
2479
|
-
parsedBody,
|
|
2480
|
-
errorCode,
|
|
2481
|
-
});
|
|
2482
|
-
}
|
|
2483
|
-
};
|
|
2484
|
-
const de_InitializeServiceCommand = async (output, context) => {
|
|
2485
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2486
|
-
return de_InitializeServiceCommandError(output, context);
|
|
2487
|
-
}
|
|
2488
|
-
const contents = (0, smithy_client_1.map)({
|
|
2489
|
-
$metadata: deserializeMetadata(output),
|
|
2490
|
-
});
|
|
2491
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
2492
|
-
return contents;
|
|
2493
|
-
};
|
|
2494
|
-
exports.de_InitializeServiceCommand = de_InitializeServiceCommand;
|
|
2495
|
-
const de_InitializeServiceCommandError = async (output, context) => {
|
|
2496
|
-
const parsedOutput = {
|
|
2497
|
-
...output,
|
|
2498
|
-
body: await parseErrorBody(output.body, context),
|
|
2499
|
-
};
|
|
2500
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2501
|
-
switch (errorCode) {
|
|
2502
|
-
case "AccessDeniedException":
|
|
2503
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
2504
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2505
|
-
case "ValidationException":
|
|
2506
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2507
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2508
|
-
default:
|
|
2509
|
-
const parsedBody = parsedOutput.body;
|
|
2510
|
-
return throwDefaultError({
|
|
2511
|
-
output,
|
|
2512
|
-
parsedBody,
|
|
2513
|
-
errorCode,
|
|
2514
|
-
});
|
|
2515
|
-
}
|
|
2516
|
-
};
|
|
2517
|
-
const de_ListApplicationsCommand = async (output, context) => {
|
|
2518
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2519
|
-
return de_ListApplicationsCommandError(output, context);
|
|
2520
|
-
}
|
|
2521
|
-
const contents = (0, smithy_client_1.map)({
|
|
2522
|
-
$metadata: deserializeMetadata(output),
|
|
2523
|
-
});
|
|
2524
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2525
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2526
|
-
items: smithy_client_1._json,
|
|
2527
|
-
nextToken: smithy_client_1.expectString,
|
|
2528
|
-
});
|
|
2529
|
-
Object.assign(contents, doc);
|
|
2530
|
-
return contents;
|
|
2531
|
-
};
|
|
2532
|
-
exports.de_ListApplicationsCommand = de_ListApplicationsCommand;
|
|
2533
|
-
const de_ListApplicationsCommandError = async (output, context) => {
|
|
2534
|
-
const parsedOutput = {
|
|
2535
|
-
...output,
|
|
2536
|
-
body: await parseErrorBody(output.body, context),
|
|
2537
|
-
};
|
|
2538
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2539
|
-
switch (errorCode) {
|
|
2540
|
-
case "UninitializedAccountException":
|
|
2541
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2542
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2543
|
-
default:
|
|
2544
|
-
const parsedBody = parsedOutput.body;
|
|
2545
|
-
return throwDefaultError({
|
|
2546
|
-
output,
|
|
2547
|
-
parsedBody,
|
|
2548
|
-
errorCode,
|
|
2549
|
-
});
|
|
2550
|
-
}
|
|
2551
|
-
};
|
|
2552
|
-
const de_ListConnectorsCommand = async (output, context) => {
|
|
2553
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2554
|
-
return de_ListConnectorsCommandError(output, context);
|
|
2555
|
-
}
|
|
2556
|
-
const contents = (0, smithy_client_1.map)({
|
|
2557
|
-
$metadata: deserializeMetadata(output),
|
|
2558
|
-
});
|
|
2559
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2560
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2561
|
-
items: smithy_client_1._json,
|
|
2562
|
-
nextToken: smithy_client_1.expectString,
|
|
2563
|
-
});
|
|
2564
|
-
Object.assign(contents, doc);
|
|
2565
|
-
return contents;
|
|
2566
|
-
};
|
|
2567
|
-
exports.de_ListConnectorsCommand = de_ListConnectorsCommand;
|
|
2568
|
-
const de_ListConnectorsCommandError = async (output, context) => {
|
|
2569
|
-
const parsedOutput = {
|
|
2570
|
-
...output,
|
|
2571
|
-
body: await parseErrorBody(output.body, context),
|
|
2572
|
-
};
|
|
2573
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2574
|
-
switch (errorCode) {
|
|
2575
|
-
case "UninitializedAccountException":
|
|
2576
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2577
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2578
|
-
case "ValidationException":
|
|
2579
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2580
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2581
|
-
default:
|
|
2582
|
-
const parsedBody = parsedOutput.body;
|
|
2583
|
-
return throwDefaultError({
|
|
2584
|
-
output,
|
|
2585
|
-
parsedBody,
|
|
2586
|
-
errorCode,
|
|
2587
|
-
});
|
|
2588
|
-
}
|
|
2589
|
-
};
|
|
2590
|
-
const de_ListExportErrorsCommand = async (output, context) => {
|
|
2591
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2592
|
-
return de_ListExportErrorsCommandError(output, context);
|
|
2593
|
-
}
|
|
2594
|
-
const contents = (0, smithy_client_1.map)({
|
|
2595
|
-
$metadata: deserializeMetadata(output),
|
|
2596
|
-
});
|
|
2597
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2598
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2599
|
-
items: smithy_client_1._json,
|
|
2600
|
-
nextToken: smithy_client_1.expectString,
|
|
2601
|
-
});
|
|
2602
|
-
Object.assign(contents, doc);
|
|
2603
|
-
return contents;
|
|
2604
|
-
};
|
|
2605
|
-
exports.de_ListExportErrorsCommand = de_ListExportErrorsCommand;
|
|
2606
|
-
const de_ListExportErrorsCommandError = async (output, context) => {
|
|
2607
|
-
const parsedOutput = {
|
|
2608
|
-
...output,
|
|
2609
|
-
body: await parseErrorBody(output.body, context),
|
|
2610
|
-
};
|
|
2611
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2612
|
-
switch (errorCode) {
|
|
2613
|
-
case "UninitializedAccountException":
|
|
2614
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2615
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2616
|
-
case "ValidationException":
|
|
2617
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2618
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2619
|
-
default:
|
|
2620
|
-
const parsedBody = parsedOutput.body;
|
|
2621
|
-
return throwDefaultError({
|
|
2622
|
-
output,
|
|
2623
|
-
parsedBody,
|
|
2624
|
-
errorCode,
|
|
2625
|
-
});
|
|
2626
|
-
}
|
|
2627
|
-
};
|
|
2628
|
-
const de_ListExportsCommand = async (output, context) => {
|
|
2629
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2630
|
-
return de_ListExportsCommandError(output, context);
|
|
2631
|
-
}
|
|
2632
|
-
const contents = (0, smithy_client_1.map)({
|
|
2633
|
-
$metadata: deserializeMetadata(output),
|
|
2634
|
-
});
|
|
2635
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2636
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2637
|
-
items: (_) => de_ExportsList(_, context),
|
|
2638
|
-
nextToken: smithy_client_1.expectString,
|
|
2639
|
-
});
|
|
2640
|
-
Object.assign(contents, doc);
|
|
2641
|
-
return contents;
|
|
2642
|
-
};
|
|
2643
|
-
exports.de_ListExportsCommand = de_ListExportsCommand;
|
|
2644
|
-
const de_ListExportsCommandError = async (output, context) => {
|
|
2645
|
-
const parsedOutput = {
|
|
2646
|
-
...output,
|
|
2647
|
-
body: await parseErrorBody(output.body, context),
|
|
2648
|
-
};
|
|
2649
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2650
|
-
switch (errorCode) {
|
|
2651
|
-
case "UninitializedAccountException":
|
|
2652
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2653
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2654
|
-
default:
|
|
2655
|
-
const parsedBody = parsedOutput.body;
|
|
2656
|
-
return throwDefaultError({
|
|
2657
|
-
output,
|
|
2658
|
-
parsedBody,
|
|
2659
|
-
errorCode,
|
|
2660
|
-
});
|
|
2661
|
-
}
|
|
2662
|
-
};
|
|
2663
|
-
const de_ListImportErrorsCommand = async (output, context) => {
|
|
2664
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2665
|
-
return de_ListImportErrorsCommandError(output, context);
|
|
2666
|
-
}
|
|
2667
|
-
const contents = (0, smithy_client_1.map)({
|
|
2668
|
-
$metadata: deserializeMetadata(output),
|
|
2669
|
-
});
|
|
2670
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2671
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2672
|
-
items: smithy_client_1._json,
|
|
2673
|
-
nextToken: smithy_client_1.expectString,
|
|
2674
|
-
});
|
|
2675
|
-
Object.assign(contents, doc);
|
|
2676
|
-
return contents;
|
|
2677
|
-
};
|
|
2678
|
-
exports.de_ListImportErrorsCommand = de_ListImportErrorsCommand;
|
|
2679
|
-
const de_ListImportErrorsCommandError = async (output, context) => {
|
|
2680
|
-
const parsedOutput = {
|
|
2681
|
-
...output,
|
|
2682
|
-
body: await parseErrorBody(output.body, context),
|
|
2683
|
-
};
|
|
2684
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2685
|
-
switch (errorCode) {
|
|
2686
|
-
case "UninitializedAccountException":
|
|
2687
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2688
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2689
|
-
case "ValidationException":
|
|
2690
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2691
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2692
|
-
default:
|
|
2693
|
-
const parsedBody = parsedOutput.body;
|
|
2694
|
-
return throwDefaultError({
|
|
2695
|
-
output,
|
|
2696
|
-
parsedBody,
|
|
2697
|
-
errorCode,
|
|
2698
|
-
});
|
|
2699
|
-
}
|
|
2700
|
-
};
|
|
2701
|
-
const de_ListImportsCommand = async (output, context) => {
|
|
2702
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2703
|
-
return de_ListImportsCommandError(output, context);
|
|
2704
|
-
}
|
|
2705
|
-
const contents = (0, smithy_client_1.map)({
|
|
2706
|
-
$metadata: deserializeMetadata(output),
|
|
2707
|
-
});
|
|
2708
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2709
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2710
|
-
items: (_) => de_ImportList(_, context),
|
|
2711
|
-
nextToken: smithy_client_1.expectString,
|
|
2712
|
-
});
|
|
2713
|
-
Object.assign(contents, doc);
|
|
2714
|
-
return contents;
|
|
2715
|
-
};
|
|
2716
|
-
exports.de_ListImportsCommand = de_ListImportsCommand;
|
|
2717
|
-
const de_ListImportsCommandError = async (output, context) => {
|
|
2718
|
-
const parsedOutput = {
|
|
2719
|
-
...output,
|
|
2720
|
-
body: await parseErrorBody(output.body, context),
|
|
2721
|
-
};
|
|
2722
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2723
|
-
switch (errorCode) {
|
|
2724
|
-
case "UninitializedAccountException":
|
|
2725
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2726
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2727
|
-
case "ValidationException":
|
|
2728
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2729
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2730
|
-
default:
|
|
2731
|
-
const parsedBody = parsedOutput.body;
|
|
2732
|
-
return throwDefaultError({
|
|
2733
|
-
output,
|
|
2734
|
-
parsedBody,
|
|
2735
|
-
errorCode,
|
|
2736
|
-
});
|
|
2737
|
-
}
|
|
2738
|
-
};
|
|
2739
|
-
const de_ListManagedAccountsCommand = async (output, context) => {
|
|
2740
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2741
|
-
return de_ListManagedAccountsCommandError(output, context);
|
|
2742
|
-
}
|
|
2743
|
-
const contents = (0, smithy_client_1.map)({
|
|
2744
|
-
$metadata: deserializeMetadata(output),
|
|
2745
|
-
});
|
|
2746
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2747
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2748
|
-
items: smithy_client_1._json,
|
|
2749
|
-
nextToken: smithy_client_1.expectString,
|
|
2750
|
-
});
|
|
2751
|
-
Object.assign(contents, doc);
|
|
2752
|
-
return contents;
|
|
2753
|
-
};
|
|
2754
|
-
exports.de_ListManagedAccountsCommand = de_ListManagedAccountsCommand;
|
|
2755
|
-
const de_ListManagedAccountsCommandError = async (output, context) => {
|
|
2756
|
-
const parsedOutput = {
|
|
2757
|
-
...output,
|
|
2758
|
-
body: await parseErrorBody(output.body, context),
|
|
2759
|
-
};
|
|
2760
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2761
|
-
switch (errorCode) {
|
|
2762
|
-
case "UninitializedAccountException":
|
|
2763
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2764
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2765
|
-
case "ValidationException":
|
|
2766
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2767
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2768
|
-
default:
|
|
2769
|
-
const parsedBody = parsedOutput.body;
|
|
2770
|
-
return throwDefaultError({
|
|
2771
|
-
output,
|
|
2772
|
-
parsedBody,
|
|
2773
|
-
errorCode,
|
|
2774
|
-
});
|
|
2775
|
-
}
|
|
2776
|
-
};
|
|
2777
|
-
const de_ListSourceServerActionsCommand = async (output, context) => {
|
|
2778
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2779
|
-
return de_ListSourceServerActionsCommandError(output, context);
|
|
2780
|
-
}
|
|
2781
|
-
const contents = (0, smithy_client_1.map)({
|
|
2782
|
-
$metadata: deserializeMetadata(output),
|
|
2783
|
-
});
|
|
2784
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2785
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2786
|
-
items: smithy_client_1._json,
|
|
2787
|
-
nextToken: smithy_client_1.expectString,
|
|
2788
|
-
});
|
|
2789
|
-
Object.assign(contents, doc);
|
|
2790
|
-
return contents;
|
|
2791
|
-
};
|
|
2792
|
-
exports.de_ListSourceServerActionsCommand = de_ListSourceServerActionsCommand;
|
|
2793
|
-
const de_ListSourceServerActionsCommandError = async (output, context) => {
|
|
2794
|
-
const parsedOutput = {
|
|
2795
|
-
...output,
|
|
2796
|
-
body: await parseErrorBody(output.body, context),
|
|
2797
|
-
};
|
|
2798
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2799
|
-
switch (errorCode) {
|
|
2800
|
-
case "ResourceNotFoundException":
|
|
2801
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2802
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2803
|
-
case "UninitializedAccountException":
|
|
2804
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2805
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2806
|
-
default:
|
|
2807
|
-
const parsedBody = parsedOutput.body;
|
|
2808
|
-
return throwDefaultError({
|
|
2809
|
-
output,
|
|
2810
|
-
parsedBody,
|
|
2811
|
-
errorCode,
|
|
2812
|
-
});
|
|
2813
|
-
}
|
|
2814
|
-
};
|
|
2815
|
-
const de_ListTagsForResourceCommand = async (output, context) => {
|
|
2816
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2817
|
-
return de_ListTagsForResourceCommandError(output, context);
|
|
2818
|
-
}
|
|
2819
|
-
const contents = (0, smithy_client_1.map)({
|
|
2820
|
-
$metadata: deserializeMetadata(output),
|
|
2821
|
-
});
|
|
2822
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2823
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2824
|
-
tags: smithy_client_1._json,
|
|
2825
|
-
});
|
|
2826
|
-
Object.assign(contents, doc);
|
|
2827
|
-
return contents;
|
|
2828
|
-
};
|
|
2829
|
-
exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand;
|
|
2830
|
-
const de_ListTagsForResourceCommandError = async (output, context) => {
|
|
2831
|
-
const parsedOutput = {
|
|
2832
|
-
...output,
|
|
2833
|
-
body: await parseErrorBody(output.body, context),
|
|
2834
|
-
};
|
|
2835
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2836
|
-
switch (errorCode) {
|
|
2837
|
-
case "AccessDeniedException":
|
|
2838
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
2839
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
2840
|
-
case "InternalServerException":
|
|
2841
|
-
case "com.amazonaws.mgn#InternalServerException":
|
|
2842
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
2843
|
-
case "ResourceNotFoundException":
|
|
2844
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2845
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2846
|
-
case "ThrottlingException":
|
|
2847
|
-
case "com.amazonaws.mgn#ThrottlingException":
|
|
2848
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
2849
|
-
case "ValidationException":
|
|
2850
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2851
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
2852
|
-
default:
|
|
2853
|
-
const parsedBody = parsedOutput.body;
|
|
2854
|
-
return throwDefaultError({
|
|
2855
|
-
output,
|
|
2856
|
-
parsedBody,
|
|
2857
|
-
errorCode,
|
|
2858
|
-
});
|
|
2859
|
-
}
|
|
2860
|
-
};
|
|
2861
|
-
const de_ListTemplateActionsCommand = async (output, context) => {
|
|
2862
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2863
|
-
return de_ListTemplateActionsCommandError(output, context);
|
|
2864
|
-
}
|
|
2865
|
-
const contents = (0, smithy_client_1.map)({
|
|
2866
|
-
$metadata: deserializeMetadata(output),
|
|
2867
|
-
});
|
|
2868
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2869
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2870
|
-
items: smithy_client_1._json,
|
|
2871
|
-
nextToken: smithy_client_1.expectString,
|
|
2872
|
-
});
|
|
2873
|
-
Object.assign(contents, doc);
|
|
2874
|
-
return contents;
|
|
2875
|
-
};
|
|
2876
|
-
exports.de_ListTemplateActionsCommand = de_ListTemplateActionsCommand;
|
|
2877
|
-
const de_ListTemplateActionsCommandError = async (output, context) => {
|
|
2878
|
-
const parsedOutput = {
|
|
2879
|
-
...output,
|
|
2880
|
-
body: await parseErrorBody(output.body, context),
|
|
2881
|
-
};
|
|
2882
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2883
|
-
switch (errorCode) {
|
|
2884
|
-
case "ResourceNotFoundException":
|
|
2885
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2886
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2887
|
-
case "UninitializedAccountException":
|
|
2888
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2889
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2890
|
-
default:
|
|
2891
|
-
const parsedBody = parsedOutput.body;
|
|
2892
|
-
return throwDefaultError({
|
|
2893
|
-
output,
|
|
2894
|
-
parsedBody,
|
|
2895
|
-
errorCode,
|
|
2896
|
-
});
|
|
2897
|
-
}
|
|
2898
|
-
};
|
|
2899
|
-
const de_ListWavesCommand = async (output, context) => {
|
|
2900
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2901
|
-
return de_ListWavesCommandError(output, context);
|
|
2902
|
-
}
|
|
2903
|
-
const contents = (0, smithy_client_1.map)({
|
|
2904
|
-
$metadata: deserializeMetadata(output),
|
|
2905
|
-
});
|
|
2906
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2907
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2908
|
-
items: smithy_client_1._json,
|
|
2909
|
-
nextToken: smithy_client_1.expectString,
|
|
2910
|
-
});
|
|
2911
|
-
Object.assign(contents, doc);
|
|
2912
|
-
return contents;
|
|
2913
|
-
};
|
|
2914
|
-
exports.de_ListWavesCommand = de_ListWavesCommand;
|
|
2915
|
-
const de_ListWavesCommandError = async (output, context) => {
|
|
2916
|
-
const parsedOutput = {
|
|
2917
|
-
...output,
|
|
2918
|
-
body: await parseErrorBody(output.body, context),
|
|
2919
|
-
};
|
|
2920
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2921
|
-
switch (errorCode) {
|
|
2922
|
-
case "UninitializedAccountException":
|
|
2923
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2924
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2925
|
-
default:
|
|
2926
|
-
const parsedBody = parsedOutput.body;
|
|
2927
|
-
return throwDefaultError({
|
|
2928
|
-
output,
|
|
2929
|
-
parsedBody,
|
|
2930
|
-
errorCode,
|
|
2931
|
-
});
|
|
2932
|
-
}
|
|
2933
|
-
};
|
|
2934
|
-
const de_MarkAsArchivedCommand = async (output, context) => {
|
|
2935
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2936
|
-
return de_MarkAsArchivedCommandError(output, context);
|
|
2937
|
-
}
|
|
2938
|
-
const contents = (0, smithy_client_1.map)({
|
|
2939
|
-
$metadata: deserializeMetadata(output),
|
|
2940
|
-
});
|
|
2941
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2942
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2943
|
-
applicationID: smithy_client_1.expectString,
|
|
2944
|
-
arn: smithy_client_1.expectString,
|
|
2945
|
-
connectorAction: smithy_client_1._json,
|
|
2946
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
2947
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
2948
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
2949
|
-
launchedInstance: smithy_client_1._json,
|
|
2950
|
-
lifeCycle: smithy_client_1._json,
|
|
2951
|
-
replicationType: smithy_client_1.expectString,
|
|
2952
|
-
sourceProperties: smithy_client_1._json,
|
|
2953
|
-
sourceServerID: smithy_client_1.expectString,
|
|
2954
|
-
tags: smithy_client_1._json,
|
|
2955
|
-
userProvidedID: smithy_client_1.expectString,
|
|
2956
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
2957
|
-
});
|
|
2958
|
-
Object.assign(contents, doc);
|
|
2959
|
-
return contents;
|
|
2960
|
-
};
|
|
2961
|
-
exports.de_MarkAsArchivedCommand = de_MarkAsArchivedCommand;
|
|
2962
|
-
const de_MarkAsArchivedCommandError = async (output, context) => {
|
|
2963
|
-
const parsedOutput = {
|
|
2964
|
-
...output,
|
|
2965
|
-
body: await parseErrorBody(output.body, context),
|
|
2966
|
-
};
|
|
2967
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2968
|
-
switch (errorCode) {
|
|
2969
|
-
case "ConflictException":
|
|
2970
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
2971
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
2972
|
-
case "ResourceNotFoundException":
|
|
2973
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2974
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
2975
|
-
case "UninitializedAccountException":
|
|
2976
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2977
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
2978
|
-
default:
|
|
2979
|
-
const parsedBody = parsedOutput.body;
|
|
2980
|
-
return throwDefaultError({
|
|
2981
|
-
output,
|
|
2982
|
-
parsedBody,
|
|
2983
|
-
errorCode,
|
|
2984
|
-
});
|
|
2985
|
-
}
|
|
2986
|
-
};
|
|
2987
|
-
const de_PauseReplicationCommand = async (output, context) => {
|
|
2988
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2989
|
-
return de_PauseReplicationCommandError(output, context);
|
|
2990
|
-
}
|
|
2991
|
-
const contents = (0, smithy_client_1.map)({
|
|
2992
|
-
$metadata: deserializeMetadata(output),
|
|
2993
|
-
});
|
|
2994
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2995
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
2996
|
-
applicationID: smithy_client_1.expectString,
|
|
2997
|
-
arn: smithy_client_1.expectString,
|
|
2998
|
-
connectorAction: smithy_client_1._json,
|
|
2999
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
3000
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3001
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
3002
|
-
launchedInstance: smithy_client_1._json,
|
|
3003
|
-
lifeCycle: smithy_client_1._json,
|
|
3004
|
-
replicationType: smithy_client_1.expectString,
|
|
3005
|
-
sourceProperties: smithy_client_1._json,
|
|
3006
|
-
sourceServerID: smithy_client_1.expectString,
|
|
3007
|
-
tags: smithy_client_1._json,
|
|
3008
|
-
userProvidedID: smithy_client_1.expectString,
|
|
3009
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
3010
|
-
});
|
|
3011
|
-
Object.assign(contents, doc);
|
|
3012
|
-
return contents;
|
|
3013
|
-
};
|
|
3014
|
-
exports.de_PauseReplicationCommand = de_PauseReplicationCommand;
|
|
3015
|
-
const de_PauseReplicationCommandError = async (output, context) => {
|
|
3016
|
-
const parsedOutput = {
|
|
3017
|
-
...output,
|
|
3018
|
-
body: await parseErrorBody(output.body, context),
|
|
3019
|
-
};
|
|
3020
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3021
|
-
switch (errorCode) {
|
|
3022
|
-
case "ConflictException":
|
|
3023
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3024
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3025
|
-
case "ResourceNotFoundException":
|
|
3026
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3027
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3028
|
-
case "ServiceQuotaExceededException":
|
|
3029
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3030
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3031
|
-
case "UninitializedAccountException":
|
|
3032
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3033
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3034
|
-
case "ValidationException":
|
|
3035
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3036
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3037
|
-
default:
|
|
3038
|
-
const parsedBody = parsedOutput.body;
|
|
3039
|
-
return throwDefaultError({
|
|
3040
|
-
output,
|
|
3041
|
-
parsedBody,
|
|
3042
|
-
errorCode,
|
|
3043
|
-
});
|
|
3044
|
-
}
|
|
3045
|
-
};
|
|
3046
|
-
const de_PutSourceServerActionCommand = async (output, context) => {
|
|
3047
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3048
|
-
return de_PutSourceServerActionCommandError(output, context);
|
|
3049
|
-
}
|
|
3050
|
-
const contents = (0, smithy_client_1.map)({
|
|
3051
|
-
$metadata: deserializeMetadata(output),
|
|
3052
|
-
});
|
|
3053
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3054
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3055
|
-
actionID: smithy_client_1.expectString,
|
|
3056
|
-
actionName: smithy_client_1.expectString,
|
|
3057
|
-
active: smithy_client_1.expectBoolean,
|
|
3058
|
-
category: smithy_client_1.expectString,
|
|
3059
|
-
description: smithy_client_1.expectString,
|
|
3060
|
-
documentIdentifier: smithy_client_1.expectString,
|
|
3061
|
-
documentVersion: smithy_client_1.expectString,
|
|
3062
|
-
externalParameters: smithy_client_1._json,
|
|
3063
|
-
mustSucceedForCutover: smithy_client_1.expectBoolean,
|
|
3064
|
-
order: smithy_client_1.expectInt32,
|
|
3065
|
-
parameters: smithy_client_1._json,
|
|
3066
|
-
timeoutSeconds: smithy_client_1.expectInt32,
|
|
3067
|
-
});
|
|
3068
|
-
Object.assign(contents, doc);
|
|
3069
|
-
return contents;
|
|
3070
|
-
};
|
|
3071
|
-
exports.de_PutSourceServerActionCommand = de_PutSourceServerActionCommand;
|
|
3072
|
-
const de_PutSourceServerActionCommandError = async (output, context) => {
|
|
3073
|
-
const parsedOutput = {
|
|
3074
|
-
...output,
|
|
3075
|
-
body: await parseErrorBody(output.body, context),
|
|
3076
|
-
};
|
|
3077
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3078
|
-
switch (errorCode) {
|
|
3079
|
-
case "ConflictException":
|
|
3080
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3081
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3082
|
-
case "ResourceNotFoundException":
|
|
3083
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3084
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3085
|
-
case "UninitializedAccountException":
|
|
3086
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3087
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3088
|
-
case "ValidationException":
|
|
3089
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3090
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3091
|
-
default:
|
|
3092
|
-
const parsedBody = parsedOutput.body;
|
|
3093
|
-
return throwDefaultError({
|
|
3094
|
-
output,
|
|
3095
|
-
parsedBody,
|
|
3096
|
-
errorCode,
|
|
3097
|
-
});
|
|
3098
|
-
}
|
|
3099
|
-
};
|
|
3100
|
-
const de_PutTemplateActionCommand = async (output, context) => {
|
|
3101
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3102
|
-
return de_PutTemplateActionCommandError(output, context);
|
|
3103
|
-
}
|
|
3104
|
-
const contents = (0, smithy_client_1.map)({
|
|
3105
|
-
$metadata: deserializeMetadata(output),
|
|
3106
|
-
});
|
|
3107
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3108
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3109
|
-
actionID: smithy_client_1.expectString,
|
|
3110
|
-
actionName: smithy_client_1.expectString,
|
|
3111
|
-
active: smithy_client_1.expectBoolean,
|
|
3112
|
-
category: smithy_client_1.expectString,
|
|
3113
|
-
description: smithy_client_1.expectString,
|
|
3114
|
-
documentIdentifier: smithy_client_1.expectString,
|
|
3115
|
-
documentVersion: smithy_client_1.expectString,
|
|
3116
|
-
externalParameters: smithy_client_1._json,
|
|
3117
|
-
mustSucceedForCutover: smithy_client_1.expectBoolean,
|
|
3118
|
-
operatingSystem: smithy_client_1.expectString,
|
|
3119
|
-
order: smithy_client_1.expectInt32,
|
|
3120
|
-
parameters: smithy_client_1._json,
|
|
3121
|
-
timeoutSeconds: smithy_client_1.expectInt32,
|
|
3122
|
-
});
|
|
3123
|
-
Object.assign(contents, doc);
|
|
3124
|
-
return contents;
|
|
3125
|
-
};
|
|
3126
|
-
exports.de_PutTemplateActionCommand = de_PutTemplateActionCommand;
|
|
3127
|
-
const de_PutTemplateActionCommandError = async (output, context) => {
|
|
3128
|
-
const parsedOutput = {
|
|
3129
|
-
...output,
|
|
3130
|
-
body: await parseErrorBody(output.body, context),
|
|
3131
|
-
};
|
|
3132
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3133
|
-
switch (errorCode) {
|
|
3134
|
-
case "ConflictException":
|
|
3135
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3136
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3137
|
-
case "ResourceNotFoundException":
|
|
3138
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3139
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3140
|
-
case "UninitializedAccountException":
|
|
3141
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3142
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3143
|
-
case "ValidationException":
|
|
3144
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3145
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3146
|
-
default:
|
|
3147
|
-
const parsedBody = parsedOutput.body;
|
|
3148
|
-
return throwDefaultError({
|
|
3149
|
-
output,
|
|
3150
|
-
parsedBody,
|
|
3151
|
-
errorCode,
|
|
3152
|
-
});
|
|
3153
|
-
}
|
|
3154
|
-
};
|
|
3155
|
-
const de_RemoveSourceServerActionCommand = async (output, context) => {
|
|
3156
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3157
|
-
return de_RemoveSourceServerActionCommandError(output, context);
|
|
3158
|
-
}
|
|
3159
|
-
const contents = (0, smithy_client_1.map)({
|
|
3160
|
-
$metadata: deserializeMetadata(output),
|
|
3161
|
-
});
|
|
3162
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3163
|
-
return contents;
|
|
3164
|
-
};
|
|
3165
|
-
exports.de_RemoveSourceServerActionCommand = de_RemoveSourceServerActionCommand;
|
|
3166
|
-
const de_RemoveSourceServerActionCommandError = async (output, context) => {
|
|
3167
|
-
const parsedOutput = {
|
|
3168
|
-
...output,
|
|
3169
|
-
body: await parseErrorBody(output.body, context),
|
|
3170
|
-
};
|
|
3171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3172
|
-
switch (errorCode) {
|
|
3173
|
-
case "ResourceNotFoundException":
|
|
3174
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3175
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3176
|
-
case "UninitializedAccountException":
|
|
3177
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3178
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3179
|
-
case "ValidationException":
|
|
3180
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3181
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3182
|
-
default:
|
|
3183
|
-
const parsedBody = parsedOutput.body;
|
|
3184
|
-
return throwDefaultError({
|
|
3185
|
-
output,
|
|
3186
|
-
parsedBody,
|
|
3187
|
-
errorCode,
|
|
3188
|
-
});
|
|
3189
|
-
}
|
|
3190
|
-
};
|
|
3191
|
-
const de_RemoveTemplateActionCommand = async (output, context) => {
|
|
3192
|
-
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3193
|
-
return de_RemoveTemplateActionCommandError(output, context);
|
|
3194
|
-
}
|
|
3195
|
-
const contents = (0, smithy_client_1.map)({
|
|
3196
|
-
$metadata: deserializeMetadata(output),
|
|
3197
|
-
});
|
|
3198
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3199
|
-
return contents;
|
|
3200
|
-
};
|
|
3201
|
-
exports.de_RemoveTemplateActionCommand = de_RemoveTemplateActionCommand;
|
|
3202
|
-
const de_RemoveTemplateActionCommandError = async (output, context) => {
|
|
3203
|
-
const parsedOutput = {
|
|
3204
|
-
...output,
|
|
3205
|
-
body: await parseErrorBody(output.body, context),
|
|
3206
|
-
};
|
|
3207
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3208
|
-
switch (errorCode) {
|
|
3209
|
-
case "ResourceNotFoundException":
|
|
3210
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3211
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3212
|
-
case "UninitializedAccountException":
|
|
3213
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3214
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3215
|
-
case "ValidationException":
|
|
3216
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3217
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3218
|
-
default:
|
|
3219
|
-
const parsedBody = parsedOutput.body;
|
|
3220
|
-
return throwDefaultError({
|
|
3221
|
-
output,
|
|
3222
|
-
parsedBody,
|
|
3223
|
-
errorCode,
|
|
3224
|
-
});
|
|
3225
|
-
}
|
|
3226
|
-
};
|
|
3227
|
-
const de_ResumeReplicationCommand = async (output, context) => {
|
|
3228
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3229
|
-
return de_ResumeReplicationCommandError(output, context);
|
|
3230
|
-
}
|
|
3231
|
-
const contents = (0, smithy_client_1.map)({
|
|
3232
|
-
$metadata: deserializeMetadata(output),
|
|
3233
|
-
});
|
|
3234
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3235
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3236
|
-
applicationID: smithy_client_1.expectString,
|
|
3237
|
-
arn: smithy_client_1.expectString,
|
|
3238
|
-
connectorAction: smithy_client_1._json,
|
|
3239
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
3240
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3241
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
3242
|
-
launchedInstance: smithy_client_1._json,
|
|
3243
|
-
lifeCycle: smithy_client_1._json,
|
|
3244
|
-
replicationType: smithy_client_1.expectString,
|
|
3245
|
-
sourceProperties: smithy_client_1._json,
|
|
3246
|
-
sourceServerID: smithy_client_1.expectString,
|
|
3247
|
-
tags: smithy_client_1._json,
|
|
3248
|
-
userProvidedID: smithy_client_1.expectString,
|
|
3249
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
3250
|
-
});
|
|
3251
|
-
Object.assign(contents, doc);
|
|
3252
|
-
return contents;
|
|
3253
|
-
};
|
|
3254
|
-
exports.de_ResumeReplicationCommand = de_ResumeReplicationCommand;
|
|
3255
|
-
const de_ResumeReplicationCommandError = async (output, context) => {
|
|
3256
|
-
const parsedOutput = {
|
|
3257
|
-
...output,
|
|
3258
|
-
body: await parseErrorBody(output.body, context),
|
|
3259
|
-
};
|
|
3260
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3261
|
-
switch (errorCode) {
|
|
3262
|
-
case "ConflictException":
|
|
3263
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3264
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3265
|
-
case "ResourceNotFoundException":
|
|
3266
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3267
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3268
|
-
case "ServiceQuotaExceededException":
|
|
3269
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3270
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3271
|
-
case "UninitializedAccountException":
|
|
3272
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3273
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3274
|
-
case "ValidationException":
|
|
3275
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3276
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3277
|
-
default:
|
|
3278
|
-
const parsedBody = parsedOutput.body;
|
|
3279
|
-
return throwDefaultError({
|
|
3280
|
-
output,
|
|
3281
|
-
parsedBody,
|
|
3282
|
-
errorCode,
|
|
3283
|
-
});
|
|
3284
|
-
}
|
|
3285
|
-
};
|
|
3286
|
-
const de_RetryDataReplicationCommand = async (output, context) => {
|
|
3287
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3288
|
-
return de_RetryDataReplicationCommandError(output, context);
|
|
3289
|
-
}
|
|
3290
|
-
const contents = (0, smithy_client_1.map)({
|
|
3291
|
-
$metadata: deserializeMetadata(output),
|
|
3292
|
-
});
|
|
3293
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3294
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3295
|
-
applicationID: smithy_client_1.expectString,
|
|
3296
|
-
arn: smithy_client_1.expectString,
|
|
3297
|
-
connectorAction: smithy_client_1._json,
|
|
3298
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
3299
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3300
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
3301
|
-
launchedInstance: smithy_client_1._json,
|
|
3302
|
-
lifeCycle: smithy_client_1._json,
|
|
3303
|
-
replicationType: smithy_client_1.expectString,
|
|
3304
|
-
sourceProperties: smithy_client_1._json,
|
|
3305
|
-
sourceServerID: smithy_client_1.expectString,
|
|
3306
|
-
tags: smithy_client_1._json,
|
|
3307
|
-
userProvidedID: smithy_client_1.expectString,
|
|
3308
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
3309
|
-
});
|
|
3310
|
-
Object.assign(contents, doc);
|
|
3311
|
-
return contents;
|
|
3312
|
-
};
|
|
3313
|
-
exports.de_RetryDataReplicationCommand = de_RetryDataReplicationCommand;
|
|
3314
|
-
const de_RetryDataReplicationCommandError = async (output, context) => {
|
|
3315
|
-
const parsedOutput = {
|
|
3316
|
-
...output,
|
|
3317
|
-
body: await parseErrorBody(output.body, context),
|
|
3318
|
-
};
|
|
3319
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3320
|
-
switch (errorCode) {
|
|
3321
|
-
case "ResourceNotFoundException":
|
|
3322
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3323
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3324
|
-
case "UninitializedAccountException":
|
|
3325
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3326
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3327
|
-
case "ValidationException":
|
|
3328
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3329
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3330
|
-
default:
|
|
3331
|
-
const parsedBody = parsedOutput.body;
|
|
3332
|
-
return throwDefaultError({
|
|
3333
|
-
output,
|
|
3334
|
-
parsedBody,
|
|
3335
|
-
errorCode,
|
|
3336
|
-
});
|
|
3337
|
-
}
|
|
3338
|
-
};
|
|
3339
|
-
const de_StartCutoverCommand = async (output, context) => {
|
|
3340
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3341
|
-
return de_StartCutoverCommandError(output, context);
|
|
3342
|
-
}
|
|
3343
|
-
const contents = (0, smithy_client_1.map)({
|
|
3344
|
-
$metadata: deserializeMetadata(output),
|
|
3345
|
-
});
|
|
3346
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3347
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3348
|
-
job: smithy_client_1._json,
|
|
3349
|
-
});
|
|
3350
|
-
Object.assign(contents, doc);
|
|
3351
|
-
return contents;
|
|
3352
|
-
};
|
|
3353
|
-
exports.de_StartCutoverCommand = de_StartCutoverCommand;
|
|
3354
|
-
const de_StartCutoverCommandError = async (output, context) => {
|
|
3355
|
-
const parsedOutput = {
|
|
3356
|
-
...output,
|
|
3357
|
-
body: await parseErrorBody(output.body, context),
|
|
3358
|
-
};
|
|
3359
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3360
|
-
switch (errorCode) {
|
|
3361
|
-
case "ConflictException":
|
|
3362
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3363
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3364
|
-
case "UninitializedAccountException":
|
|
3365
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3366
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3367
|
-
case "ValidationException":
|
|
3368
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3369
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3370
|
-
default:
|
|
3371
|
-
const parsedBody = parsedOutput.body;
|
|
3372
|
-
return throwDefaultError({
|
|
3373
|
-
output,
|
|
3374
|
-
parsedBody,
|
|
3375
|
-
errorCode,
|
|
3376
|
-
});
|
|
3377
|
-
}
|
|
3378
|
-
};
|
|
3379
|
-
const de_StartExportCommand = async (output, context) => {
|
|
3380
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3381
|
-
return de_StartExportCommandError(output, context);
|
|
3382
|
-
}
|
|
3383
|
-
const contents = (0, smithy_client_1.map)({
|
|
3384
|
-
$metadata: deserializeMetadata(output),
|
|
3385
|
-
});
|
|
3386
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3387
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3388
|
-
exportTask: (_) => de_ExportTask(_, context),
|
|
3389
|
-
});
|
|
3390
|
-
Object.assign(contents, doc);
|
|
3391
|
-
return contents;
|
|
3392
|
-
};
|
|
3393
|
-
exports.de_StartExportCommand = de_StartExportCommand;
|
|
3394
|
-
const de_StartExportCommandError = async (output, context) => {
|
|
3395
|
-
const parsedOutput = {
|
|
3396
|
-
...output,
|
|
3397
|
-
body: await parseErrorBody(output.body, context),
|
|
3398
|
-
};
|
|
3399
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3400
|
-
switch (errorCode) {
|
|
3401
|
-
case "ServiceQuotaExceededException":
|
|
3402
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3403
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3404
|
-
case "UninitializedAccountException":
|
|
3405
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3406
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3407
|
-
case "ValidationException":
|
|
3408
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3409
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3410
|
-
default:
|
|
3411
|
-
const parsedBody = parsedOutput.body;
|
|
3412
|
-
return throwDefaultError({
|
|
3413
|
-
output,
|
|
3414
|
-
parsedBody,
|
|
3415
|
-
errorCode,
|
|
3416
|
-
});
|
|
3417
|
-
}
|
|
3418
|
-
};
|
|
3419
|
-
const de_StartImportCommand = async (output, context) => {
|
|
3420
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3421
|
-
return de_StartImportCommandError(output, context);
|
|
3422
|
-
}
|
|
3423
|
-
const contents = (0, smithy_client_1.map)({
|
|
3424
|
-
$metadata: deserializeMetadata(output),
|
|
3425
|
-
});
|
|
3426
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3427
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3428
|
-
importTask: (_) => de_ImportTask(_, context),
|
|
3429
|
-
});
|
|
3430
|
-
Object.assign(contents, doc);
|
|
3431
|
-
return contents;
|
|
3432
|
-
};
|
|
3433
|
-
exports.de_StartImportCommand = de_StartImportCommand;
|
|
3434
|
-
const de_StartImportCommandError = async (output, context) => {
|
|
3435
|
-
const parsedOutput = {
|
|
3436
|
-
...output,
|
|
3437
|
-
body: await parseErrorBody(output.body, context),
|
|
3438
|
-
};
|
|
3439
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3440
|
-
switch (errorCode) {
|
|
3441
|
-
case "ConflictException":
|
|
3442
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3443
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3444
|
-
case "ResourceNotFoundException":
|
|
3445
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3446
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3447
|
-
case "ServiceQuotaExceededException":
|
|
3448
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3449
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3450
|
-
case "UninitializedAccountException":
|
|
3451
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3452
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3453
|
-
case "ValidationException":
|
|
3454
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3455
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3456
|
-
default:
|
|
3457
|
-
const parsedBody = parsedOutput.body;
|
|
3458
|
-
return throwDefaultError({
|
|
3459
|
-
output,
|
|
3460
|
-
parsedBody,
|
|
3461
|
-
errorCode,
|
|
3462
|
-
});
|
|
3463
|
-
}
|
|
3464
|
-
};
|
|
3465
|
-
const de_StartReplicationCommand = async (output, context) => {
|
|
3466
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3467
|
-
return de_StartReplicationCommandError(output, context);
|
|
3468
|
-
}
|
|
3469
|
-
const contents = (0, smithy_client_1.map)({
|
|
3470
|
-
$metadata: deserializeMetadata(output),
|
|
3471
|
-
});
|
|
3472
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3473
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3474
|
-
applicationID: smithy_client_1.expectString,
|
|
3475
|
-
arn: smithy_client_1.expectString,
|
|
3476
|
-
connectorAction: smithy_client_1._json,
|
|
3477
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
3478
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3479
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
3480
|
-
launchedInstance: smithy_client_1._json,
|
|
3481
|
-
lifeCycle: smithy_client_1._json,
|
|
3482
|
-
replicationType: smithy_client_1.expectString,
|
|
3483
|
-
sourceProperties: smithy_client_1._json,
|
|
3484
|
-
sourceServerID: smithy_client_1.expectString,
|
|
3485
|
-
tags: smithy_client_1._json,
|
|
3486
|
-
userProvidedID: smithy_client_1.expectString,
|
|
3487
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
3488
|
-
});
|
|
3489
|
-
Object.assign(contents, doc);
|
|
3490
|
-
return contents;
|
|
3491
|
-
};
|
|
3492
|
-
exports.de_StartReplicationCommand = de_StartReplicationCommand;
|
|
3493
|
-
const de_StartReplicationCommandError = async (output, context) => {
|
|
3494
|
-
const parsedOutput = {
|
|
3495
|
-
...output,
|
|
3496
|
-
body: await parseErrorBody(output.body, context),
|
|
3497
|
-
};
|
|
3498
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3499
|
-
switch (errorCode) {
|
|
3500
|
-
case "ConflictException":
|
|
3501
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3502
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3503
|
-
case "ResourceNotFoundException":
|
|
3504
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3505
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3506
|
-
case "ServiceQuotaExceededException":
|
|
3507
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3508
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3509
|
-
case "UninitializedAccountException":
|
|
3510
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3511
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3512
|
-
case "ValidationException":
|
|
3513
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3514
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3515
|
-
default:
|
|
3516
|
-
const parsedBody = parsedOutput.body;
|
|
3517
|
-
return throwDefaultError({
|
|
3518
|
-
output,
|
|
3519
|
-
parsedBody,
|
|
3520
|
-
errorCode,
|
|
3521
|
-
});
|
|
3522
|
-
}
|
|
3523
|
-
};
|
|
3524
|
-
const de_StartTestCommand = async (output, context) => {
|
|
3525
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3526
|
-
return de_StartTestCommandError(output, context);
|
|
3527
|
-
}
|
|
3528
|
-
const contents = (0, smithy_client_1.map)({
|
|
3529
|
-
$metadata: deserializeMetadata(output),
|
|
3530
|
-
});
|
|
3531
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3532
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3533
|
-
job: smithy_client_1._json,
|
|
3534
|
-
});
|
|
3535
|
-
Object.assign(contents, doc);
|
|
3536
|
-
return contents;
|
|
3537
|
-
};
|
|
3538
|
-
exports.de_StartTestCommand = de_StartTestCommand;
|
|
3539
|
-
const de_StartTestCommandError = async (output, context) => {
|
|
3540
|
-
const parsedOutput = {
|
|
3541
|
-
...output,
|
|
3542
|
-
body: await parseErrorBody(output.body, context),
|
|
3543
|
-
};
|
|
3544
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3545
|
-
switch (errorCode) {
|
|
3546
|
-
case "ConflictException":
|
|
3547
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3548
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3549
|
-
case "UninitializedAccountException":
|
|
3550
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3551
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3552
|
-
case "ValidationException":
|
|
3553
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3554
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3555
|
-
default:
|
|
3556
|
-
const parsedBody = parsedOutput.body;
|
|
3557
|
-
return throwDefaultError({
|
|
3558
|
-
output,
|
|
3559
|
-
parsedBody,
|
|
3560
|
-
errorCode,
|
|
3561
|
-
});
|
|
3562
|
-
}
|
|
3563
|
-
};
|
|
3564
|
-
const de_StopReplicationCommand = async (output, context) => {
|
|
3565
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3566
|
-
return de_StopReplicationCommandError(output, context);
|
|
3567
|
-
}
|
|
3568
|
-
const contents = (0, smithy_client_1.map)({
|
|
3569
|
-
$metadata: deserializeMetadata(output),
|
|
3570
|
-
});
|
|
3571
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3572
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3573
|
-
applicationID: smithy_client_1.expectString,
|
|
3574
|
-
arn: smithy_client_1.expectString,
|
|
3575
|
-
connectorAction: smithy_client_1._json,
|
|
3576
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
3577
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
3578
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
3579
|
-
launchedInstance: smithy_client_1._json,
|
|
3580
|
-
lifeCycle: smithy_client_1._json,
|
|
3581
|
-
replicationType: smithy_client_1.expectString,
|
|
3582
|
-
sourceProperties: smithy_client_1._json,
|
|
3583
|
-
sourceServerID: smithy_client_1.expectString,
|
|
3584
|
-
tags: smithy_client_1._json,
|
|
3585
|
-
userProvidedID: smithy_client_1.expectString,
|
|
3586
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
3587
|
-
});
|
|
3588
|
-
Object.assign(contents, doc);
|
|
3589
|
-
return contents;
|
|
3590
|
-
};
|
|
3591
|
-
exports.de_StopReplicationCommand = de_StopReplicationCommand;
|
|
3592
|
-
const de_StopReplicationCommandError = async (output, context) => {
|
|
3593
|
-
const parsedOutput = {
|
|
3594
|
-
...output,
|
|
3595
|
-
body: await parseErrorBody(output.body, context),
|
|
3596
|
-
};
|
|
3597
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3598
|
-
switch (errorCode) {
|
|
3599
|
-
case "ConflictException":
|
|
3600
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3601
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3602
|
-
case "ResourceNotFoundException":
|
|
3603
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3604
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3605
|
-
case "ServiceQuotaExceededException":
|
|
3606
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3607
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3608
|
-
case "UninitializedAccountException":
|
|
3609
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3610
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3611
|
-
case "ValidationException":
|
|
3612
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3613
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3614
|
-
default:
|
|
3615
|
-
const parsedBody = parsedOutput.body;
|
|
3616
|
-
return throwDefaultError({
|
|
3617
|
-
output,
|
|
3618
|
-
parsedBody,
|
|
3619
|
-
errorCode,
|
|
3620
|
-
});
|
|
3621
|
-
}
|
|
3622
|
-
};
|
|
3623
|
-
const de_TagResourceCommand = async (output, context) => {
|
|
3624
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3625
|
-
return de_TagResourceCommandError(output, context);
|
|
3626
|
-
}
|
|
3627
|
-
const contents = (0, smithy_client_1.map)({
|
|
3628
|
-
$metadata: deserializeMetadata(output),
|
|
3629
|
-
});
|
|
3630
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3631
|
-
return contents;
|
|
3632
|
-
};
|
|
3633
|
-
exports.de_TagResourceCommand = de_TagResourceCommand;
|
|
3634
|
-
const de_TagResourceCommandError = async (output, context) => {
|
|
3635
|
-
const parsedOutput = {
|
|
3636
|
-
...output,
|
|
3637
|
-
body: await parseErrorBody(output.body, context),
|
|
3638
|
-
};
|
|
3639
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3640
|
-
switch (errorCode) {
|
|
3641
|
-
case "AccessDeniedException":
|
|
3642
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
3643
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3644
|
-
case "InternalServerException":
|
|
3645
|
-
case "com.amazonaws.mgn#InternalServerException":
|
|
3646
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3647
|
-
case "ResourceNotFoundException":
|
|
3648
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3649
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3650
|
-
case "ThrottlingException":
|
|
3651
|
-
case "com.amazonaws.mgn#ThrottlingException":
|
|
3652
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3653
|
-
case "ValidationException":
|
|
3654
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3655
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3656
|
-
default:
|
|
3657
|
-
const parsedBody = parsedOutput.body;
|
|
3658
|
-
return throwDefaultError({
|
|
3659
|
-
output,
|
|
3660
|
-
parsedBody,
|
|
3661
|
-
errorCode,
|
|
3662
|
-
});
|
|
3663
|
-
}
|
|
3664
|
-
};
|
|
3665
|
-
const de_TerminateTargetInstancesCommand = async (output, context) => {
|
|
3666
|
-
if (output.statusCode !== 202 && output.statusCode >= 300) {
|
|
3667
|
-
return de_TerminateTargetInstancesCommandError(output, context);
|
|
3668
|
-
}
|
|
3669
|
-
const contents = (0, smithy_client_1.map)({
|
|
3670
|
-
$metadata: deserializeMetadata(output),
|
|
3671
|
-
});
|
|
3672
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3673
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3674
|
-
job: smithy_client_1._json,
|
|
3675
|
-
});
|
|
3676
|
-
Object.assign(contents, doc);
|
|
3677
|
-
return contents;
|
|
3678
|
-
};
|
|
3679
|
-
exports.de_TerminateTargetInstancesCommand = de_TerminateTargetInstancesCommand;
|
|
3680
|
-
const de_TerminateTargetInstancesCommandError = async (output, context) => {
|
|
3681
|
-
const parsedOutput = {
|
|
3682
|
-
...output,
|
|
3683
|
-
body: await parseErrorBody(output.body, context),
|
|
3684
|
-
};
|
|
3685
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3686
|
-
switch (errorCode) {
|
|
3687
|
-
case "ConflictException":
|
|
3688
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3689
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3690
|
-
case "UninitializedAccountException":
|
|
3691
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3692
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3693
|
-
case "ValidationException":
|
|
3694
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3695
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3696
|
-
default:
|
|
3697
|
-
const parsedBody = parsedOutput.body;
|
|
3698
|
-
return throwDefaultError({
|
|
3699
|
-
output,
|
|
3700
|
-
parsedBody,
|
|
3701
|
-
errorCode,
|
|
3702
|
-
});
|
|
3703
|
-
}
|
|
3704
|
-
};
|
|
3705
|
-
const de_UnarchiveApplicationCommand = async (output, context) => {
|
|
3706
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3707
|
-
return de_UnarchiveApplicationCommandError(output, context);
|
|
3708
|
-
}
|
|
3709
|
-
const contents = (0, smithy_client_1.map)({
|
|
3710
|
-
$metadata: deserializeMetadata(output),
|
|
3711
|
-
});
|
|
3712
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3713
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3714
|
-
applicationAggregatedStatus: smithy_client_1._json,
|
|
3715
|
-
applicationID: smithy_client_1.expectString,
|
|
3716
|
-
arn: smithy_client_1.expectString,
|
|
3717
|
-
creationDateTime: smithy_client_1.expectString,
|
|
3718
|
-
description: smithy_client_1.expectString,
|
|
3719
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
3720
|
-
lastModifiedDateTime: smithy_client_1.expectString,
|
|
3721
|
-
name: smithy_client_1.expectString,
|
|
3722
|
-
tags: smithy_client_1._json,
|
|
3723
|
-
waveID: smithy_client_1.expectString,
|
|
3724
|
-
});
|
|
3725
|
-
Object.assign(contents, doc);
|
|
3726
|
-
return contents;
|
|
3727
|
-
};
|
|
3728
|
-
exports.de_UnarchiveApplicationCommand = de_UnarchiveApplicationCommand;
|
|
3729
|
-
const de_UnarchiveApplicationCommandError = async (output, context) => {
|
|
3730
|
-
const parsedOutput = {
|
|
3731
|
-
...output,
|
|
3732
|
-
body: await parseErrorBody(output.body, context),
|
|
3733
|
-
};
|
|
3734
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3735
|
-
switch (errorCode) {
|
|
3736
|
-
case "ResourceNotFoundException":
|
|
3737
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3738
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3739
|
-
case "ServiceQuotaExceededException":
|
|
3740
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3741
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3742
|
-
case "UninitializedAccountException":
|
|
3743
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3744
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3745
|
-
default:
|
|
3746
|
-
const parsedBody = parsedOutput.body;
|
|
3747
|
-
return throwDefaultError({
|
|
3748
|
-
output,
|
|
3749
|
-
parsedBody,
|
|
3750
|
-
errorCode,
|
|
3751
|
-
});
|
|
3752
|
-
}
|
|
3753
|
-
};
|
|
3754
|
-
const de_UnarchiveWaveCommand = async (output, context) => {
|
|
3755
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3756
|
-
return de_UnarchiveWaveCommandError(output, context);
|
|
3757
|
-
}
|
|
3758
|
-
const contents = (0, smithy_client_1.map)({
|
|
3759
|
-
$metadata: deserializeMetadata(output),
|
|
3760
|
-
});
|
|
3761
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3762
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3763
|
-
arn: smithy_client_1.expectString,
|
|
3764
|
-
creationDateTime: smithy_client_1.expectString,
|
|
3765
|
-
description: smithy_client_1.expectString,
|
|
3766
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
3767
|
-
lastModifiedDateTime: smithy_client_1.expectString,
|
|
3768
|
-
name: smithy_client_1.expectString,
|
|
3769
|
-
tags: smithy_client_1._json,
|
|
3770
|
-
waveAggregatedStatus: smithy_client_1._json,
|
|
3771
|
-
waveID: smithy_client_1.expectString,
|
|
3772
|
-
});
|
|
3773
|
-
Object.assign(contents, doc);
|
|
3774
|
-
return contents;
|
|
3775
|
-
};
|
|
3776
|
-
exports.de_UnarchiveWaveCommand = de_UnarchiveWaveCommand;
|
|
3777
|
-
const de_UnarchiveWaveCommandError = async (output, context) => {
|
|
3778
|
-
const parsedOutput = {
|
|
3779
|
-
...output,
|
|
3780
|
-
body: await parseErrorBody(output.body, context),
|
|
3781
|
-
};
|
|
3782
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3783
|
-
switch (errorCode) {
|
|
3784
|
-
case "ResourceNotFoundException":
|
|
3785
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3786
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3787
|
-
case "ServiceQuotaExceededException":
|
|
3788
|
-
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3789
|
-
throw await de_ServiceQuotaExceededExceptionRes(parsedOutput, context);
|
|
3790
|
-
case "UninitializedAccountException":
|
|
3791
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3792
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3793
|
-
default:
|
|
3794
|
-
const parsedBody = parsedOutput.body;
|
|
3795
|
-
return throwDefaultError({
|
|
3796
|
-
output,
|
|
3797
|
-
parsedBody,
|
|
3798
|
-
errorCode,
|
|
3799
|
-
});
|
|
3800
|
-
}
|
|
3801
|
-
};
|
|
3802
|
-
const de_UntagResourceCommand = async (output, context) => {
|
|
3803
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3804
|
-
return de_UntagResourceCommandError(output, context);
|
|
3805
|
-
}
|
|
3806
|
-
const contents = (0, smithy_client_1.map)({
|
|
3807
|
-
$metadata: deserializeMetadata(output),
|
|
3808
|
-
});
|
|
3809
|
-
await (0, smithy_client_1.collectBody)(output.body, context);
|
|
3810
|
-
return contents;
|
|
3811
|
-
};
|
|
3812
|
-
exports.de_UntagResourceCommand = de_UntagResourceCommand;
|
|
3813
|
-
const de_UntagResourceCommandError = async (output, context) => {
|
|
3814
|
-
const parsedOutput = {
|
|
3815
|
-
...output,
|
|
3816
|
-
body: await parseErrorBody(output.body, context),
|
|
3817
|
-
};
|
|
3818
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3819
|
-
switch (errorCode) {
|
|
3820
|
-
case "AccessDeniedException":
|
|
3821
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
3822
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
3823
|
-
case "InternalServerException":
|
|
3824
|
-
case "com.amazonaws.mgn#InternalServerException":
|
|
3825
|
-
throw await de_InternalServerExceptionRes(parsedOutput, context);
|
|
3826
|
-
case "ResourceNotFoundException":
|
|
3827
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3828
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3829
|
-
case "ThrottlingException":
|
|
3830
|
-
case "com.amazonaws.mgn#ThrottlingException":
|
|
3831
|
-
throw await de_ThrottlingExceptionRes(parsedOutput, context);
|
|
3832
|
-
case "ValidationException":
|
|
3833
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3834
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3835
|
-
default:
|
|
3836
|
-
const parsedBody = parsedOutput.body;
|
|
3837
|
-
return throwDefaultError({
|
|
3838
|
-
output,
|
|
3839
|
-
parsedBody,
|
|
3840
|
-
errorCode,
|
|
3841
|
-
});
|
|
3842
|
-
}
|
|
3843
|
-
};
|
|
3844
|
-
const de_UpdateApplicationCommand = async (output, context) => {
|
|
3845
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3846
|
-
return de_UpdateApplicationCommandError(output, context);
|
|
3847
|
-
}
|
|
3848
|
-
const contents = (0, smithy_client_1.map)({
|
|
3849
|
-
$metadata: deserializeMetadata(output),
|
|
3850
|
-
});
|
|
3851
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3852
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3853
|
-
applicationAggregatedStatus: smithy_client_1._json,
|
|
3854
|
-
applicationID: smithy_client_1.expectString,
|
|
3855
|
-
arn: smithy_client_1.expectString,
|
|
3856
|
-
creationDateTime: smithy_client_1.expectString,
|
|
3857
|
-
description: smithy_client_1.expectString,
|
|
3858
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
3859
|
-
lastModifiedDateTime: smithy_client_1.expectString,
|
|
3860
|
-
name: smithy_client_1.expectString,
|
|
3861
|
-
tags: smithy_client_1._json,
|
|
3862
|
-
waveID: smithy_client_1.expectString,
|
|
3863
|
-
});
|
|
3864
|
-
Object.assign(contents, doc);
|
|
3865
|
-
return contents;
|
|
3866
|
-
};
|
|
3867
|
-
exports.de_UpdateApplicationCommand = de_UpdateApplicationCommand;
|
|
3868
|
-
const de_UpdateApplicationCommandError = async (output, context) => {
|
|
3869
|
-
const parsedOutput = {
|
|
3870
|
-
...output,
|
|
3871
|
-
body: await parseErrorBody(output.body, context),
|
|
3872
|
-
};
|
|
3873
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3874
|
-
switch (errorCode) {
|
|
3875
|
-
case "ConflictException":
|
|
3876
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3877
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3878
|
-
case "ResourceNotFoundException":
|
|
3879
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3880
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3881
|
-
case "UninitializedAccountException":
|
|
3882
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3883
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3884
|
-
default:
|
|
3885
|
-
const parsedBody = parsedOutput.body;
|
|
3886
|
-
return throwDefaultError({
|
|
3887
|
-
output,
|
|
3888
|
-
parsedBody,
|
|
3889
|
-
errorCode,
|
|
3890
|
-
});
|
|
3891
|
-
}
|
|
3892
|
-
};
|
|
3893
|
-
const de_UpdateConnectorCommand = async (output, context) => {
|
|
3894
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3895
|
-
return de_UpdateConnectorCommandError(output, context);
|
|
3896
|
-
}
|
|
3897
|
-
const contents = (0, smithy_client_1.map)({
|
|
3898
|
-
$metadata: deserializeMetadata(output),
|
|
3899
|
-
});
|
|
3900
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3901
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3902
|
-
arn: smithy_client_1.expectString,
|
|
3903
|
-
connectorID: smithy_client_1.expectString,
|
|
3904
|
-
name: smithy_client_1.expectString,
|
|
3905
|
-
ssmCommandConfig: smithy_client_1._json,
|
|
3906
|
-
ssmInstanceID: smithy_client_1.expectString,
|
|
3907
|
-
tags: smithy_client_1._json,
|
|
3908
|
-
});
|
|
3909
|
-
Object.assign(contents, doc);
|
|
3910
|
-
return contents;
|
|
3911
|
-
};
|
|
3912
|
-
exports.de_UpdateConnectorCommand = de_UpdateConnectorCommand;
|
|
3913
|
-
const de_UpdateConnectorCommandError = async (output, context) => {
|
|
3914
|
-
const parsedOutput = {
|
|
3915
|
-
...output,
|
|
3916
|
-
body: await parseErrorBody(output.body, context),
|
|
3917
|
-
};
|
|
3918
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3919
|
-
switch (errorCode) {
|
|
3920
|
-
case "ResourceNotFoundException":
|
|
3921
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3922
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3923
|
-
case "UninitializedAccountException":
|
|
3924
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3925
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3926
|
-
case "ValidationException":
|
|
3927
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3928
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3929
|
-
default:
|
|
3930
|
-
const parsedBody = parsedOutput.body;
|
|
3931
|
-
return throwDefaultError({
|
|
3932
|
-
output,
|
|
3933
|
-
parsedBody,
|
|
3934
|
-
errorCode,
|
|
3935
|
-
});
|
|
3936
|
-
}
|
|
3937
|
-
};
|
|
3938
|
-
const de_UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
3939
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3940
|
-
return de_UpdateLaunchConfigurationCommandError(output, context);
|
|
3941
|
-
}
|
|
3942
|
-
const contents = (0, smithy_client_1.map)({
|
|
3943
|
-
$metadata: deserializeMetadata(output),
|
|
3944
|
-
});
|
|
3945
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3946
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
3947
|
-
bootMode: smithy_client_1.expectString,
|
|
3948
|
-
copyPrivateIp: smithy_client_1.expectBoolean,
|
|
3949
|
-
copyTags: smithy_client_1.expectBoolean,
|
|
3950
|
-
ec2LaunchTemplateID: smithy_client_1.expectString,
|
|
3951
|
-
enableMapAutoTagging: smithy_client_1.expectBoolean,
|
|
3952
|
-
launchDisposition: smithy_client_1.expectString,
|
|
3953
|
-
licensing: smithy_client_1._json,
|
|
3954
|
-
mapAutoTaggingMpeID: smithy_client_1.expectString,
|
|
3955
|
-
name: smithy_client_1.expectString,
|
|
3956
|
-
postLaunchActions: smithy_client_1._json,
|
|
3957
|
-
sourceServerID: smithy_client_1.expectString,
|
|
3958
|
-
targetInstanceTypeRightSizingMethod: smithy_client_1.expectString,
|
|
3959
|
-
});
|
|
3960
|
-
Object.assign(contents, doc);
|
|
3961
|
-
return contents;
|
|
3962
|
-
};
|
|
3963
|
-
exports.de_UpdateLaunchConfigurationCommand = de_UpdateLaunchConfigurationCommand;
|
|
3964
|
-
const de_UpdateLaunchConfigurationCommandError = async (output, context) => {
|
|
3965
|
-
const parsedOutput = {
|
|
3966
|
-
...output,
|
|
3967
|
-
body: await parseErrorBody(output.body, context),
|
|
3968
|
-
};
|
|
3969
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3970
|
-
switch (errorCode) {
|
|
3971
|
-
case "ConflictException":
|
|
3972
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
3973
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
3974
|
-
case "ResourceNotFoundException":
|
|
3975
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3976
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
3977
|
-
case "UninitializedAccountException":
|
|
3978
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3979
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
3980
|
-
case "ValidationException":
|
|
3981
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
3982
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
3983
|
-
default:
|
|
3984
|
-
const parsedBody = parsedOutput.body;
|
|
3985
|
-
return throwDefaultError({
|
|
3986
|
-
output,
|
|
3987
|
-
parsedBody,
|
|
3988
|
-
errorCode,
|
|
3989
|
-
});
|
|
3990
|
-
}
|
|
3991
|
-
};
|
|
3992
|
-
const de_UpdateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
3993
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3994
|
-
return de_UpdateLaunchConfigurationTemplateCommandError(output, context);
|
|
3995
|
-
}
|
|
3996
|
-
const contents = (0, smithy_client_1.map)({
|
|
3997
|
-
$metadata: deserializeMetadata(output),
|
|
3998
|
-
});
|
|
3999
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4000
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4001
|
-
arn: smithy_client_1.expectString,
|
|
4002
|
-
associatePublicIpAddress: smithy_client_1.expectBoolean,
|
|
4003
|
-
bootMode: smithy_client_1.expectString,
|
|
4004
|
-
copyPrivateIp: smithy_client_1.expectBoolean,
|
|
4005
|
-
copyTags: smithy_client_1.expectBoolean,
|
|
4006
|
-
ec2LaunchTemplateID: smithy_client_1.expectString,
|
|
4007
|
-
enableMapAutoTagging: smithy_client_1.expectBoolean,
|
|
4008
|
-
largeVolumeConf: smithy_client_1._json,
|
|
4009
|
-
launchConfigurationTemplateID: smithy_client_1.expectString,
|
|
4010
|
-
launchDisposition: smithy_client_1.expectString,
|
|
4011
|
-
licensing: smithy_client_1._json,
|
|
4012
|
-
mapAutoTaggingMpeID: smithy_client_1.expectString,
|
|
4013
|
-
postLaunchActions: smithy_client_1._json,
|
|
4014
|
-
smallVolumeConf: smithy_client_1._json,
|
|
4015
|
-
smallVolumeMaxSize: smithy_client_1.expectLong,
|
|
4016
|
-
tags: smithy_client_1._json,
|
|
4017
|
-
targetInstanceTypeRightSizingMethod: smithy_client_1.expectString,
|
|
4018
|
-
});
|
|
4019
|
-
Object.assign(contents, doc);
|
|
4020
|
-
return contents;
|
|
4021
|
-
};
|
|
4022
|
-
exports.de_UpdateLaunchConfigurationTemplateCommand = de_UpdateLaunchConfigurationTemplateCommand;
|
|
4023
|
-
const de_UpdateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
4024
|
-
const parsedOutput = {
|
|
4025
|
-
...output,
|
|
4026
|
-
body: await parseErrorBody(output.body, context),
|
|
4027
|
-
};
|
|
4028
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4029
|
-
switch (errorCode) {
|
|
4030
|
-
case "AccessDeniedException":
|
|
4031
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
4032
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4033
|
-
case "ResourceNotFoundException":
|
|
4034
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4035
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4036
|
-
case "UninitializedAccountException":
|
|
4037
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4038
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4039
|
-
case "ValidationException":
|
|
4040
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
4041
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4042
|
-
default:
|
|
4043
|
-
const parsedBody = parsedOutput.body;
|
|
4044
|
-
return throwDefaultError({
|
|
4045
|
-
output,
|
|
4046
|
-
parsedBody,
|
|
4047
|
-
errorCode,
|
|
4048
|
-
});
|
|
4049
|
-
}
|
|
4050
|
-
};
|
|
4051
|
-
const de_UpdateReplicationConfigurationCommand = async (output, context) => {
|
|
4052
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4053
|
-
return de_UpdateReplicationConfigurationCommandError(output, context);
|
|
4054
|
-
}
|
|
4055
|
-
const contents = (0, smithy_client_1.map)({
|
|
4056
|
-
$metadata: deserializeMetadata(output),
|
|
4057
|
-
});
|
|
4058
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4059
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4060
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean,
|
|
4061
|
-
bandwidthThrottling: smithy_client_1.expectLong,
|
|
4062
|
-
createPublicIP: smithy_client_1.expectBoolean,
|
|
4063
|
-
dataPlaneRouting: smithy_client_1.expectString,
|
|
4064
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString,
|
|
4065
|
-
ebsEncryption: smithy_client_1.expectString,
|
|
4066
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString,
|
|
4067
|
-
name: smithy_client_1.expectString,
|
|
4068
|
-
replicatedDisks: smithy_client_1._json,
|
|
4069
|
-
replicationServerInstanceType: smithy_client_1.expectString,
|
|
4070
|
-
replicationServersSecurityGroupsIDs: smithy_client_1._json,
|
|
4071
|
-
sourceServerID: smithy_client_1.expectString,
|
|
4072
|
-
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
4073
|
-
stagingAreaTags: smithy_client_1._json,
|
|
4074
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
4075
|
-
useFipsEndpoint: smithy_client_1.expectBoolean,
|
|
4076
|
-
});
|
|
4077
|
-
Object.assign(contents, doc);
|
|
4078
|
-
return contents;
|
|
4079
|
-
};
|
|
4080
|
-
exports.de_UpdateReplicationConfigurationCommand = de_UpdateReplicationConfigurationCommand;
|
|
4081
|
-
const de_UpdateReplicationConfigurationCommandError = async (output, context) => {
|
|
4082
|
-
const parsedOutput = {
|
|
4083
|
-
...output,
|
|
4084
|
-
body: await parseErrorBody(output.body, context),
|
|
4085
|
-
};
|
|
4086
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4087
|
-
switch (errorCode) {
|
|
4088
|
-
case "AccessDeniedException":
|
|
4089
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
4090
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4091
|
-
case "ConflictException":
|
|
4092
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
4093
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4094
|
-
case "ResourceNotFoundException":
|
|
4095
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4096
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4097
|
-
case "UninitializedAccountException":
|
|
4098
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4099
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4100
|
-
case "ValidationException":
|
|
4101
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
4102
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4103
|
-
default:
|
|
4104
|
-
const parsedBody = parsedOutput.body;
|
|
4105
|
-
return throwDefaultError({
|
|
4106
|
-
output,
|
|
4107
|
-
parsedBody,
|
|
4108
|
-
errorCode,
|
|
4109
|
-
});
|
|
4110
|
-
}
|
|
4111
|
-
};
|
|
4112
|
-
const de_UpdateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
4113
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4114
|
-
return de_UpdateReplicationConfigurationTemplateCommandError(output, context);
|
|
4115
|
-
}
|
|
4116
|
-
const contents = (0, smithy_client_1.map)({
|
|
4117
|
-
$metadata: deserializeMetadata(output),
|
|
4118
|
-
});
|
|
4119
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4120
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4121
|
-
arn: smithy_client_1.expectString,
|
|
4122
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean,
|
|
4123
|
-
bandwidthThrottling: smithy_client_1.expectLong,
|
|
4124
|
-
createPublicIP: smithy_client_1.expectBoolean,
|
|
4125
|
-
dataPlaneRouting: smithy_client_1.expectString,
|
|
4126
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString,
|
|
4127
|
-
ebsEncryption: smithy_client_1.expectString,
|
|
4128
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString,
|
|
4129
|
-
replicationConfigurationTemplateID: smithy_client_1.expectString,
|
|
4130
|
-
replicationServerInstanceType: smithy_client_1.expectString,
|
|
4131
|
-
replicationServersSecurityGroupsIDs: smithy_client_1._json,
|
|
4132
|
-
stagingAreaSubnetId: smithy_client_1.expectString,
|
|
4133
|
-
stagingAreaTags: smithy_client_1._json,
|
|
4134
|
-
tags: smithy_client_1._json,
|
|
4135
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean,
|
|
4136
|
-
useFipsEndpoint: smithy_client_1.expectBoolean,
|
|
4137
|
-
});
|
|
4138
|
-
Object.assign(contents, doc);
|
|
4139
|
-
return contents;
|
|
4140
|
-
};
|
|
4141
|
-
exports.de_UpdateReplicationConfigurationTemplateCommand = de_UpdateReplicationConfigurationTemplateCommand;
|
|
4142
|
-
const de_UpdateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
4143
|
-
const parsedOutput = {
|
|
4144
|
-
...output,
|
|
4145
|
-
body: await parseErrorBody(output.body, context),
|
|
4146
|
-
};
|
|
4147
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4148
|
-
switch (errorCode) {
|
|
4149
|
-
case "AccessDeniedException":
|
|
4150
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
4151
|
-
throw await de_AccessDeniedExceptionRes(parsedOutput, context);
|
|
4152
|
-
case "ResourceNotFoundException":
|
|
4153
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4154
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4155
|
-
case "UninitializedAccountException":
|
|
4156
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4157
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4158
|
-
case "ValidationException":
|
|
4159
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
4160
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4161
|
-
default:
|
|
4162
|
-
const parsedBody = parsedOutput.body;
|
|
4163
|
-
return throwDefaultError({
|
|
4164
|
-
output,
|
|
4165
|
-
parsedBody,
|
|
4166
|
-
errorCode,
|
|
4167
|
-
});
|
|
4168
|
-
}
|
|
4169
|
-
};
|
|
4170
|
-
const de_UpdateSourceServerCommand = async (output, context) => {
|
|
4171
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4172
|
-
return de_UpdateSourceServerCommandError(output, context);
|
|
4173
|
-
}
|
|
4174
|
-
const contents = (0, smithy_client_1.map)({
|
|
4175
|
-
$metadata: deserializeMetadata(output),
|
|
4176
|
-
});
|
|
4177
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4178
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4179
|
-
applicationID: smithy_client_1.expectString,
|
|
4180
|
-
arn: smithy_client_1.expectString,
|
|
4181
|
-
connectorAction: smithy_client_1._json,
|
|
4182
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
4183
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
4184
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
4185
|
-
launchedInstance: smithy_client_1._json,
|
|
4186
|
-
lifeCycle: smithy_client_1._json,
|
|
4187
|
-
replicationType: smithy_client_1.expectString,
|
|
4188
|
-
sourceProperties: smithy_client_1._json,
|
|
4189
|
-
sourceServerID: smithy_client_1.expectString,
|
|
4190
|
-
tags: smithy_client_1._json,
|
|
4191
|
-
userProvidedID: smithy_client_1.expectString,
|
|
4192
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
4193
|
-
});
|
|
4194
|
-
Object.assign(contents, doc);
|
|
4195
|
-
return contents;
|
|
4196
|
-
};
|
|
4197
|
-
exports.de_UpdateSourceServerCommand = de_UpdateSourceServerCommand;
|
|
4198
|
-
const de_UpdateSourceServerCommandError = async (output, context) => {
|
|
4199
|
-
const parsedOutput = {
|
|
4200
|
-
...output,
|
|
4201
|
-
body: await parseErrorBody(output.body, context),
|
|
4202
|
-
};
|
|
4203
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4204
|
-
switch (errorCode) {
|
|
4205
|
-
case "ConflictException":
|
|
4206
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
4207
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4208
|
-
case "ResourceNotFoundException":
|
|
4209
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4210
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4211
|
-
case "UninitializedAccountException":
|
|
4212
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4213
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4214
|
-
default:
|
|
4215
|
-
const parsedBody = parsedOutput.body;
|
|
4216
|
-
return throwDefaultError({
|
|
4217
|
-
output,
|
|
4218
|
-
parsedBody,
|
|
4219
|
-
errorCode,
|
|
4220
|
-
});
|
|
4221
|
-
}
|
|
4222
|
-
};
|
|
4223
|
-
const de_UpdateSourceServerReplicationTypeCommand = async (output, context) => {
|
|
4224
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4225
|
-
return de_UpdateSourceServerReplicationTypeCommandError(output, context);
|
|
4226
|
-
}
|
|
4227
|
-
const contents = (0, smithy_client_1.map)({
|
|
4228
|
-
$metadata: deserializeMetadata(output),
|
|
4229
|
-
});
|
|
4230
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4231
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4232
|
-
applicationID: smithy_client_1.expectString,
|
|
4233
|
-
arn: smithy_client_1.expectString,
|
|
4234
|
-
connectorAction: smithy_client_1._json,
|
|
4235
|
-
dataReplicationInfo: smithy_client_1._json,
|
|
4236
|
-
fqdnForActionFramework: smithy_client_1.expectString,
|
|
4237
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
4238
|
-
launchedInstance: smithy_client_1._json,
|
|
4239
|
-
lifeCycle: smithy_client_1._json,
|
|
4240
|
-
replicationType: smithy_client_1.expectString,
|
|
4241
|
-
sourceProperties: smithy_client_1._json,
|
|
4242
|
-
sourceServerID: smithy_client_1.expectString,
|
|
4243
|
-
tags: smithy_client_1._json,
|
|
4244
|
-
userProvidedID: smithy_client_1.expectString,
|
|
4245
|
-
vcenterClientID: smithy_client_1.expectString,
|
|
4246
|
-
});
|
|
4247
|
-
Object.assign(contents, doc);
|
|
4248
|
-
return contents;
|
|
4249
|
-
};
|
|
4250
|
-
exports.de_UpdateSourceServerReplicationTypeCommand = de_UpdateSourceServerReplicationTypeCommand;
|
|
4251
|
-
const de_UpdateSourceServerReplicationTypeCommandError = async (output, context) => {
|
|
4252
|
-
const parsedOutput = {
|
|
4253
|
-
...output,
|
|
4254
|
-
body: await parseErrorBody(output.body, context),
|
|
4255
|
-
};
|
|
4256
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4257
|
-
switch (errorCode) {
|
|
4258
|
-
case "ConflictException":
|
|
4259
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
4260
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4261
|
-
case "ResourceNotFoundException":
|
|
4262
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4263
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4264
|
-
case "UninitializedAccountException":
|
|
4265
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4266
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4267
|
-
case "ValidationException":
|
|
4268
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
4269
|
-
throw await de_ValidationExceptionRes(parsedOutput, context);
|
|
4270
|
-
default:
|
|
4271
|
-
const parsedBody = parsedOutput.body;
|
|
4272
|
-
return throwDefaultError({
|
|
4273
|
-
output,
|
|
4274
|
-
parsedBody,
|
|
4275
|
-
errorCode,
|
|
4276
|
-
});
|
|
4277
|
-
}
|
|
4278
|
-
};
|
|
4279
|
-
const de_UpdateWaveCommand = async (output, context) => {
|
|
4280
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4281
|
-
return de_UpdateWaveCommandError(output, context);
|
|
4282
|
-
}
|
|
4283
|
-
const contents = (0, smithy_client_1.map)({
|
|
4284
|
-
$metadata: deserializeMetadata(output),
|
|
4285
|
-
});
|
|
4286
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4287
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4288
|
-
arn: smithy_client_1.expectString,
|
|
4289
|
-
creationDateTime: smithy_client_1.expectString,
|
|
4290
|
-
description: smithy_client_1.expectString,
|
|
4291
|
-
isArchived: smithy_client_1.expectBoolean,
|
|
4292
|
-
lastModifiedDateTime: smithy_client_1.expectString,
|
|
4293
|
-
name: smithy_client_1.expectString,
|
|
4294
|
-
tags: smithy_client_1._json,
|
|
4295
|
-
waveAggregatedStatus: smithy_client_1._json,
|
|
4296
|
-
waveID: smithy_client_1.expectString,
|
|
4297
|
-
});
|
|
4298
|
-
Object.assign(contents, doc);
|
|
4299
|
-
return contents;
|
|
4300
|
-
};
|
|
4301
|
-
exports.de_UpdateWaveCommand = de_UpdateWaveCommand;
|
|
4302
|
-
const de_UpdateWaveCommandError = async (output, context) => {
|
|
4303
|
-
const parsedOutput = {
|
|
4304
|
-
...output,
|
|
4305
|
-
body: await parseErrorBody(output.body, context),
|
|
4306
|
-
};
|
|
4307
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4308
|
-
switch (errorCode) {
|
|
4309
|
-
case "ConflictException":
|
|
4310
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
4311
|
-
throw await de_ConflictExceptionRes(parsedOutput, context);
|
|
4312
|
-
case "ResourceNotFoundException":
|
|
4313
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4314
|
-
throw await de_ResourceNotFoundExceptionRes(parsedOutput, context);
|
|
4315
|
-
case "UninitializedAccountException":
|
|
4316
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4317
|
-
throw await de_UninitializedAccountExceptionRes(parsedOutput, context);
|
|
4318
|
-
default:
|
|
4319
|
-
const parsedBody = parsedOutput.body;
|
|
4320
|
-
return throwDefaultError({
|
|
4321
|
-
output,
|
|
4322
|
-
parsedBody,
|
|
4323
|
-
errorCode,
|
|
4324
|
-
});
|
|
4325
|
-
}
|
|
4326
|
-
};
|
|
4327
|
-
const throwDefaultError = (0, smithy_client_1.withBaseException)(MgnServiceException_1.MgnServiceException);
|
|
4328
|
-
const de_AccessDeniedExceptionRes = async (parsedOutput, context) => {
|
|
4329
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4330
|
-
const data = parsedOutput.body;
|
|
4331
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4332
|
-
code: smithy_client_1.expectString,
|
|
4333
|
-
message: smithy_client_1.expectString,
|
|
4334
|
-
});
|
|
4335
|
-
Object.assign(contents, doc);
|
|
4336
|
-
const exception = new models_0_1.AccessDeniedException({
|
|
4337
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4338
|
-
...contents,
|
|
4339
|
-
});
|
|
4340
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4341
|
-
};
|
|
4342
|
-
const de_ConflictExceptionRes = async (parsedOutput, context) => {
|
|
4343
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4344
|
-
const data = parsedOutput.body;
|
|
4345
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4346
|
-
code: smithy_client_1.expectString,
|
|
4347
|
-
errors: smithy_client_1._json,
|
|
4348
|
-
message: smithy_client_1.expectString,
|
|
4349
|
-
resourceId: smithy_client_1.expectString,
|
|
4350
|
-
resourceType: smithy_client_1.expectString,
|
|
4351
|
-
});
|
|
4352
|
-
Object.assign(contents, doc);
|
|
4353
|
-
const exception = new models_0_1.ConflictException({
|
|
4354
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4355
|
-
...contents,
|
|
4356
|
-
});
|
|
4357
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4358
|
-
};
|
|
4359
|
-
const de_InternalServerExceptionRes = async (parsedOutput, context) => {
|
|
4360
|
-
const contents = (0, smithy_client_1.map)({
|
|
4361
|
-
[_rAS]: [() => void 0 !== parsedOutput.headers[_ra], () => (0, smithy_client_1.strictParseLong)(parsedOutput.headers[_ra])],
|
|
4362
|
-
});
|
|
4363
|
-
const data = parsedOutput.body;
|
|
4364
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4365
|
-
message: smithy_client_1.expectString,
|
|
4366
|
-
});
|
|
4367
|
-
Object.assign(contents, doc);
|
|
4368
|
-
const exception = new models_0_1.InternalServerException({
|
|
4369
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4370
|
-
...contents,
|
|
4371
|
-
});
|
|
4372
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4373
|
-
};
|
|
4374
|
-
const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => {
|
|
4375
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4376
|
-
const data = parsedOutput.body;
|
|
4377
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4378
|
-
code: smithy_client_1.expectString,
|
|
4379
|
-
message: smithy_client_1.expectString,
|
|
4380
|
-
resourceId: smithy_client_1.expectString,
|
|
4381
|
-
resourceType: smithy_client_1.expectString,
|
|
4382
|
-
});
|
|
4383
|
-
Object.assign(contents, doc);
|
|
4384
|
-
const exception = new models_0_1.ResourceNotFoundException({
|
|
4385
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4386
|
-
...contents,
|
|
4387
|
-
});
|
|
4388
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4389
|
-
};
|
|
4390
|
-
const de_ServiceQuotaExceededExceptionRes = async (parsedOutput, context) => {
|
|
4391
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4392
|
-
const data = parsedOutput.body;
|
|
4393
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4394
|
-
code: smithy_client_1.expectString,
|
|
4395
|
-
message: smithy_client_1.expectString,
|
|
4396
|
-
quotaCode: smithy_client_1.expectString,
|
|
4397
|
-
quotaValue: smithy_client_1.expectInt32,
|
|
4398
|
-
resourceId: smithy_client_1.expectString,
|
|
4399
|
-
resourceType: smithy_client_1.expectString,
|
|
4400
|
-
serviceCode: smithy_client_1.expectString,
|
|
4401
|
-
});
|
|
4402
|
-
Object.assign(contents, doc);
|
|
4403
|
-
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
4404
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4405
|
-
...contents,
|
|
4406
|
-
});
|
|
4407
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4408
|
-
};
|
|
4409
|
-
const de_ThrottlingExceptionRes = async (parsedOutput, context) => {
|
|
4410
|
-
const contents = (0, smithy_client_1.map)({
|
|
4411
|
-
[_rAS]: [, parsedOutput.headers[_ra]],
|
|
4412
|
-
});
|
|
4413
|
-
const data = parsedOutput.body;
|
|
4414
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4415
|
-
message: smithy_client_1.expectString,
|
|
4416
|
-
quotaCode: smithy_client_1.expectString,
|
|
4417
|
-
serviceCode: smithy_client_1.expectString,
|
|
4418
|
-
});
|
|
4419
|
-
Object.assign(contents, doc);
|
|
4420
|
-
const exception = new models_0_1.ThrottlingException({
|
|
4421
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4422
|
-
...contents,
|
|
4423
|
-
});
|
|
4424
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4425
|
-
};
|
|
4426
|
-
const de_UninitializedAccountExceptionRes = async (parsedOutput, context) => {
|
|
4427
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4428
|
-
const data = parsedOutput.body;
|
|
4429
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4430
|
-
code: smithy_client_1.expectString,
|
|
4431
|
-
message: smithy_client_1.expectString,
|
|
4432
|
-
});
|
|
4433
|
-
Object.assign(contents, doc);
|
|
4434
|
-
const exception = new models_0_1.UninitializedAccountException({
|
|
4435
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4436
|
-
...contents,
|
|
4437
|
-
});
|
|
4438
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4439
|
-
};
|
|
4440
|
-
const de_ValidationExceptionRes = async (parsedOutput, context) => {
|
|
4441
|
-
const contents = (0, smithy_client_1.map)({});
|
|
4442
|
-
const data = parsedOutput.body;
|
|
4443
|
-
const doc = (0, smithy_client_1.take)(data, {
|
|
4444
|
-
code: smithy_client_1.expectString,
|
|
4445
|
-
fieldList: smithy_client_1._json,
|
|
4446
|
-
message: smithy_client_1.expectString,
|
|
4447
|
-
reason: smithy_client_1.expectString,
|
|
4448
|
-
});
|
|
4449
|
-
Object.assign(contents, doc);
|
|
4450
|
-
const exception = new models_0_1.ValidationException({
|
|
4451
|
-
$metadata: deserializeMetadata(parsedOutput),
|
|
4452
|
-
...contents,
|
|
4453
|
-
});
|
|
4454
|
-
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
4455
|
-
};
|
|
4456
|
-
const de_ExportsList = (output, context) => {
|
|
4457
|
-
const retVal = (output || [])
|
|
4458
|
-
.filter((e) => e != null)
|
|
4459
|
-
.map((entry) => {
|
|
4460
|
-
return de_ExportTask(entry, context);
|
|
4461
|
-
});
|
|
4462
|
-
return retVal;
|
|
4463
|
-
};
|
|
4464
|
-
const de_ExportTask = (output, context) => {
|
|
4465
|
-
return (0, smithy_client_1.take)(output, {
|
|
4466
|
-
creationDateTime: smithy_client_1.expectString,
|
|
4467
|
-
endDateTime: smithy_client_1.expectString,
|
|
4468
|
-
exportID: smithy_client_1.expectString,
|
|
4469
|
-
progressPercentage: smithy_client_1.limitedParseFloat32,
|
|
4470
|
-
s3Bucket: smithy_client_1.expectString,
|
|
4471
|
-
s3BucketOwner: smithy_client_1.expectString,
|
|
4472
|
-
s3Key: smithy_client_1.expectString,
|
|
4473
|
-
status: smithy_client_1.expectString,
|
|
4474
|
-
summary: smithy_client_1._json,
|
|
4475
|
-
});
|
|
4476
|
-
};
|
|
4477
|
-
const de_ImportList = (output, context) => {
|
|
4478
|
-
const retVal = (output || [])
|
|
4479
|
-
.filter((e) => e != null)
|
|
4480
|
-
.map((entry) => {
|
|
4481
|
-
return de_ImportTask(entry, context);
|
|
4482
|
-
});
|
|
4483
|
-
return retVal;
|
|
4484
|
-
};
|
|
4485
|
-
const de_ImportTask = (output, context) => {
|
|
4486
|
-
return (0, smithy_client_1.take)(output, {
|
|
4487
|
-
creationDateTime: smithy_client_1.expectString,
|
|
4488
|
-
endDateTime: smithy_client_1.expectString,
|
|
4489
|
-
importID: smithy_client_1.expectString,
|
|
4490
|
-
progressPercentage: smithy_client_1.limitedParseFloat32,
|
|
4491
|
-
s3BucketSource: smithy_client_1._json,
|
|
4492
|
-
status: smithy_client_1.expectString,
|
|
4493
|
-
summary: smithy_client_1._json,
|
|
4494
|
-
});
|
|
4495
|
-
};
|
|
4496
|
-
const de_JobsList = (output, context) => {
|
|
4497
|
-
const retVal = (output || [])
|
|
4498
|
-
.filter((e) => e != null)
|
|
4499
|
-
.map((entry) => {
|
|
4500
|
-
return (0, smithy_client_1._json)(entry);
|
|
4501
|
-
});
|
|
4502
|
-
return retVal;
|
|
4503
|
-
};
|
|
4504
|
-
const deserializeMetadata = (output) => ({
|
|
4505
|
-
httpStatusCode: output.statusCode,
|
|
4506
|
-
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|
|
4507
|
-
extendedRequestId: output.headers["x-amz-id-2"],
|
|
4508
|
-
cfId: output.headers["x-amz-cf-id"],
|
|
4509
|
-
});
|
|
4510
|
-
const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body));
|
|
4511
|
-
const isSerializableHeaderValue = (value) => value !== undefined &&
|
|
4512
|
-
value !== null &&
|
|
4513
|
-
value !== "" &&
|
|
4514
|
-
(!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) &&
|
|
4515
|
-
(!Object.getOwnPropertyNames(value).includes("size") || value.size != 0);
|
|
4516
|
-
const _mR = "maxResults";
|
|
4517
|
-
const _nT = "nextToken";
|
|
4518
|
-
const _rAS = "retryAfterSeconds";
|
|
4519
|
-
const _ra = "retry-after";
|
|
4520
|
-
const _tK = "tagKeys";
|
|
4521
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
4522
|
-
if (encoded.length) {
|
|
4523
|
-
return JSON.parse(encoded);
|
|
4524
|
-
}
|
|
4525
|
-
return {};
|
|
4526
|
-
});
|
|
4527
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
4528
|
-
const value = await parseBody(errorBody, context);
|
|
4529
|
-
value.message = value.message ?? value.Message;
|
|
4530
|
-
return value;
|
|
4531
|
-
};
|
|
4532
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
4533
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
4534
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
4535
|
-
let cleanValue = rawValue;
|
|
4536
|
-
if (typeof cleanValue === "number") {
|
|
4537
|
-
cleanValue = cleanValue.toString();
|
|
4538
|
-
}
|
|
4539
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
4540
|
-
cleanValue = cleanValue.split(",")[0];
|
|
4541
|
-
}
|
|
4542
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
4543
|
-
cleanValue = cleanValue.split(":")[0];
|
|
4544
|
-
}
|
|
4545
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
4546
|
-
cleanValue = cleanValue.split("#")[1];
|
|
4547
|
-
}
|
|
4548
|
-
return cleanValue;
|
|
4549
|
-
};
|
|
4550
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
4551
|
-
if (headerKey !== undefined) {
|
|
4552
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
4553
|
-
}
|
|
4554
|
-
if (data.code !== undefined) {
|
|
4555
|
-
return sanitizeErrorCode(data.code);
|
|
4556
|
-
}
|
|
4557
|
-
if (data["__type"] !== undefined) {
|
|
4558
|
-
return sanitizeErrorCode(data["__type"]);
|
|
4559
|
-
}
|
|
4560
|
-
};
|
|
1
|
+
module.exports = require("../index.js");
|