@aws-sdk/client-mgn 3.215.0 → 3.218.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -7
- package/dist-cjs/Mgn.js +330 -0
- package/dist-cjs/commands/ArchiveApplicationCommand.js +46 -0
- package/dist-cjs/commands/ArchiveWaveCommand.js +46 -0
- package/dist-cjs/commands/AssociateApplicationsCommand.js +46 -0
- package/dist-cjs/commands/AssociateSourceServersCommand.js +46 -0
- package/dist-cjs/commands/CreateApplicationCommand.js +46 -0
- package/dist-cjs/commands/CreateWaveCommand.js +46 -0
- package/dist-cjs/commands/DeleteApplicationCommand.js +46 -0
- package/dist-cjs/commands/DeleteWaveCommand.js +46 -0
- package/dist-cjs/commands/DisassociateApplicationsCommand.js +46 -0
- package/dist-cjs/commands/DisassociateSourceServersCommand.js +46 -0
- package/dist-cjs/commands/ListApplicationsCommand.js +46 -0
- package/dist-cjs/commands/ListSourceServerActionsCommand.js +46 -0
- package/dist-cjs/commands/ListTemplateActionsCommand.js +46 -0
- package/dist-cjs/commands/ListWavesCommand.js +46 -0
- package/dist-cjs/commands/PutSourceServerActionCommand.js +46 -0
- package/dist-cjs/commands/PutTemplateActionCommand.js +46 -0
- package/dist-cjs/commands/RemoveSourceServerActionCommand.js +46 -0
- package/dist-cjs/commands/RemoveTemplateActionCommand.js +46 -0
- package/dist-cjs/commands/UnarchiveApplicationCommand.js +46 -0
- package/dist-cjs/commands/UnarchiveWaveCommand.js +46 -0
- package/dist-cjs/commands/UpdateApplicationCommand.js +46 -0
- package/dist-cjs/commands/UpdateWaveCommand.js +46 -0
- package/dist-cjs/commands/index.js +22 -0
- package/dist-cjs/models/models_0.js +290 -68
- package/dist-cjs/pagination/ListApplicationsPaginator.js +36 -0
- package/dist-cjs/pagination/ListSourceServerActionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListTemplateActionsPaginator.js +36 -0
- package/dist-cjs/pagination/ListWavesPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +4 -0
- package/dist-cjs/protocols/Aws_restJson1.js +2540 -507
- package/dist-es/Mgn.js +330 -0
- package/dist-es/commands/ArchiveApplicationCommand.js +42 -0
- package/dist-es/commands/ArchiveWaveCommand.js +42 -0
- package/dist-es/commands/AssociateApplicationsCommand.js +42 -0
- package/dist-es/commands/AssociateSourceServersCommand.js +42 -0
- package/dist-es/commands/CreateApplicationCommand.js +42 -0
- package/dist-es/commands/CreateWaveCommand.js +42 -0
- package/dist-es/commands/DeleteApplicationCommand.js +42 -0
- package/dist-es/commands/DeleteWaveCommand.js +42 -0
- package/dist-es/commands/DisassociateApplicationsCommand.js +42 -0
- package/dist-es/commands/DisassociateSourceServersCommand.js +42 -0
- package/dist-es/commands/ListApplicationsCommand.js +42 -0
- package/dist-es/commands/ListSourceServerActionsCommand.js +42 -0
- package/dist-es/commands/ListTemplateActionsCommand.js +42 -0
- package/dist-es/commands/ListWavesCommand.js +42 -0
- package/dist-es/commands/PutSourceServerActionCommand.js +42 -0
- package/dist-es/commands/PutTemplateActionCommand.js +42 -0
- package/dist-es/commands/RemoveSourceServerActionCommand.js +42 -0
- package/dist-es/commands/RemoveTemplateActionCommand.js +42 -0
- package/dist-es/commands/UnarchiveApplicationCommand.js +42 -0
- package/dist-es/commands/UnarchiveWaveCommand.js +42 -0
- package/dist-es/commands/UpdateApplicationCommand.js +42 -0
- package/dist-es/commands/UpdateWaveCommand.js +42 -0
- package/dist-es/commands/index.js +22 -0
- package/dist-es/models/models_0.js +237 -61
- package/dist-es/pagination/ListApplicationsPaginator.js +32 -0
- package/dist-es/pagination/ListSourceServerActionsPaginator.js +32 -0
- package/dist-es/pagination/ListTemplateActionsPaginator.js +32 -0
- package/dist-es/pagination/ListWavesPaginator.js +32 -0
- package/dist-es/pagination/index.js +4 -0
- package/dist-es/protocols/Aws_restJson1.js +2589 -601
- package/dist-types/Mgn.d.ts +158 -4
- package/dist-types/MgnClient.d.ts +24 -2
- package/dist-types/commands/ArchiveApplicationCommand.d.ts +37 -0
- package/dist-types/commands/ArchiveWaveCommand.d.ts +37 -0
- package/dist-types/commands/AssociateApplicationsCommand.d.ts +37 -0
- package/dist-types/commands/AssociateSourceServersCommand.d.ts +37 -0
- package/dist-types/commands/CreateApplicationCommand.d.ts +37 -0
- package/dist-types/commands/CreateLaunchConfigurationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/CreateWaveCommand.d.ts +37 -0
- package/dist-types/commands/DeleteApplicationCommand.d.ts +37 -0
- package/dist-types/commands/DeleteLaunchConfigurationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/DeleteWaveCommand.d.ts +37 -0
- package/dist-types/commands/DescribeLaunchConfigurationTemplatesCommand.d.ts +1 -1
- package/dist-types/commands/DisassociateApplicationsCommand.d.ts +37 -0
- package/dist-types/commands/DisassociateSourceServersCommand.d.ts +37 -0
- package/dist-types/commands/ListApplicationsCommand.d.ts +37 -0
- package/dist-types/commands/ListSourceServerActionsCommand.d.ts +37 -0
- package/dist-types/commands/ListTemplateActionsCommand.d.ts +37 -0
- package/dist-types/commands/ListWavesCommand.d.ts +37 -0
- package/dist-types/commands/PutSourceServerActionCommand.d.ts +37 -0
- package/dist-types/commands/PutTemplateActionCommand.d.ts +37 -0
- package/dist-types/commands/RemoveSourceServerActionCommand.d.ts +37 -0
- package/dist-types/commands/RemoveTemplateActionCommand.d.ts +37 -0
- package/dist-types/commands/UnarchiveApplicationCommand.d.ts +37 -0
- package/dist-types/commands/UnarchiveWaveCommand.d.ts +37 -0
- package/dist-types/commands/UpdateApplicationCommand.d.ts +37 -0
- package/dist-types/commands/UpdateLaunchConfigurationTemplateCommand.d.ts +1 -1
- package/dist-types/commands/UpdateWaveCommand.d.ts +37 -0
- package/dist-types/commands/index.d.ts +22 -0
- package/dist-types/models/models_0.d.ts +1211 -198
- package/dist-types/pagination/ListApplicationsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListSourceServerActionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListTemplateActionsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListWavesPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +4 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +66 -0
- package/dist-types/ts3.4/Mgn.d.ts +374 -0
- package/dist-types/ts3.4/MgnClient.d.ts +134 -2
- package/dist-types/ts3.4/commands/ArchiveApplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/ArchiveWaveCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/AssociateApplicationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/AssociateSourceServersCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/CreateApplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/CreateWaveCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/DeleteApplicationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/DeleteWaveCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DisassociateApplicationsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DisassociateSourceServersCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListApplicationsCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/ListSourceServerActionsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListTemplateActionsCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListWavesCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/PutSourceServerActionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/PutTemplateActionCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RemoveSourceServerActionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/RemoveTemplateActionCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/UnarchiveApplicationCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/UnarchiveWaveCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/UpdateApplicationCommand.d.ts +35 -0
- package/dist-types/ts3.4/commands/UpdateWaveCommand.d.ts +32 -0
- package/dist-types/ts3.4/commands/index.d.ts +22 -0
- package/dist-types/ts3.4/models/models_0.d.ts +475 -53
- package/dist-types/ts3.4/pagination/ListApplicationsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListSourceServerActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListTemplateActionsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListWavesPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +4 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +264 -0
- package/package.json +4 -4
|
@@ -1,11 +1,102 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
4
|
-
exports.
|
|
3
|
+
exports.serializeAws_restJson1UpdateLaunchConfigurationCommand = exports.serializeAws_restJson1UpdateApplicationCommand = exports.serializeAws_restJson1UntagResourceCommand = exports.serializeAws_restJson1UnarchiveWaveCommand = exports.serializeAws_restJson1UnarchiveApplicationCommand = exports.serializeAws_restJson1TerminateTargetInstancesCommand = exports.serializeAws_restJson1TagResourceCommand = exports.serializeAws_restJson1StartTestCommand = exports.serializeAws_restJson1StartReplicationCommand = exports.serializeAws_restJson1StartCutoverCommand = exports.serializeAws_restJson1RetryDataReplicationCommand = exports.serializeAws_restJson1RemoveTemplateActionCommand = exports.serializeAws_restJson1RemoveSourceServerActionCommand = exports.serializeAws_restJson1PutTemplateActionCommand = exports.serializeAws_restJson1PutSourceServerActionCommand = exports.serializeAws_restJson1MarkAsArchivedCommand = exports.serializeAws_restJson1ListWavesCommand = exports.serializeAws_restJson1ListTemplateActionsCommand = exports.serializeAws_restJson1ListTagsForResourceCommand = exports.serializeAws_restJson1ListSourceServerActionsCommand = exports.serializeAws_restJson1ListApplicationsCommand = exports.serializeAws_restJson1InitializeServiceCommand = exports.serializeAws_restJson1GetReplicationConfigurationCommand = exports.serializeAws_restJson1GetLaunchConfigurationCommand = exports.serializeAws_restJson1FinalizeCutoverCommand = exports.serializeAws_restJson1DisconnectFromServiceCommand = exports.serializeAws_restJson1DisassociateSourceServersCommand = exports.serializeAws_restJson1DisassociateApplicationsCommand = exports.serializeAws_restJson1DescribeVcenterClientsCommand = exports.serializeAws_restJson1DescribeSourceServersCommand = exports.serializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.serializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = exports.serializeAws_restJson1DescribeJobsCommand = exports.serializeAws_restJson1DescribeJobLogItemsCommand = exports.serializeAws_restJson1DeleteWaveCommand = exports.serializeAws_restJson1DeleteVcenterClientCommand = exports.serializeAws_restJson1DeleteSourceServerCommand = exports.serializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = exports.serializeAws_restJson1DeleteJobCommand = exports.serializeAws_restJson1DeleteApplicationCommand = exports.serializeAws_restJson1CreateWaveCommand = exports.serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1CreateLaunchConfigurationTemplateCommand = exports.serializeAws_restJson1CreateApplicationCommand = exports.serializeAws_restJson1ChangeServerLifeCycleStateCommand = exports.serializeAws_restJson1AssociateSourceServersCommand = exports.serializeAws_restJson1AssociateApplicationsCommand = exports.serializeAws_restJson1ArchiveWaveCommand = exports.serializeAws_restJson1ArchiveApplicationCommand = void 0;
|
|
4
|
+
exports.deserializeAws_restJson1TerminateTargetInstancesCommand = exports.deserializeAws_restJson1TagResourceCommand = exports.deserializeAws_restJson1StartTestCommand = exports.deserializeAws_restJson1StartReplicationCommand = exports.deserializeAws_restJson1StartCutoverCommand = exports.deserializeAws_restJson1RetryDataReplicationCommand = exports.deserializeAws_restJson1RemoveTemplateActionCommand = exports.deserializeAws_restJson1RemoveSourceServerActionCommand = exports.deserializeAws_restJson1PutTemplateActionCommand = exports.deserializeAws_restJson1PutSourceServerActionCommand = exports.deserializeAws_restJson1MarkAsArchivedCommand = exports.deserializeAws_restJson1ListWavesCommand = exports.deserializeAws_restJson1ListTemplateActionsCommand = exports.deserializeAws_restJson1ListTagsForResourceCommand = exports.deserializeAws_restJson1ListSourceServerActionsCommand = exports.deserializeAws_restJson1ListApplicationsCommand = exports.deserializeAws_restJson1InitializeServiceCommand = exports.deserializeAws_restJson1GetReplicationConfigurationCommand = exports.deserializeAws_restJson1GetLaunchConfigurationCommand = exports.deserializeAws_restJson1FinalizeCutoverCommand = exports.deserializeAws_restJson1DisconnectFromServiceCommand = exports.deserializeAws_restJson1DisassociateSourceServersCommand = exports.deserializeAws_restJson1DisassociateApplicationsCommand = exports.deserializeAws_restJson1DescribeVcenterClientsCommand = exports.deserializeAws_restJson1DescribeSourceServersCommand = exports.deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = exports.deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = exports.deserializeAws_restJson1DescribeJobsCommand = exports.deserializeAws_restJson1DescribeJobLogItemsCommand = exports.deserializeAws_restJson1DeleteWaveCommand = exports.deserializeAws_restJson1DeleteVcenterClientCommand = exports.deserializeAws_restJson1DeleteSourceServerCommand = exports.deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = exports.deserializeAws_restJson1DeleteJobCommand = exports.deserializeAws_restJson1DeleteApplicationCommand = exports.deserializeAws_restJson1CreateWaveCommand = exports.deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = exports.deserializeAws_restJson1CreateApplicationCommand = exports.deserializeAws_restJson1ChangeServerLifeCycleStateCommand = exports.deserializeAws_restJson1AssociateSourceServersCommand = exports.deserializeAws_restJson1AssociateApplicationsCommand = exports.deserializeAws_restJson1ArchiveWaveCommand = exports.deserializeAws_restJson1ArchiveApplicationCommand = exports.serializeAws_restJson1UpdateWaveCommand = exports.serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.serializeAws_restJson1UpdateReplicationConfigurationCommand = exports.serializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = void 0;
|
|
5
|
+
exports.deserializeAws_restJson1UpdateWaveCommand = exports.deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = exports.deserializeAws_restJson1UpdateReplicationConfigurationCommand = exports.deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = exports.deserializeAws_restJson1UpdateLaunchConfigurationCommand = exports.deserializeAws_restJson1UpdateApplicationCommand = exports.deserializeAws_restJson1UntagResourceCommand = exports.deserializeAws_restJson1UnarchiveWaveCommand = exports.deserializeAws_restJson1UnarchiveApplicationCommand = void 0;
|
|
5
6
|
const protocol_http_1 = require("@aws-sdk/protocol-http");
|
|
6
7
|
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
7
8
|
const MgnServiceException_1 = require("../models/MgnServiceException");
|
|
8
9
|
const models_0_1 = require("../models/models_0");
|
|
10
|
+
const serializeAws_restJson1ArchiveApplicationCommand = async (input, context) => {
|
|
11
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
12
|
+
const headers = {
|
|
13
|
+
"content-type": "application/json",
|
|
14
|
+
};
|
|
15
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ArchiveApplication";
|
|
16
|
+
let body;
|
|
17
|
+
body = JSON.stringify({
|
|
18
|
+
...(input.applicationID != null && { applicationID: input.applicationID }),
|
|
19
|
+
});
|
|
20
|
+
return new protocol_http_1.HttpRequest({
|
|
21
|
+
protocol,
|
|
22
|
+
hostname,
|
|
23
|
+
port,
|
|
24
|
+
method: "POST",
|
|
25
|
+
headers,
|
|
26
|
+
path: resolvedPath,
|
|
27
|
+
body,
|
|
28
|
+
});
|
|
29
|
+
};
|
|
30
|
+
exports.serializeAws_restJson1ArchiveApplicationCommand = serializeAws_restJson1ArchiveApplicationCommand;
|
|
31
|
+
const serializeAws_restJson1ArchiveWaveCommand = async (input, context) => {
|
|
32
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
33
|
+
const headers = {
|
|
34
|
+
"content-type": "application/json",
|
|
35
|
+
};
|
|
36
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ArchiveWave";
|
|
37
|
+
let body;
|
|
38
|
+
body = JSON.stringify({
|
|
39
|
+
...(input.waveID != null && { waveID: input.waveID }),
|
|
40
|
+
});
|
|
41
|
+
return new protocol_http_1.HttpRequest({
|
|
42
|
+
protocol,
|
|
43
|
+
hostname,
|
|
44
|
+
port,
|
|
45
|
+
method: "POST",
|
|
46
|
+
headers,
|
|
47
|
+
path: resolvedPath,
|
|
48
|
+
body,
|
|
49
|
+
});
|
|
50
|
+
};
|
|
51
|
+
exports.serializeAws_restJson1ArchiveWaveCommand = serializeAws_restJson1ArchiveWaveCommand;
|
|
52
|
+
const serializeAws_restJson1AssociateApplicationsCommand = async (input, context) => {
|
|
53
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
54
|
+
const headers = {
|
|
55
|
+
"content-type": "application/json",
|
|
56
|
+
};
|
|
57
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateApplications";
|
|
58
|
+
let body;
|
|
59
|
+
body = JSON.stringify({
|
|
60
|
+
...(input.applicationIDs != null && {
|
|
61
|
+
applicationIDs: serializeAws_restJson1ApplicationIDs(input.applicationIDs, context),
|
|
62
|
+
}),
|
|
63
|
+
...(input.waveID != null && { waveID: input.waveID }),
|
|
64
|
+
});
|
|
65
|
+
return new protocol_http_1.HttpRequest({
|
|
66
|
+
protocol,
|
|
67
|
+
hostname,
|
|
68
|
+
port,
|
|
69
|
+
method: "POST",
|
|
70
|
+
headers,
|
|
71
|
+
path: resolvedPath,
|
|
72
|
+
body,
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
exports.serializeAws_restJson1AssociateApplicationsCommand = serializeAws_restJson1AssociateApplicationsCommand;
|
|
76
|
+
const serializeAws_restJson1AssociateSourceServersCommand = async (input, context) => {
|
|
77
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
78
|
+
const headers = {
|
|
79
|
+
"content-type": "application/json",
|
|
80
|
+
};
|
|
81
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/AssociateSourceServers";
|
|
82
|
+
let body;
|
|
83
|
+
body = JSON.stringify({
|
|
84
|
+
...(input.applicationID != null && { applicationID: input.applicationID }),
|
|
85
|
+
...(input.sourceServerIDs != null && {
|
|
86
|
+
sourceServerIDs: serializeAws_restJson1AssociateSourceServersRequestSourceServerIDs(input.sourceServerIDs, context),
|
|
87
|
+
}),
|
|
88
|
+
});
|
|
89
|
+
return new protocol_http_1.HttpRequest({
|
|
90
|
+
protocol,
|
|
91
|
+
hostname,
|
|
92
|
+
port,
|
|
93
|
+
method: "POST",
|
|
94
|
+
headers,
|
|
95
|
+
path: resolvedPath,
|
|
96
|
+
body,
|
|
97
|
+
});
|
|
98
|
+
};
|
|
99
|
+
exports.serializeAws_restJson1AssociateSourceServersCommand = serializeAws_restJson1AssociateSourceServersCommand;
|
|
9
100
|
const serializeAws_restJson1ChangeServerLifeCycleStateCommand = async (input, context) => {
|
|
10
101
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
11
102
|
const headers = {
|
|
@@ -30,6 +121,29 @@ const serializeAws_restJson1ChangeServerLifeCycleStateCommand = async (input, co
|
|
|
30
121
|
});
|
|
31
122
|
};
|
|
32
123
|
exports.serializeAws_restJson1ChangeServerLifeCycleStateCommand = serializeAws_restJson1ChangeServerLifeCycleStateCommand;
|
|
124
|
+
const serializeAws_restJson1CreateApplicationCommand = async (input, context) => {
|
|
125
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
126
|
+
const headers = {
|
|
127
|
+
"content-type": "application/json",
|
|
128
|
+
};
|
|
129
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateApplication";
|
|
130
|
+
let body;
|
|
131
|
+
body = JSON.stringify({
|
|
132
|
+
...(input.description != null && { description: input.description }),
|
|
133
|
+
...(input.name != null && { name: input.name }),
|
|
134
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
135
|
+
});
|
|
136
|
+
return new protocol_http_1.HttpRequest({
|
|
137
|
+
protocol,
|
|
138
|
+
hostname,
|
|
139
|
+
port,
|
|
140
|
+
method: "POST",
|
|
141
|
+
headers,
|
|
142
|
+
path: resolvedPath,
|
|
143
|
+
body,
|
|
144
|
+
});
|
|
145
|
+
};
|
|
146
|
+
exports.serializeAws_restJson1CreateApplicationCommand = serializeAws_restJson1CreateApplicationCommand;
|
|
33
147
|
const serializeAws_restJson1CreateLaunchConfigurationTemplateCommand = async (input, context) => {
|
|
34
148
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
35
149
|
const headers = {
|
|
@@ -38,10 +152,28 @@ const serializeAws_restJson1CreateLaunchConfigurationTemplateCommand = async (in
|
|
|
38
152
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateLaunchConfigurationTemplate";
|
|
39
153
|
let body;
|
|
40
154
|
body = JSON.stringify({
|
|
155
|
+
...(input.associatePublicIpAddress != null && { associatePublicIpAddress: input.associatePublicIpAddress }),
|
|
156
|
+
...(input.bootMode != null && { bootMode: input.bootMode }),
|
|
157
|
+
...(input.copyPrivateIp != null && { copyPrivateIp: input.copyPrivateIp }),
|
|
158
|
+
...(input.copyTags != null && { copyTags: input.copyTags }),
|
|
159
|
+
...(input.enableMapAutoTagging != null && { enableMapAutoTagging: input.enableMapAutoTagging }),
|
|
160
|
+
...(input.largeVolumeConf != null && {
|
|
161
|
+
largeVolumeConf: serializeAws_restJson1LaunchTemplateDiskConf(input.largeVolumeConf, context),
|
|
162
|
+
}),
|
|
163
|
+
...(input.launchDisposition != null && { launchDisposition: input.launchDisposition }),
|
|
164
|
+
...(input.licensing != null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) }),
|
|
165
|
+
...(input.mapAutoTaggingMpeID != null && { mapAutoTaggingMpeID: input.mapAutoTaggingMpeID }),
|
|
41
166
|
...(input.postLaunchActions != null && {
|
|
42
167
|
postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
|
|
43
168
|
}),
|
|
169
|
+
...(input.smallVolumeConf != null && {
|
|
170
|
+
smallVolumeConf: serializeAws_restJson1LaunchTemplateDiskConf(input.smallVolumeConf, context),
|
|
171
|
+
}),
|
|
172
|
+
...(input.smallVolumeMaxSize != null && { smallVolumeMaxSize: input.smallVolumeMaxSize }),
|
|
44
173
|
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
174
|
+
...(input.targetInstanceTypeRightSizingMethod != null && {
|
|
175
|
+
targetInstanceTypeRightSizingMethod: input.targetInstanceTypeRightSizingMethod,
|
|
176
|
+
}),
|
|
45
177
|
});
|
|
46
178
|
return new protocol_http_1.HttpRequest({
|
|
47
179
|
protocol,
|
|
@@ -99,6 +231,50 @@ const serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = asyn
|
|
|
99
231
|
});
|
|
100
232
|
};
|
|
101
233
|
exports.serializeAws_restJson1CreateReplicationConfigurationTemplateCommand = serializeAws_restJson1CreateReplicationConfigurationTemplateCommand;
|
|
234
|
+
const serializeAws_restJson1CreateWaveCommand = async (input, context) => {
|
|
235
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
236
|
+
const headers = {
|
|
237
|
+
"content-type": "application/json",
|
|
238
|
+
};
|
|
239
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/CreateWave";
|
|
240
|
+
let body;
|
|
241
|
+
body = JSON.stringify({
|
|
242
|
+
...(input.description != null && { description: input.description }),
|
|
243
|
+
...(input.name != null && { name: input.name }),
|
|
244
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
245
|
+
});
|
|
246
|
+
return new protocol_http_1.HttpRequest({
|
|
247
|
+
protocol,
|
|
248
|
+
hostname,
|
|
249
|
+
port,
|
|
250
|
+
method: "POST",
|
|
251
|
+
headers,
|
|
252
|
+
path: resolvedPath,
|
|
253
|
+
body,
|
|
254
|
+
});
|
|
255
|
+
};
|
|
256
|
+
exports.serializeAws_restJson1CreateWaveCommand = serializeAws_restJson1CreateWaveCommand;
|
|
257
|
+
const serializeAws_restJson1DeleteApplicationCommand = async (input, context) => {
|
|
258
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
259
|
+
const headers = {
|
|
260
|
+
"content-type": "application/json",
|
|
261
|
+
};
|
|
262
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteApplication";
|
|
263
|
+
let body;
|
|
264
|
+
body = JSON.stringify({
|
|
265
|
+
...(input.applicationID != null && { applicationID: input.applicationID }),
|
|
266
|
+
});
|
|
267
|
+
return new protocol_http_1.HttpRequest({
|
|
268
|
+
protocol,
|
|
269
|
+
hostname,
|
|
270
|
+
port,
|
|
271
|
+
method: "POST",
|
|
272
|
+
headers,
|
|
273
|
+
path: resolvedPath,
|
|
274
|
+
body,
|
|
275
|
+
});
|
|
276
|
+
};
|
|
277
|
+
exports.serializeAws_restJson1DeleteApplicationCommand = serializeAws_restJson1DeleteApplicationCommand;
|
|
102
278
|
const serializeAws_restJson1DeleteJobCommand = async (input, context) => {
|
|
103
279
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
104
280
|
const headers = {
|
|
@@ -208,6 +384,27 @@ const serializeAws_restJson1DeleteVcenterClientCommand = async (input, context)
|
|
|
208
384
|
});
|
|
209
385
|
};
|
|
210
386
|
exports.serializeAws_restJson1DeleteVcenterClientCommand = serializeAws_restJson1DeleteVcenterClientCommand;
|
|
387
|
+
const serializeAws_restJson1DeleteWaveCommand = async (input, context) => {
|
|
388
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
389
|
+
const headers = {
|
|
390
|
+
"content-type": "application/json",
|
|
391
|
+
};
|
|
392
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DeleteWave";
|
|
393
|
+
let body;
|
|
394
|
+
body = JSON.stringify({
|
|
395
|
+
...(input.waveID != null && { waveID: input.waveID }),
|
|
396
|
+
});
|
|
397
|
+
return new protocol_http_1.HttpRequest({
|
|
398
|
+
protocol,
|
|
399
|
+
hostname,
|
|
400
|
+
port,
|
|
401
|
+
method: "POST",
|
|
402
|
+
headers,
|
|
403
|
+
path: resolvedPath,
|
|
404
|
+
body,
|
|
405
|
+
});
|
|
406
|
+
};
|
|
407
|
+
exports.serializeAws_restJson1DeleteWaveCommand = serializeAws_restJson1DeleteWaveCommand;
|
|
211
408
|
const serializeAws_restJson1DescribeJobLogItemsCommand = async (input, context) => {
|
|
212
409
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
213
410
|
const headers = {
|
|
@@ -351,6 +548,54 @@ const serializeAws_restJson1DescribeVcenterClientsCommand = async (input, contex
|
|
|
351
548
|
});
|
|
352
549
|
};
|
|
353
550
|
exports.serializeAws_restJson1DescribeVcenterClientsCommand = serializeAws_restJson1DescribeVcenterClientsCommand;
|
|
551
|
+
const serializeAws_restJson1DisassociateApplicationsCommand = async (input, context) => {
|
|
552
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
553
|
+
const headers = {
|
|
554
|
+
"content-type": "application/json",
|
|
555
|
+
};
|
|
556
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateApplications";
|
|
557
|
+
let body;
|
|
558
|
+
body = JSON.stringify({
|
|
559
|
+
...(input.applicationIDs != null && {
|
|
560
|
+
applicationIDs: serializeAws_restJson1ApplicationIDs(input.applicationIDs, context),
|
|
561
|
+
}),
|
|
562
|
+
...(input.waveID != null && { waveID: input.waveID }),
|
|
563
|
+
});
|
|
564
|
+
return new protocol_http_1.HttpRequest({
|
|
565
|
+
protocol,
|
|
566
|
+
hostname,
|
|
567
|
+
port,
|
|
568
|
+
method: "POST",
|
|
569
|
+
headers,
|
|
570
|
+
path: resolvedPath,
|
|
571
|
+
body,
|
|
572
|
+
});
|
|
573
|
+
};
|
|
574
|
+
exports.serializeAws_restJson1DisassociateApplicationsCommand = serializeAws_restJson1DisassociateApplicationsCommand;
|
|
575
|
+
const serializeAws_restJson1DisassociateSourceServersCommand = async (input, context) => {
|
|
576
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
577
|
+
const headers = {
|
|
578
|
+
"content-type": "application/json",
|
|
579
|
+
};
|
|
580
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/DisassociateSourceServers";
|
|
581
|
+
let body;
|
|
582
|
+
body = JSON.stringify({
|
|
583
|
+
...(input.applicationID != null && { applicationID: input.applicationID }),
|
|
584
|
+
...(input.sourceServerIDs != null && {
|
|
585
|
+
sourceServerIDs: serializeAws_restJson1DisassociateSourceServersRequestSourceServerIDs(input.sourceServerIDs, context),
|
|
586
|
+
}),
|
|
587
|
+
});
|
|
588
|
+
return new protocol_http_1.HttpRequest({
|
|
589
|
+
protocol,
|
|
590
|
+
hostname,
|
|
591
|
+
port,
|
|
592
|
+
method: "POST",
|
|
593
|
+
headers,
|
|
594
|
+
path: resolvedPath,
|
|
595
|
+
body,
|
|
596
|
+
});
|
|
597
|
+
};
|
|
598
|
+
exports.serializeAws_restJson1DisassociateSourceServersCommand = serializeAws_restJson1DisassociateSourceServersCommand;
|
|
354
599
|
const serializeAws_restJson1DisconnectFromServiceCommand = async (input, context) => {
|
|
355
600
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
356
601
|
const headers = {
|
|
@@ -454,31 +699,44 @@ const serializeAws_restJson1InitializeServiceCommand = async (input, context) =>
|
|
|
454
699
|
});
|
|
455
700
|
};
|
|
456
701
|
exports.serializeAws_restJson1InitializeServiceCommand = serializeAws_restJson1InitializeServiceCommand;
|
|
457
|
-
const
|
|
702
|
+
const serializeAws_restJson1ListApplicationsCommand = async (input, context) => {
|
|
458
703
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
459
|
-
const headers = {
|
|
460
|
-
|
|
461
|
-
|
|
704
|
+
const headers = {
|
|
705
|
+
"content-type": "application/json",
|
|
706
|
+
};
|
|
707
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListApplications";
|
|
462
708
|
let body;
|
|
709
|
+
body = JSON.stringify({
|
|
710
|
+
...(input.filters != null && {
|
|
711
|
+
filters: serializeAws_restJson1ListApplicationsRequestFilters(input.filters, context),
|
|
712
|
+
}),
|
|
713
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
714
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
715
|
+
});
|
|
463
716
|
return new protocol_http_1.HttpRequest({
|
|
464
717
|
protocol,
|
|
465
718
|
hostname,
|
|
466
719
|
port,
|
|
467
|
-
method: "
|
|
720
|
+
method: "POST",
|
|
468
721
|
headers,
|
|
469
722
|
path: resolvedPath,
|
|
470
723
|
body,
|
|
471
724
|
});
|
|
472
725
|
};
|
|
473
|
-
exports.
|
|
474
|
-
const
|
|
726
|
+
exports.serializeAws_restJson1ListApplicationsCommand = serializeAws_restJson1ListApplicationsCommand;
|
|
727
|
+
const serializeAws_restJson1ListSourceServerActionsCommand = async (input, context) => {
|
|
475
728
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
476
729
|
const headers = {
|
|
477
730
|
"content-type": "application/json",
|
|
478
731
|
};
|
|
479
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/
|
|
732
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListSourceServerActions";
|
|
480
733
|
let body;
|
|
481
734
|
body = JSON.stringify({
|
|
735
|
+
...(input.filters != null && {
|
|
736
|
+
filters: serializeAws_restJson1SourceServerActionsRequestFilters(input.filters, context),
|
|
737
|
+
}),
|
|
738
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
739
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
482
740
|
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
483
741
|
});
|
|
484
742
|
return new protocol_http_1.HttpRequest({
|
|
@@ -491,40 +749,40 @@ const serializeAws_restJson1MarkAsArchivedCommand = async (input, context) => {
|
|
|
491
749
|
body,
|
|
492
750
|
});
|
|
493
751
|
};
|
|
494
|
-
exports.
|
|
495
|
-
const
|
|
752
|
+
exports.serializeAws_restJson1ListSourceServerActionsCommand = serializeAws_restJson1ListSourceServerActionsCommand;
|
|
753
|
+
const serializeAws_restJson1ListTagsForResourceCommand = async (input, context) => {
|
|
496
754
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
497
|
-
const headers = {
|
|
498
|
-
|
|
499
|
-
};
|
|
500
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication";
|
|
755
|
+
const headers = {};
|
|
756
|
+
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
757
|
+
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
501
758
|
let body;
|
|
502
|
-
body = JSON.stringify({
|
|
503
|
-
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
504
|
-
});
|
|
505
759
|
return new protocol_http_1.HttpRequest({
|
|
506
760
|
protocol,
|
|
507
761
|
hostname,
|
|
508
762
|
port,
|
|
509
|
-
method: "
|
|
763
|
+
method: "GET",
|
|
510
764
|
headers,
|
|
511
765
|
path: resolvedPath,
|
|
512
766
|
body,
|
|
513
767
|
});
|
|
514
768
|
};
|
|
515
|
-
exports.
|
|
516
|
-
const
|
|
769
|
+
exports.serializeAws_restJson1ListTagsForResourceCommand = serializeAws_restJson1ListTagsForResourceCommand;
|
|
770
|
+
const serializeAws_restJson1ListTemplateActionsCommand = async (input, context) => {
|
|
517
771
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
518
772
|
const headers = {
|
|
519
773
|
"content-type": "application/json",
|
|
520
774
|
};
|
|
521
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/
|
|
775
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListTemplateActions";
|
|
522
776
|
let body;
|
|
523
777
|
body = JSON.stringify({
|
|
524
|
-
...(input.
|
|
525
|
-
|
|
778
|
+
...(input.filters != null && {
|
|
779
|
+
filters: serializeAws_restJson1TemplateActionsRequestFilters(input.filters, context),
|
|
526
780
|
}),
|
|
527
|
-
...(input.
|
|
781
|
+
...(input.launchConfigurationTemplateID != null && {
|
|
782
|
+
launchConfigurationTemplateID: input.launchConfigurationTemplateID,
|
|
783
|
+
}),
|
|
784
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
785
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
528
786
|
});
|
|
529
787
|
return new protocol_http_1.HttpRequest({
|
|
530
788
|
protocol,
|
|
@@ -536,16 +794,18 @@ const serializeAws_restJson1StartCutoverCommand = async (input, context) => {
|
|
|
536
794
|
body,
|
|
537
795
|
});
|
|
538
796
|
};
|
|
539
|
-
exports.
|
|
540
|
-
const
|
|
797
|
+
exports.serializeAws_restJson1ListTemplateActionsCommand = serializeAws_restJson1ListTemplateActionsCommand;
|
|
798
|
+
const serializeAws_restJson1ListWavesCommand = async (input, context) => {
|
|
541
799
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
542
800
|
const headers = {
|
|
543
801
|
"content-type": "application/json",
|
|
544
802
|
};
|
|
545
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/
|
|
803
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/ListWaves";
|
|
546
804
|
let body;
|
|
547
805
|
body = JSON.stringify({
|
|
548
|
-
...(input.
|
|
806
|
+
...(input.filters != null && { filters: serializeAws_restJson1ListWavesRequestFilters(input.filters, context) }),
|
|
807
|
+
...(input.maxResults != null && { maxResults: input.maxResults }),
|
|
808
|
+
...(input.nextToken != null && { nextToken: input.nextToken }),
|
|
549
809
|
});
|
|
550
810
|
return new protocol_http_1.HttpRequest({
|
|
551
811
|
protocol,
|
|
@@ -557,19 +817,219 @@ const serializeAws_restJson1StartReplicationCommand = async (input, context) =>
|
|
|
557
817
|
body,
|
|
558
818
|
});
|
|
559
819
|
};
|
|
560
|
-
exports.
|
|
561
|
-
const
|
|
820
|
+
exports.serializeAws_restJson1ListWavesCommand = serializeAws_restJson1ListWavesCommand;
|
|
821
|
+
const serializeAws_restJson1MarkAsArchivedCommand = async (input, context) => {
|
|
562
822
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
563
823
|
const headers = {
|
|
564
824
|
"content-type": "application/json",
|
|
565
825
|
};
|
|
566
|
-
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/
|
|
826
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/MarkAsArchived";
|
|
567
827
|
let body;
|
|
568
828
|
body = JSON.stringify({
|
|
569
|
-
...(input.
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
829
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
830
|
+
});
|
|
831
|
+
return new protocol_http_1.HttpRequest({
|
|
832
|
+
protocol,
|
|
833
|
+
hostname,
|
|
834
|
+
port,
|
|
835
|
+
method: "POST",
|
|
836
|
+
headers,
|
|
837
|
+
path: resolvedPath,
|
|
838
|
+
body,
|
|
839
|
+
});
|
|
840
|
+
};
|
|
841
|
+
exports.serializeAws_restJson1MarkAsArchivedCommand = serializeAws_restJson1MarkAsArchivedCommand;
|
|
842
|
+
const serializeAws_restJson1PutSourceServerActionCommand = async (input, context) => {
|
|
843
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
844
|
+
const headers = {
|
|
845
|
+
"content-type": "application/json",
|
|
846
|
+
};
|
|
847
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutSourceServerAction";
|
|
848
|
+
let body;
|
|
849
|
+
body = JSON.stringify({
|
|
850
|
+
...(input.actionID != null && { actionID: input.actionID }),
|
|
851
|
+
...(input.actionName != null && { actionName: input.actionName }),
|
|
852
|
+
...(input.active != null && { active: input.active }),
|
|
853
|
+
...(input.documentIdentifier != null && { documentIdentifier: input.documentIdentifier }),
|
|
854
|
+
...(input.documentVersion != null && { documentVersion: input.documentVersion }),
|
|
855
|
+
...(input.mustSucceedForCutover != null && { mustSucceedForCutover: input.mustSucceedForCutover }),
|
|
856
|
+
...(input.order != null && { order: input.order }),
|
|
857
|
+
...(input.parameters != null && {
|
|
858
|
+
parameters: serializeAws_restJson1SsmDocumentParameters(input.parameters, context),
|
|
859
|
+
}),
|
|
860
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
861
|
+
...(input.timeoutSeconds != null && { timeoutSeconds: input.timeoutSeconds }),
|
|
862
|
+
});
|
|
863
|
+
return new protocol_http_1.HttpRequest({
|
|
864
|
+
protocol,
|
|
865
|
+
hostname,
|
|
866
|
+
port,
|
|
867
|
+
method: "POST",
|
|
868
|
+
headers,
|
|
869
|
+
path: resolvedPath,
|
|
870
|
+
body,
|
|
871
|
+
});
|
|
872
|
+
};
|
|
873
|
+
exports.serializeAws_restJson1PutSourceServerActionCommand = serializeAws_restJson1PutSourceServerActionCommand;
|
|
874
|
+
const serializeAws_restJson1PutTemplateActionCommand = async (input, context) => {
|
|
875
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
876
|
+
const headers = {
|
|
877
|
+
"content-type": "application/json",
|
|
878
|
+
};
|
|
879
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/PutTemplateAction";
|
|
880
|
+
let body;
|
|
881
|
+
body = JSON.stringify({
|
|
882
|
+
...(input.actionID != null && { actionID: input.actionID }),
|
|
883
|
+
...(input.actionName != null && { actionName: input.actionName }),
|
|
884
|
+
...(input.active != null && { active: input.active }),
|
|
885
|
+
...(input.documentIdentifier != null && { documentIdentifier: input.documentIdentifier }),
|
|
886
|
+
...(input.documentVersion != null && { documentVersion: input.documentVersion }),
|
|
887
|
+
...(input.launchConfigurationTemplateID != null && {
|
|
888
|
+
launchConfigurationTemplateID: input.launchConfigurationTemplateID,
|
|
889
|
+
}),
|
|
890
|
+
...(input.mustSucceedForCutover != null && { mustSucceedForCutover: input.mustSucceedForCutover }),
|
|
891
|
+
...(input.operatingSystem != null && { operatingSystem: input.operatingSystem }),
|
|
892
|
+
...(input.order != null && { order: input.order }),
|
|
893
|
+
...(input.parameters != null && {
|
|
894
|
+
parameters: serializeAws_restJson1SsmDocumentParameters(input.parameters, context),
|
|
895
|
+
}),
|
|
896
|
+
...(input.timeoutSeconds != null && { timeoutSeconds: input.timeoutSeconds }),
|
|
897
|
+
});
|
|
898
|
+
return new protocol_http_1.HttpRequest({
|
|
899
|
+
protocol,
|
|
900
|
+
hostname,
|
|
901
|
+
port,
|
|
902
|
+
method: "POST",
|
|
903
|
+
headers,
|
|
904
|
+
path: resolvedPath,
|
|
905
|
+
body,
|
|
906
|
+
});
|
|
907
|
+
};
|
|
908
|
+
exports.serializeAws_restJson1PutTemplateActionCommand = serializeAws_restJson1PutTemplateActionCommand;
|
|
909
|
+
const serializeAws_restJson1RemoveSourceServerActionCommand = async (input, context) => {
|
|
910
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
911
|
+
const headers = {
|
|
912
|
+
"content-type": "application/json",
|
|
913
|
+
};
|
|
914
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveSourceServerAction";
|
|
915
|
+
let body;
|
|
916
|
+
body = JSON.stringify({
|
|
917
|
+
...(input.actionID != null && { actionID: input.actionID }),
|
|
918
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
919
|
+
});
|
|
920
|
+
return new protocol_http_1.HttpRequest({
|
|
921
|
+
protocol,
|
|
922
|
+
hostname,
|
|
923
|
+
port,
|
|
924
|
+
method: "POST",
|
|
925
|
+
headers,
|
|
926
|
+
path: resolvedPath,
|
|
927
|
+
body,
|
|
928
|
+
});
|
|
929
|
+
};
|
|
930
|
+
exports.serializeAws_restJson1RemoveSourceServerActionCommand = serializeAws_restJson1RemoveSourceServerActionCommand;
|
|
931
|
+
const serializeAws_restJson1RemoveTemplateActionCommand = async (input, context) => {
|
|
932
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
933
|
+
const headers = {
|
|
934
|
+
"content-type": "application/json",
|
|
935
|
+
};
|
|
936
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RemoveTemplateAction";
|
|
937
|
+
let body;
|
|
938
|
+
body = JSON.stringify({
|
|
939
|
+
...(input.actionID != null && { actionID: input.actionID }),
|
|
940
|
+
...(input.launchConfigurationTemplateID != null && {
|
|
941
|
+
launchConfigurationTemplateID: input.launchConfigurationTemplateID,
|
|
942
|
+
}),
|
|
943
|
+
});
|
|
944
|
+
return new protocol_http_1.HttpRequest({
|
|
945
|
+
protocol,
|
|
946
|
+
hostname,
|
|
947
|
+
port,
|
|
948
|
+
method: "POST",
|
|
949
|
+
headers,
|
|
950
|
+
path: resolvedPath,
|
|
951
|
+
body,
|
|
952
|
+
});
|
|
953
|
+
};
|
|
954
|
+
exports.serializeAws_restJson1RemoveTemplateActionCommand = serializeAws_restJson1RemoveTemplateActionCommand;
|
|
955
|
+
const serializeAws_restJson1RetryDataReplicationCommand = async (input, context) => {
|
|
956
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
957
|
+
const headers = {
|
|
958
|
+
"content-type": "application/json",
|
|
959
|
+
};
|
|
960
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/RetryDataReplication";
|
|
961
|
+
let body;
|
|
962
|
+
body = JSON.stringify({
|
|
963
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
964
|
+
});
|
|
965
|
+
return new protocol_http_1.HttpRequest({
|
|
966
|
+
protocol,
|
|
967
|
+
hostname,
|
|
968
|
+
port,
|
|
969
|
+
method: "POST",
|
|
970
|
+
headers,
|
|
971
|
+
path: resolvedPath,
|
|
972
|
+
body,
|
|
973
|
+
});
|
|
974
|
+
};
|
|
975
|
+
exports.serializeAws_restJson1RetryDataReplicationCommand = serializeAws_restJson1RetryDataReplicationCommand;
|
|
976
|
+
const serializeAws_restJson1StartCutoverCommand = async (input, context) => {
|
|
977
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
978
|
+
const headers = {
|
|
979
|
+
"content-type": "application/json",
|
|
980
|
+
};
|
|
981
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartCutover";
|
|
982
|
+
let body;
|
|
983
|
+
body = JSON.stringify({
|
|
984
|
+
...(input.sourceServerIDs != null && {
|
|
985
|
+
sourceServerIDs: serializeAws_restJson1StartCutoverRequestSourceServerIDs(input.sourceServerIDs, context),
|
|
986
|
+
}),
|
|
987
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
988
|
+
});
|
|
989
|
+
return new protocol_http_1.HttpRequest({
|
|
990
|
+
protocol,
|
|
991
|
+
hostname,
|
|
992
|
+
port,
|
|
993
|
+
method: "POST",
|
|
994
|
+
headers,
|
|
995
|
+
path: resolvedPath,
|
|
996
|
+
body,
|
|
997
|
+
});
|
|
998
|
+
};
|
|
999
|
+
exports.serializeAws_restJson1StartCutoverCommand = serializeAws_restJson1StartCutoverCommand;
|
|
1000
|
+
const serializeAws_restJson1StartReplicationCommand = async (input, context) => {
|
|
1001
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1002
|
+
const headers = {
|
|
1003
|
+
"content-type": "application/json",
|
|
1004
|
+
};
|
|
1005
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartReplication";
|
|
1006
|
+
let body;
|
|
1007
|
+
body = JSON.stringify({
|
|
1008
|
+
...(input.sourceServerID != null && { sourceServerID: input.sourceServerID }),
|
|
1009
|
+
});
|
|
1010
|
+
return new protocol_http_1.HttpRequest({
|
|
1011
|
+
protocol,
|
|
1012
|
+
hostname,
|
|
1013
|
+
port,
|
|
1014
|
+
method: "POST",
|
|
1015
|
+
headers,
|
|
1016
|
+
path: resolvedPath,
|
|
1017
|
+
body,
|
|
1018
|
+
});
|
|
1019
|
+
};
|
|
1020
|
+
exports.serializeAws_restJson1StartReplicationCommand = serializeAws_restJson1StartReplicationCommand;
|
|
1021
|
+
const serializeAws_restJson1StartTestCommand = async (input, context) => {
|
|
1022
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1023
|
+
const headers = {
|
|
1024
|
+
"content-type": "application/json",
|
|
1025
|
+
};
|
|
1026
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/StartTest";
|
|
1027
|
+
let body;
|
|
1028
|
+
body = JSON.stringify({
|
|
1029
|
+
...(input.sourceServerIDs != null && {
|
|
1030
|
+
sourceServerIDs: serializeAws_restJson1StartTestRequestSourceServerIDs(input.sourceServerIDs, context),
|
|
1031
|
+
}),
|
|
1032
|
+
...(input.tags != null && { tags: serializeAws_restJson1TagsMap(input.tags, context) }),
|
|
573
1033
|
});
|
|
574
1034
|
return new protocol_http_1.HttpRequest({
|
|
575
1035
|
protocol,
|
|
@@ -628,13 +1088,58 @@ const serializeAws_restJson1TerminateTargetInstancesCommand = async (input, cont
|
|
|
628
1088
|
});
|
|
629
1089
|
};
|
|
630
1090
|
exports.serializeAws_restJson1TerminateTargetInstancesCommand = serializeAws_restJson1TerminateTargetInstancesCommand;
|
|
1091
|
+
const serializeAws_restJson1UnarchiveApplicationCommand = async (input, context) => {
|
|
1092
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1093
|
+
const headers = {
|
|
1094
|
+
"content-type": "application/json",
|
|
1095
|
+
};
|
|
1096
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UnarchiveApplication";
|
|
1097
|
+
let body;
|
|
1098
|
+
body = JSON.stringify({
|
|
1099
|
+
...(input.applicationID != null && { applicationID: input.applicationID }),
|
|
1100
|
+
});
|
|
1101
|
+
return new protocol_http_1.HttpRequest({
|
|
1102
|
+
protocol,
|
|
1103
|
+
hostname,
|
|
1104
|
+
port,
|
|
1105
|
+
method: "POST",
|
|
1106
|
+
headers,
|
|
1107
|
+
path: resolvedPath,
|
|
1108
|
+
body,
|
|
1109
|
+
});
|
|
1110
|
+
};
|
|
1111
|
+
exports.serializeAws_restJson1UnarchiveApplicationCommand = serializeAws_restJson1UnarchiveApplicationCommand;
|
|
1112
|
+
const serializeAws_restJson1UnarchiveWaveCommand = async (input, context) => {
|
|
1113
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1114
|
+
const headers = {
|
|
1115
|
+
"content-type": "application/json",
|
|
1116
|
+
};
|
|
1117
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UnarchiveWave";
|
|
1118
|
+
let body;
|
|
1119
|
+
body = JSON.stringify({
|
|
1120
|
+
...(input.waveID != null && { waveID: input.waveID }),
|
|
1121
|
+
});
|
|
1122
|
+
return new protocol_http_1.HttpRequest({
|
|
1123
|
+
protocol,
|
|
1124
|
+
hostname,
|
|
1125
|
+
port,
|
|
1126
|
+
method: "POST",
|
|
1127
|
+
headers,
|
|
1128
|
+
path: resolvedPath,
|
|
1129
|
+
body,
|
|
1130
|
+
});
|
|
1131
|
+
};
|
|
1132
|
+
exports.serializeAws_restJson1UnarchiveWaveCommand = serializeAws_restJson1UnarchiveWaveCommand;
|
|
631
1133
|
const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
632
1134
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
633
1135
|
const headers = {};
|
|
634
1136
|
let resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/tags/{resourceArn}";
|
|
635
1137
|
resolvedPath = (0, smithy_client_1.resolvedPath)(resolvedPath, input, "resourceArn", () => input.resourceArn, "{resourceArn}", false);
|
|
636
1138
|
const query = map({
|
|
637
|
-
tagKeys: [
|
|
1139
|
+
tagKeys: [
|
|
1140
|
+
(0, smithy_client_1.expectNonNull)(input.tagKeys, `tagKeys`) != null,
|
|
1141
|
+
() => (input.tagKeys || []).map((_entry) => _entry),
|
|
1142
|
+
],
|
|
638
1143
|
});
|
|
639
1144
|
let body;
|
|
640
1145
|
return new protocol_http_1.HttpRequest({
|
|
@@ -649,6 +1154,29 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
649
1154
|
});
|
|
650
1155
|
};
|
|
651
1156
|
exports.serializeAws_restJson1UntagResourceCommand = serializeAws_restJson1UntagResourceCommand;
|
|
1157
|
+
const serializeAws_restJson1UpdateApplicationCommand = async (input, context) => {
|
|
1158
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1159
|
+
const headers = {
|
|
1160
|
+
"content-type": "application/json",
|
|
1161
|
+
};
|
|
1162
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateApplication";
|
|
1163
|
+
let body;
|
|
1164
|
+
body = JSON.stringify({
|
|
1165
|
+
...(input.applicationID != null && { applicationID: input.applicationID }),
|
|
1166
|
+
...(input.description != null && { description: input.description }),
|
|
1167
|
+
...(input.name != null && { name: input.name }),
|
|
1168
|
+
});
|
|
1169
|
+
return new protocol_http_1.HttpRequest({
|
|
1170
|
+
protocol,
|
|
1171
|
+
hostname,
|
|
1172
|
+
port,
|
|
1173
|
+
method: "POST",
|
|
1174
|
+
headers,
|
|
1175
|
+
path: resolvedPath,
|
|
1176
|
+
body,
|
|
1177
|
+
});
|
|
1178
|
+
};
|
|
1179
|
+
exports.serializeAws_restJson1UpdateApplicationCommand = serializeAws_restJson1UpdateApplicationCommand;
|
|
652
1180
|
const serializeAws_restJson1UpdateLaunchConfigurationCommand = async (input, context) => {
|
|
653
1181
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
654
1182
|
const headers = {
|
|
@@ -660,8 +1188,10 @@ const serializeAws_restJson1UpdateLaunchConfigurationCommand = async (input, con
|
|
|
660
1188
|
...(input.bootMode != null && { bootMode: input.bootMode }),
|
|
661
1189
|
...(input.copyPrivateIp != null && { copyPrivateIp: input.copyPrivateIp }),
|
|
662
1190
|
...(input.copyTags != null && { copyTags: input.copyTags }),
|
|
1191
|
+
...(input.enableMapAutoTagging != null && { enableMapAutoTagging: input.enableMapAutoTagging }),
|
|
663
1192
|
...(input.launchDisposition != null && { launchDisposition: input.launchDisposition }),
|
|
664
1193
|
...(input.licensing != null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) }),
|
|
1194
|
+
...(input.mapAutoTaggingMpeID != null && { mapAutoTaggingMpeID: input.mapAutoTaggingMpeID }),
|
|
665
1195
|
...(input.name != null && { name: input.name }),
|
|
666
1196
|
...(input.postLaunchActions != null && {
|
|
667
1197
|
postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
|
|
@@ -690,12 +1220,30 @@ const serializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = async (in
|
|
|
690
1220
|
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfigurationTemplate";
|
|
691
1221
|
let body;
|
|
692
1222
|
body = JSON.stringify({
|
|
1223
|
+
...(input.associatePublicIpAddress != null && { associatePublicIpAddress: input.associatePublicIpAddress }),
|
|
1224
|
+
...(input.bootMode != null && { bootMode: input.bootMode }),
|
|
1225
|
+
...(input.copyPrivateIp != null && { copyPrivateIp: input.copyPrivateIp }),
|
|
1226
|
+
...(input.copyTags != null && { copyTags: input.copyTags }),
|
|
1227
|
+
...(input.enableMapAutoTagging != null && { enableMapAutoTagging: input.enableMapAutoTagging }),
|
|
1228
|
+
...(input.largeVolumeConf != null && {
|
|
1229
|
+
largeVolumeConf: serializeAws_restJson1LaunchTemplateDiskConf(input.largeVolumeConf, context),
|
|
1230
|
+
}),
|
|
693
1231
|
...(input.launchConfigurationTemplateID != null && {
|
|
694
1232
|
launchConfigurationTemplateID: input.launchConfigurationTemplateID,
|
|
695
1233
|
}),
|
|
1234
|
+
...(input.launchDisposition != null && { launchDisposition: input.launchDisposition }),
|
|
1235
|
+
...(input.licensing != null && { licensing: serializeAws_restJson1Licensing(input.licensing, context) }),
|
|
1236
|
+
...(input.mapAutoTaggingMpeID != null && { mapAutoTaggingMpeID: input.mapAutoTaggingMpeID }),
|
|
696
1237
|
...(input.postLaunchActions != null && {
|
|
697
1238
|
postLaunchActions: serializeAws_restJson1PostLaunchActions(input.postLaunchActions, context),
|
|
698
1239
|
}),
|
|
1240
|
+
...(input.smallVolumeConf != null && {
|
|
1241
|
+
smallVolumeConf: serializeAws_restJson1LaunchTemplateDiskConf(input.smallVolumeConf, context),
|
|
1242
|
+
}),
|
|
1243
|
+
...(input.smallVolumeMaxSize != null && { smallVolumeMaxSize: input.smallVolumeMaxSize }),
|
|
1244
|
+
...(input.targetInstanceTypeRightSizingMethod != null && {
|
|
1245
|
+
targetInstanceTypeRightSizingMethod: input.targetInstanceTypeRightSizingMethod,
|
|
1246
|
+
}),
|
|
699
1247
|
});
|
|
700
1248
|
return new protocol_http_1.HttpRequest({
|
|
701
1249
|
protocol,
|
|
@@ -827,48 +1375,71 @@ const serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (in
|
|
|
827
1375
|
});
|
|
828
1376
|
};
|
|
829
1377
|
exports.serializeAws_restJson1UpdateSourceServerReplicationTypeCommand = serializeAws_restJson1UpdateSourceServerReplicationTypeCommand;
|
|
830
|
-
const
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
1378
|
+
const serializeAws_restJson1UpdateWaveCommand = async (input, context) => {
|
|
1379
|
+
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
1380
|
+
const headers = {
|
|
1381
|
+
"content-type": "application/json",
|
|
1382
|
+
};
|
|
1383
|
+
const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateWave";
|
|
1384
|
+
let body;
|
|
1385
|
+
body = JSON.stringify({
|
|
1386
|
+
...(input.description != null && { description: input.description }),
|
|
1387
|
+
...(input.name != null && { name: input.name }),
|
|
1388
|
+
...(input.waveID != null && { waveID: input.waveID }),
|
|
836
1389
|
});
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
1390
|
+
return new protocol_http_1.HttpRequest({
|
|
1391
|
+
protocol,
|
|
1392
|
+
hostname,
|
|
1393
|
+
port,
|
|
1394
|
+
method: "POST",
|
|
1395
|
+
headers,
|
|
1396
|
+
path: resolvedPath,
|
|
1397
|
+
body,
|
|
1398
|
+
});
|
|
1399
|
+
};
|
|
1400
|
+
exports.serializeAws_restJson1UpdateWaveCommand = serializeAws_restJson1UpdateWaveCommand;
|
|
1401
|
+
const deserializeAws_restJson1ArchiveApplicationCommand = async (output, context) => {
|
|
1402
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1403
|
+
return deserializeAws_restJson1ArchiveApplicationCommandError(output, context);
|
|
840
1404
|
}
|
|
841
|
-
|
|
842
|
-
|
|
1405
|
+
const contents = map({
|
|
1406
|
+
$metadata: deserializeMetadata(output),
|
|
1407
|
+
});
|
|
1408
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1409
|
+
if (data.applicationAggregatedStatus != null) {
|
|
1410
|
+
contents.applicationAggregatedStatus = deserializeAws_restJson1ApplicationAggregatedStatus(data.applicationAggregatedStatus, context);
|
|
843
1411
|
}
|
|
844
|
-
if (data.
|
|
845
|
-
contents.
|
|
1412
|
+
if (data.applicationID != null) {
|
|
1413
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
846
1414
|
}
|
|
847
|
-
if (data.
|
|
848
|
-
contents.
|
|
1415
|
+
if (data.arn != null) {
|
|
1416
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
849
1417
|
}
|
|
850
|
-
if (data.
|
|
851
|
-
contents.
|
|
1418
|
+
if (data.creationDateTime != null) {
|
|
1419
|
+
contents.creationDateTime = (0, smithy_client_1.expectString)(data.creationDateTime);
|
|
852
1420
|
}
|
|
853
|
-
if (data.
|
|
854
|
-
contents.
|
|
1421
|
+
if (data.description != null) {
|
|
1422
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
855
1423
|
}
|
|
856
|
-
if (data.
|
|
857
|
-
contents.
|
|
1424
|
+
if (data.isArchived != null) {
|
|
1425
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
858
1426
|
}
|
|
859
|
-
if (data.
|
|
860
|
-
contents.
|
|
1427
|
+
if (data.lastModifiedDateTime != null) {
|
|
1428
|
+
contents.lastModifiedDateTime = (0, smithy_client_1.expectString)(data.lastModifiedDateTime);
|
|
1429
|
+
}
|
|
1430
|
+
if (data.name != null) {
|
|
1431
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
861
1432
|
}
|
|
862
1433
|
if (data.tags != null) {
|
|
863
1434
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
864
1435
|
}
|
|
865
|
-
if (data.
|
|
866
|
-
contents.
|
|
1436
|
+
if (data.waveID != null) {
|
|
1437
|
+
contents.waveID = (0, smithy_client_1.expectString)(data.waveID);
|
|
867
1438
|
}
|
|
868
1439
|
return contents;
|
|
869
1440
|
};
|
|
870
|
-
exports.
|
|
871
|
-
const
|
|
1441
|
+
exports.deserializeAws_restJson1ArchiveApplicationCommand = deserializeAws_restJson1ArchiveApplicationCommand;
|
|
1442
|
+
const deserializeAws_restJson1ArchiveApplicationCommandError = async (output, context) => {
|
|
872
1443
|
const parsedOutput = {
|
|
873
1444
|
...output,
|
|
874
1445
|
body: await parseErrorBody(output.body, context),
|
|
@@ -881,61 +1452,12 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = async (ou
|
|
|
881
1452
|
case "ResourceNotFoundException":
|
|
882
1453
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
883
1454
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1455
|
+
case "ServiceQuotaExceededException":
|
|
1456
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1457
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
884
1458
|
case "UninitializedAccountException":
|
|
885
1459
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
886
1460
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
887
|
-
case "ValidationException":
|
|
888
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
889
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
890
|
-
default:
|
|
891
|
-
const parsedBody = parsedOutput.body;
|
|
892
|
-
(0, smithy_client_1.throwDefaultError)({
|
|
893
|
-
output,
|
|
894
|
-
parsedBody,
|
|
895
|
-
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
896
|
-
errorCode,
|
|
897
|
-
});
|
|
898
|
-
}
|
|
899
|
-
};
|
|
900
|
-
const deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
901
|
-
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
902
|
-
return deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError(output, context);
|
|
903
|
-
}
|
|
904
|
-
const contents = map({
|
|
905
|
-
$metadata: deserializeMetadata(output),
|
|
906
|
-
});
|
|
907
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
908
|
-
if (data.arn != null) {
|
|
909
|
-
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
910
|
-
}
|
|
911
|
-
if (data.launchConfigurationTemplateID != null) {
|
|
912
|
-
contents.launchConfigurationTemplateID = (0, smithy_client_1.expectString)(data.launchConfigurationTemplateID);
|
|
913
|
-
}
|
|
914
|
-
if (data.postLaunchActions != null) {
|
|
915
|
-
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
916
|
-
}
|
|
917
|
-
if (data.tags != null) {
|
|
918
|
-
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
919
|
-
}
|
|
920
|
-
return contents;
|
|
921
|
-
};
|
|
922
|
-
exports.deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand;
|
|
923
|
-
const deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
924
|
-
const parsedOutput = {
|
|
925
|
-
...output,
|
|
926
|
-
body: await parseErrorBody(output.body, context),
|
|
927
|
-
};
|
|
928
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
929
|
-
switch (errorCode) {
|
|
930
|
-
case "AccessDeniedException":
|
|
931
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
932
|
-
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
933
|
-
case "UninitializedAccountException":
|
|
934
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
935
|
-
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
936
|
-
case "ValidationException":
|
|
937
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
938
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
939
1461
|
default:
|
|
940
1462
|
const parsedBody = parsedOutput.body;
|
|
941
1463
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -946,9 +1468,9 @@ const deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError = as
|
|
|
946
1468
|
});
|
|
947
1469
|
}
|
|
948
1470
|
};
|
|
949
|
-
const
|
|
950
|
-
if (output.statusCode !==
|
|
951
|
-
return
|
|
1471
|
+
const deserializeAws_restJson1ArchiveWaveCommand = async (output, context) => {
|
|
1472
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1473
|
+
return deserializeAws_restJson1ArchiveWaveCommandError(output, context);
|
|
952
1474
|
}
|
|
953
1475
|
const contents = map({
|
|
954
1476
|
$metadata: deserializeMetadata(output),
|
|
@@ -957,67 +1479,52 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = as
|
|
|
957
1479
|
if (data.arn != null) {
|
|
958
1480
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
959
1481
|
}
|
|
960
|
-
if (data.
|
|
961
|
-
contents.
|
|
962
|
-
}
|
|
963
|
-
if (data.bandwidthThrottling != null) {
|
|
964
|
-
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
965
|
-
}
|
|
966
|
-
if (data.createPublicIP != null) {
|
|
967
|
-
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
968
|
-
}
|
|
969
|
-
if (data.dataPlaneRouting != null) {
|
|
970
|
-
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
971
|
-
}
|
|
972
|
-
if (data.defaultLargeStagingDiskType != null) {
|
|
973
|
-
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
974
|
-
}
|
|
975
|
-
if (data.ebsEncryption != null) {
|
|
976
|
-
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
977
|
-
}
|
|
978
|
-
if (data.ebsEncryptionKeyArn != null) {
|
|
979
|
-
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
1482
|
+
if (data.creationDateTime != null) {
|
|
1483
|
+
contents.creationDateTime = (0, smithy_client_1.expectString)(data.creationDateTime);
|
|
980
1484
|
}
|
|
981
|
-
if (data.
|
|
982
|
-
contents.
|
|
983
|
-
}
|
|
984
|
-
if (data.replicationServerInstanceType != null) {
|
|
985
|
-
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
1485
|
+
if (data.description != null) {
|
|
1486
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
986
1487
|
}
|
|
987
|
-
if (data.
|
|
988
|
-
contents.
|
|
1488
|
+
if (data.isArchived != null) {
|
|
1489
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
989
1490
|
}
|
|
990
|
-
if (data.
|
|
991
|
-
contents.
|
|
1491
|
+
if (data.lastModifiedDateTime != null) {
|
|
1492
|
+
contents.lastModifiedDateTime = (0, smithy_client_1.expectString)(data.lastModifiedDateTime);
|
|
992
1493
|
}
|
|
993
|
-
if (data.
|
|
994
|
-
contents.
|
|
1494
|
+
if (data.name != null) {
|
|
1495
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
995
1496
|
}
|
|
996
1497
|
if (data.tags != null) {
|
|
997
1498
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
998
1499
|
}
|
|
999
|
-
if (data.
|
|
1000
|
-
contents.
|
|
1500
|
+
if (data.waveAggregatedStatus != null) {
|
|
1501
|
+
contents.waveAggregatedStatus = deserializeAws_restJson1WaveAggregatedStatus(data.waveAggregatedStatus, context);
|
|
1502
|
+
}
|
|
1503
|
+
if (data.waveID != null) {
|
|
1504
|
+
contents.waveID = (0, smithy_client_1.expectString)(data.waveID);
|
|
1001
1505
|
}
|
|
1002
1506
|
return contents;
|
|
1003
1507
|
};
|
|
1004
|
-
exports.
|
|
1005
|
-
const
|
|
1508
|
+
exports.deserializeAws_restJson1ArchiveWaveCommand = deserializeAws_restJson1ArchiveWaveCommand;
|
|
1509
|
+
const deserializeAws_restJson1ArchiveWaveCommandError = async (output, context) => {
|
|
1006
1510
|
const parsedOutput = {
|
|
1007
1511
|
...output,
|
|
1008
1512
|
body: await parseErrorBody(output.body, context),
|
|
1009
1513
|
};
|
|
1010
1514
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1011
1515
|
switch (errorCode) {
|
|
1012
|
-
case "
|
|
1013
|
-
case "com.amazonaws.mgn#
|
|
1014
|
-
throw await
|
|
1516
|
+
case "ConflictException":
|
|
1517
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
1518
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1519
|
+
case "ResourceNotFoundException":
|
|
1520
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1521
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1522
|
+
case "ServiceQuotaExceededException":
|
|
1523
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1524
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1015
1525
|
case "UninitializedAccountException":
|
|
1016
1526
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1017
1527
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1018
|
-
case "ValidationException":
|
|
1019
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1020
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1021
1528
|
default:
|
|
1022
1529
|
const parsedBody = parsedOutput.body;
|
|
1023
1530
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1028,9 +1535,9 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
1028
1535
|
});
|
|
1029
1536
|
}
|
|
1030
1537
|
};
|
|
1031
|
-
const
|
|
1032
|
-
if (output.statusCode !==
|
|
1033
|
-
return
|
|
1538
|
+
const deserializeAws_restJson1AssociateApplicationsCommand = async (output, context) => {
|
|
1539
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1540
|
+
return deserializeAws_restJson1AssociateApplicationsCommandError(output, context);
|
|
1034
1541
|
}
|
|
1035
1542
|
const contents = map({
|
|
1036
1543
|
$metadata: deserializeMetadata(output),
|
|
@@ -1038,8 +1545,8 @@ const deserializeAws_restJson1DeleteJobCommand = async (output, context) => {
|
|
|
1038
1545
|
await collectBody(output.body, context);
|
|
1039
1546
|
return contents;
|
|
1040
1547
|
};
|
|
1041
|
-
exports.
|
|
1042
|
-
const
|
|
1548
|
+
exports.deserializeAws_restJson1AssociateApplicationsCommand = deserializeAws_restJson1AssociateApplicationsCommand;
|
|
1549
|
+
const deserializeAws_restJson1AssociateApplicationsCommandError = async (output, context) => {
|
|
1043
1550
|
const parsedOutput = {
|
|
1044
1551
|
...output,
|
|
1045
1552
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1052,6 +1559,9 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1052
1559
|
case "ResourceNotFoundException":
|
|
1053
1560
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1054
1561
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1562
|
+
case "ServiceQuotaExceededException":
|
|
1563
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1564
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1055
1565
|
case "UninitializedAccountException":
|
|
1056
1566
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1057
1567
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
@@ -1065,9 +1575,9 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1065
1575
|
});
|
|
1066
1576
|
}
|
|
1067
1577
|
};
|
|
1068
|
-
const
|
|
1069
|
-
if (output.statusCode !==
|
|
1070
|
-
return
|
|
1578
|
+
const deserializeAws_restJson1AssociateSourceServersCommand = async (output, context) => {
|
|
1579
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1580
|
+
return deserializeAws_restJson1AssociateSourceServersCommandError(output, context);
|
|
1071
1581
|
}
|
|
1072
1582
|
const contents = map({
|
|
1073
1583
|
$metadata: deserializeMetadata(output),
|
|
@@ -1075,8 +1585,8 @@ const deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = async (
|
|
|
1075
1585
|
await collectBody(output.body, context);
|
|
1076
1586
|
return contents;
|
|
1077
1587
|
};
|
|
1078
|
-
exports.
|
|
1079
|
-
const
|
|
1588
|
+
exports.deserializeAws_restJson1AssociateSourceServersCommand = deserializeAws_restJson1AssociateSourceServersCommand;
|
|
1589
|
+
const deserializeAws_restJson1AssociateSourceServersCommandError = async (output, context) => {
|
|
1080
1590
|
const parsedOutput = {
|
|
1081
1591
|
...output,
|
|
1082
1592
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1089,6 +1599,9 @@ const deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError = as
|
|
|
1089
1599
|
case "ResourceNotFoundException":
|
|
1090
1600
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1091
1601
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1602
|
+
case "ServiceQuotaExceededException":
|
|
1603
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1604
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1092
1605
|
case "UninitializedAccountException":
|
|
1093
1606
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1094
1607
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
@@ -1102,18 +1615,51 @@ const deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError = as
|
|
|
1102
1615
|
});
|
|
1103
1616
|
}
|
|
1104
1617
|
};
|
|
1105
|
-
const
|
|
1106
|
-
if (output.statusCode !==
|
|
1107
|
-
return
|
|
1618
|
+
const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output, context) => {
|
|
1619
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1620
|
+
return deserializeAws_restJson1ChangeServerLifeCycleStateCommandError(output, context);
|
|
1108
1621
|
}
|
|
1109
1622
|
const contents = map({
|
|
1110
1623
|
$metadata: deserializeMetadata(output),
|
|
1111
1624
|
});
|
|
1112
|
-
await
|
|
1625
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1626
|
+
if (data.applicationID != null) {
|
|
1627
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
1628
|
+
}
|
|
1629
|
+
if (data.arn != null) {
|
|
1630
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1631
|
+
}
|
|
1632
|
+
if (data.dataReplicationInfo != null) {
|
|
1633
|
+
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1634
|
+
}
|
|
1635
|
+
if (data.isArchived != null) {
|
|
1636
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1637
|
+
}
|
|
1638
|
+
if (data.launchedInstance != null) {
|
|
1639
|
+
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
1640
|
+
}
|
|
1641
|
+
if (data.lifeCycle != null) {
|
|
1642
|
+
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1643
|
+
}
|
|
1644
|
+
if (data.replicationType != null) {
|
|
1645
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1646
|
+
}
|
|
1647
|
+
if (data.sourceProperties != null) {
|
|
1648
|
+
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1649
|
+
}
|
|
1650
|
+
if (data.sourceServerID != null) {
|
|
1651
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1652
|
+
}
|
|
1653
|
+
if (data.tags != null) {
|
|
1654
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1655
|
+
}
|
|
1656
|
+
if (data.vcenterClientID != null) {
|
|
1657
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1658
|
+
}
|
|
1113
1659
|
return contents;
|
|
1114
1660
|
};
|
|
1115
|
-
exports.
|
|
1116
|
-
const
|
|
1661
|
+
exports.deserializeAws_restJson1ChangeServerLifeCycleStateCommand = deserializeAws_restJson1ChangeServerLifeCycleStateCommand;
|
|
1662
|
+
const deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = async (output, context) => {
|
|
1117
1663
|
const parsedOutput = {
|
|
1118
1664
|
...output,
|
|
1119
1665
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1129,6 +1675,9 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1129
1675
|
case "UninitializedAccountException":
|
|
1130
1676
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1131
1677
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1678
|
+
case "ValidationException":
|
|
1679
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
1680
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1132
1681
|
default:
|
|
1133
1682
|
const parsedBody = parsedOutput.body;
|
|
1134
1683
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1139,18 +1688,48 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1139
1688
|
});
|
|
1140
1689
|
}
|
|
1141
1690
|
};
|
|
1142
|
-
const
|
|
1143
|
-
if (output.statusCode !==
|
|
1144
|
-
return
|
|
1691
|
+
const deserializeAws_restJson1CreateApplicationCommand = async (output, context) => {
|
|
1692
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1693
|
+
return deserializeAws_restJson1CreateApplicationCommandError(output, context);
|
|
1145
1694
|
}
|
|
1146
1695
|
const contents = map({
|
|
1147
1696
|
$metadata: deserializeMetadata(output),
|
|
1148
1697
|
});
|
|
1149
|
-
await
|
|
1698
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1699
|
+
if (data.applicationAggregatedStatus != null) {
|
|
1700
|
+
contents.applicationAggregatedStatus = deserializeAws_restJson1ApplicationAggregatedStatus(data.applicationAggregatedStatus, context);
|
|
1701
|
+
}
|
|
1702
|
+
if (data.applicationID != null) {
|
|
1703
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
1704
|
+
}
|
|
1705
|
+
if (data.arn != null) {
|
|
1706
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1707
|
+
}
|
|
1708
|
+
if (data.creationDateTime != null) {
|
|
1709
|
+
contents.creationDateTime = (0, smithy_client_1.expectString)(data.creationDateTime);
|
|
1710
|
+
}
|
|
1711
|
+
if (data.description != null) {
|
|
1712
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1713
|
+
}
|
|
1714
|
+
if (data.isArchived != null) {
|
|
1715
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1716
|
+
}
|
|
1717
|
+
if (data.lastModifiedDateTime != null) {
|
|
1718
|
+
contents.lastModifiedDateTime = (0, smithy_client_1.expectString)(data.lastModifiedDateTime);
|
|
1719
|
+
}
|
|
1720
|
+
if (data.name != null) {
|
|
1721
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1722
|
+
}
|
|
1723
|
+
if (data.tags != null) {
|
|
1724
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1725
|
+
}
|
|
1726
|
+
if (data.waveID != null) {
|
|
1727
|
+
contents.waveID = (0, smithy_client_1.expectString)(data.waveID);
|
|
1728
|
+
}
|
|
1150
1729
|
return contents;
|
|
1151
1730
|
};
|
|
1152
|
-
exports.
|
|
1153
|
-
const
|
|
1731
|
+
exports.deserializeAws_restJson1CreateApplicationCommand = deserializeAws_restJson1CreateApplicationCommand;
|
|
1732
|
+
const deserializeAws_restJson1CreateApplicationCommandError = async (output, context) => {
|
|
1154
1733
|
const parsedOutput = {
|
|
1155
1734
|
...output,
|
|
1156
1735
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1160,9 +1739,9 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1160
1739
|
case "ConflictException":
|
|
1161
1740
|
case "com.amazonaws.mgn#ConflictException":
|
|
1162
1741
|
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1163
|
-
case "
|
|
1164
|
-
case "com.amazonaws.mgn#
|
|
1165
|
-
throw await
|
|
1742
|
+
case "ServiceQuotaExceededException":
|
|
1743
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1744
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1166
1745
|
case "UninitializedAccountException":
|
|
1167
1746
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1168
1747
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
@@ -1176,18 +1755,1092 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1176
1755
|
});
|
|
1177
1756
|
}
|
|
1178
1757
|
};
|
|
1179
|
-
const
|
|
1180
|
-
if (output.statusCode !==
|
|
1181
|
-
return
|
|
1182
|
-
}
|
|
1183
|
-
const contents = map({
|
|
1758
|
+
const deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
1759
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1760
|
+
return deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError(output, context);
|
|
1761
|
+
}
|
|
1762
|
+
const contents = map({
|
|
1763
|
+
$metadata: deserializeMetadata(output),
|
|
1764
|
+
});
|
|
1765
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1766
|
+
if (data.arn != null) {
|
|
1767
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1768
|
+
}
|
|
1769
|
+
if (data.associatePublicIpAddress != null) {
|
|
1770
|
+
contents.associatePublicIpAddress = (0, smithy_client_1.expectBoolean)(data.associatePublicIpAddress);
|
|
1771
|
+
}
|
|
1772
|
+
if (data.bootMode != null) {
|
|
1773
|
+
contents.bootMode = (0, smithy_client_1.expectString)(data.bootMode);
|
|
1774
|
+
}
|
|
1775
|
+
if (data.copyPrivateIp != null) {
|
|
1776
|
+
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
1777
|
+
}
|
|
1778
|
+
if (data.copyTags != null) {
|
|
1779
|
+
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
1780
|
+
}
|
|
1781
|
+
if (data.ec2LaunchTemplateID != null) {
|
|
1782
|
+
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
1783
|
+
}
|
|
1784
|
+
if (data.enableMapAutoTagging != null) {
|
|
1785
|
+
contents.enableMapAutoTagging = (0, smithy_client_1.expectBoolean)(data.enableMapAutoTagging);
|
|
1786
|
+
}
|
|
1787
|
+
if (data.largeVolumeConf != null) {
|
|
1788
|
+
contents.largeVolumeConf = deserializeAws_restJson1LaunchTemplateDiskConf(data.largeVolumeConf, context);
|
|
1789
|
+
}
|
|
1790
|
+
if (data.launchConfigurationTemplateID != null) {
|
|
1791
|
+
contents.launchConfigurationTemplateID = (0, smithy_client_1.expectString)(data.launchConfigurationTemplateID);
|
|
1792
|
+
}
|
|
1793
|
+
if (data.launchDisposition != null) {
|
|
1794
|
+
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
1795
|
+
}
|
|
1796
|
+
if (data.licensing != null) {
|
|
1797
|
+
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
1798
|
+
}
|
|
1799
|
+
if (data.mapAutoTaggingMpeID != null) {
|
|
1800
|
+
contents.mapAutoTaggingMpeID = (0, smithy_client_1.expectString)(data.mapAutoTaggingMpeID);
|
|
1801
|
+
}
|
|
1802
|
+
if (data.postLaunchActions != null) {
|
|
1803
|
+
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
1804
|
+
}
|
|
1805
|
+
if (data.smallVolumeConf != null) {
|
|
1806
|
+
contents.smallVolumeConf = deserializeAws_restJson1LaunchTemplateDiskConf(data.smallVolumeConf, context);
|
|
1807
|
+
}
|
|
1808
|
+
if (data.smallVolumeMaxSize != null) {
|
|
1809
|
+
contents.smallVolumeMaxSize = (0, smithy_client_1.expectLong)(data.smallVolumeMaxSize);
|
|
1810
|
+
}
|
|
1811
|
+
if (data.tags != null) {
|
|
1812
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1813
|
+
}
|
|
1814
|
+
if (data.targetInstanceTypeRightSizingMethod != null) {
|
|
1815
|
+
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
1816
|
+
}
|
|
1817
|
+
return contents;
|
|
1818
|
+
};
|
|
1819
|
+
exports.deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand = deserializeAws_restJson1CreateLaunchConfigurationTemplateCommand;
|
|
1820
|
+
const deserializeAws_restJson1CreateLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
1821
|
+
const parsedOutput = {
|
|
1822
|
+
...output,
|
|
1823
|
+
body: await parseErrorBody(output.body, context),
|
|
1824
|
+
};
|
|
1825
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1826
|
+
switch (errorCode) {
|
|
1827
|
+
case "AccessDeniedException":
|
|
1828
|
+
case "com.amazonaws.mgn#AccessDeniedException":
|
|
1829
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1830
|
+
case "UninitializedAccountException":
|
|
1831
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1832
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1833
|
+
case "ValidationException":
|
|
1834
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
1835
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1836
|
+
default:
|
|
1837
|
+
const parsedBody = parsedOutput.body;
|
|
1838
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1839
|
+
output,
|
|
1840
|
+
parsedBody,
|
|
1841
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
1842
|
+
errorCode,
|
|
1843
|
+
});
|
|
1844
|
+
}
|
|
1845
|
+
};
|
|
1846
|
+
const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
1847
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1848
|
+
return deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError(output, context);
|
|
1849
|
+
}
|
|
1850
|
+
const contents = map({
|
|
1851
|
+
$metadata: deserializeMetadata(output),
|
|
1852
|
+
});
|
|
1853
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1854
|
+
if (data.arn != null) {
|
|
1855
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1856
|
+
}
|
|
1857
|
+
if (data.associateDefaultSecurityGroup != null) {
|
|
1858
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
1859
|
+
}
|
|
1860
|
+
if (data.bandwidthThrottling != null) {
|
|
1861
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
1862
|
+
}
|
|
1863
|
+
if (data.createPublicIP != null) {
|
|
1864
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
1865
|
+
}
|
|
1866
|
+
if (data.dataPlaneRouting != null) {
|
|
1867
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
1868
|
+
}
|
|
1869
|
+
if (data.defaultLargeStagingDiskType != null) {
|
|
1870
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
1871
|
+
}
|
|
1872
|
+
if (data.ebsEncryption != null) {
|
|
1873
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
1874
|
+
}
|
|
1875
|
+
if (data.ebsEncryptionKeyArn != null) {
|
|
1876
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
1877
|
+
}
|
|
1878
|
+
if (data.replicationConfigurationTemplateID != null) {
|
|
1879
|
+
contents.replicationConfigurationTemplateID = (0, smithy_client_1.expectString)(data.replicationConfigurationTemplateID);
|
|
1880
|
+
}
|
|
1881
|
+
if (data.replicationServerInstanceType != null) {
|
|
1882
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
1883
|
+
}
|
|
1884
|
+
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
1885
|
+
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
1886
|
+
}
|
|
1887
|
+
if (data.stagingAreaSubnetId != null) {
|
|
1888
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
1889
|
+
}
|
|
1890
|
+
if (data.stagingAreaTags != null) {
|
|
1891
|
+
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
1892
|
+
}
|
|
1893
|
+
if (data.tags != null) {
|
|
1894
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1895
|
+
}
|
|
1896
|
+
if (data.useDedicatedReplicationServer != null) {
|
|
1897
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
1898
|
+
}
|
|
1899
|
+
return contents;
|
|
1900
|
+
};
|
|
1901
|
+
exports.deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand;
|
|
1902
|
+
const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
1903
|
+
const parsedOutput = {
|
|
1904
|
+
...output,
|
|
1905
|
+
body: await parseErrorBody(output.body, context),
|
|
1906
|
+
};
|
|
1907
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1908
|
+
switch (errorCode) {
|
|
1909
|
+
case "AccessDeniedException":
|
|
1910
|
+
case "com.amazonaws.mgn#AccessDeniedException":
|
|
1911
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1912
|
+
case "UninitializedAccountException":
|
|
1913
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1914
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1915
|
+
case "ValidationException":
|
|
1916
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
1917
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1918
|
+
default:
|
|
1919
|
+
const parsedBody = parsedOutput.body;
|
|
1920
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1921
|
+
output,
|
|
1922
|
+
parsedBody,
|
|
1923
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
1924
|
+
errorCode,
|
|
1925
|
+
});
|
|
1926
|
+
}
|
|
1927
|
+
};
|
|
1928
|
+
const deserializeAws_restJson1CreateWaveCommand = async (output, context) => {
|
|
1929
|
+
if (output.statusCode !== 201 && output.statusCode >= 300) {
|
|
1930
|
+
return deserializeAws_restJson1CreateWaveCommandError(output, context);
|
|
1931
|
+
}
|
|
1932
|
+
const contents = map({
|
|
1933
|
+
$metadata: deserializeMetadata(output),
|
|
1934
|
+
});
|
|
1935
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1936
|
+
if (data.arn != null) {
|
|
1937
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1938
|
+
}
|
|
1939
|
+
if (data.creationDateTime != null) {
|
|
1940
|
+
contents.creationDateTime = (0, smithy_client_1.expectString)(data.creationDateTime);
|
|
1941
|
+
}
|
|
1942
|
+
if (data.description != null) {
|
|
1943
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
1944
|
+
}
|
|
1945
|
+
if (data.isArchived != null) {
|
|
1946
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1947
|
+
}
|
|
1948
|
+
if (data.lastModifiedDateTime != null) {
|
|
1949
|
+
contents.lastModifiedDateTime = (0, smithy_client_1.expectString)(data.lastModifiedDateTime);
|
|
1950
|
+
}
|
|
1951
|
+
if (data.name != null) {
|
|
1952
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1953
|
+
}
|
|
1954
|
+
if (data.tags != null) {
|
|
1955
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1956
|
+
}
|
|
1957
|
+
if (data.waveAggregatedStatus != null) {
|
|
1958
|
+
contents.waveAggregatedStatus = deserializeAws_restJson1WaveAggregatedStatus(data.waveAggregatedStatus, context);
|
|
1959
|
+
}
|
|
1960
|
+
if (data.waveID != null) {
|
|
1961
|
+
contents.waveID = (0, smithy_client_1.expectString)(data.waveID);
|
|
1962
|
+
}
|
|
1963
|
+
return contents;
|
|
1964
|
+
};
|
|
1965
|
+
exports.deserializeAws_restJson1CreateWaveCommand = deserializeAws_restJson1CreateWaveCommand;
|
|
1966
|
+
const deserializeAws_restJson1CreateWaveCommandError = async (output, context) => {
|
|
1967
|
+
const parsedOutput = {
|
|
1968
|
+
...output,
|
|
1969
|
+
body: await parseErrorBody(output.body, context),
|
|
1970
|
+
};
|
|
1971
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1972
|
+
switch (errorCode) {
|
|
1973
|
+
case "ConflictException":
|
|
1974
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
1975
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1976
|
+
case "ServiceQuotaExceededException":
|
|
1977
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
1978
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
1979
|
+
case "UninitializedAccountException":
|
|
1980
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1981
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1982
|
+
default:
|
|
1983
|
+
const parsedBody = parsedOutput.body;
|
|
1984
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
1985
|
+
output,
|
|
1986
|
+
parsedBody,
|
|
1987
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
1988
|
+
errorCode,
|
|
1989
|
+
});
|
|
1990
|
+
}
|
|
1991
|
+
};
|
|
1992
|
+
const deserializeAws_restJson1DeleteApplicationCommand = async (output, context) => {
|
|
1993
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
1994
|
+
return deserializeAws_restJson1DeleteApplicationCommandError(output, context);
|
|
1995
|
+
}
|
|
1996
|
+
const contents = map({
|
|
1184
1997
|
$metadata: deserializeMetadata(output),
|
|
1185
1998
|
});
|
|
1186
1999
|
await collectBody(output.body, context);
|
|
1187
2000
|
return contents;
|
|
1188
2001
|
};
|
|
1189
|
-
exports.
|
|
1190
|
-
const
|
|
2002
|
+
exports.deserializeAws_restJson1DeleteApplicationCommand = deserializeAws_restJson1DeleteApplicationCommand;
|
|
2003
|
+
const deserializeAws_restJson1DeleteApplicationCommandError = async (output, context) => {
|
|
2004
|
+
const parsedOutput = {
|
|
2005
|
+
...output,
|
|
2006
|
+
body: await parseErrorBody(output.body, context),
|
|
2007
|
+
};
|
|
2008
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2009
|
+
switch (errorCode) {
|
|
2010
|
+
case "ConflictException":
|
|
2011
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2012
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2013
|
+
case "ResourceNotFoundException":
|
|
2014
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2015
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2016
|
+
case "UninitializedAccountException":
|
|
2017
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2018
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2019
|
+
default:
|
|
2020
|
+
const parsedBody = parsedOutput.body;
|
|
2021
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2022
|
+
output,
|
|
2023
|
+
parsedBody,
|
|
2024
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2025
|
+
errorCode,
|
|
2026
|
+
});
|
|
2027
|
+
}
|
|
2028
|
+
};
|
|
2029
|
+
const deserializeAws_restJson1DeleteJobCommand = async (output, context) => {
|
|
2030
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2031
|
+
return deserializeAws_restJson1DeleteJobCommandError(output, context);
|
|
2032
|
+
}
|
|
2033
|
+
const contents = map({
|
|
2034
|
+
$metadata: deserializeMetadata(output),
|
|
2035
|
+
});
|
|
2036
|
+
await collectBody(output.body, context);
|
|
2037
|
+
return contents;
|
|
2038
|
+
};
|
|
2039
|
+
exports.deserializeAws_restJson1DeleteJobCommand = deserializeAws_restJson1DeleteJobCommand;
|
|
2040
|
+
const deserializeAws_restJson1DeleteJobCommandError = async (output, context) => {
|
|
2041
|
+
const parsedOutput = {
|
|
2042
|
+
...output,
|
|
2043
|
+
body: await parseErrorBody(output.body, context),
|
|
2044
|
+
};
|
|
2045
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2046
|
+
switch (errorCode) {
|
|
2047
|
+
case "ConflictException":
|
|
2048
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2049
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2050
|
+
case "ResourceNotFoundException":
|
|
2051
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2052
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2053
|
+
case "UninitializedAccountException":
|
|
2054
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2055
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2056
|
+
default:
|
|
2057
|
+
const parsedBody = parsedOutput.body;
|
|
2058
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2059
|
+
output,
|
|
2060
|
+
parsedBody,
|
|
2061
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2062
|
+
errorCode,
|
|
2063
|
+
});
|
|
2064
|
+
}
|
|
2065
|
+
};
|
|
2066
|
+
const deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = async (output, context) => {
|
|
2067
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2068
|
+
return deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError(output, context);
|
|
2069
|
+
}
|
|
2070
|
+
const contents = map({
|
|
2071
|
+
$metadata: deserializeMetadata(output),
|
|
2072
|
+
});
|
|
2073
|
+
await collectBody(output.body, context);
|
|
2074
|
+
return contents;
|
|
2075
|
+
};
|
|
2076
|
+
exports.deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand = deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommand;
|
|
2077
|
+
const deserializeAws_restJson1DeleteLaunchConfigurationTemplateCommandError = async (output, context) => {
|
|
2078
|
+
const parsedOutput = {
|
|
2079
|
+
...output,
|
|
2080
|
+
body: await parseErrorBody(output.body, context),
|
|
2081
|
+
};
|
|
2082
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2083
|
+
switch (errorCode) {
|
|
2084
|
+
case "ConflictException":
|
|
2085
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2086
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2087
|
+
case "ResourceNotFoundException":
|
|
2088
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2089
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2090
|
+
case "UninitializedAccountException":
|
|
2091
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2092
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2093
|
+
default:
|
|
2094
|
+
const parsedBody = parsedOutput.body;
|
|
2095
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2096
|
+
output,
|
|
2097
|
+
parsedBody,
|
|
2098
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2099
|
+
errorCode,
|
|
2100
|
+
});
|
|
2101
|
+
}
|
|
2102
|
+
};
|
|
2103
|
+
const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
2104
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2105
|
+
return deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError(output, context);
|
|
2106
|
+
}
|
|
2107
|
+
const contents = map({
|
|
2108
|
+
$metadata: deserializeMetadata(output),
|
|
2109
|
+
});
|
|
2110
|
+
await collectBody(output.body, context);
|
|
2111
|
+
return contents;
|
|
2112
|
+
};
|
|
2113
|
+
exports.deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand;
|
|
2114
|
+
const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError = async (output, context) => {
|
|
2115
|
+
const parsedOutput = {
|
|
2116
|
+
...output,
|
|
2117
|
+
body: await parseErrorBody(output.body, context),
|
|
2118
|
+
};
|
|
2119
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2120
|
+
switch (errorCode) {
|
|
2121
|
+
case "ConflictException":
|
|
2122
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2123
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2124
|
+
case "ResourceNotFoundException":
|
|
2125
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2126
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2127
|
+
case "UninitializedAccountException":
|
|
2128
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2129
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2130
|
+
default:
|
|
2131
|
+
const parsedBody = parsedOutput.body;
|
|
2132
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2133
|
+
output,
|
|
2134
|
+
parsedBody,
|
|
2135
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2136
|
+
errorCode,
|
|
2137
|
+
});
|
|
2138
|
+
}
|
|
2139
|
+
};
|
|
2140
|
+
const deserializeAws_restJson1DeleteSourceServerCommand = async (output, context) => {
|
|
2141
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2142
|
+
return deserializeAws_restJson1DeleteSourceServerCommandError(output, context);
|
|
2143
|
+
}
|
|
2144
|
+
const contents = map({
|
|
2145
|
+
$metadata: deserializeMetadata(output),
|
|
2146
|
+
});
|
|
2147
|
+
await collectBody(output.body, context);
|
|
2148
|
+
return contents;
|
|
2149
|
+
};
|
|
2150
|
+
exports.deserializeAws_restJson1DeleteSourceServerCommand = deserializeAws_restJson1DeleteSourceServerCommand;
|
|
2151
|
+
const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, context) => {
|
|
2152
|
+
const parsedOutput = {
|
|
2153
|
+
...output,
|
|
2154
|
+
body: await parseErrorBody(output.body, context),
|
|
2155
|
+
};
|
|
2156
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2157
|
+
switch (errorCode) {
|
|
2158
|
+
case "ConflictException":
|
|
2159
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2160
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2161
|
+
case "ResourceNotFoundException":
|
|
2162
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2163
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2164
|
+
case "UninitializedAccountException":
|
|
2165
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2166
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2167
|
+
default:
|
|
2168
|
+
const parsedBody = parsedOutput.body;
|
|
2169
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2170
|
+
output,
|
|
2171
|
+
parsedBody,
|
|
2172
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2173
|
+
errorCode,
|
|
2174
|
+
});
|
|
2175
|
+
}
|
|
2176
|
+
};
|
|
2177
|
+
const deserializeAws_restJson1DeleteVcenterClientCommand = async (output, context) => {
|
|
2178
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2179
|
+
return deserializeAws_restJson1DeleteVcenterClientCommandError(output, context);
|
|
2180
|
+
}
|
|
2181
|
+
const contents = map({
|
|
2182
|
+
$metadata: deserializeMetadata(output),
|
|
2183
|
+
});
|
|
2184
|
+
await collectBody(output.body, context);
|
|
2185
|
+
return contents;
|
|
2186
|
+
};
|
|
2187
|
+
exports.deserializeAws_restJson1DeleteVcenterClientCommand = deserializeAws_restJson1DeleteVcenterClientCommand;
|
|
2188
|
+
const deserializeAws_restJson1DeleteVcenterClientCommandError = async (output, context) => {
|
|
2189
|
+
const parsedOutput = {
|
|
2190
|
+
...output,
|
|
2191
|
+
body: await parseErrorBody(output.body, context),
|
|
2192
|
+
};
|
|
2193
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2194
|
+
switch (errorCode) {
|
|
2195
|
+
case "ResourceNotFoundException":
|
|
2196
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2197
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2198
|
+
case "UninitializedAccountException":
|
|
2199
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2200
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2201
|
+
case "ValidationException":
|
|
2202
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2203
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2204
|
+
default:
|
|
2205
|
+
const parsedBody = parsedOutput.body;
|
|
2206
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2207
|
+
output,
|
|
2208
|
+
parsedBody,
|
|
2209
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2210
|
+
errorCode,
|
|
2211
|
+
});
|
|
2212
|
+
}
|
|
2213
|
+
};
|
|
2214
|
+
const deserializeAws_restJson1DeleteWaveCommand = async (output, context) => {
|
|
2215
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2216
|
+
return deserializeAws_restJson1DeleteWaveCommandError(output, context);
|
|
2217
|
+
}
|
|
2218
|
+
const contents = map({
|
|
2219
|
+
$metadata: deserializeMetadata(output),
|
|
2220
|
+
});
|
|
2221
|
+
await collectBody(output.body, context);
|
|
2222
|
+
return contents;
|
|
2223
|
+
};
|
|
2224
|
+
exports.deserializeAws_restJson1DeleteWaveCommand = deserializeAws_restJson1DeleteWaveCommand;
|
|
2225
|
+
const deserializeAws_restJson1DeleteWaveCommandError = async (output, context) => {
|
|
2226
|
+
const parsedOutput = {
|
|
2227
|
+
...output,
|
|
2228
|
+
body: await parseErrorBody(output.body, context),
|
|
2229
|
+
};
|
|
2230
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2231
|
+
switch (errorCode) {
|
|
2232
|
+
case "ConflictException":
|
|
2233
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2234
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2235
|
+
case "ResourceNotFoundException":
|
|
2236
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2237
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2238
|
+
case "UninitializedAccountException":
|
|
2239
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2240
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2241
|
+
default:
|
|
2242
|
+
const parsedBody = parsedOutput.body;
|
|
2243
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2244
|
+
output,
|
|
2245
|
+
parsedBody,
|
|
2246
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2247
|
+
errorCode,
|
|
2248
|
+
});
|
|
2249
|
+
}
|
|
2250
|
+
};
|
|
2251
|
+
const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, context) => {
|
|
2252
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2253
|
+
return deserializeAws_restJson1DescribeJobLogItemsCommandError(output, context);
|
|
2254
|
+
}
|
|
2255
|
+
const contents = map({
|
|
2256
|
+
$metadata: deserializeMetadata(output),
|
|
2257
|
+
});
|
|
2258
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2259
|
+
if (data.items != null) {
|
|
2260
|
+
contents.items = deserializeAws_restJson1JobLogs(data.items, context);
|
|
2261
|
+
}
|
|
2262
|
+
if (data.nextToken != null) {
|
|
2263
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2264
|
+
}
|
|
2265
|
+
return contents;
|
|
2266
|
+
};
|
|
2267
|
+
exports.deserializeAws_restJson1DescribeJobLogItemsCommand = deserializeAws_restJson1DescribeJobLogItemsCommand;
|
|
2268
|
+
const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, context) => {
|
|
2269
|
+
const parsedOutput = {
|
|
2270
|
+
...output,
|
|
2271
|
+
body: await parseErrorBody(output.body, context),
|
|
2272
|
+
};
|
|
2273
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2274
|
+
switch (errorCode) {
|
|
2275
|
+
case "UninitializedAccountException":
|
|
2276
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2277
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2278
|
+
case "ValidationException":
|
|
2279
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2280
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2281
|
+
default:
|
|
2282
|
+
const parsedBody = parsedOutput.body;
|
|
2283
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2284
|
+
output,
|
|
2285
|
+
parsedBody,
|
|
2286
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2287
|
+
errorCode,
|
|
2288
|
+
});
|
|
2289
|
+
}
|
|
2290
|
+
};
|
|
2291
|
+
const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
2292
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2293
|
+
return deserializeAws_restJson1DescribeJobsCommandError(output, context);
|
|
2294
|
+
}
|
|
2295
|
+
const contents = map({
|
|
2296
|
+
$metadata: deserializeMetadata(output),
|
|
2297
|
+
});
|
|
2298
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2299
|
+
if (data.items != null) {
|
|
2300
|
+
contents.items = deserializeAws_restJson1JobsList(data.items, context);
|
|
2301
|
+
}
|
|
2302
|
+
if (data.nextToken != null) {
|
|
2303
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2304
|
+
}
|
|
2305
|
+
return contents;
|
|
2306
|
+
};
|
|
2307
|
+
exports.deserializeAws_restJson1DescribeJobsCommand = deserializeAws_restJson1DescribeJobsCommand;
|
|
2308
|
+
const deserializeAws_restJson1DescribeJobsCommandError = async (output, context) => {
|
|
2309
|
+
const parsedOutput = {
|
|
2310
|
+
...output,
|
|
2311
|
+
body: await parseErrorBody(output.body, context),
|
|
2312
|
+
};
|
|
2313
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2314
|
+
switch (errorCode) {
|
|
2315
|
+
case "UninitializedAccountException":
|
|
2316
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2317
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2318
|
+
case "ValidationException":
|
|
2319
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2320
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2321
|
+
default:
|
|
2322
|
+
const parsedBody = parsedOutput.body;
|
|
2323
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2324
|
+
output,
|
|
2325
|
+
parsedBody,
|
|
2326
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2327
|
+
errorCode,
|
|
2328
|
+
});
|
|
2329
|
+
}
|
|
2330
|
+
};
|
|
2331
|
+
const deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = async (output, context) => {
|
|
2332
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2333
|
+
return deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError(output, context);
|
|
2334
|
+
}
|
|
2335
|
+
const contents = map({
|
|
2336
|
+
$metadata: deserializeMetadata(output),
|
|
2337
|
+
});
|
|
2338
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2339
|
+
if (data.items != null) {
|
|
2340
|
+
contents.items = deserializeAws_restJson1LaunchConfigurationTemplates(data.items, context);
|
|
2341
|
+
}
|
|
2342
|
+
if (data.nextToken != null) {
|
|
2343
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2344
|
+
}
|
|
2345
|
+
return contents;
|
|
2346
|
+
};
|
|
2347
|
+
exports.deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand = deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommand;
|
|
2348
|
+
const deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError = async (output, context) => {
|
|
2349
|
+
const parsedOutput = {
|
|
2350
|
+
...output,
|
|
2351
|
+
body: await parseErrorBody(output.body, context),
|
|
2352
|
+
};
|
|
2353
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2354
|
+
switch (errorCode) {
|
|
2355
|
+
case "ResourceNotFoundException":
|
|
2356
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2357
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2358
|
+
case "UninitializedAccountException":
|
|
2359
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2360
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2361
|
+
case "ValidationException":
|
|
2362
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2363
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2364
|
+
default:
|
|
2365
|
+
const parsedBody = parsedOutput.body;
|
|
2366
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2367
|
+
output,
|
|
2368
|
+
parsedBody,
|
|
2369
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2370
|
+
errorCode,
|
|
2371
|
+
});
|
|
2372
|
+
}
|
|
2373
|
+
};
|
|
2374
|
+
const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = async (output, context) => {
|
|
2375
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2376
|
+
return deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError(output, context);
|
|
2377
|
+
}
|
|
2378
|
+
const contents = map({
|
|
2379
|
+
$metadata: deserializeMetadata(output),
|
|
2380
|
+
});
|
|
2381
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2382
|
+
if (data.items != null) {
|
|
2383
|
+
contents.items = deserializeAws_restJson1ReplicationConfigurationTemplates(data.items, context);
|
|
2384
|
+
}
|
|
2385
|
+
if (data.nextToken != null) {
|
|
2386
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2387
|
+
}
|
|
2388
|
+
return contents;
|
|
2389
|
+
};
|
|
2390
|
+
exports.deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand;
|
|
2391
|
+
const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandError = async (output, context) => {
|
|
2392
|
+
const parsedOutput = {
|
|
2393
|
+
...output,
|
|
2394
|
+
body: await parseErrorBody(output.body, context),
|
|
2395
|
+
};
|
|
2396
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2397
|
+
switch (errorCode) {
|
|
2398
|
+
case "ResourceNotFoundException":
|
|
2399
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2400
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2401
|
+
case "UninitializedAccountException":
|
|
2402
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2403
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2404
|
+
case "ValidationException":
|
|
2405
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2406
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2407
|
+
default:
|
|
2408
|
+
const parsedBody = parsedOutput.body;
|
|
2409
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2410
|
+
output,
|
|
2411
|
+
parsedBody,
|
|
2412
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2413
|
+
errorCode,
|
|
2414
|
+
});
|
|
2415
|
+
}
|
|
2416
|
+
};
|
|
2417
|
+
const deserializeAws_restJson1DescribeSourceServersCommand = async (output, context) => {
|
|
2418
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2419
|
+
return deserializeAws_restJson1DescribeSourceServersCommandError(output, context);
|
|
2420
|
+
}
|
|
2421
|
+
const contents = map({
|
|
2422
|
+
$metadata: deserializeMetadata(output),
|
|
2423
|
+
});
|
|
2424
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2425
|
+
if (data.items != null) {
|
|
2426
|
+
contents.items = deserializeAws_restJson1SourceServersList(data.items, context);
|
|
2427
|
+
}
|
|
2428
|
+
if (data.nextToken != null) {
|
|
2429
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2430
|
+
}
|
|
2431
|
+
return contents;
|
|
2432
|
+
};
|
|
2433
|
+
exports.deserializeAws_restJson1DescribeSourceServersCommand = deserializeAws_restJson1DescribeSourceServersCommand;
|
|
2434
|
+
const deserializeAws_restJson1DescribeSourceServersCommandError = async (output, context) => {
|
|
2435
|
+
const parsedOutput = {
|
|
2436
|
+
...output,
|
|
2437
|
+
body: await parseErrorBody(output.body, context),
|
|
2438
|
+
};
|
|
2439
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2440
|
+
switch (errorCode) {
|
|
2441
|
+
case "UninitializedAccountException":
|
|
2442
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2443
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2444
|
+
case "ValidationException":
|
|
2445
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2446
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2447
|
+
default:
|
|
2448
|
+
const parsedBody = parsedOutput.body;
|
|
2449
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2450
|
+
output,
|
|
2451
|
+
parsedBody,
|
|
2452
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2453
|
+
errorCode,
|
|
2454
|
+
});
|
|
2455
|
+
}
|
|
2456
|
+
};
|
|
2457
|
+
const deserializeAws_restJson1DescribeVcenterClientsCommand = async (output, context) => {
|
|
2458
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2459
|
+
return deserializeAws_restJson1DescribeVcenterClientsCommandError(output, context);
|
|
2460
|
+
}
|
|
2461
|
+
const contents = map({
|
|
2462
|
+
$metadata: deserializeMetadata(output),
|
|
2463
|
+
});
|
|
2464
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2465
|
+
if (data.items != null) {
|
|
2466
|
+
contents.items = deserializeAws_restJson1VcenterClientList(data.items, context);
|
|
2467
|
+
}
|
|
2468
|
+
if (data.nextToken != null) {
|
|
2469
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2470
|
+
}
|
|
2471
|
+
return contents;
|
|
2472
|
+
};
|
|
2473
|
+
exports.deserializeAws_restJson1DescribeVcenterClientsCommand = deserializeAws_restJson1DescribeVcenterClientsCommand;
|
|
2474
|
+
const deserializeAws_restJson1DescribeVcenterClientsCommandError = async (output, context) => {
|
|
2475
|
+
const parsedOutput = {
|
|
2476
|
+
...output,
|
|
2477
|
+
body: await parseErrorBody(output.body, context),
|
|
2478
|
+
};
|
|
2479
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2480
|
+
switch (errorCode) {
|
|
2481
|
+
case "ResourceNotFoundException":
|
|
2482
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2483
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2484
|
+
case "UninitializedAccountException":
|
|
2485
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2486
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2487
|
+
case "ValidationException":
|
|
2488
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2489
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2490
|
+
default:
|
|
2491
|
+
const parsedBody = parsedOutput.body;
|
|
2492
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2493
|
+
output,
|
|
2494
|
+
parsedBody,
|
|
2495
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2496
|
+
errorCode,
|
|
2497
|
+
});
|
|
2498
|
+
}
|
|
2499
|
+
};
|
|
2500
|
+
const deserializeAws_restJson1DisassociateApplicationsCommand = async (output, context) => {
|
|
2501
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2502
|
+
return deserializeAws_restJson1DisassociateApplicationsCommandError(output, context);
|
|
2503
|
+
}
|
|
2504
|
+
const contents = map({
|
|
2505
|
+
$metadata: deserializeMetadata(output),
|
|
2506
|
+
});
|
|
2507
|
+
await collectBody(output.body, context);
|
|
2508
|
+
return contents;
|
|
2509
|
+
};
|
|
2510
|
+
exports.deserializeAws_restJson1DisassociateApplicationsCommand = deserializeAws_restJson1DisassociateApplicationsCommand;
|
|
2511
|
+
const deserializeAws_restJson1DisassociateApplicationsCommandError = async (output, context) => {
|
|
2512
|
+
const parsedOutput = {
|
|
2513
|
+
...output,
|
|
2514
|
+
body: await parseErrorBody(output.body, context),
|
|
2515
|
+
};
|
|
2516
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2517
|
+
switch (errorCode) {
|
|
2518
|
+
case "ConflictException":
|
|
2519
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2520
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2521
|
+
case "ResourceNotFoundException":
|
|
2522
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2523
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2524
|
+
case "UninitializedAccountException":
|
|
2525
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2526
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2527
|
+
default:
|
|
2528
|
+
const parsedBody = parsedOutput.body;
|
|
2529
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2530
|
+
output,
|
|
2531
|
+
parsedBody,
|
|
2532
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2533
|
+
errorCode,
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2536
|
+
};
|
|
2537
|
+
const deserializeAws_restJson1DisassociateSourceServersCommand = async (output, context) => {
|
|
2538
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2539
|
+
return deserializeAws_restJson1DisassociateSourceServersCommandError(output, context);
|
|
2540
|
+
}
|
|
2541
|
+
const contents = map({
|
|
2542
|
+
$metadata: deserializeMetadata(output),
|
|
2543
|
+
});
|
|
2544
|
+
await collectBody(output.body, context);
|
|
2545
|
+
return contents;
|
|
2546
|
+
};
|
|
2547
|
+
exports.deserializeAws_restJson1DisassociateSourceServersCommand = deserializeAws_restJson1DisassociateSourceServersCommand;
|
|
2548
|
+
const deserializeAws_restJson1DisassociateSourceServersCommandError = async (output, context) => {
|
|
2549
|
+
const parsedOutput = {
|
|
2550
|
+
...output,
|
|
2551
|
+
body: await parseErrorBody(output.body, context),
|
|
2552
|
+
};
|
|
2553
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2554
|
+
switch (errorCode) {
|
|
2555
|
+
case "ConflictException":
|
|
2556
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2557
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2558
|
+
case "ResourceNotFoundException":
|
|
2559
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2560
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2561
|
+
case "UninitializedAccountException":
|
|
2562
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2563
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2564
|
+
default:
|
|
2565
|
+
const parsedBody = parsedOutput.body;
|
|
2566
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2567
|
+
output,
|
|
2568
|
+
parsedBody,
|
|
2569
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2570
|
+
errorCode,
|
|
2571
|
+
});
|
|
2572
|
+
}
|
|
2573
|
+
};
|
|
2574
|
+
const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, context) => {
|
|
2575
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2576
|
+
return deserializeAws_restJson1DisconnectFromServiceCommandError(output, context);
|
|
2577
|
+
}
|
|
2578
|
+
const contents = map({
|
|
2579
|
+
$metadata: deserializeMetadata(output),
|
|
2580
|
+
});
|
|
2581
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2582
|
+
if (data.applicationID != null) {
|
|
2583
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
2584
|
+
}
|
|
2585
|
+
if (data.arn != null) {
|
|
2586
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2587
|
+
}
|
|
2588
|
+
if (data.dataReplicationInfo != null) {
|
|
2589
|
+
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2590
|
+
}
|
|
2591
|
+
if (data.isArchived != null) {
|
|
2592
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
2593
|
+
}
|
|
2594
|
+
if (data.launchedInstance != null) {
|
|
2595
|
+
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
2596
|
+
}
|
|
2597
|
+
if (data.lifeCycle != null) {
|
|
2598
|
+
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2599
|
+
}
|
|
2600
|
+
if (data.replicationType != null) {
|
|
2601
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
2602
|
+
}
|
|
2603
|
+
if (data.sourceProperties != null) {
|
|
2604
|
+
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2605
|
+
}
|
|
2606
|
+
if (data.sourceServerID != null) {
|
|
2607
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2608
|
+
}
|
|
2609
|
+
if (data.tags != null) {
|
|
2610
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2611
|
+
}
|
|
2612
|
+
if (data.vcenterClientID != null) {
|
|
2613
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
2614
|
+
}
|
|
2615
|
+
return contents;
|
|
2616
|
+
};
|
|
2617
|
+
exports.deserializeAws_restJson1DisconnectFromServiceCommand = deserializeAws_restJson1DisconnectFromServiceCommand;
|
|
2618
|
+
const deserializeAws_restJson1DisconnectFromServiceCommandError = async (output, context) => {
|
|
2619
|
+
const parsedOutput = {
|
|
2620
|
+
...output,
|
|
2621
|
+
body: await parseErrorBody(output.body, context),
|
|
2622
|
+
};
|
|
2623
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2624
|
+
switch (errorCode) {
|
|
2625
|
+
case "ConflictException":
|
|
2626
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2627
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2628
|
+
case "ResourceNotFoundException":
|
|
2629
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2630
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2631
|
+
case "UninitializedAccountException":
|
|
2632
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2633
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2634
|
+
default:
|
|
2635
|
+
const parsedBody = parsedOutput.body;
|
|
2636
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2637
|
+
output,
|
|
2638
|
+
parsedBody,
|
|
2639
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2640
|
+
errorCode,
|
|
2641
|
+
});
|
|
2642
|
+
}
|
|
2643
|
+
};
|
|
2644
|
+
const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) => {
|
|
2645
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2646
|
+
return deserializeAws_restJson1FinalizeCutoverCommandError(output, context);
|
|
2647
|
+
}
|
|
2648
|
+
const contents = map({
|
|
2649
|
+
$metadata: deserializeMetadata(output),
|
|
2650
|
+
});
|
|
2651
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2652
|
+
if (data.applicationID != null) {
|
|
2653
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
2654
|
+
}
|
|
2655
|
+
if (data.arn != null) {
|
|
2656
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2657
|
+
}
|
|
2658
|
+
if (data.dataReplicationInfo != null) {
|
|
2659
|
+
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2660
|
+
}
|
|
2661
|
+
if (data.isArchived != null) {
|
|
2662
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
2663
|
+
}
|
|
2664
|
+
if (data.launchedInstance != null) {
|
|
2665
|
+
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
2666
|
+
}
|
|
2667
|
+
if (data.lifeCycle != null) {
|
|
2668
|
+
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2669
|
+
}
|
|
2670
|
+
if (data.replicationType != null) {
|
|
2671
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
2672
|
+
}
|
|
2673
|
+
if (data.sourceProperties != null) {
|
|
2674
|
+
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2675
|
+
}
|
|
2676
|
+
if (data.sourceServerID != null) {
|
|
2677
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2678
|
+
}
|
|
2679
|
+
if (data.tags != null) {
|
|
2680
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2681
|
+
}
|
|
2682
|
+
if (data.vcenterClientID != null) {
|
|
2683
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
2684
|
+
}
|
|
2685
|
+
return contents;
|
|
2686
|
+
};
|
|
2687
|
+
exports.deserializeAws_restJson1FinalizeCutoverCommand = deserializeAws_restJson1FinalizeCutoverCommand;
|
|
2688
|
+
const deserializeAws_restJson1FinalizeCutoverCommandError = async (output, context) => {
|
|
2689
|
+
const parsedOutput = {
|
|
2690
|
+
...output,
|
|
2691
|
+
body: await parseErrorBody(output.body, context),
|
|
2692
|
+
};
|
|
2693
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2694
|
+
switch (errorCode) {
|
|
2695
|
+
case "ConflictException":
|
|
2696
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
2697
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2698
|
+
case "ResourceNotFoundException":
|
|
2699
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2700
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2701
|
+
case "UninitializedAccountException":
|
|
2702
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2703
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2704
|
+
case "ValidationException":
|
|
2705
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
2706
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
2707
|
+
default:
|
|
2708
|
+
const parsedBody = parsedOutput.body;
|
|
2709
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2710
|
+
output,
|
|
2711
|
+
parsedBody,
|
|
2712
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2713
|
+
errorCode,
|
|
2714
|
+
});
|
|
2715
|
+
}
|
|
2716
|
+
};
|
|
2717
|
+
const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, context) => {
|
|
2718
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2719
|
+
return deserializeAws_restJson1GetLaunchConfigurationCommandError(output, context);
|
|
2720
|
+
}
|
|
2721
|
+
const contents = map({
|
|
2722
|
+
$metadata: deserializeMetadata(output),
|
|
2723
|
+
});
|
|
2724
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2725
|
+
if (data.bootMode != null) {
|
|
2726
|
+
contents.bootMode = (0, smithy_client_1.expectString)(data.bootMode);
|
|
2727
|
+
}
|
|
2728
|
+
if (data.copyPrivateIp != null) {
|
|
2729
|
+
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
2730
|
+
}
|
|
2731
|
+
if (data.copyTags != null) {
|
|
2732
|
+
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
2733
|
+
}
|
|
2734
|
+
if (data.ec2LaunchTemplateID != null) {
|
|
2735
|
+
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
2736
|
+
}
|
|
2737
|
+
if (data.enableMapAutoTagging != null) {
|
|
2738
|
+
contents.enableMapAutoTagging = (0, smithy_client_1.expectBoolean)(data.enableMapAutoTagging);
|
|
2739
|
+
}
|
|
2740
|
+
if (data.launchDisposition != null) {
|
|
2741
|
+
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
2742
|
+
}
|
|
2743
|
+
if (data.licensing != null) {
|
|
2744
|
+
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
2745
|
+
}
|
|
2746
|
+
if (data.mapAutoTaggingMpeID != null) {
|
|
2747
|
+
contents.mapAutoTaggingMpeID = (0, smithy_client_1.expectString)(data.mapAutoTaggingMpeID);
|
|
2748
|
+
}
|
|
2749
|
+
if (data.name != null) {
|
|
2750
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2751
|
+
}
|
|
2752
|
+
if (data.postLaunchActions != null) {
|
|
2753
|
+
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
2754
|
+
}
|
|
2755
|
+
if (data.sourceServerID != null) {
|
|
2756
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2757
|
+
}
|
|
2758
|
+
if (data.targetInstanceTypeRightSizingMethod != null) {
|
|
2759
|
+
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
2760
|
+
}
|
|
2761
|
+
return contents;
|
|
2762
|
+
};
|
|
2763
|
+
exports.deserializeAws_restJson1GetLaunchConfigurationCommand = deserializeAws_restJson1GetLaunchConfigurationCommand;
|
|
2764
|
+
const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output, context) => {
|
|
2765
|
+
const parsedOutput = {
|
|
2766
|
+
...output,
|
|
2767
|
+
body: await parseErrorBody(output.body, context),
|
|
2768
|
+
};
|
|
2769
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2770
|
+
switch (errorCode) {
|
|
2771
|
+
case "ResourceNotFoundException":
|
|
2772
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2773
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2774
|
+
case "UninitializedAccountException":
|
|
2775
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
2776
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2777
|
+
default:
|
|
2778
|
+
const parsedBody = parsedOutput.body;
|
|
2779
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
2780
|
+
output,
|
|
2781
|
+
parsedBody,
|
|
2782
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
2783
|
+
errorCode,
|
|
2784
|
+
});
|
|
2785
|
+
}
|
|
2786
|
+
};
|
|
2787
|
+
const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output, context) => {
|
|
2788
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2789
|
+
return deserializeAws_restJson1GetReplicationConfigurationCommandError(output, context);
|
|
2790
|
+
}
|
|
2791
|
+
const contents = map({
|
|
2792
|
+
$metadata: deserializeMetadata(output),
|
|
2793
|
+
});
|
|
2794
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2795
|
+
if (data.associateDefaultSecurityGroup != null) {
|
|
2796
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
2797
|
+
}
|
|
2798
|
+
if (data.bandwidthThrottling != null) {
|
|
2799
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
2800
|
+
}
|
|
2801
|
+
if (data.createPublicIP != null) {
|
|
2802
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
2803
|
+
}
|
|
2804
|
+
if (data.dataPlaneRouting != null) {
|
|
2805
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
2806
|
+
}
|
|
2807
|
+
if (data.defaultLargeStagingDiskType != null) {
|
|
2808
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
2809
|
+
}
|
|
2810
|
+
if (data.ebsEncryption != null) {
|
|
2811
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
2812
|
+
}
|
|
2813
|
+
if (data.ebsEncryptionKeyArn != null) {
|
|
2814
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
2815
|
+
}
|
|
2816
|
+
if (data.name != null) {
|
|
2817
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2818
|
+
}
|
|
2819
|
+
if (data.replicatedDisks != null) {
|
|
2820
|
+
contents.replicatedDisks = deserializeAws_restJson1ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
2821
|
+
}
|
|
2822
|
+
if (data.replicationServerInstanceType != null) {
|
|
2823
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
2824
|
+
}
|
|
2825
|
+
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
2826
|
+
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2827
|
+
}
|
|
2828
|
+
if (data.sourceServerID != null) {
|
|
2829
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2830
|
+
}
|
|
2831
|
+
if (data.stagingAreaSubnetId != null) {
|
|
2832
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
2833
|
+
}
|
|
2834
|
+
if (data.stagingAreaTags != null) {
|
|
2835
|
+
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
2836
|
+
}
|
|
2837
|
+
if (data.useDedicatedReplicationServer != null) {
|
|
2838
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
2839
|
+
}
|
|
2840
|
+
return contents;
|
|
2841
|
+
};
|
|
2842
|
+
exports.deserializeAws_restJson1GetReplicationConfigurationCommand = deserializeAws_restJson1GetReplicationConfigurationCommand;
|
|
2843
|
+
const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (output, context) => {
|
|
1191
2844
|
const parsedOutput = {
|
|
1192
2845
|
...output,
|
|
1193
2846
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1200,9 +2853,6 @@ const deserializeAws_restJson1DeleteVcenterClientCommandError = async (output, c
|
|
|
1200
2853
|
case "UninitializedAccountException":
|
|
1201
2854
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1202
2855
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1203
|
-
case "ValidationException":
|
|
1204
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1205
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1206
2856
|
default:
|
|
1207
2857
|
const parsedBody = parsedOutput.body;
|
|
1208
2858
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1213,33 +2863,27 @@ const deserializeAws_restJson1DeleteVcenterClientCommandError = async (output, c
|
|
|
1213
2863
|
});
|
|
1214
2864
|
}
|
|
1215
2865
|
};
|
|
1216
|
-
const
|
|
1217
|
-
if (output.statusCode !==
|
|
1218
|
-
return
|
|
2866
|
+
const deserializeAws_restJson1InitializeServiceCommand = async (output, context) => {
|
|
2867
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
2868
|
+
return deserializeAws_restJson1InitializeServiceCommandError(output, context);
|
|
1219
2869
|
}
|
|
1220
2870
|
const contents = map({
|
|
1221
2871
|
$metadata: deserializeMetadata(output),
|
|
1222
2872
|
});
|
|
1223
|
-
|
|
1224
|
-
if (data.items != null) {
|
|
1225
|
-
contents.items = deserializeAws_restJson1JobLogs(data.items, context);
|
|
1226
|
-
}
|
|
1227
|
-
if (data.nextToken != null) {
|
|
1228
|
-
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1229
|
-
}
|
|
2873
|
+
await collectBody(output.body, context);
|
|
1230
2874
|
return contents;
|
|
1231
2875
|
};
|
|
1232
|
-
exports.
|
|
1233
|
-
const
|
|
2876
|
+
exports.deserializeAws_restJson1InitializeServiceCommand = deserializeAws_restJson1InitializeServiceCommand;
|
|
2877
|
+
const deserializeAws_restJson1InitializeServiceCommandError = async (output, context) => {
|
|
1234
2878
|
const parsedOutput = {
|
|
1235
2879
|
...output,
|
|
1236
2880
|
body: await parseErrorBody(output.body, context),
|
|
1237
2881
|
};
|
|
1238
2882
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1239
2883
|
switch (errorCode) {
|
|
1240
|
-
case "
|
|
1241
|
-
case "com.amazonaws.mgn#
|
|
1242
|
-
throw await
|
|
2884
|
+
case "AccessDeniedException":
|
|
2885
|
+
case "com.amazonaws.mgn#AccessDeniedException":
|
|
2886
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1243
2887
|
case "ValidationException":
|
|
1244
2888
|
case "com.amazonaws.mgn#ValidationException":
|
|
1245
2889
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -1253,24 +2897,24 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1253
2897
|
});
|
|
1254
2898
|
}
|
|
1255
2899
|
};
|
|
1256
|
-
const
|
|
2900
|
+
const deserializeAws_restJson1ListApplicationsCommand = async (output, context) => {
|
|
1257
2901
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1258
|
-
return
|
|
2902
|
+
return deserializeAws_restJson1ListApplicationsCommandError(output, context);
|
|
1259
2903
|
}
|
|
1260
2904
|
const contents = map({
|
|
1261
2905
|
$metadata: deserializeMetadata(output),
|
|
1262
2906
|
});
|
|
1263
2907
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1264
2908
|
if (data.items != null) {
|
|
1265
|
-
contents.items =
|
|
2909
|
+
contents.items = deserializeAws_restJson1ApplicationsList(data.items, context);
|
|
1266
2910
|
}
|
|
1267
2911
|
if (data.nextToken != null) {
|
|
1268
2912
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1269
2913
|
}
|
|
1270
2914
|
return contents;
|
|
1271
2915
|
};
|
|
1272
|
-
exports.
|
|
1273
|
-
const
|
|
2916
|
+
exports.deserializeAws_restJson1ListApplicationsCommand = deserializeAws_restJson1ListApplicationsCommand;
|
|
2917
|
+
const deserializeAws_restJson1ListApplicationsCommandError = async (output, context) => {
|
|
1274
2918
|
const parsedOutput = {
|
|
1275
2919
|
...output,
|
|
1276
2920
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1280,9 +2924,6 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1280
2924
|
case "UninitializedAccountException":
|
|
1281
2925
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1282
2926
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1283
|
-
case "ValidationException":
|
|
1284
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1285
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1286
2927
|
default:
|
|
1287
2928
|
const parsedBody = parsedOutput.body;
|
|
1288
2929
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1293,24 +2934,24 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1293
2934
|
});
|
|
1294
2935
|
}
|
|
1295
2936
|
};
|
|
1296
|
-
const
|
|
2937
|
+
const deserializeAws_restJson1ListSourceServerActionsCommand = async (output, context) => {
|
|
1297
2938
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1298
|
-
return
|
|
2939
|
+
return deserializeAws_restJson1ListSourceServerActionsCommandError(output, context);
|
|
1299
2940
|
}
|
|
1300
2941
|
const contents = map({
|
|
1301
2942
|
$metadata: deserializeMetadata(output),
|
|
1302
2943
|
});
|
|
1303
2944
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1304
2945
|
if (data.items != null) {
|
|
1305
|
-
contents.items =
|
|
2946
|
+
contents.items = deserializeAws_restJson1SourceServerActionDocuments(data.items, context);
|
|
1306
2947
|
}
|
|
1307
2948
|
if (data.nextToken != null) {
|
|
1308
2949
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1309
2950
|
}
|
|
1310
2951
|
return contents;
|
|
1311
2952
|
};
|
|
1312
|
-
exports.
|
|
1313
|
-
const
|
|
2953
|
+
exports.deserializeAws_restJson1ListSourceServerActionsCommand = deserializeAws_restJson1ListSourceServerActionsCommand;
|
|
2954
|
+
const deserializeAws_restJson1ListSourceServerActionsCommandError = async (output, context) => {
|
|
1314
2955
|
const parsedOutput = {
|
|
1315
2956
|
...output,
|
|
1316
2957
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1323,9 +2964,6 @@ const deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError =
|
|
|
1323
2964
|
case "UninitializedAccountException":
|
|
1324
2965
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1325
2966
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1326
|
-
case "ValidationException":
|
|
1327
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1328
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1329
2967
|
default:
|
|
1330
2968
|
const parsedBody = parsedOutput.body;
|
|
1331
2969
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1336,36 +2974,39 @@ const deserializeAws_restJson1DescribeLaunchConfigurationTemplatesCommandError =
|
|
|
1336
2974
|
});
|
|
1337
2975
|
}
|
|
1338
2976
|
};
|
|
1339
|
-
const
|
|
2977
|
+
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
1340
2978
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1341
|
-
return
|
|
2979
|
+
return deserializeAws_restJson1ListTagsForResourceCommandError(output, context);
|
|
1342
2980
|
}
|
|
1343
2981
|
const contents = map({
|
|
1344
2982
|
$metadata: deserializeMetadata(output),
|
|
1345
2983
|
});
|
|
1346
2984
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1347
|
-
if (data.
|
|
1348
|
-
contents.
|
|
1349
|
-
}
|
|
1350
|
-
if (data.nextToken != null) {
|
|
1351
|
-
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
2985
|
+
if (data.tags != null) {
|
|
2986
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1352
2987
|
}
|
|
1353
2988
|
return contents;
|
|
1354
2989
|
};
|
|
1355
|
-
exports.
|
|
1356
|
-
const
|
|
2990
|
+
exports.deserializeAws_restJson1ListTagsForResourceCommand = deserializeAws_restJson1ListTagsForResourceCommand;
|
|
2991
|
+
const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, context) => {
|
|
1357
2992
|
const parsedOutput = {
|
|
1358
2993
|
...output,
|
|
1359
2994
|
body: await parseErrorBody(output.body, context),
|
|
1360
2995
|
};
|
|
1361
2996
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1362
2997
|
switch (errorCode) {
|
|
2998
|
+
case "AccessDeniedException":
|
|
2999
|
+
case "com.amazonaws.mgn#AccessDeniedException":
|
|
3000
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3001
|
+
case "InternalServerException":
|
|
3002
|
+
case "com.amazonaws.mgn#InternalServerException":
|
|
3003
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1363
3004
|
case "ResourceNotFoundException":
|
|
1364
3005
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1365
3006
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1366
|
-
case "
|
|
1367
|
-
case "com.amazonaws.mgn#
|
|
1368
|
-
throw await
|
|
3007
|
+
case "ThrottlingException":
|
|
3008
|
+
case "com.amazonaws.mgn#ThrottlingException":
|
|
3009
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
1369
3010
|
case "ValidationException":
|
|
1370
3011
|
case "com.amazonaws.mgn#ValidationException":
|
|
1371
3012
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -1379,36 +3020,36 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1379
3020
|
});
|
|
1380
3021
|
}
|
|
1381
3022
|
};
|
|
1382
|
-
const
|
|
3023
|
+
const deserializeAws_restJson1ListTemplateActionsCommand = async (output, context) => {
|
|
1383
3024
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1384
|
-
return
|
|
3025
|
+
return deserializeAws_restJson1ListTemplateActionsCommandError(output, context);
|
|
1385
3026
|
}
|
|
1386
3027
|
const contents = map({
|
|
1387
3028
|
$metadata: deserializeMetadata(output),
|
|
1388
3029
|
});
|
|
1389
3030
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1390
3031
|
if (data.items != null) {
|
|
1391
|
-
contents.items =
|
|
3032
|
+
contents.items = deserializeAws_restJson1TemplateActionDocuments(data.items, context);
|
|
1392
3033
|
}
|
|
1393
3034
|
if (data.nextToken != null) {
|
|
1394
3035
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1395
3036
|
}
|
|
1396
3037
|
return contents;
|
|
1397
3038
|
};
|
|
1398
|
-
exports.
|
|
1399
|
-
const
|
|
3039
|
+
exports.deserializeAws_restJson1ListTemplateActionsCommand = deserializeAws_restJson1ListTemplateActionsCommand;
|
|
3040
|
+
const deserializeAws_restJson1ListTemplateActionsCommandError = async (output, context) => {
|
|
1400
3041
|
const parsedOutput = {
|
|
1401
3042
|
...output,
|
|
1402
3043
|
body: await parseErrorBody(output.body, context),
|
|
1403
3044
|
};
|
|
1404
3045
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1405
3046
|
switch (errorCode) {
|
|
3047
|
+
case "ResourceNotFoundException":
|
|
3048
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3049
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1406
3050
|
case "UninitializedAccountException":
|
|
1407
3051
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1408
3052
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1409
|
-
case "ValidationException":
|
|
1410
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1411
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1412
3053
|
default:
|
|
1413
3054
|
const parsedBody = parsedOutput.body;
|
|
1414
3055
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1419,39 +3060,33 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1419
3060
|
});
|
|
1420
3061
|
}
|
|
1421
3062
|
};
|
|
1422
|
-
const
|
|
3063
|
+
const deserializeAws_restJson1ListWavesCommand = async (output, context) => {
|
|
1423
3064
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1424
|
-
return
|
|
3065
|
+
return deserializeAws_restJson1ListWavesCommandError(output, context);
|
|
1425
3066
|
}
|
|
1426
3067
|
const contents = map({
|
|
1427
3068
|
$metadata: deserializeMetadata(output),
|
|
1428
3069
|
});
|
|
1429
3070
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1430
3071
|
if (data.items != null) {
|
|
1431
|
-
contents.items =
|
|
3072
|
+
contents.items = deserializeAws_restJson1WavesList(data.items, context);
|
|
1432
3073
|
}
|
|
1433
3074
|
if (data.nextToken != null) {
|
|
1434
3075
|
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1435
3076
|
}
|
|
1436
3077
|
return contents;
|
|
1437
3078
|
};
|
|
1438
|
-
exports.
|
|
1439
|
-
const
|
|
3079
|
+
exports.deserializeAws_restJson1ListWavesCommand = deserializeAws_restJson1ListWavesCommand;
|
|
3080
|
+
const deserializeAws_restJson1ListWavesCommandError = async (output, context) => {
|
|
1440
3081
|
const parsedOutput = {
|
|
1441
3082
|
...output,
|
|
1442
3083
|
body: await parseErrorBody(output.body, context),
|
|
1443
3084
|
};
|
|
1444
3085
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1445
3086
|
switch (errorCode) {
|
|
1446
|
-
case "ResourceNotFoundException":
|
|
1447
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1448
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1449
3087
|
case "UninitializedAccountException":
|
|
1450
3088
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1451
3089
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1452
|
-
case "ValidationException":
|
|
1453
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
1454
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1455
3090
|
default:
|
|
1456
3091
|
const parsedBody = parsedOutput.body;
|
|
1457
3092
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1462,14 +3097,17 @@ const deserializeAws_restJson1DescribeVcenterClientsCommandError = async (output
|
|
|
1462
3097
|
});
|
|
1463
3098
|
}
|
|
1464
3099
|
};
|
|
1465
|
-
const
|
|
3100
|
+
const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) => {
|
|
1466
3101
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1467
|
-
return
|
|
3102
|
+
return deserializeAws_restJson1MarkAsArchivedCommandError(output, context);
|
|
1468
3103
|
}
|
|
1469
3104
|
const contents = map({
|
|
1470
3105
|
$metadata: deserializeMetadata(output),
|
|
1471
3106
|
});
|
|
1472
3107
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3108
|
+
if (data.applicationID != null) {
|
|
3109
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
3110
|
+
}
|
|
1473
3111
|
if (data.arn != null) {
|
|
1474
3112
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1475
3113
|
}
|
|
@@ -1502,8 +3140,8 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
|
|
|
1502
3140
|
}
|
|
1503
3141
|
return contents;
|
|
1504
3142
|
};
|
|
1505
|
-
exports.
|
|
1506
|
-
const
|
|
3143
|
+
exports.deserializeAws_restJson1MarkAsArchivedCommand = deserializeAws_restJson1MarkAsArchivedCommand;
|
|
3144
|
+
const deserializeAws_restJson1MarkAsArchivedCommandError = async (output, context) => {
|
|
1507
3145
|
const parsedOutput = {
|
|
1508
3146
|
...output,
|
|
1509
3147
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1529,48 +3167,45 @@ const deserializeAws_restJson1DisconnectFromServiceCommandError = async (output,
|
|
|
1529
3167
|
});
|
|
1530
3168
|
}
|
|
1531
3169
|
};
|
|
1532
|
-
const
|
|
3170
|
+
const deserializeAws_restJson1PutSourceServerActionCommand = async (output, context) => {
|
|
1533
3171
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1534
|
-
return
|
|
3172
|
+
return deserializeAws_restJson1PutSourceServerActionCommandError(output, context);
|
|
1535
3173
|
}
|
|
1536
3174
|
const contents = map({
|
|
1537
3175
|
$metadata: deserializeMetadata(output),
|
|
1538
3176
|
});
|
|
1539
3177
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1540
|
-
if (data.
|
|
1541
|
-
contents.
|
|
1542
|
-
}
|
|
1543
|
-
if (data.dataReplicationInfo != null) {
|
|
1544
|
-
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
3178
|
+
if (data.actionID != null) {
|
|
3179
|
+
contents.actionID = (0, smithy_client_1.expectString)(data.actionID);
|
|
1545
3180
|
}
|
|
1546
|
-
if (data.
|
|
1547
|
-
contents.
|
|
3181
|
+
if (data.actionName != null) {
|
|
3182
|
+
contents.actionName = (0, smithy_client_1.expectString)(data.actionName);
|
|
1548
3183
|
}
|
|
1549
|
-
if (data.
|
|
1550
|
-
contents.
|
|
3184
|
+
if (data.active != null) {
|
|
3185
|
+
contents.active = (0, smithy_client_1.expectBoolean)(data.active);
|
|
1551
3186
|
}
|
|
1552
|
-
if (data.
|
|
1553
|
-
contents.
|
|
3187
|
+
if (data.documentIdentifier != null) {
|
|
3188
|
+
contents.documentIdentifier = (0, smithy_client_1.expectString)(data.documentIdentifier);
|
|
1554
3189
|
}
|
|
1555
|
-
if (data.
|
|
1556
|
-
contents.
|
|
3190
|
+
if (data.documentVersion != null) {
|
|
3191
|
+
contents.documentVersion = (0, smithy_client_1.expectString)(data.documentVersion);
|
|
1557
3192
|
}
|
|
1558
|
-
if (data.
|
|
1559
|
-
contents.
|
|
3193
|
+
if (data.mustSucceedForCutover != null) {
|
|
3194
|
+
contents.mustSucceedForCutover = (0, smithy_client_1.expectBoolean)(data.mustSucceedForCutover);
|
|
1560
3195
|
}
|
|
1561
|
-
if (data.
|
|
1562
|
-
contents.
|
|
3196
|
+
if (data.order != null) {
|
|
3197
|
+
contents.order = (0, smithy_client_1.expectInt32)(data.order);
|
|
1563
3198
|
}
|
|
1564
|
-
if (data.
|
|
1565
|
-
contents.
|
|
3199
|
+
if (data.parameters != null) {
|
|
3200
|
+
contents.parameters = deserializeAws_restJson1SsmDocumentParameters(data.parameters, context);
|
|
1566
3201
|
}
|
|
1567
|
-
if (data.
|
|
1568
|
-
contents.
|
|
3202
|
+
if (data.timeoutSeconds != null) {
|
|
3203
|
+
contents.timeoutSeconds = (0, smithy_client_1.expectInt32)(data.timeoutSeconds);
|
|
1569
3204
|
}
|
|
1570
3205
|
return contents;
|
|
1571
3206
|
};
|
|
1572
|
-
exports.
|
|
1573
|
-
const
|
|
3207
|
+
exports.deserializeAws_restJson1PutSourceServerActionCommand = deserializeAws_restJson1PutSourceServerActionCommand;
|
|
3208
|
+
const deserializeAws_restJson1PutSourceServerActionCommandError = async (output, context) => {
|
|
1574
3209
|
const parsedOutput = {
|
|
1575
3210
|
...output,
|
|
1576
3211
|
body: await parseErrorBody(output.body, context),
|
|
@@ -1599,170 +3234,63 @@ const deserializeAws_restJson1FinalizeCutoverCommandError = async (output, conte
|
|
|
1599
3234
|
});
|
|
1600
3235
|
}
|
|
1601
3236
|
};
|
|
1602
|
-
const
|
|
1603
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1604
|
-
return deserializeAws_restJson1GetLaunchConfigurationCommandError(output, context);
|
|
1605
|
-
}
|
|
1606
|
-
const contents = map({
|
|
1607
|
-
$metadata: deserializeMetadata(output),
|
|
1608
|
-
});
|
|
1609
|
-
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1610
|
-
if (data.bootMode != null) {
|
|
1611
|
-
contents.bootMode = (0, smithy_client_1.expectString)(data.bootMode);
|
|
1612
|
-
}
|
|
1613
|
-
if (data.copyPrivateIp != null) {
|
|
1614
|
-
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
1615
|
-
}
|
|
1616
|
-
if (data.copyTags != null) {
|
|
1617
|
-
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
1618
|
-
}
|
|
1619
|
-
if (data.ec2LaunchTemplateID != null) {
|
|
1620
|
-
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
1621
|
-
}
|
|
1622
|
-
if (data.launchDisposition != null) {
|
|
1623
|
-
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
1624
|
-
}
|
|
1625
|
-
if (data.licensing != null) {
|
|
1626
|
-
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
1627
|
-
}
|
|
1628
|
-
if (data.name != null) {
|
|
1629
|
-
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1630
|
-
}
|
|
1631
|
-
if (data.postLaunchActions != null) {
|
|
1632
|
-
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
1633
|
-
}
|
|
1634
|
-
if (data.sourceServerID != null) {
|
|
1635
|
-
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1636
|
-
}
|
|
1637
|
-
if (data.targetInstanceTypeRightSizingMethod != null) {
|
|
1638
|
-
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
1639
|
-
}
|
|
1640
|
-
return contents;
|
|
1641
|
-
};
|
|
1642
|
-
exports.deserializeAws_restJson1GetLaunchConfigurationCommand = deserializeAws_restJson1GetLaunchConfigurationCommand;
|
|
1643
|
-
const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output, context) => {
|
|
1644
|
-
const parsedOutput = {
|
|
1645
|
-
...output,
|
|
1646
|
-
body: await parseErrorBody(output.body, context),
|
|
1647
|
-
};
|
|
1648
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1649
|
-
switch (errorCode) {
|
|
1650
|
-
case "ResourceNotFoundException":
|
|
1651
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1652
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1653
|
-
case "UninitializedAccountException":
|
|
1654
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1655
|
-
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1656
|
-
default:
|
|
1657
|
-
const parsedBody = parsedOutput.body;
|
|
1658
|
-
(0, smithy_client_1.throwDefaultError)({
|
|
1659
|
-
output,
|
|
1660
|
-
parsedBody,
|
|
1661
|
-
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
1662
|
-
errorCode,
|
|
1663
|
-
});
|
|
1664
|
-
}
|
|
1665
|
-
};
|
|
1666
|
-
const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output, context) => {
|
|
3237
|
+
const deserializeAws_restJson1PutTemplateActionCommand = async (output, context) => {
|
|
1667
3238
|
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
1668
|
-
return
|
|
3239
|
+
return deserializeAws_restJson1PutTemplateActionCommandError(output, context);
|
|
1669
3240
|
}
|
|
1670
3241
|
const contents = map({
|
|
1671
3242
|
$metadata: deserializeMetadata(output),
|
|
1672
3243
|
});
|
|
1673
3244
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1674
|
-
if (data.
|
|
1675
|
-
contents.
|
|
1676
|
-
}
|
|
1677
|
-
if (data.bandwidthThrottling != null) {
|
|
1678
|
-
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
1679
|
-
}
|
|
1680
|
-
if (data.createPublicIP != null) {
|
|
1681
|
-
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
1682
|
-
}
|
|
1683
|
-
if (data.dataPlaneRouting != null) {
|
|
1684
|
-
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
1685
|
-
}
|
|
1686
|
-
if (data.defaultLargeStagingDiskType != null) {
|
|
1687
|
-
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
3245
|
+
if (data.actionID != null) {
|
|
3246
|
+
contents.actionID = (0, smithy_client_1.expectString)(data.actionID);
|
|
1688
3247
|
}
|
|
1689
|
-
if (data.
|
|
1690
|
-
contents.
|
|
1691
|
-
}
|
|
1692
|
-
if (data.ebsEncryptionKeyArn != null) {
|
|
1693
|
-
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
1694
|
-
}
|
|
1695
|
-
if (data.name != null) {
|
|
1696
|
-
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
3248
|
+
if (data.actionName != null) {
|
|
3249
|
+
contents.actionName = (0, smithy_client_1.expectString)(data.actionName);
|
|
1697
3250
|
}
|
|
1698
|
-
if (data.
|
|
1699
|
-
contents.
|
|
1700
|
-
}
|
|
1701
|
-
if (data.replicationServerInstanceType != null) {
|
|
1702
|
-
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
1703
|
-
}
|
|
1704
|
-
if (data.replicationServersSecurityGroupsIDs != null) {
|
|
1705
|
-
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
3251
|
+
if (data.active != null) {
|
|
3252
|
+
contents.active = (0, smithy_client_1.expectBoolean)(data.active);
|
|
1706
3253
|
}
|
|
1707
|
-
if (data.
|
|
1708
|
-
contents.
|
|
3254
|
+
if (data.documentIdentifier != null) {
|
|
3255
|
+
contents.documentIdentifier = (0, smithy_client_1.expectString)(data.documentIdentifier);
|
|
1709
3256
|
}
|
|
1710
|
-
if (data.
|
|
1711
|
-
contents.
|
|
3257
|
+
if (data.documentVersion != null) {
|
|
3258
|
+
contents.documentVersion = (0, smithy_client_1.expectString)(data.documentVersion);
|
|
1712
3259
|
}
|
|
1713
|
-
if (data.
|
|
1714
|
-
contents.
|
|
3260
|
+
if (data.mustSucceedForCutover != null) {
|
|
3261
|
+
contents.mustSucceedForCutover = (0, smithy_client_1.expectBoolean)(data.mustSucceedForCutover);
|
|
1715
3262
|
}
|
|
1716
|
-
if (data.
|
|
1717
|
-
contents.
|
|
3263
|
+
if (data.operatingSystem != null) {
|
|
3264
|
+
contents.operatingSystem = (0, smithy_client_1.expectString)(data.operatingSystem);
|
|
1718
3265
|
}
|
|
1719
|
-
|
|
1720
|
-
|
|
1721
|
-
exports.deserializeAws_restJson1GetReplicationConfigurationCommand = deserializeAws_restJson1GetReplicationConfigurationCommand;
|
|
1722
|
-
const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (output, context) => {
|
|
1723
|
-
const parsedOutput = {
|
|
1724
|
-
...output,
|
|
1725
|
-
body: await parseErrorBody(output.body, context),
|
|
1726
|
-
};
|
|
1727
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1728
|
-
switch (errorCode) {
|
|
1729
|
-
case "ResourceNotFoundException":
|
|
1730
|
-
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1731
|
-
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1732
|
-
case "UninitializedAccountException":
|
|
1733
|
-
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1734
|
-
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1735
|
-
default:
|
|
1736
|
-
const parsedBody = parsedOutput.body;
|
|
1737
|
-
(0, smithy_client_1.throwDefaultError)({
|
|
1738
|
-
output,
|
|
1739
|
-
parsedBody,
|
|
1740
|
-
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
1741
|
-
errorCode,
|
|
1742
|
-
});
|
|
3266
|
+
if (data.order != null) {
|
|
3267
|
+
contents.order = (0, smithy_client_1.expectInt32)(data.order);
|
|
1743
3268
|
}
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
3269
|
+
if (data.parameters != null) {
|
|
3270
|
+
contents.parameters = deserializeAws_restJson1SsmDocumentParameters(data.parameters, context);
|
|
3271
|
+
}
|
|
3272
|
+
if (data.timeoutSeconds != null) {
|
|
3273
|
+
contents.timeoutSeconds = (0, smithy_client_1.expectInt32)(data.timeoutSeconds);
|
|
1748
3274
|
}
|
|
1749
|
-
const contents = map({
|
|
1750
|
-
$metadata: deserializeMetadata(output),
|
|
1751
|
-
});
|
|
1752
|
-
await collectBody(output.body, context);
|
|
1753
3275
|
return contents;
|
|
1754
3276
|
};
|
|
1755
|
-
exports.
|
|
1756
|
-
const
|
|
3277
|
+
exports.deserializeAws_restJson1PutTemplateActionCommand = deserializeAws_restJson1PutTemplateActionCommand;
|
|
3278
|
+
const deserializeAws_restJson1PutTemplateActionCommandError = async (output, context) => {
|
|
1757
3279
|
const parsedOutput = {
|
|
1758
3280
|
...output,
|
|
1759
3281
|
body: await parseErrorBody(output.body, context),
|
|
1760
3282
|
};
|
|
1761
3283
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1762
3284
|
switch (errorCode) {
|
|
1763
|
-
case "
|
|
1764
|
-
case "com.amazonaws.mgn#
|
|
1765
|
-
throw await
|
|
3285
|
+
case "ConflictException":
|
|
3286
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
3287
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
3288
|
+
case "ResourceNotFoundException":
|
|
3289
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3290
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3291
|
+
case "UninitializedAccountException":
|
|
3292
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3293
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1766
3294
|
case "ValidationException":
|
|
1767
3295
|
case "com.amazonaws.mgn#ValidationException":
|
|
1768
3296
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -1776,39 +3304,30 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1776
3304
|
});
|
|
1777
3305
|
}
|
|
1778
3306
|
};
|
|
1779
|
-
const
|
|
1780
|
-
if (output.statusCode !==
|
|
1781
|
-
return
|
|
3307
|
+
const deserializeAws_restJson1RemoveSourceServerActionCommand = async (output, context) => {
|
|
3308
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3309
|
+
return deserializeAws_restJson1RemoveSourceServerActionCommandError(output, context);
|
|
1782
3310
|
}
|
|
1783
3311
|
const contents = map({
|
|
1784
3312
|
$metadata: deserializeMetadata(output),
|
|
1785
3313
|
});
|
|
1786
|
-
|
|
1787
|
-
if (data.tags != null) {
|
|
1788
|
-
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1789
|
-
}
|
|
3314
|
+
await collectBody(output.body, context);
|
|
1790
3315
|
return contents;
|
|
1791
3316
|
};
|
|
1792
|
-
exports.
|
|
1793
|
-
const
|
|
3317
|
+
exports.deserializeAws_restJson1RemoveSourceServerActionCommand = deserializeAws_restJson1RemoveSourceServerActionCommand;
|
|
3318
|
+
const deserializeAws_restJson1RemoveSourceServerActionCommandError = async (output, context) => {
|
|
1794
3319
|
const parsedOutput = {
|
|
1795
3320
|
...output,
|
|
1796
3321
|
body: await parseErrorBody(output.body, context),
|
|
1797
3322
|
};
|
|
1798
3323
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1799
3324
|
switch (errorCode) {
|
|
1800
|
-
case "AccessDeniedException":
|
|
1801
|
-
case "com.amazonaws.mgn#AccessDeniedException":
|
|
1802
|
-
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
1803
|
-
case "InternalServerException":
|
|
1804
|
-
case "com.amazonaws.mgn#InternalServerException":
|
|
1805
|
-
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
1806
3325
|
case "ResourceNotFoundException":
|
|
1807
3326
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1808
3327
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1809
|
-
case "
|
|
1810
|
-
case "com.amazonaws.mgn#
|
|
1811
|
-
throw await
|
|
3328
|
+
case "UninitializedAccountException":
|
|
3329
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3330
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
1812
3331
|
case "ValidationException":
|
|
1813
3332
|
case "com.amazonaws.mgn#ValidationException":
|
|
1814
3333
|
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
@@ -1822,63 +3341,33 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1822
3341
|
});
|
|
1823
3342
|
}
|
|
1824
3343
|
};
|
|
1825
|
-
const
|
|
1826
|
-
if (output.statusCode !==
|
|
1827
|
-
return
|
|
3344
|
+
const deserializeAws_restJson1RemoveTemplateActionCommand = async (output, context) => {
|
|
3345
|
+
if (output.statusCode !== 204 && output.statusCode >= 300) {
|
|
3346
|
+
return deserializeAws_restJson1RemoveTemplateActionCommandError(output, context);
|
|
1828
3347
|
}
|
|
1829
3348
|
const contents = map({
|
|
1830
3349
|
$metadata: deserializeMetadata(output),
|
|
1831
3350
|
});
|
|
1832
|
-
|
|
1833
|
-
if (data.arn != null) {
|
|
1834
|
-
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1835
|
-
}
|
|
1836
|
-
if (data.dataReplicationInfo != null) {
|
|
1837
|
-
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1838
|
-
}
|
|
1839
|
-
if (data.isArchived != null) {
|
|
1840
|
-
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1841
|
-
}
|
|
1842
|
-
if (data.launchedInstance != null) {
|
|
1843
|
-
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
1844
|
-
}
|
|
1845
|
-
if (data.lifeCycle != null) {
|
|
1846
|
-
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1847
|
-
}
|
|
1848
|
-
if (data.replicationType != null) {
|
|
1849
|
-
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1850
|
-
}
|
|
1851
|
-
if (data.sourceProperties != null) {
|
|
1852
|
-
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1853
|
-
}
|
|
1854
|
-
if (data.sourceServerID != null) {
|
|
1855
|
-
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1856
|
-
}
|
|
1857
|
-
if (data.tags != null) {
|
|
1858
|
-
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1859
|
-
}
|
|
1860
|
-
if (data.vcenterClientID != null) {
|
|
1861
|
-
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1862
|
-
}
|
|
3351
|
+
await collectBody(output.body, context);
|
|
1863
3352
|
return contents;
|
|
1864
3353
|
};
|
|
1865
|
-
exports.
|
|
1866
|
-
const
|
|
3354
|
+
exports.deserializeAws_restJson1RemoveTemplateActionCommand = deserializeAws_restJson1RemoveTemplateActionCommand;
|
|
3355
|
+
const deserializeAws_restJson1RemoveTemplateActionCommandError = async (output, context) => {
|
|
1867
3356
|
const parsedOutput = {
|
|
1868
3357
|
...output,
|
|
1869
3358
|
body: await parseErrorBody(output.body, context),
|
|
1870
3359
|
};
|
|
1871
3360
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1872
3361
|
switch (errorCode) {
|
|
1873
|
-
case "ConflictException":
|
|
1874
|
-
case "com.amazonaws.mgn#ConflictException":
|
|
1875
|
-
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
1876
3362
|
case "ResourceNotFoundException":
|
|
1877
3363
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
1878
3364
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
1879
3365
|
case "UninitializedAccountException":
|
|
1880
3366
|
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
1881
3367
|
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
3368
|
+
case "ValidationException":
|
|
3369
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
3370
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
1882
3371
|
default:
|
|
1883
3372
|
const parsedBody = parsedOutput.body;
|
|
1884
3373
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -1897,6 +3386,9 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
|
|
|
1897
3386
|
$metadata: deserializeMetadata(output),
|
|
1898
3387
|
});
|
|
1899
3388
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3389
|
+
if (data.applicationID != null) {
|
|
3390
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
3391
|
+
}
|
|
1900
3392
|
if (data.arn != null) {
|
|
1901
3393
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1902
3394
|
}
|
|
@@ -2004,6 +3496,9 @@ const deserializeAws_restJson1StartReplicationCommand = async (output, context)
|
|
|
2004
3496
|
$metadata: deserializeMetadata(output),
|
|
2005
3497
|
});
|
|
2006
3498
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3499
|
+
if (data.applicationID != null) {
|
|
3500
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
3501
|
+
}
|
|
2007
3502
|
if (data.arn != null) {
|
|
2008
3503
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2009
3504
|
}
|
|
@@ -2191,40 +3686,238 @@ const deserializeAws_restJson1TerminateTargetInstancesCommandError = async (outp
|
|
|
2191
3686
|
errorCode,
|
|
2192
3687
|
});
|
|
2193
3688
|
}
|
|
2194
|
-
};
|
|
2195
|
-
const
|
|
2196
|
-
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
2197
|
-
return
|
|
3689
|
+
};
|
|
3690
|
+
const deserializeAws_restJson1UnarchiveApplicationCommand = async (output, context) => {
|
|
3691
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3692
|
+
return deserializeAws_restJson1UnarchiveApplicationCommandError(output, context);
|
|
3693
|
+
}
|
|
3694
|
+
const contents = map({
|
|
3695
|
+
$metadata: deserializeMetadata(output),
|
|
3696
|
+
});
|
|
3697
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3698
|
+
if (data.applicationAggregatedStatus != null) {
|
|
3699
|
+
contents.applicationAggregatedStatus = deserializeAws_restJson1ApplicationAggregatedStatus(data.applicationAggregatedStatus, context);
|
|
3700
|
+
}
|
|
3701
|
+
if (data.applicationID != null) {
|
|
3702
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
3703
|
+
}
|
|
3704
|
+
if (data.arn != null) {
|
|
3705
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
3706
|
+
}
|
|
3707
|
+
if (data.creationDateTime != null) {
|
|
3708
|
+
contents.creationDateTime = (0, smithy_client_1.expectString)(data.creationDateTime);
|
|
3709
|
+
}
|
|
3710
|
+
if (data.description != null) {
|
|
3711
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
3712
|
+
}
|
|
3713
|
+
if (data.isArchived != null) {
|
|
3714
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
3715
|
+
}
|
|
3716
|
+
if (data.lastModifiedDateTime != null) {
|
|
3717
|
+
contents.lastModifiedDateTime = (0, smithy_client_1.expectString)(data.lastModifiedDateTime);
|
|
3718
|
+
}
|
|
3719
|
+
if (data.name != null) {
|
|
3720
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
3721
|
+
}
|
|
3722
|
+
if (data.tags != null) {
|
|
3723
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
3724
|
+
}
|
|
3725
|
+
if (data.waveID != null) {
|
|
3726
|
+
contents.waveID = (0, smithy_client_1.expectString)(data.waveID);
|
|
3727
|
+
}
|
|
3728
|
+
return contents;
|
|
3729
|
+
};
|
|
3730
|
+
exports.deserializeAws_restJson1UnarchiveApplicationCommand = deserializeAws_restJson1UnarchiveApplicationCommand;
|
|
3731
|
+
const deserializeAws_restJson1UnarchiveApplicationCommandError = async (output, context) => {
|
|
3732
|
+
const parsedOutput = {
|
|
3733
|
+
...output,
|
|
3734
|
+
body: await parseErrorBody(output.body, context),
|
|
3735
|
+
};
|
|
3736
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3737
|
+
switch (errorCode) {
|
|
3738
|
+
case "ResourceNotFoundException":
|
|
3739
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3740
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3741
|
+
case "ServiceQuotaExceededException":
|
|
3742
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3743
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
3744
|
+
case "UninitializedAccountException":
|
|
3745
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3746
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
3747
|
+
default:
|
|
3748
|
+
const parsedBody = parsedOutput.body;
|
|
3749
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3750
|
+
output,
|
|
3751
|
+
parsedBody,
|
|
3752
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
3753
|
+
errorCode,
|
|
3754
|
+
});
|
|
3755
|
+
}
|
|
3756
|
+
};
|
|
3757
|
+
const deserializeAws_restJson1UnarchiveWaveCommand = async (output, context) => {
|
|
3758
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3759
|
+
return deserializeAws_restJson1UnarchiveWaveCommandError(output, context);
|
|
3760
|
+
}
|
|
3761
|
+
const contents = map({
|
|
3762
|
+
$metadata: deserializeMetadata(output),
|
|
3763
|
+
});
|
|
3764
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3765
|
+
if (data.arn != null) {
|
|
3766
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
3767
|
+
}
|
|
3768
|
+
if (data.creationDateTime != null) {
|
|
3769
|
+
contents.creationDateTime = (0, smithy_client_1.expectString)(data.creationDateTime);
|
|
3770
|
+
}
|
|
3771
|
+
if (data.description != null) {
|
|
3772
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
3773
|
+
}
|
|
3774
|
+
if (data.isArchived != null) {
|
|
3775
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
3776
|
+
}
|
|
3777
|
+
if (data.lastModifiedDateTime != null) {
|
|
3778
|
+
contents.lastModifiedDateTime = (0, smithy_client_1.expectString)(data.lastModifiedDateTime);
|
|
3779
|
+
}
|
|
3780
|
+
if (data.name != null) {
|
|
3781
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
3782
|
+
}
|
|
3783
|
+
if (data.tags != null) {
|
|
3784
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
3785
|
+
}
|
|
3786
|
+
if (data.waveAggregatedStatus != null) {
|
|
3787
|
+
contents.waveAggregatedStatus = deserializeAws_restJson1WaveAggregatedStatus(data.waveAggregatedStatus, context);
|
|
3788
|
+
}
|
|
3789
|
+
if (data.waveID != null) {
|
|
3790
|
+
contents.waveID = (0, smithy_client_1.expectString)(data.waveID);
|
|
3791
|
+
}
|
|
3792
|
+
return contents;
|
|
3793
|
+
};
|
|
3794
|
+
exports.deserializeAws_restJson1UnarchiveWaveCommand = deserializeAws_restJson1UnarchiveWaveCommand;
|
|
3795
|
+
const deserializeAws_restJson1UnarchiveWaveCommandError = async (output, context) => {
|
|
3796
|
+
const parsedOutput = {
|
|
3797
|
+
...output,
|
|
3798
|
+
body: await parseErrorBody(output.body, context),
|
|
3799
|
+
};
|
|
3800
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3801
|
+
switch (errorCode) {
|
|
3802
|
+
case "ResourceNotFoundException":
|
|
3803
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3804
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3805
|
+
case "ServiceQuotaExceededException":
|
|
3806
|
+
case "com.amazonaws.mgn#ServiceQuotaExceededException":
|
|
3807
|
+
throw await deserializeAws_restJson1ServiceQuotaExceededExceptionResponse(parsedOutput, context);
|
|
3808
|
+
case "UninitializedAccountException":
|
|
3809
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3810
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
3811
|
+
default:
|
|
3812
|
+
const parsedBody = parsedOutput.body;
|
|
3813
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3814
|
+
output,
|
|
3815
|
+
parsedBody,
|
|
3816
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
3817
|
+
errorCode,
|
|
3818
|
+
});
|
|
3819
|
+
}
|
|
3820
|
+
};
|
|
3821
|
+
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
3822
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3823
|
+
return deserializeAws_restJson1UntagResourceCommandError(output, context);
|
|
3824
|
+
}
|
|
3825
|
+
const contents = map({
|
|
3826
|
+
$metadata: deserializeMetadata(output),
|
|
3827
|
+
});
|
|
3828
|
+
await collectBody(output.body, context);
|
|
3829
|
+
return contents;
|
|
3830
|
+
};
|
|
3831
|
+
exports.deserializeAws_restJson1UntagResourceCommand = deserializeAws_restJson1UntagResourceCommand;
|
|
3832
|
+
const deserializeAws_restJson1UntagResourceCommandError = async (output, context) => {
|
|
3833
|
+
const parsedOutput = {
|
|
3834
|
+
...output,
|
|
3835
|
+
body: await parseErrorBody(output.body, context),
|
|
3836
|
+
};
|
|
3837
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
3838
|
+
switch (errorCode) {
|
|
3839
|
+
case "AccessDeniedException":
|
|
3840
|
+
case "com.amazonaws.mgn#AccessDeniedException":
|
|
3841
|
+
throw await deserializeAws_restJson1AccessDeniedExceptionResponse(parsedOutput, context);
|
|
3842
|
+
case "InternalServerException":
|
|
3843
|
+
case "com.amazonaws.mgn#InternalServerException":
|
|
3844
|
+
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3845
|
+
case "ResourceNotFoundException":
|
|
3846
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
3847
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
3848
|
+
case "ThrottlingException":
|
|
3849
|
+
case "com.amazonaws.mgn#ThrottlingException":
|
|
3850
|
+
throw await deserializeAws_restJson1ThrottlingExceptionResponse(parsedOutput, context);
|
|
3851
|
+
case "ValidationException":
|
|
3852
|
+
case "com.amazonaws.mgn#ValidationException":
|
|
3853
|
+
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3854
|
+
default:
|
|
3855
|
+
const parsedBody = parsedOutput.body;
|
|
3856
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
3857
|
+
output,
|
|
3858
|
+
parsedBody,
|
|
3859
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
3860
|
+
errorCode,
|
|
3861
|
+
});
|
|
3862
|
+
}
|
|
3863
|
+
};
|
|
3864
|
+
const deserializeAws_restJson1UpdateApplicationCommand = async (output, context) => {
|
|
3865
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
3866
|
+
return deserializeAws_restJson1UpdateApplicationCommandError(output, context);
|
|
3867
|
+
}
|
|
3868
|
+
const contents = map({
|
|
3869
|
+
$metadata: deserializeMetadata(output),
|
|
3870
|
+
});
|
|
3871
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
3872
|
+
if (data.applicationAggregatedStatus != null) {
|
|
3873
|
+
contents.applicationAggregatedStatus = deserializeAws_restJson1ApplicationAggregatedStatus(data.applicationAggregatedStatus, context);
|
|
3874
|
+
}
|
|
3875
|
+
if (data.applicationID != null) {
|
|
3876
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
3877
|
+
}
|
|
3878
|
+
if (data.arn != null) {
|
|
3879
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
3880
|
+
}
|
|
3881
|
+
if (data.creationDateTime != null) {
|
|
3882
|
+
contents.creationDateTime = (0, smithy_client_1.expectString)(data.creationDateTime);
|
|
3883
|
+
}
|
|
3884
|
+
if (data.description != null) {
|
|
3885
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
3886
|
+
}
|
|
3887
|
+
if (data.isArchived != null) {
|
|
3888
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
3889
|
+
}
|
|
3890
|
+
if (data.lastModifiedDateTime != null) {
|
|
3891
|
+
contents.lastModifiedDateTime = (0, smithy_client_1.expectString)(data.lastModifiedDateTime);
|
|
3892
|
+
}
|
|
3893
|
+
if (data.name != null) {
|
|
3894
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
3895
|
+
}
|
|
3896
|
+
if (data.tags != null) {
|
|
3897
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
3898
|
+
}
|
|
3899
|
+
if (data.waveID != null) {
|
|
3900
|
+
contents.waveID = (0, smithy_client_1.expectString)(data.waveID);
|
|
2198
3901
|
}
|
|
2199
|
-
const contents = map({
|
|
2200
|
-
$metadata: deserializeMetadata(output),
|
|
2201
|
-
});
|
|
2202
|
-
await collectBody(output.body, context);
|
|
2203
3902
|
return contents;
|
|
2204
3903
|
};
|
|
2205
|
-
exports.
|
|
2206
|
-
const
|
|
3904
|
+
exports.deserializeAws_restJson1UpdateApplicationCommand = deserializeAws_restJson1UpdateApplicationCommand;
|
|
3905
|
+
const deserializeAws_restJson1UpdateApplicationCommandError = async (output, context) => {
|
|
2207
3906
|
const parsedOutput = {
|
|
2208
3907
|
...output,
|
|
2209
3908
|
body: await parseErrorBody(output.body, context),
|
|
2210
3909
|
};
|
|
2211
3910
|
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
2212
3911
|
switch (errorCode) {
|
|
2213
|
-
case "
|
|
2214
|
-
case "com.amazonaws.mgn#
|
|
2215
|
-
throw await
|
|
2216
|
-
case "InternalServerException":
|
|
2217
|
-
case "com.amazonaws.mgn#InternalServerException":
|
|
2218
|
-
throw await deserializeAws_restJson1InternalServerExceptionResponse(parsedOutput, context);
|
|
3912
|
+
case "ConflictException":
|
|
3913
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
3914
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
2219
3915
|
case "ResourceNotFoundException":
|
|
2220
3916
|
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
2221
3917
|
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
2222
|
-
case "
|
|
2223
|
-
case "com.amazonaws.mgn#
|
|
2224
|
-
throw await
|
|
2225
|
-
case "ValidationException":
|
|
2226
|
-
case "com.amazonaws.mgn#ValidationException":
|
|
2227
|
-
throw await deserializeAws_restJson1ValidationExceptionResponse(parsedOutput, context);
|
|
3918
|
+
case "UninitializedAccountException":
|
|
3919
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
3920
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
2228
3921
|
default:
|
|
2229
3922
|
const parsedBody = parsedOutput.body;
|
|
2230
3923
|
(0, smithy_client_1.throwDefaultError)({
|
|
@@ -2255,12 +3948,18 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output,
|
|
|
2255
3948
|
if (data.ec2LaunchTemplateID != null) {
|
|
2256
3949
|
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
2257
3950
|
}
|
|
3951
|
+
if (data.enableMapAutoTagging != null) {
|
|
3952
|
+
contents.enableMapAutoTagging = (0, smithy_client_1.expectBoolean)(data.enableMapAutoTagging);
|
|
3953
|
+
}
|
|
2258
3954
|
if (data.launchDisposition != null) {
|
|
2259
3955
|
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
2260
3956
|
}
|
|
2261
3957
|
if (data.licensing != null) {
|
|
2262
3958
|
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
2263
3959
|
}
|
|
3960
|
+
if (data.mapAutoTaggingMpeID != null) {
|
|
3961
|
+
contents.mapAutoTaggingMpeID = (0, smithy_client_1.expectString)(data.mapAutoTaggingMpeID);
|
|
3962
|
+
}
|
|
2264
3963
|
if (data.name != null) {
|
|
2265
3964
|
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2266
3965
|
}
|
|
@@ -2316,15 +4015,54 @@ const deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = async (
|
|
|
2316
4015
|
if (data.arn != null) {
|
|
2317
4016
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2318
4017
|
}
|
|
4018
|
+
if (data.associatePublicIpAddress != null) {
|
|
4019
|
+
contents.associatePublicIpAddress = (0, smithy_client_1.expectBoolean)(data.associatePublicIpAddress);
|
|
4020
|
+
}
|
|
4021
|
+
if (data.bootMode != null) {
|
|
4022
|
+
contents.bootMode = (0, smithy_client_1.expectString)(data.bootMode);
|
|
4023
|
+
}
|
|
4024
|
+
if (data.copyPrivateIp != null) {
|
|
4025
|
+
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
4026
|
+
}
|
|
4027
|
+
if (data.copyTags != null) {
|
|
4028
|
+
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
4029
|
+
}
|
|
4030
|
+
if (data.ec2LaunchTemplateID != null) {
|
|
4031
|
+
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
4032
|
+
}
|
|
4033
|
+
if (data.enableMapAutoTagging != null) {
|
|
4034
|
+
contents.enableMapAutoTagging = (0, smithy_client_1.expectBoolean)(data.enableMapAutoTagging);
|
|
4035
|
+
}
|
|
4036
|
+
if (data.largeVolumeConf != null) {
|
|
4037
|
+
contents.largeVolumeConf = deserializeAws_restJson1LaunchTemplateDiskConf(data.largeVolumeConf, context);
|
|
4038
|
+
}
|
|
2319
4039
|
if (data.launchConfigurationTemplateID != null) {
|
|
2320
4040
|
contents.launchConfigurationTemplateID = (0, smithy_client_1.expectString)(data.launchConfigurationTemplateID);
|
|
2321
4041
|
}
|
|
4042
|
+
if (data.launchDisposition != null) {
|
|
4043
|
+
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
4044
|
+
}
|
|
4045
|
+
if (data.licensing != null) {
|
|
4046
|
+
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
4047
|
+
}
|
|
4048
|
+
if (data.mapAutoTaggingMpeID != null) {
|
|
4049
|
+
contents.mapAutoTaggingMpeID = (0, smithy_client_1.expectString)(data.mapAutoTaggingMpeID);
|
|
4050
|
+
}
|
|
2322
4051
|
if (data.postLaunchActions != null) {
|
|
2323
4052
|
contents.postLaunchActions = deserializeAws_restJson1PostLaunchActions(data.postLaunchActions, context);
|
|
2324
4053
|
}
|
|
4054
|
+
if (data.smallVolumeConf != null) {
|
|
4055
|
+
contents.smallVolumeConf = deserializeAws_restJson1LaunchTemplateDiskConf(data.smallVolumeConf, context);
|
|
4056
|
+
}
|
|
4057
|
+
if (data.smallVolumeMaxSize != null) {
|
|
4058
|
+
contents.smallVolumeMaxSize = (0, smithy_client_1.expectLong)(data.smallVolumeMaxSize);
|
|
4059
|
+
}
|
|
2325
4060
|
if (data.tags != null) {
|
|
2326
4061
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2327
4062
|
}
|
|
4063
|
+
if (data.targetInstanceTypeRightSizingMethod != null) {
|
|
4064
|
+
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
4065
|
+
}
|
|
2328
4066
|
return contents;
|
|
2329
4067
|
};
|
|
2330
4068
|
exports.deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand = deserializeAws_restJson1UpdateLaunchConfigurationTemplateCommand;
|
|
@@ -2538,6 +4276,9 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (
|
|
|
2538
4276
|
$metadata: deserializeMetadata(output),
|
|
2539
4277
|
});
|
|
2540
4278
|
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4279
|
+
if (data.applicationID != null) {
|
|
4280
|
+
contents.applicationID = (0, smithy_client_1.expectString)(data.applicationID);
|
|
4281
|
+
}
|
|
2541
4282
|
if (data.arn != null) {
|
|
2542
4283
|
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2543
4284
|
}
|
|
@@ -2600,6 +4341,70 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = as
|
|
|
2600
4341
|
});
|
|
2601
4342
|
}
|
|
2602
4343
|
};
|
|
4344
|
+
const deserializeAws_restJson1UpdateWaveCommand = async (output, context) => {
|
|
4345
|
+
if (output.statusCode !== 200 && output.statusCode >= 300) {
|
|
4346
|
+
return deserializeAws_restJson1UpdateWaveCommandError(output, context);
|
|
4347
|
+
}
|
|
4348
|
+
const contents = map({
|
|
4349
|
+
$metadata: deserializeMetadata(output),
|
|
4350
|
+
});
|
|
4351
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
4352
|
+
if (data.arn != null) {
|
|
4353
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
4354
|
+
}
|
|
4355
|
+
if (data.creationDateTime != null) {
|
|
4356
|
+
contents.creationDateTime = (0, smithy_client_1.expectString)(data.creationDateTime);
|
|
4357
|
+
}
|
|
4358
|
+
if (data.description != null) {
|
|
4359
|
+
contents.description = (0, smithy_client_1.expectString)(data.description);
|
|
4360
|
+
}
|
|
4361
|
+
if (data.isArchived != null) {
|
|
4362
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
4363
|
+
}
|
|
4364
|
+
if (data.lastModifiedDateTime != null) {
|
|
4365
|
+
contents.lastModifiedDateTime = (0, smithy_client_1.expectString)(data.lastModifiedDateTime);
|
|
4366
|
+
}
|
|
4367
|
+
if (data.name != null) {
|
|
4368
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
4369
|
+
}
|
|
4370
|
+
if (data.tags != null) {
|
|
4371
|
+
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
4372
|
+
}
|
|
4373
|
+
if (data.waveAggregatedStatus != null) {
|
|
4374
|
+
contents.waveAggregatedStatus = deserializeAws_restJson1WaveAggregatedStatus(data.waveAggregatedStatus, context);
|
|
4375
|
+
}
|
|
4376
|
+
if (data.waveID != null) {
|
|
4377
|
+
contents.waveID = (0, smithy_client_1.expectString)(data.waveID);
|
|
4378
|
+
}
|
|
4379
|
+
return contents;
|
|
4380
|
+
};
|
|
4381
|
+
exports.deserializeAws_restJson1UpdateWaveCommand = deserializeAws_restJson1UpdateWaveCommand;
|
|
4382
|
+
const deserializeAws_restJson1UpdateWaveCommandError = async (output, context) => {
|
|
4383
|
+
const parsedOutput = {
|
|
4384
|
+
...output,
|
|
4385
|
+
body: await parseErrorBody(output.body, context),
|
|
4386
|
+
};
|
|
4387
|
+
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
4388
|
+
switch (errorCode) {
|
|
4389
|
+
case "ConflictException":
|
|
4390
|
+
case "com.amazonaws.mgn#ConflictException":
|
|
4391
|
+
throw await deserializeAws_restJson1ConflictExceptionResponse(parsedOutput, context);
|
|
4392
|
+
case "ResourceNotFoundException":
|
|
4393
|
+
case "com.amazonaws.mgn#ResourceNotFoundException":
|
|
4394
|
+
throw await deserializeAws_restJson1ResourceNotFoundExceptionResponse(parsedOutput, context);
|
|
4395
|
+
case "UninitializedAccountException":
|
|
4396
|
+
case "com.amazonaws.mgn#UninitializedAccountException":
|
|
4397
|
+
throw await deserializeAws_restJson1UninitializedAccountExceptionResponse(parsedOutput, context);
|
|
4398
|
+
default:
|
|
4399
|
+
const parsedBody = parsedOutput.body;
|
|
4400
|
+
(0, smithy_client_1.throwDefaultError)({
|
|
4401
|
+
output,
|
|
4402
|
+
parsedBody,
|
|
4403
|
+
exceptionCtor: MgnServiceException_1.MgnServiceException,
|
|
4404
|
+
errorCode,
|
|
4405
|
+
});
|
|
4406
|
+
}
|
|
4407
|
+
};
|
|
2603
4408
|
const map = smithy_client_1.map;
|
|
2604
4409
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2605
4410
|
const contents = map({});
|
|
@@ -2764,6 +4569,34 @@ const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput,
|
|
|
2764
4569
|
});
|
|
2765
4570
|
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2766
4571
|
};
|
|
4572
|
+
const serializeAws_restJson1ActionIDs = (input, context) => {
|
|
4573
|
+
return input
|
|
4574
|
+
.filter((e) => e != null)
|
|
4575
|
+
.map((entry) => {
|
|
4576
|
+
return entry;
|
|
4577
|
+
});
|
|
4578
|
+
};
|
|
4579
|
+
const serializeAws_restJson1ApplicationIDs = (input, context) => {
|
|
4580
|
+
return input
|
|
4581
|
+
.filter((e) => e != null)
|
|
4582
|
+
.map((entry) => {
|
|
4583
|
+
return entry;
|
|
4584
|
+
});
|
|
4585
|
+
};
|
|
4586
|
+
const serializeAws_restJson1ApplicationIDsFilter = (input, context) => {
|
|
4587
|
+
return input
|
|
4588
|
+
.filter((e) => e != null)
|
|
4589
|
+
.map((entry) => {
|
|
4590
|
+
return entry;
|
|
4591
|
+
});
|
|
4592
|
+
};
|
|
4593
|
+
const serializeAws_restJson1AssociateSourceServersRequestSourceServerIDs = (input, context) => {
|
|
4594
|
+
return input
|
|
4595
|
+
.filter((e) => e != null)
|
|
4596
|
+
.map((entry) => {
|
|
4597
|
+
return entry;
|
|
4598
|
+
});
|
|
4599
|
+
};
|
|
2767
4600
|
const serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle = (input, context) => {
|
|
2768
4601
|
return {
|
|
2769
4602
|
...(input.state != null && { state: input.state }),
|
|
@@ -2785,8 +4618,18 @@ const serializeAws_restJson1DescribeJobsRequestFiltersJobIDs = (input, context)
|
|
|
2785
4618
|
return entry;
|
|
2786
4619
|
});
|
|
2787
4620
|
};
|
|
4621
|
+
const serializeAws_restJson1DescribeSourceServersRequestApplicationIDs = (input, context) => {
|
|
4622
|
+
return input
|
|
4623
|
+
.filter((e) => e != null)
|
|
4624
|
+
.map((entry) => {
|
|
4625
|
+
return entry;
|
|
4626
|
+
});
|
|
4627
|
+
};
|
|
2788
4628
|
const serializeAws_restJson1DescribeSourceServersRequestFilters = (input, context) => {
|
|
2789
4629
|
return {
|
|
4630
|
+
...(input.applicationIDs != null && {
|
|
4631
|
+
applicationIDs: serializeAws_restJson1DescribeSourceServersRequestApplicationIDs(input.applicationIDs, context),
|
|
4632
|
+
}),
|
|
2790
4633
|
...(input.isArchived != null && { isArchived: input.isArchived }),
|
|
2791
4634
|
...(input.lifeCycleStates != null && {
|
|
2792
4635
|
lifeCycleStates: serializeAws_restJson1LifeCycleStates(input.lifeCycleStates, context),
|
|
@@ -2806,6 +4649,13 @@ const serializeAws_restJson1DescribeSourceServersRequestFiltersIDs = (input, con
|
|
|
2806
4649
|
return entry;
|
|
2807
4650
|
});
|
|
2808
4651
|
};
|
|
4652
|
+
const serializeAws_restJson1DisassociateSourceServersRequestSourceServerIDs = (input, context) => {
|
|
4653
|
+
return input
|
|
4654
|
+
.filter((e) => e != null)
|
|
4655
|
+
.map((entry) => {
|
|
4656
|
+
return entry;
|
|
4657
|
+
});
|
|
4658
|
+
};
|
|
2809
4659
|
const serializeAws_restJson1LaunchConfigurationTemplateIDs = (input, context) => {
|
|
2810
4660
|
return input
|
|
2811
4661
|
.filter((e) => e != null)
|
|
@@ -2813,6 +4663,13 @@ const serializeAws_restJson1LaunchConfigurationTemplateIDs = (input, context) =>
|
|
|
2813
4663
|
return entry;
|
|
2814
4664
|
});
|
|
2815
4665
|
};
|
|
4666
|
+
const serializeAws_restJson1LaunchTemplateDiskConf = (input, context) => {
|
|
4667
|
+
return {
|
|
4668
|
+
...(input.iops != null && { iops: input.iops }),
|
|
4669
|
+
...(input.throughput != null && { throughput: input.throughput }),
|
|
4670
|
+
...(input.volumeType != null && { volumeType: input.volumeType }),
|
|
4671
|
+
};
|
|
4672
|
+
};
|
|
2816
4673
|
const serializeAws_restJson1Licensing = (input, context) => {
|
|
2817
4674
|
return {
|
|
2818
4675
|
...(input.osByol != null && { osByol: input.osByol }),
|
|
@@ -2825,6 +4682,21 @@ const serializeAws_restJson1LifeCycleStates = (input, context) => {
|
|
|
2825
4682
|
return entry;
|
|
2826
4683
|
});
|
|
2827
4684
|
};
|
|
4685
|
+
const serializeAws_restJson1ListApplicationsRequestFilters = (input, context) => {
|
|
4686
|
+
return {
|
|
4687
|
+
...(input.applicationIDs != null && {
|
|
4688
|
+
applicationIDs: serializeAws_restJson1ApplicationIDsFilter(input.applicationIDs, context),
|
|
4689
|
+
}),
|
|
4690
|
+
...(input.isArchived != null && { isArchived: input.isArchived }),
|
|
4691
|
+
...(input.waveIDs != null && { waveIDs: serializeAws_restJson1WaveIDsFilter(input.waveIDs, context) }),
|
|
4692
|
+
};
|
|
4693
|
+
};
|
|
4694
|
+
const serializeAws_restJson1ListWavesRequestFilters = (input, context) => {
|
|
4695
|
+
return {
|
|
4696
|
+
...(input.isArchived != null && { isArchived: input.isArchived }),
|
|
4697
|
+
...(input.waveIDs != null && { waveIDs: serializeAws_restJson1WaveIDsFilter(input.waveIDs, context) }),
|
|
4698
|
+
};
|
|
4699
|
+
};
|
|
2828
4700
|
const serializeAws_restJson1PostLaunchActions = (input, context) => {
|
|
2829
4701
|
return {
|
|
2830
4702
|
...(input.cloudWatchLogGroupName != null && { cloudWatchLogGroupName: input.cloudWatchLogGroupName }),
|
|
@@ -2873,6 +4745,11 @@ const serializeAws_restJson1ReplicationTypes = (input, context) => {
|
|
|
2873
4745
|
return entry;
|
|
2874
4746
|
});
|
|
2875
4747
|
};
|
|
4748
|
+
const serializeAws_restJson1SourceServerActionsRequestFilters = (input, context) => {
|
|
4749
|
+
return {
|
|
4750
|
+
...(input.actionIDs != null && { actionIDs: serializeAws_restJson1ActionIDs(input.actionIDs, context) }),
|
|
4751
|
+
};
|
|
4752
|
+
};
|
|
2876
4753
|
const serializeAws_restJson1SsmDocument = (input, context) => {
|
|
2877
4754
|
return {
|
|
2878
4755
|
...(input.actionName != null && { actionName: input.actionName }),
|
|
@@ -2936,6 +4813,11 @@ const serializeAws_restJson1TagsMap = (input, context) => {
|
|
|
2936
4813
|
return acc;
|
|
2937
4814
|
}, {});
|
|
2938
4815
|
};
|
|
4816
|
+
const serializeAws_restJson1TemplateActionsRequestFilters = (input, context) => {
|
|
4817
|
+
return {
|
|
4818
|
+
...(input.actionIDs != null && { actionIDs: serializeAws_restJson1ActionIDs(input.actionIDs, context) }),
|
|
4819
|
+
};
|
|
4820
|
+
};
|
|
2939
4821
|
const serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = (input, context) => {
|
|
2940
4822
|
return input
|
|
2941
4823
|
.filter((e) => e != null)
|
|
@@ -2943,6 +4825,48 @@ const serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = (in
|
|
|
2943
4825
|
return entry;
|
|
2944
4826
|
});
|
|
2945
4827
|
};
|
|
4828
|
+
const serializeAws_restJson1WaveIDsFilter = (input, context) => {
|
|
4829
|
+
return input
|
|
4830
|
+
.filter((e) => e != null)
|
|
4831
|
+
.map((entry) => {
|
|
4832
|
+
return entry;
|
|
4833
|
+
});
|
|
4834
|
+
};
|
|
4835
|
+
const deserializeAws_restJson1Application = (output, context) => {
|
|
4836
|
+
return {
|
|
4837
|
+
applicationAggregatedStatus: output.applicationAggregatedStatus != null
|
|
4838
|
+
? deserializeAws_restJson1ApplicationAggregatedStatus(output.applicationAggregatedStatus, context)
|
|
4839
|
+
: undefined,
|
|
4840
|
+
applicationID: (0, smithy_client_1.expectString)(output.applicationID),
|
|
4841
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
4842
|
+
creationDateTime: (0, smithy_client_1.expectString)(output.creationDateTime),
|
|
4843
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
4844
|
+
isArchived: (0, smithy_client_1.expectBoolean)(output.isArchived),
|
|
4845
|
+
lastModifiedDateTime: (0, smithy_client_1.expectString)(output.lastModifiedDateTime),
|
|
4846
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
4847
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
4848
|
+
waveID: (0, smithy_client_1.expectString)(output.waveID),
|
|
4849
|
+
};
|
|
4850
|
+
};
|
|
4851
|
+
const deserializeAws_restJson1ApplicationAggregatedStatus = (output, context) => {
|
|
4852
|
+
return {
|
|
4853
|
+
healthStatus: (0, smithy_client_1.expectString)(output.healthStatus),
|
|
4854
|
+
lastUpdateDateTime: (0, smithy_client_1.expectString)(output.lastUpdateDateTime),
|
|
4855
|
+
progressStatus: (0, smithy_client_1.expectString)(output.progressStatus),
|
|
4856
|
+
totalSourceServers: (0, smithy_client_1.expectLong)(output.totalSourceServers),
|
|
4857
|
+
};
|
|
4858
|
+
};
|
|
4859
|
+
const deserializeAws_restJson1ApplicationsList = (output, context) => {
|
|
4860
|
+
const retVal = (output || [])
|
|
4861
|
+
.filter((e) => e != null)
|
|
4862
|
+
.map((entry) => {
|
|
4863
|
+
if (entry === null) {
|
|
4864
|
+
return null;
|
|
4865
|
+
}
|
|
4866
|
+
return deserializeAws_restJson1Application(entry, context);
|
|
4867
|
+
});
|
|
4868
|
+
return retVal;
|
|
4869
|
+
};
|
|
2946
4870
|
const deserializeAws_restJson1ConflictExceptionErrors = (output, context) => {
|
|
2947
4871
|
const retVal = (output || [])
|
|
2948
4872
|
.filter((e) => e != null)
|
|
@@ -3147,11 +5071,28 @@ const deserializeAws_restJson1JobsList = (output, context) => {
|
|
|
3147
5071
|
const deserializeAws_restJson1LaunchConfigurationTemplate = (output, context) => {
|
|
3148
5072
|
return {
|
|
3149
5073
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5074
|
+
associatePublicIpAddress: (0, smithy_client_1.expectBoolean)(output.associatePublicIpAddress),
|
|
5075
|
+
bootMode: (0, smithy_client_1.expectString)(output.bootMode),
|
|
5076
|
+
copyPrivateIp: (0, smithy_client_1.expectBoolean)(output.copyPrivateIp),
|
|
5077
|
+
copyTags: (0, smithy_client_1.expectBoolean)(output.copyTags),
|
|
5078
|
+
ec2LaunchTemplateID: (0, smithy_client_1.expectString)(output.ec2LaunchTemplateID),
|
|
5079
|
+
enableMapAutoTagging: (0, smithy_client_1.expectBoolean)(output.enableMapAutoTagging),
|
|
5080
|
+
largeVolumeConf: output.largeVolumeConf != null
|
|
5081
|
+
? deserializeAws_restJson1LaunchTemplateDiskConf(output.largeVolumeConf, context)
|
|
5082
|
+
: undefined,
|
|
3150
5083
|
launchConfigurationTemplateID: (0, smithy_client_1.expectString)(output.launchConfigurationTemplateID),
|
|
5084
|
+
launchDisposition: (0, smithy_client_1.expectString)(output.launchDisposition),
|
|
5085
|
+
licensing: output.licensing != null ? deserializeAws_restJson1Licensing(output.licensing, context) : undefined,
|
|
5086
|
+
mapAutoTaggingMpeID: (0, smithy_client_1.expectString)(output.mapAutoTaggingMpeID),
|
|
3151
5087
|
postLaunchActions: output.postLaunchActions != null
|
|
3152
5088
|
? deserializeAws_restJson1PostLaunchActions(output.postLaunchActions, context)
|
|
3153
5089
|
: undefined,
|
|
5090
|
+
smallVolumeConf: output.smallVolumeConf != null
|
|
5091
|
+
? deserializeAws_restJson1LaunchTemplateDiskConf(output.smallVolumeConf, context)
|
|
5092
|
+
: undefined,
|
|
5093
|
+
smallVolumeMaxSize: (0, smithy_client_1.expectLong)(output.smallVolumeMaxSize),
|
|
3154
5094
|
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
5095
|
+
targetInstanceTypeRightSizingMethod: (0, smithy_client_1.expectString)(output.targetInstanceTypeRightSizingMethod),
|
|
3155
5096
|
};
|
|
3156
5097
|
};
|
|
3157
5098
|
const deserializeAws_restJson1LaunchConfigurationTemplates = (output, context) => {
|
|
@@ -3172,6 +5113,13 @@ const deserializeAws_restJson1LaunchedInstance = (output, context) => {
|
|
|
3172
5113
|
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3173
5114
|
};
|
|
3174
5115
|
};
|
|
5116
|
+
const deserializeAws_restJson1LaunchTemplateDiskConf = (output, context) => {
|
|
5117
|
+
return {
|
|
5118
|
+
iops: (0, smithy_client_1.expectLong)(output.iops),
|
|
5119
|
+
throughput: (0, smithy_client_1.expectLong)(output.throughput),
|
|
5120
|
+
volumeType: (0, smithy_client_1.expectString)(output.volumeType),
|
|
5121
|
+
};
|
|
5122
|
+
};
|
|
3175
5123
|
const deserializeAws_restJson1Licensing = (output, context) => {
|
|
3176
5124
|
return {
|
|
3177
5125
|
osByol: (0, smithy_client_1.expectBoolean)(output.osByol),
|
|
@@ -3399,6 +5347,7 @@ const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
|
3399
5347
|
};
|
|
3400
5348
|
const deserializeAws_restJson1SourceServer = (output, context) => {
|
|
3401
5349
|
return {
|
|
5350
|
+
applicationID: (0, smithy_client_1.expectString)(output.applicationID),
|
|
3402
5351
|
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3403
5352
|
dataReplicationInfo: output.dataReplicationInfo != null
|
|
3404
5353
|
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
@@ -3417,6 +5366,30 @@ const deserializeAws_restJson1SourceServer = (output, context) => {
|
|
|
3417
5366
|
vcenterClientID: (0, smithy_client_1.expectString)(output.vcenterClientID),
|
|
3418
5367
|
};
|
|
3419
5368
|
};
|
|
5369
|
+
const deserializeAws_restJson1SourceServerActionDocument = (output, context) => {
|
|
5370
|
+
return {
|
|
5371
|
+
actionID: (0, smithy_client_1.expectString)(output.actionID),
|
|
5372
|
+
actionName: (0, smithy_client_1.expectString)(output.actionName),
|
|
5373
|
+
active: (0, smithy_client_1.expectBoolean)(output.active),
|
|
5374
|
+
documentIdentifier: (0, smithy_client_1.expectString)(output.documentIdentifier),
|
|
5375
|
+
documentVersion: (0, smithy_client_1.expectString)(output.documentVersion),
|
|
5376
|
+
mustSucceedForCutover: (0, smithy_client_1.expectBoolean)(output.mustSucceedForCutover),
|
|
5377
|
+
order: (0, smithy_client_1.expectInt32)(output.order),
|
|
5378
|
+
parameters: output.parameters != null ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context) : undefined,
|
|
5379
|
+
timeoutSeconds: (0, smithy_client_1.expectInt32)(output.timeoutSeconds),
|
|
5380
|
+
};
|
|
5381
|
+
};
|
|
5382
|
+
const deserializeAws_restJson1SourceServerActionDocuments = (output, context) => {
|
|
5383
|
+
const retVal = (output || [])
|
|
5384
|
+
.filter((e) => e != null)
|
|
5385
|
+
.map((entry) => {
|
|
5386
|
+
if (entry === null) {
|
|
5387
|
+
return null;
|
|
5388
|
+
}
|
|
5389
|
+
return deserializeAws_restJson1SourceServerActionDocument(entry, context);
|
|
5390
|
+
});
|
|
5391
|
+
return retVal;
|
|
5392
|
+
};
|
|
3420
5393
|
const deserializeAws_restJson1SourceServersList = (output, context) => {
|
|
3421
5394
|
const retVal = (output || [])
|
|
3422
5395
|
.filter((e) => e != null)
|
|
@@ -3483,6 +5456,31 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
3483
5456
|
return acc;
|
|
3484
5457
|
}, {});
|
|
3485
5458
|
};
|
|
5459
|
+
const deserializeAws_restJson1TemplateActionDocument = (output, context) => {
|
|
5460
|
+
return {
|
|
5461
|
+
actionID: (0, smithy_client_1.expectString)(output.actionID),
|
|
5462
|
+
actionName: (0, smithy_client_1.expectString)(output.actionName),
|
|
5463
|
+
active: (0, smithy_client_1.expectBoolean)(output.active),
|
|
5464
|
+
documentIdentifier: (0, smithy_client_1.expectString)(output.documentIdentifier),
|
|
5465
|
+
documentVersion: (0, smithy_client_1.expectString)(output.documentVersion),
|
|
5466
|
+
mustSucceedForCutover: (0, smithy_client_1.expectBoolean)(output.mustSucceedForCutover),
|
|
5467
|
+
operatingSystem: (0, smithy_client_1.expectString)(output.operatingSystem),
|
|
5468
|
+
order: (0, smithy_client_1.expectInt32)(output.order),
|
|
5469
|
+
parameters: output.parameters != null ? deserializeAws_restJson1SsmDocumentParameters(output.parameters, context) : undefined,
|
|
5470
|
+
timeoutSeconds: (0, smithy_client_1.expectInt32)(output.timeoutSeconds),
|
|
5471
|
+
};
|
|
5472
|
+
};
|
|
5473
|
+
const deserializeAws_restJson1TemplateActionDocuments = (output, context) => {
|
|
5474
|
+
const retVal = (output || [])
|
|
5475
|
+
.filter((e) => e != null)
|
|
5476
|
+
.map((entry) => {
|
|
5477
|
+
if (entry === null) {
|
|
5478
|
+
return null;
|
|
5479
|
+
}
|
|
5480
|
+
return deserializeAws_restJson1TemplateActionDocument(entry, context);
|
|
5481
|
+
});
|
|
5482
|
+
return retVal;
|
|
5483
|
+
};
|
|
3486
5484
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
3487
5485
|
return {
|
|
3488
5486
|
message: (0, smithy_client_1.expectString)(output.message),
|
|
@@ -3523,6 +5521,41 @@ const deserializeAws_restJson1VcenterClientList = (output, context) => {
|
|
|
3523
5521
|
});
|
|
3524
5522
|
return retVal;
|
|
3525
5523
|
};
|
|
5524
|
+
const deserializeAws_restJson1Wave = (output, context) => {
|
|
5525
|
+
return {
|
|
5526
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
5527
|
+
creationDateTime: (0, smithy_client_1.expectString)(output.creationDateTime),
|
|
5528
|
+
description: (0, smithy_client_1.expectString)(output.description),
|
|
5529
|
+
isArchived: (0, smithy_client_1.expectBoolean)(output.isArchived),
|
|
5530
|
+
lastModifiedDateTime: (0, smithy_client_1.expectString)(output.lastModifiedDateTime),
|
|
5531
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
5532
|
+
tags: output.tags != null ? deserializeAws_restJson1TagsMap(output.tags, context) : undefined,
|
|
5533
|
+
waveAggregatedStatus: output.waveAggregatedStatus != null
|
|
5534
|
+
? deserializeAws_restJson1WaveAggregatedStatus(output.waveAggregatedStatus, context)
|
|
5535
|
+
: undefined,
|
|
5536
|
+
waveID: (0, smithy_client_1.expectString)(output.waveID),
|
|
5537
|
+
};
|
|
5538
|
+
};
|
|
5539
|
+
const deserializeAws_restJson1WaveAggregatedStatus = (output, context) => {
|
|
5540
|
+
return {
|
|
5541
|
+
healthStatus: (0, smithy_client_1.expectString)(output.healthStatus),
|
|
5542
|
+
lastUpdateDateTime: (0, smithy_client_1.expectString)(output.lastUpdateDateTime),
|
|
5543
|
+
progressStatus: (0, smithy_client_1.expectString)(output.progressStatus),
|
|
5544
|
+
replicationStartedDateTime: (0, smithy_client_1.expectString)(output.replicationStartedDateTime),
|
|
5545
|
+
totalApplications: (0, smithy_client_1.expectLong)(output.totalApplications),
|
|
5546
|
+
};
|
|
5547
|
+
};
|
|
5548
|
+
const deserializeAws_restJson1WavesList = (output, context) => {
|
|
5549
|
+
const retVal = (output || [])
|
|
5550
|
+
.filter((e) => e != null)
|
|
5551
|
+
.map((entry) => {
|
|
5552
|
+
if (entry === null) {
|
|
5553
|
+
return null;
|
|
5554
|
+
}
|
|
5555
|
+
return deserializeAws_restJson1Wave(entry, context);
|
|
5556
|
+
});
|
|
5557
|
+
return retVal;
|
|
5558
|
+
};
|
|
3526
5559
|
const deserializeMetadata = (output) => ({
|
|
3527
5560
|
httpStatusCode: output.statusCode,
|
|
3528
5561
|
requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"],
|