@aws-sdk/client-mgn 3.53.0 → 3.55.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/CHANGELOG.md +27 -0
- package/dist-cjs/MgnClient.js +13 -13
- package/dist-cjs/commands/ChangeServerLifeCycleStateCommand.js +3 -3
- package/dist-cjs/commands/CreateReplicationConfigurationTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteJobCommand.js +3 -3
- package/dist-cjs/commands/DeleteReplicationConfigurationTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteSourceServerCommand.js +3 -3
- package/dist-cjs/commands/DeleteVcenterClientCommand.js +3 -3
- package/dist-cjs/commands/DescribeJobLogItemsCommand.js +3 -3
- package/dist-cjs/commands/DescribeJobsCommand.js +3 -3
- package/dist-cjs/commands/DescribeReplicationConfigurationTemplatesCommand.js +3 -3
- package/dist-cjs/commands/DescribeSourceServersCommand.js +3 -3
- package/dist-cjs/commands/DescribeVcenterClientsCommand.js +3 -3
- package/dist-cjs/commands/DisconnectFromServiceCommand.js +3 -3
- package/dist-cjs/commands/FinalizeCutoverCommand.js +3 -3
- package/dist-cjs/commands/GetLaunchConfigurationCommand.js +3 -3
- package/dist-cjs/commands/GetReplicationConfigurationCommand.js +3 -3
- package/dist-cjs/commands/InitializeServiceCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/MarkAsArchivedCommand.js +3 -3
- package/dist-cjs/commands/RetryDataReplicationCommand.js +3 -3
- package/dist-cjs/commands/StartCutoverCommand.js +3 -3
- package/dist-cjs/commands/StartReplicationCommand.js +3 -3
- package/dist-cjs/commands/StartTestCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/TerminateTargetInstancesCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateLaunchConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateReplicationConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UpdateReplicationConfigurationTemplateCommand.js +3 -3
- package/dist-cjs/commands/UpdateSourceServerReplicationTypeCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/models/models_0.js +10 -2
- package/dist-cjs/protocols/Aws_restJson1.js +295 -284
- package/dist-cjs/runtimeConfig.browser.js +4 -4
- package/dist-cjs/runtimeConfig.js +9 -9
- package/dist-cjs/runtimeConfig.native.js +1 -1
- package/dist-es/Mgn.js +29 -29
- package/dist-es/models/models_0.js +8 -0
- package/dist-es/pagination/DescribeJobLogItemsPaginator.js +4 -4
- package/dist-es/pagination/DescribeJobsPaginator.js +4 -4
- package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +4 -4
- package/dist-es/pagination/DescribeSourceServersPaginator.js +4 -4
- package/dist-es/pagination/DescribeVcenterClientsPaginator.js +4 -4
- package/dist-es/protocols/Aws_restJson1.js +41 -32
- package/dist-types/Mgn.d.ts +10 -10
- package/dist-types/MgnClient.d.ts +2 -2
- package/dist-types/commands/DeleteVcenterClientCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobLogItemsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeJobsCommand.d.ts +1 -1
- package/dist-types/commands/DescribeVcenterClientsCommand.d.ts +1 -1
- package/dist-types/commands/DisconnectFromServiceCommand.d.ts +1 -1
- package/dist-types/commands/FinalizeCutoverCommand.d.ts +1 -1
- package/dist-types/commands/MarkAsArchivedCommand.d.ts +1 -1
- package/dist-types/commands/StartReplicationCommand.d.ts +1 -1
- package/dist-types/commands/StartTestCommand.d.ts +1 -1
- package/dist-types/commands/UpdateSourceServerReplicationTypeCommand.d.ts +1 -1
- package/dist-types/models/models_0.d.ts +51 -32
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/MgnClient.d.ts +2 -2
- package/dist-types/ts3.4/models/models_0.d.ts +13 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -413,7 +413,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
413
413
|
if (labelValue.length <= 0) {
|
|
414
414
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
415
415
|
}
|
|
416
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
416
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
417
417
|
}
|
|
418
418
|
else {
|
|
419
419
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -559,7 +559,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
559
559
|
if (labelValue.length <= 0) {
|
|
560
560
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
561
561
|
}
|
|
562
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
562
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
563
563
|
}
|
|
564
564
|
else {
|
|
565
565
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -615,7 +615,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
615
615
|
if (labelValue.length <= 0) {
|
|
616
616
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
617
617
|
}
|
|
618
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
618
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
619
619
|
}
|
|
620
620
|
else {
|
|
621
621
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -644,6 +644,7 @@ const serializeAws_restJson1UpdateLaunchConfigurationCommand = async (input, con
|
|
|
644
644
|
const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}` + "/UpdateLaunchConfiguration";
|
|
645
645
|
let body;
|
|
646
646
|
body = JSON.stringify({
|
|
647
|
+
...(input.bootMode !== undefined && input.bootMode !== null && { bootMode: input.bootMode }),
|
|
647
648
|
...(input.copyPrivateIp !== undefined && input.copyPrivateIp !== null && { copyPrivateIp: input.copyPrivateIp }),
|
|
648
649
|
...(input.copyTags !== undefined && input.copyTags !== null && { copyTags: input.copyTags }),
|
|
649
650
|
...(input.launchDisposition !== undefined &&
|
|
@@ -828,15 +829,15 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
|
|
|
828
829
|
tags: undefined,
|
|
829
830
|
vcenterClientID: undefined,
|
|
830
831
|
};
|
|
831
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
832
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
832
833
|
if (data.arn !== undefined && data.arn !== null) {
|
|
833
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
834
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
834
835
|
}
|
|
835
836
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
836
837
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
837
838
|
}
|
|
838
839
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
839
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
840
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
840
841
|
}
|
|
841
842
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
842
843
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -845,19 +846,19 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
|
|
|
845
846
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
846
847
|
}
|
|
847
848
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
848
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
849
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
849
850
|
}
|
|
850
851
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
851
852
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
852
853
|
}
|
|
853
854
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
854
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
855
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
855
856
|
}
|
|
856
857
|
if (data.tags !== undefined && data.tags !== null) {
|
|
857
858
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
858
859
|
}
|
|
859
860
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
860
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
861
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
861
862
|
}
|
|
862
863
|
return Promise.resolve(contents);
|
|
863
864
|
};
|
|
@@ -890,7 +891,7 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = async (ou
|
|
|
890
891
|
$fault: "client",
|
|
891
892
|
$metadata: deserializeMetadata(output),
|
|
892
893
|
});
|
|
893
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
894
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
894
895
|
}
|
|
895
896
|
};
|
|
896
897
|
const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
@@ -915,42 +916,42 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = as
|
|
|
915
916
|
tags: undefined,
|
|
916
917
|
useDedicatedReplicationServer: undefined,
|
|
917
918
|
};
|
|
918
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
919
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
919
920
|
if (data.arn !== undefined && data.arn !== null) {
|
|
920
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
921
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
921
922
|
}
|
|
922
923
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
923
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
924
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
924
925
|
}
|
|
925
926
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
926
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
927
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
927
928
|
}
|
|
928
929
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
929
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
930
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
930
931
|
}
|
|
931
932
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
932
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
933
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
933
934
|
}
|
|
934
935
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
935
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
936
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
936
937
|
}
|
|
937
938
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
938
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
939
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
939
940
|
}
|
|
940
941
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
941
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
942
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
942
943
|
}
|
|
943
944
|
if (data.replicationConfigurationTemplateID !== undefined && data.replicationConfigurationTemplateID !== null) {
|
|
944
|
-
contents.replicationConfigurationTemplateID = smithy_client_1.expectString(data.replicationConfigurationTemplateID);
|
|
945
|
+
contents.replicationConfigurationTemplateID = (0, smithy_client_1.expectString)(data.replicationConfigurationTemplateID);
|
|
945
946
|
}
|
|
946
947
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
947
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
948
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
948
949
|
}
|
|
949
950
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
950
951
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
951
952
|
}
|
|
952
953
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
953
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
954
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
954
955
|
}
|
|
955
956
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
956
957
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
@@ -959,7 +960,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = as
|
|
|
959
960
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
960
961
|
}
|
|
961
962
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
962
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
963
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
963
964
|
}
|
|
964
965
|
return Promise.resolve(contents);
|
|
965
966
|
};
|
|
@@ -989,7 +990,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
989
990
|
$fault: "client",
|
|
990
991
|
$metadata: deserializeMetadata(output),
|
|
991
992
|
});
|
|
992
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
993
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
993
994
|
}
|
|
994
995
|
};
|
|
995
996
|
const deserializeAws_restJson1DeleteJobCommand = async (output, context) => {
|
|
@@ -1028,7 +1029,7 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1028
1029
|
$fault: "client",
|
|
1029
1030
|
$metadata: deserializeMetadata(output),
|
|
1030
1031
|
});
|
|
1031
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1032
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1032
1033
|
}
|
|
1033
1034
|
};
|
|
1034
1035
|
const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
@@ -1067,7 +1068,7 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1067
1068
|
$fault: "client",
|
|
1068
1069
|
$metadata: deserializeMetadata(output),
|
|
1069
1070
|
});
|
|
1070
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1071
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1071
1072
|
}
|
|
1072
1073
|
};
|
|
1073
1074
|
const deserializeAws_restJson1DeleteSourceServerCommand = async (output, context) => {
|
|
@@ -1106,7 +1107,7 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1106
1107
|
$fault: "client",
|
|
1107
1108
|
$metadata: deserializeMetadata(output),
|
|
1108
1109
|
});
|
|
1109
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1110
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1110
1111
|
}
|
|
1111
1112
|
};
|
|
1112
1113
|
const deserializeAws_restJson1DeleteVcenterClientCommand = async (output, context) => {
|
|
@@ -1145,7 +1146,7 @@ const deserializeAws_restJson1DeleteVcenterClientCommandError = async (output, c
|
|
|
1145
1146
|
$fault: "client",
|
|
1146
1147
|
$metadata: deserializeMetadata(output),
|
|
1147
1148
|
});
|
|
1148
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1149
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1149
1150
|
}
|
|
1150
1151
|
};
|
|
1151
1152
|
const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, context) => {
|
|
@@ -1157,12 +1158,12 @@ const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, contex
|
|
|
1157
1158
|
items: undefined,
|
|
1158
1159
|
nextToken: undefined,
|
|
1159
1160
|
};
|
|
1160
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1161
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1161
1162
|
if (data.items !== undefined && data.items !== null) {
|
|
1162
1163
|
contents.items = deserializeAws_restJson1JobLogs(data.items, context);
|
|
1163
1164
|
}
|
|
1164
1165
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1165
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1166
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1166
1167
|
}
|
|
1167
1168
|
return Promise.resolve(contents);
|
|
1168
1169
|
};
|
|
@@ -1189,7 +1190,7 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1189
1190
|
$fault: "client",
|
|
1190
1191
|
$metadata: deserializeMetadata(output),
|
|
1191
1192
|
});
|
|
1192
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1193
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1193
1194
|
}
|
|
1194
1195
|
};
|
|
1195
1196
|
const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
@@ -1201,12 +1202,12 @@ const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
|
1201
1202
|
items: undefined,
|
|
1202
1203
|
nextToken: undefined,
|
|
1203
1204
|
};
|
|
1204
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1205
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1205
1206
|
if (data.items !== undefined && data.items !== null) {
|
|
1206
1207
|
contents.items = deserializeAws_restJson1JobsList(data.items, context);
|
|
1207
1208
|
}
|
|
1208
1209
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1209
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1210
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1210
1211
|
}
|
|
1211
1212
|
return Promise.resolve(contents);
|
|
1212
1213
|
};
|
|
@@ -1233,7 +1234,7 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1233
1234
|
$fault: "client",
|
|
1234
1235
|
$metadata: deserializeMetadata(output),
|
|
1235
1236
|
});
|
|
1236
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1237
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1237
1238
|
}
|
|
1238
1239
|
};
|
|
1239
1240
|
const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = async (output, context) => {
|
|
@@ -1245,12 +1246,12 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand =
|
|
|
1245
1246
|
items: undefined,
|
|
1246
1247
|
nextToken: undefined,
|
|
1247
1248
|
};
|
|
1248
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1249
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1249
1250
|
if (data.items !== undefined && data.items !== null) {
|
|
1250
1251
|
contents.items = deserializeAws_restJson1ReplicationConfigurationTemplates(data.items, context);
|
|
1251
1252
|
}
|
|
1252
1253
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1253
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1254
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1254
1255
|
}
|
|
1255
1256
|
return Promise.resolve(contents);
|
|
1256
1257
|
};
|
|
@@ -1280,7 +1281,7 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1280
1281
|
$fault: "client",
|
|
1281
1282
|
$metadata: deserializeMetadata(output),
|
|
1282
1283
|
});
|
|
1283
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1284
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1284
1285
|
}
|
|
1285
1286
|
};
|
|
1286
1287
|
const deserializeAws_restJson1DescribeSourceServersCommand = async (output, context) => {
|
|
@@ -1292,12 +1293,12 @@ const deserializeAws_restJson1DescribeSourceServersCommand = async (output, cont
|
|
|
1292
1293
|
items: undefined,
|
|
1293
1294
|
nextToken: undefined,
|
|
1294
1295
|
};
|
|
1295
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1296
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1296
1297
|
if (data.items !== undefined && data.items !== null) {
|
|
1297
1298
|
contents.items = deserializeAws_restJson1SourceServersList(data.items, context);
|
|
1298
1299
|
}
|
|
1299
1300
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1300
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1301
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1301
1302
|
}
|
|
1302
1303
|
return Promise.resolve(contents);
|
|
1303
1304
|
};
|
|
@@ -1324,7 +1325,7 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1324
1325
|
$fault: "client",
|
|
1325
1326
|
$metadata: deserializeMetadata(output),
|
|
1326
1327
|
});
|
|
1327
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1328
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1328
1329
|
}
|
|
1329
1330
|
};
|
|
1330
1331
|
const deserializeAws_restJson1DescribeVcenterClientsCommand = async (output, context) => {
|
|
@@ -1336,12 +1337,12 @@ const deserializeAws_restJson1DescribeVcenterClientsCommand = async (output, con
|
|
|
1336
1337
|
items: undefined,
|
|
1337
1338
|
nextToken: undefined,
|
|
1338
1339
|
};
|
|
1339
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1340
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1340
1341
|
if (data.items !== undefined && data.items !== null) {
|
|
1341
1342
|
contents.items = deserializeAws_restJson1VcenterClientList(data.items, context);
|
|
1342
1343
|
}
|
|
1343
1344
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1344
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1345
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1345
1346
|
}
|
|
1346
1347
|
return Promise.resolve(contents);
|
|
1347
1348
|
};
|
|
@@ -1371,7 +1372,7 @@ const deserializeAws_restJson1DescribeVcenterClientsCommandError = async (output
|
|
|
1371
1372
|
$fault: "client",
|
|
1372
1373
|
$metadata: deserializeMetadata(output),
|
|
1373
1374
|
});
|
|
1374
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1375
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1375
1376
|
}
|
|
1376
1377
|
};
|
|
1377
1378
|
const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, context) => {
|
|
@@ -1391,15 +1392,15 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
|
|
|
1391
1392
|
tags: undefined,
|
|
1392
1393
|
vcenterClientID: undefined,
|
|
1393
1394
|
};
|
|
1394
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1395
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1395
1396
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1396
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1397
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1397
1398
|
}
|
|
1398
1399
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1399
1400
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1400
1401
|
}
|
|
1401
1402
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
1402
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
1403
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1403
1404
|
}
|
|
1404
1405
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
1405
1406
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -1408,19 +1409,19 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
|
|
|
1408
1409
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1409
1410
|
}
|
|
1410
1411
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
1411
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
1412
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1412
1413
|
}
|
|
1413
1414
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1414
1415
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1415
1416
|
}
|
|
1416
1417
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1417
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1418
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1418
1419
|
}
|
|
1419
1420
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1420
1421
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1421
1422
|
}
|
|
1422
1423
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
1423
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
1424
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1424
1425
|
}
|
|
1425
1426
|
return Promise.resolve(contents);
|
|
1426
1427
|
};
|
|
@@ -1450,7 +1451,7 @@ const deserializeAws_restJson1DisconnectFromServiceCommandError = async (output,
|
|
|
1450
1451
|
$fault: "client",
|
|
1451
1452
|
$metadata: deserializeMetadata(output),
|
|
1452
1453
|
});
|
|
1453
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1454
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1454
1455
|
}
|
|
1455
1456
|
};
|
|
1456
1457
|
const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) => {
|
|
@@ -1470,15 +1471,15 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
|
|
|
1470
1471
|
tags: undefined,
|
|
1471
1472
|
vcenterClientID: undefined,
|
|
1472
1473
|
};
|
|
1473
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1474
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1474
1475
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1475
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1476
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1476
1477
|
}
|
|
1477
1478
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1478
1479
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1479
1480
|
}
|
|
1480
1481
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
1481
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
1482
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1482
1483
|
}
|
|
1483
1484
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
1484
1485
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -1487,19 +1488,19 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
|
|
|
1487
1488
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1488
1489
|
}
|
|
1489
1490
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
1490
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
1491
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1491
1492
|
}
|
|
1492
1493
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1493
1494
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1494
1495
|
}
|
|
1495
1496
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1496
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1497
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1497
1498
|
}
|
|
1498
1499
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1499
1500
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1500
1501
|
}
|
|
1501
1502
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
1502
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
1503
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1503
1504
|
}
|
|
1504
1505
|
return Promise.resolve(contents);
|
|
1505
1506
|
};
|
|
@@ -1532,7 +1533,7 @@ const deserializeAws_restJson1FinalizeCutoverCommandError = async (output, conte
|
|
|
1532
1533
|
$fault: "client",
|
|
1533
1534
|
$metadata: deserializeMetadata(output),
|
|
1534
1535
|
});
|
|
1535
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1536
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1536
1537
|
}
|
|
1537
1538
|
};
|
|
1538
1539
|
const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, context) => {
|
|
@@ -1541,6 +1542,7 @@ const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, con
|
|
|
1541
1542
|
}
|
|
1542
1543
|
const contents = {
|
|
1543
1544
|
$metadata: deserializeMetadata(output),
|
|
1545
|
+
bootMode: undefined,
|
|
1544
1546
|
copyPrivateIp: undefined,
|
|
1545
1547
|
copyTags: undefined,
|
|
1546
1548
|
ec2LaunchTemplateID: undefined,
|
|
@@ -1550,30 +1552,33 @@ const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, con
|
|
|
1550
1552
|
sourceServerID: undefined,
|
|
1551
1553
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
1552
1554
|
};
|
|
1553
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1555
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1556
|
+
if (data.bootMode !== undefined && data.bootMode !== null) {
|
|
1557
|
+
contents.bootMode = (0, smithy_client_1.expectString)(data.bootMode);
|
|
1558
|
+
}
|
|
1554
1559
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
1555
|
-
contents.copyPrivateIp = smithy_client_1.expectBoolean(data.copyPrivateIp);
|
|
1560
|
+
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
1556
1561
|
}
|
|
1557
1562
|
if (data.copyTags !== undefined && data.copyTags !== null) {
|
|
1558
|
-
contents.copyTags = smithy_client_1.expectBoolean(data.copyTags);
|
|
1563
|
+
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
1559
1564
|
}
|
|
1560
1565
|
if (data.ec2LaunchTemplateID !== undefined && data.ec2LaunchTemplateID !== null) {
|
|
1561
|
-
contents.ec2LaunchTemplateID = smithy_client_1.expectString(data.ec2LaunchTemplateID);
|
|
1566
|
+
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
1562
1567
|
}
|
|
1563
1568
|
if (data.launchDisposition !== undefined && data.launchDisposition !== null) {
|
|
1564
|
-
contents.launchDisposition = smithy_client_1.expectString(data.launchDisposition);
|
|
1569
|
+
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
1565
1570
|
}
|
|
1566
1571
|
if (data.licensing !== undefined && data.licensing !== null) {
|
|
1567
1572
|
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
1568
1573
|
}
|
|
1569
1574
|
if (data.name !== undefined && data.name !== null) {
|
|
1570
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
1575
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1571
1576
|
}
|
|
1572
1577
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1573
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1578
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1574
1579
|
}
|
|
1575
1580
|
if (data.targetInstanceTypeRightSizingMethod !== undefined && data.targetInstanceTypeRightSizingMethod !== null) {
|
|
1576
|
-
contents.targetInstanceTypeRightSizingMethod = smithy_client_1.expectString(data.targetInstanceTypeRightSizingMethod);
|
|
1581
|
+
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
1577
1582
|
}
|
|
1578
1583
|
return Promise.resolve(contents);
|
|
1579
1584
|
};
|
|
@@ -1600,7 +1605,7 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
1600
1605
|
$fault: "client",
|
|
1601
1606
|
$metadata: deserializeMetadata(output),
|
|
1602
1607
|
});
|
|
1603
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1608
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1604
1609
|
}
|
|
1605
1610
|
};
|
|
1606
1611
|
const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output, context) => {
|
|
@@ -1625,51 +1630,51 @@ const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output
|
|
|
1625
1630
|
stagingAreaTags: undefined,
|
|
1626
1631
|
useDedicatedReplicationServer: undefined,
|
|
1627
1632
|
};
|
|
1628
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1633
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1629
1634
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
1630
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
1635
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
1631
1636
|
}
|
|
1632
1637
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
1633
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
1638
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
1634
1639
|
}
|
|
1635
1640
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
1636
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
1641
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
1637
1642
|
}
|
|
1638
1643
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
1639
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
1644
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
1640
1645
|
}
|
|
1641
1646
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
1642
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
1647
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
1643
1648
|
}
|
|
1644
1649
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
1645
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
1650
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
1646
1651
|
}
|
|
1647
1652
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
1648
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
1653
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
1649
1654
|
}
|
|
1650
1655
|
if (data.name !== undefined && data.name !== null) {
|
|
1651
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
1656
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1652
1657
|
}
|
|
1653
1658
|
if (data.replicatedDisks !== undefined && data.replicatedDisks !== null) {
|
|
1654
1659
|
contents.replicatedDisks = deserializeAws_restJson1ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
1655
1660
|
}
|
|
1656
1661
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
1657
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
1662
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
1658
1663
|
}
|
|
1659
1664
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
1660
1665
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
1661
1666
|
}
|
|
1662
1667
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1663
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1668
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1664
1669
|
}
|
|
1665
1670
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
1666
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
1671
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
1667
1672
|
}
|
|
1668
1673
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
1669
1674
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
1670
1675
|
}
|
|
1671
1676
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
1672
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
1677
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
1673
1678
|
}
|
|
1674
1679
|
return Promise.resolve(contents);
|
|
1675
1680
|
};
|
|
@@ -1696,7 +1701,7 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
1696
1701
|
$fault: "client",
|
|
1697
1702
|
$metadata: deserializeMetadata(output),
|
|
1698
1703
|
});
|
|
1699
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1704
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1700
1705
|
}
|
|
1701
1706
|
};
|
|
1702
1707
|
const deserializeAws_restJson1InitializeServiceCommand = async (output, context) => {
|
|
@@ -1732,7 +1737,7 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1732
1737
|
$fault: "client",
|
|
1733
1738
|
$metadata: deserializeMetadata(output),
|
|
1734
1739
|
});
|
|
1735
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1740
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1736
1741
|
}
|
|
1737
1742
|
};
|
|
1738
1743
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1743,7 +1748,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
1743
1748
|
$metadata: deserializeMetadata(output),
|
|
1744
1749
|
tags: undefined,
|
|
1745
1750
|
};
|
|
1746
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1751
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1747
1752
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1748
1753
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1749
1754
|
}
|
|
@@ -1781,7 +1786,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1781
1786
|
$fault: "client",
|
|
1782
1787
|
$metadata: deserializeMetadata(output),
|
|
1783
1788
|
});
|
|
1784
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1789
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1785
1790
|
}
|
|
1786
1791
|
};
|
|
1787
1792
|
const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) => {
|
|
@@ -1801,15 +1806,15 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
|
|
|
1801
1806
|
tags: undefined,
|
|
1802
1807
|
vcenterClientID: undefined,
|
|
1803
1808
|
};
|
|
1804
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1809
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1805
1810
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1806
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1811
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1807
1812
|
}
|
|
1808
1813
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1809
1814
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1810
1815
|
}
|
|
1811
1816
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
1812
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
1817
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1813
1818
|
}
|
|
1814
1819
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
1815
1820
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -1818,19 +1823,19 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
|
|
|
1818
1823
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1819
1824
|
}
|
|
1820
1825
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
1821
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
1826
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1822
1827
|
}
|
|
1823
1828
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1824
1829
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1825
1830
|
}
|
|
1826
1831
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1827
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1832
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1828
1833
|
}
|
|
1829
1834
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1830
1835
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1831
1836
|
}
|
|
1832
1837
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
1833
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
1838
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1834
1839
|
}
|
|
1835
1840
|
return Promise.resolve(contents);
|
|
1836
1841
|
};
|
|
@@ -1860,7 +1865,7 @@ const deserializeAws_restJson1MarkAsArchivedCommandError = async (output, contex
|
|
|
1860
1865
|
$fault: "client",
|
|
1861
1866
|
$metadata: deserializeMetadata(output),
|
|
1862
1867
|
});
|
|
1863
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1868
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1864
1869
|
}
|
|
1865
1870
|
};
|
|
1866
1871
|
const deserializeAws_restJson1RetryDataReplicationCommand = async (output, context) => {
|
|
@@ -1880,15 +1885,15 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
|
|
|
1880
1885
|
tags: undefined,
|
|
1881
1886
|
vcenterClientID: undefined,
|
|
1882
1887
|
};
|
|
1883
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1888
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1884
1889
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1885
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1890
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1886
1891
|
}
|
|
1887
1892
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1888
1893
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1889
1894
|
}
|
|
1890
1895
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
1891
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
1896
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1892
1897
|
}
|
|
1893
1898
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
1894
1899
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -1897,19 +1902,19 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
|
|
|
1897
1902
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1898
1903
|
}
|
|
1899
1904
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
1900
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
1905
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1901
1906
|
}
|
|
1902
1907
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1903
1908
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1904
1909
|
}
|
|
1905
1910
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1906
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1911
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1907
1912
|
}
|
|
1908
1913
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1909
1914
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1910
1915
|
}
|
|
1911
1916
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
1912
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
1917
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1913
1918
|
}
|
|
1914
1919
|
return Promise.resolve(contents);
|
|
1915
1920
|
};
|
|
@@ -1939,7 +1944,7 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
1939
1944
|
$fault: "client",
|
|
1940
1945
|
$metadata: deserializeMetadata(output),
|
|
1941
1946
|
});
|
|
1942
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1947
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1943
1948
|
}
|
|
1944
1949
|
};
|
|
1945
1950
|
const deserializeAws_restJson1StartCutoverCommand = async (output, context) => {
|
|
@@ -1950,7 +1955,7 @@ const deserializeAws_restJson1StartCutoverCommand = async (output, context) => {
|
|
|
1950
1955
|
$metadata: deserializeMetadata(output),
|
|
1951
1956
|
job: undefined,
|
|
1952
1957
|
};
|
|
1953
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1958
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1954
1959
|
if (data.job !== undefined && data.job !== null) {
|
|
1955
1960
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
1956
1961
|
}
|
|
@@ -1982,7 +1987,7 @@ const deserializeAws_restJson1StartCutoverCommandError = async (output, context)
|
|
|
1982
1987
|
$fault: "client",
|
|
1983
1988
|
$metadata: deserializeMetadata(output),
|
|
1984
1989
|
});
|
|
1985
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1990
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1986
1991
|
}
|
|
1987
1992
|
};
|
|
1988
1993
|
const deserializeAws_restJson1StartReplicationCommand = async (output, context) => {
|
|
@@ -2002,15 +2007,15 @@ const deserializeAws_restJson1StartReplicationCommand = async (output, context)
|
|
|
2002
2007
|
tags: undefined,
|
|
2003
2008
|
vcenterClientID: undefined,
|
|
2004
2009
|
};
|
|
2005
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2010
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2006
2011
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2007
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
2012
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2008
2013
|
}
|
|
2009
2014
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
2010
2015
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2011
2016
|
}
|
|
2012
2017
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
2013
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
2018
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
2014
2019
|
}
|
|
2015
2020
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
2016
2021
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -2019,19 +2024,19 @@ const deserializeAws_restJson1StartReplicationCommand = async (output, context)
|
|
|
2019
2024
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2020
2025
|
}
|
|
2021
2026
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
2022
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
2027
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
2023
2028
|
}
|
|
2024
2029
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
2025
2030
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2026
2031
|
}
|
|
2027
2032
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2028
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2033
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2029
2034
|
}
|
|
2030
2035
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2031
2036
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2032
2037
|
}
|
|
2033
2038
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
2034
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
2039
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
2035
2040
|
}
|
|
2036
2041
|
return Promise.resolve(contents);
|
|
2037
2042
|
};
|
|
@@ -2067,7 +2072,7 @@ const deserializeAws_restJson1StartReplicationCommandError = async (output, cont
|
|
|
2067
2072
|
$fault: "client",
|
|
2068
2073
|
$metadata: deserializeMetadata(output),
|
|
2069
2074
|
});
|
|
2070
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2075
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2071
2076
|
}
|
|
2072
2077
|
};
|
|
2073
2078
|
const deserializeAws_restJson1StartTestCommand = async (output, context) => {
|
|
@@ -2078,7 +2083,7 @@ const deserializeAws_restJson1StartTestCommand = async (output, context) => {
|
|
|
2078
2083
|
$metadata: deserializeMetadata(output),
|
|
2079
2084
|
job: undefined,
|
|
2080
2085
|
};
|
|
2081
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2086
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2082
2087
|
if (data.job !== undefined && data.job !== null) {
|
|
2083
2088
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2084
2089
|
}
|
|
@@ -2110,7 +2115,7 @@ const deserializeAws_restJson1StartTestCommandError = async (output, context) =>
|
|
|
2110
2115
|
$fault: "client",
|
|
2111
2116
|
$metadata: deserializeMetadata(output),
|
|
2112
2117
|
});
|
|
2113
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2118
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2114
2119
|
}
|
|
2115
2120
|
};
|
|
2116
2121
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -2155,7 +2160,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2155
2160
|
$fault: "client",
|
|
2156
2161
|
$metadata: deserializeMetadata(output),
|
|
2157
2162
|
});
|
|
2158
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2163
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2159
2164
|
}
|
|
2160
2165
|
};
|
|
2161
2166
|
const deserializeAws_restJson1TerminateTargetInstancesCommand = async (output, context) => {
|
|
@@ -2166,7 +2171,7 @@ const deserializeAws_restJson1TerminateTargetInstancesCommand = async (output, c
|
|
|
2166
2171
|
$metadata: deserializeMetadata(output),
|
|
2167
2172
|
job: undefined,
|
|
2168
2173
|
};
|
|
2169
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2174
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2170
2175
|
if (data.job !== undefined && data.job !== null) {
|
|
2171
2176
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2172
2177
|
}
|
|
@@ -2198,7 +2203,7 @@ const deserializeAws_restJson1TerminateTargetInstancesCommandError = async (outp
|
|
|
2198
2203
|
$fault: "client",
|
|
2199
2204
|
$metadata: deserializeMetadata(output),
|
|
2200
2205
|
});
|
|
2201
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2206
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2202
2207
|
}
|
|
2203
2208
|
};
|
|
2204
2209
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -2243,7 +2248,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2243
2248
|
$fault: "client",
|
|
2244
2249
|
$metadata: deserializeMetadata(output),
|
|
2245
2250
|
});
|
|
2246
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2251
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2247
2252
|
}
|
|
2248
2253
|
};
|
|
2249
2254
|
const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
@@ -2252,6 +2257,7 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output,
|
|
|
2252
2257
|
}
|
|
2253
2258
|
const contents = {
|
|
2254
2259
|
$metadata: deserializeMetadata(output),
|
|
2260
|
+
bootMode: undefined,
|
|
2255
2261
|
copyPrivateIp: undefined,
|
|
2256
2262
|
copyTags: undefined,
|
|
2257
2263
|
ec2LaunchTemplateID: undefined,
|
|
@@ -2261,30 +2267,33 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output,
|
|
|
2261
2267
|
sourceServerID: undefined,
|
|
2262
2268
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
2263
2269
|
};
|
|
2264
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2270
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2271
|
+
if (data.bootMode !== undefined && data.bootMode !== null) {
|
|
2272
|
+
contents.bootMode = (0, smithy_client_1.expectString)(data.bootMode);
|
|
2273
|
+
}
|
|
2265
2274
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
2266
|
-
contents.copyPrivateIp = smithy_client_1.expectBoolean(data.copyPrivateIp);
|
|
2275
|
+
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
2267
2276
|
}
|
|
2268
2277
|
if (data.copyTags !== undefined && data.copyTags !== null) {
|
|
2269
|
-
contents.copyTags = smithy_client_1.expectBoolean(data.copyTags);
|
|
2278
|
+
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
2270
2279
|
}
|
|
2271
2280
|
if (data.ec2LaunchTemplateID !== undefined && data.ec2LaunchTemplateID !== null) {
|
|
2272
|
-
contents.ec2LaunchTemplateID = smithy_client_1.expectString(data.ec2LaunchTemplateID);
|
|
2281
|
+
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
2273
2282
|
}
|
|
2274
2283
|
if (data.launchDisposition !== undefined && data.launchDisposition !== null) {
|
|
2275
|
-
contents.launchDisposition = smithy_client_1.expectString(data.launchDisposition);
|
|
2284
|
+
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
2276
2285
|
}
|
|
2277
2286
|
if (data.licensing !== undefined && data.licensing !== null) {
|
|
2278
2287
|
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
2279
2288
|
}
|
|
2280
2289
|
if (data.name !== undefined && data.name !== null) {
|
|
2281
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
2290
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2282
2291
|
}
|
|
2283
2292
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2284
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2293
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2285
2294
|
}
|
|
2286
2295
|
if (data.targetInstanceTypeRightSizingMethod !== undefined && data.targetInstanceTypeRightSizingMethod !== null) {
|
|
2287
|
-
contents.targetInstanceTypeRightSizingMethod = smithy_client_1.expectString(data.targetInstanceTypeRightSizingMethod);
|
|
2296
|
+
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
2288
2297
|
}
|
|
2289
2298
|
return Promise.resolve(contents);
|
|
2290
2299
|
};
|
|
@@ -2317,7 +2326,7 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
2317
2326
|
$fault: "client",
|
|
2318
2327
|
$metadata: deserializeMetadata(output),
|
|
2319
2328
|
});
|
|
2320
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2329
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2321
2330
|
}
|
|
2322
2331
|
};
|
|
2323
2332
|
const deserializeAws_restJson1UpdateReplicationConfigurationCommand = async (output, context) => {
|
|
@@ -2342,51 +2351,51 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommand = async (out
|
|
|
2342
2351
|
stagingAreaTags: undefined,
|
|
2343
2352
|
useDedicatedReplicationServer: undefined,
|
|
2344
2353
|
};
|
|
2345
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2354
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2346
2355
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
2347
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
2356
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
2348
2357
|
}
|
|
2349
2358
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
2350
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
2359
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
2351
2360
|
}
|
|
2352
2361
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
2353
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
2362
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
2354
2363
|
}
|
|
2355
2364
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
2356
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
2365
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
2357
2366
|
}
|
|
2358
2367
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
2359
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
2368
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
2360
2369
|
}
|
|
2361
2370
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
2362
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
2371
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
2363
2372
|
}
|
|
2364
2373
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
2365
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
2374
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
2366
2375
|
}
|
|
2367
2376
|
if (data.name !== undefined && data.name !== null) {
|
|
2368
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
2377
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2369
2378
|
}
|
|
2370
2379
|
if (data.replicatedDisks !== undefined && data.replicatedDisks !== null) {
|
|
2371
2380
|
contents.replicatedDisks = deserializeAws_restJson1ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
2372
2381
|
}
|
|
2373
2382
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
2374
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
2383
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
2375
2384
|
}
|
|
2376
2385
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
2377
2386
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2378
2387
|
}
|
|
2379
2388
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2380
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2389
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2381
2390
|
}
|
|
2382
2391
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
2383
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
2392
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
2384
2393
|
}
|
|
2385
2394
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
2386
2395
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
2387
2396
|
}
|
|
2388
2397
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
2389
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
2398
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
2390
2399
|
}
|
|
2391
2400
|
return Promise.resolve(contents);
|
|
2392
2401
|
};
|
|
@@ -2422,7 +2431,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
2422
2431
|
$fault: "client",
|
|
2423
2432
|
$metadata: deserializeMetadata(output),
|
|
2424
2433
|
});
|
|
2425
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2434
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2426
2435
|
}
|
|
2427
2436
|
};
|
|
2428
2437
|
const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
@@ -2447,42 +2456,42 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = as
|
|
|
2447
2456
|
tags: undefined,
|
|
2448
2457
|
useDedicatedReplicationServer: undefined,
|
|
2449
2458
|
};
|
|
2450
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2459
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2451
2460
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2452
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
2461
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2453
2462
|
}
|
|
2454
2463
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
2455
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
2464
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
2456
2465
|
}
|
|
2457
2466
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
2458
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
2467
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
2459
2468
|
}
|
|
2460
2469
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
2461
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
2470
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
2462
2471
|
}
|
|
2463
2472
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
2464
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
2473
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
2465
2474
|
}
|
|
2466
2475
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
2467
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
2476
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
2468
2477
|
}
|
|
2469
2478
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
2470
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
2479
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
2471
2480
|
}
|
|
2472
2481
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
2473
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
2482
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
2474
2483
|
}
|
|
2475
2484
|
if (data.replicationConfigurationTemplateID !== undefined && data.replicationConfigurationTemplateID !== null) {
|
|
2476
|
-
contents.replicationConfigurationTemplateID = smithy_client_1.expectString(data.replicationConfigurationTemplateID);
|
|
2485
|
+
contents.replicationConfigurationTemplateID = (0, smithy_client_1.expectString)(data.replicationConfigurationTemplateID);
|
|
2477
2486
|
}
|
|
2478
2487
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
2479
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
2488
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
2480
2489
|
}
|
|
2481
2490
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
2482
2491
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2483
2492
|
}
|
|
2484
2493
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
2485
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
2494
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
2486
2495
|
}
|
|
2487
2496
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
2488
2497
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
@@ -2491,7 +2500,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = as
|
|
|
2491
2500
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2492
2501
|
}
|
|
2493
2502
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
2494
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
2503
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
2495
2504
|
}
|
|
2496
2505
|
return Promise.resolve(contents);
|
|
2497
2506
|
};
|
|
@@ -2524,7 +2533,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
2524
2533
|
$fault: "client",
|
|
2525
2534
|
$metadata: deserializeMetadata(output),
|
|
2526
2535
|
});
|
|
2527
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2536
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2528
2537
|
}
|
|
2529
2538
|
};
|
|
2530
2539
|
const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (output, context) => {
|
|
@@ -2544,15 +2553,15 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (
|
|
|
2544
2553
|
tags: undefined,
|
|
2545
2554
|
vcenterClientID: undefined,
|
|
2546
2555
|
};
|
|
2547
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2556
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2548
2557
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2549
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
2558
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2550
2559
|
}
|
|
2551
2560
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
2552
2561
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2553
2562
|
}
|
|
2554
2563
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
2555
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
2564
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
2556
2565
|
}
|
|
2557
2566
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
2558
2567
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -2561,19 +2570,19 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (
|
|
|
2561
2570
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2562
2571
|
}
|
|
2563
2572
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
2564
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
2573
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
2565
2574
|
}
|
|
2566
2575
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
2567
2576
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2568
2577
|
}
|
|
2569
2578
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2570
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2579
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2571
2580
|
}
|
|
2572
2581
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2573
2582
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2574
2583
|
}
|
|
2575
2584
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
2576
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
2585
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
2577
2586
|
}
|
|
2578
2587
|
return Promise.resolve(contents);
|
|
2579
2588
|
};
|
|
@@ -2606,107 +2615,107 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = as
|
|
|
2606
2615
|
$fault: "client",
|
|
2607
2616
|
$metadata: deserializeMetadata(output),
|
|
2608
2617
|
});
|
|
2609
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2618
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2610
2619
|
}
|
|
2611
2620
|
};
|
|
2612
2621
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2613
2622
|
const contents = {};
|
|
2614
2623
|
const data = parsedOutput.body;
|
|
2615
2624
|
if (data.code !== undefined && data.code !== null) {
|
|
2616
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2625
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2617
2626
|
}
|
|
2618
2627
|
if (data.message !== undefined && data.message !== null) {
|
|
2619
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2628
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2620
2629
|
}
|
|
2621
2630
|
const exception = new models_0_1.AccessDeniedException({
|
|
2622
2631
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2623
2632
|
...contents,
|
|
2624
2633
|
});
|
|
2625
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2634
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2626
2635
|
};
|
|
2627
2636
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2628
2637
|
const contents = {};
|
|
2629
2638
|
const data = parsedOutput.body;
|
|
2630
2639
|
if (data.code !== undefined && data.code !== null) {
|
|
2631
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2640
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2632
2641
|
}
|
|
2633
2642
|
if (data.message !== undefined && data.message !== null) {
|
|
2634
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2643
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2635
2644
|
}
|
|
2636
2645
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2637
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2646
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2638
2647
|
}
|
|
2639
2648
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2640
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2649
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2641
2650
|
}
|
|
2642
2651
|
const exception = new models_0_1.ConflictException({
|
|
2643
2652
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2644
2653
|
...contents,
|
|
2645
2654
|
});
|
|
2646
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2655
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2647
2656
|
};
|
|
2648
2657
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2649
2658
|
const contents = {};
|
|
2650
2659
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2651
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseLong(parsedOutput.headers["retry-after"]);
|
|
2660
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseLong)(parsedOutput.headers["retry-after"]);
|
|
2652
2661
|
}
|
|
2653
2662
|
const data = parsedOutput.body;
|
|
2654
2663
|
if (data.message !== undefined && data.message !== null) {
|
|
2655
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2664
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2656
2665
|
}
|
|
2657
2666
|
const exception = new models_0_1.InternalServerException({
|
|
2658
2667
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2659
2668
|
...contents,
|
|
2660
2669
|
});
|
|
2661
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2670
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2662
2671
|
};
|
|
2663
2672
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2664
2673
|
const contents = {};
|
|
2665
2674
|
const data = parsedOutput.body;
|
|
2666
2675
|
if (data.code !== undefined && data.code !== null) {
|
|
2667
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2676
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2668
2677
|
}
|
|
2669
2678
|
if (data.message !== undefined && data.message !== null) {
|
|
2670
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2679
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2671
2680
|
}
|
|
2672
2681
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2673
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2682
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2674
2683
|
}
|
|
2675
2684
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2676
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2685
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2677
2686
|
}
|
|
2678
2687
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2679
2688
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2680
2689
|
...contents,
|
|
2681
2690
|
});
|
|
2682
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2691
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2683
2692
|
};
|
|
2684
2693
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2685
2694
|
const contents = {};
|
|
2686
2695
|
const data = parsedOutput.body;
|
|
2687
2696
|
if (data.code !== undefined && data.code !== null) {
|
|
2688
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2697
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2689
2698
|
}
|
|
2690
2699
|
if (data.message !== undefined && data.message !== null) {
|
|
2691
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2700
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2692
2701
|
}
|
|
2693
2702
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
2694
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
2703
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2695
2704
|
}
|
|
2696
2705
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2697
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2706
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2698
2707
|
}
|
|
2699
2708
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2700
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2709
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2701
2710
|
}
|
|
2702
2711
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
2703
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
2712
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2704
2713
|
}
|
|
2705
2714
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2706
2715
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2707
2716
|
...contents,
|
|
2708
2717
|
});
|
|
2709
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2718
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2710
2719
|
};
|
|
2711
2720
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2712
2721
|
const contents = {};
|
|
@@ -2715,55 +2724,55 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2715
2724
|
}
|
|
2716
2725
|
const data = parsedOutput.body;
|
|
2717
2726
|
if (data.message !== undefined && data.message !== null) {
|
|
2718
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2727
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2719
2728
|
}
|
|
2720
2729
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
2721
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
2730
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2722
2731
|
}
|
|
2723
2732
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
2724
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
2733
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2725
2734
|
}
|
|
2726
2735
|
const exception = new models_0_1.ThrottlingException({
|
|
2727
2736
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2728
2737
|
...contents,
|
|
2729
2738
|
});
|
|
2730
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2739
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2731
2740
|
};
|
|
2732
2741
|
const deserializeAws_restJson1UninitializedAccountExceptionResponse = async (parsedOutput, context) => {
|
|
2733
2742
|
const contents = {};
|
|
2734
2743
|
const data = parsedOutput.body;
|
|
2735
2744
|
if (data.code !== undefined && data.code !== null) {
|
|
2736
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2745
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2737
2746
|
}
|
|
2738
2747
|
if (data.message !== undefined && data.message !== null) {
|
|
2739
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2748
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2740
2749
|
}
|
|
2741
2750
|
const exception = new models_0_1.UninitializedAccountException({
|
|
2742
2751
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2743
2752
|
...contents,
|
|
2744
2753
|
});
|
|
2745
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2754
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2746
2755
|
};
|
|
2747
2756
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2748
2757
|
const contents = {};
|
|
2749
2758
|
const data = parsedOutput.body;
|
|
2750
2759
|
if (data.code !== undefined && data.code !== null) {
|
|
2751
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2760
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2752
2761
|
}
|
|
2753
2762
|
if (data.fieldList !== undefined && data.fieldList !== null) {
|
|
2754
2763
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
2755
2764
|
}
|
|
2756
2765
|
if (data.message !== undefined && data.message !== null) {
|
|
2757
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2766
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2758
2767
|
}
|
|
2759
2768
|
if (data.reason !== undefined && data.reason !== null) {
|
|
2760
|
-
contents.reason = smithy_client_1.expectString(data.reason);
|
|
2769
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
2761
2770
|
}
|
|
2762
2771
|
const exception = new models_0_1.ValidationException({
|
|
2763
2772
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2764
2773
|
...contents,
|
|
2765
2774
|
});
|
|
2766
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2775
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2767
2776
|
};
|
|
2768
2777
|
const serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle = (input, context) => {
|
|
2769
2778
|
return {
|
|
@@ -2839,6 +2848,7 @@ const serializeAws_restJson1ReplicationConfigurationReplicatedDisk = (input, con
|
|
|
2839
2848
|
...(input.isBootDisk !== undefined && input.isBootDisk !== null && { isBootDisk: input.isBootDisk }),
|
|
2840
2849
|
...(input.stagingDiskType !== undefined &&
|
|
2841
2850
|
input.stagingDiskType !== null && { stagingDiskType: input.stagingDiskType }),
|
|
2851
|
+
...(input.throughput !== undefined && input.throughput !== null && { throughput: input.throughput }),
|
|
2842
2852
|
};
|
|
2843
2853
|
};
|
|
2844
2854
|
const serializeAws_restJson1ReplicationConfigurationReplicatedDisks = (input, context) => {
|
|
@@ -2924,8 +2934,8 @@ const serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = (in
|
|
|
2924
2934
|
};
|
|
2925
2935
|
const deserializeAws_restJson1CPU = (output, context) => {
|
|
2926
2936
|
return {
|
|
2927
|
-
cores: smithy_client_1.expectLong(output.cores),
|
|
2928
|
-
modelName: smithy_client_1.expectString(output.modelName),
|
|
2937
|
+
cores: (0, smithy_client_1.expectLong)(output.cores),
|
|
2938
|
+
modelName: (0, smithy_client_1.expectString)(output.modelName),
|
|
2929
2939
|
};
|
|
2930
2940
|
};
|
|
2931
2941
|
const deserializeAws_restJson1Cpus = (output, context) => {
|
|
@@ -2941,8 +2951,8 @@ const deserializeAws_restJson1Cpus = (output, context) => {
|
|
|
2941
2951
|
};
|
|
2942
2952
|
const deserializeAws_restJson1DataReplicationError = (output, context) => {
|
|
2943
2953
|
return {
|
|
2944
|
-
error: smithy_client_1.expectString(output.error),
|
|
2945
|
-
rawError: smithy_client_1.expectString(output.rawError),
|
|
2954
|
+
error: (0, smithy_client_1.expectString)(output.error),
|
|
2955
|
+
rawError: (0, smithy_client_1.expectString)(output.rawError),
|
|
2946
2956
|
};
|
|
2947
2957
|
};
|
|
2948
2958
|
const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
@@ -2953,10 +2963,10 @@ const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
|
2953
2963
|
dataReplicationInitiation: output.dataReplicationInitiation !== undefined && output.dataReplicationInitiation !== null
|
|
2954
2964
|
? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
2955
2965
|
: undefined,
|
|
2956
|
-
dataReplicationState: smithy_client_1.expectString(output.dataReplicationState),
|
|
2957
|
-
etaDateTime: smithy_client_1.expectString(output.etaDateTime),
|
|
2958
|
-
lagDuration: smithy_client_1.expectString(output.lagDuration),
|
|
2959
|
-
lastSnapshotDateTime: smithy_client_1.expectString(output.lastSnapshotDateTime),
|
|
2966
|
+
dataReplicationState: (0, smithy_client_1.expectString)(output.dataReplicationState),
|
|
2967
|
+
etaDateTime: (0, smithy_client_1.expectString)(output.etaDateTime),
|
|
2968
|
+
lagDuration: (0, smithy_client_1.expectString)(output.lagDuration),
|
|
2969
|
+
lastSnapshotDateTime: (0, smithy_client_1.expectString)(output.lastSnapshotDateTime),
|
|
2960
2970
|
replicatedDisks: output.replicatedDisks !== undefined && output.replicatedDisks !== null
|
|
2961
2971
|
? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
2962
2972
|
: undefined,
|
|
@@ -2964,11 +2974,11 @@ const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
|
2964
2974
|
};
|
|
2965
2975
|
const deserializeAws_restJson1DataReplicationInfoReplicatedDisk = (output, context) => {
|
|
2966
2976
|
return {
|
|
2967
|
-
backloggedStorageBytes: smithy_client_1.expectLong(output.backloggedStorageBytes),
|
|
2968
|
-
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
2969
|
-
replicatedStorageBytes: smithy_client_1.expectLong(output.replicatedStorageBytes),
|
|
2970
|
-
rescannedStorageBytes: smithy_client_1.expectLong(output.rescannedStorageBytes),
|
|
2971
|
-
totalStorageBytes: smithy_client_1.expectLong(output.totalStorageBytes),
|
|
2977
|
+
backloggedStorageBytes: (0, smithy_client_1.expectLong)(output.backloggedStorageBytes),
|
|
2978
|
+
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
2979
|
+
replicatedStorageBytes: (0, smithy_client_1.expectLong)(output.replicatedStorageBytes),
|
|
2980
|
+
rescannedStorageBytes: (0, smithy_client_1.expectLong)(output.rescannedStorageBytes),
|
|
2981
|
+
totalStorageBytes: (0, smithy_client_1.expectLong)(output.totalStorageBytes),
|
|
2972
2982
|
};
|
|
2973
2983
|
};
|
|
2974
2984
|
const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = (output, context) => {
|
|
@@ -2984,8 +2994,8 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = (output, cont
|
|
|
2984
2994
|
};
|
|
2985
2995
|
const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
2986
2996
|
return {
|
|
2987
|
-
nextAttemptDateTime: smithy_client_1.expectString(output.nextAttemptDateTime),
|
|
2988
|
-
startDateTime: smithy_client_1.expectString(output.startDateTime),
|
|
2997
|
+
nextAttemptDateTime: (0, smithy_client_1.expectString)(output.nextAttemptDateTime),
|
|
2998
|
+
startDateTime: (0, smithy_client_1.expectString)(output.startDateTime),
|
|
2989
2999
|
steps: output.steps !== undefined && output.steps !== null
|
|
2990
3000
|
? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
|
|
2991
3001
|
: undefined,
|
|
@@ -2993,8 +3003,8 @@ const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
|
2993
3003
|
};
|
|
2994
3004
|
const deserializeAws_restJson1DataReplicationInitiationStep = (output, context) => {
|
|
2995
3005
|
return {
|
|
2996
|
-
name: smithy_client_1.expectString(output.name),
|
|
2997
|
-
status: smithy_client_1.expectString(output.status),
|
|
3006
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
3007
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
2998
3008
|
};
|
|
2999
3009
|
};
|
|
3000
3010
|
const deserializeAws_restJson1DataReplicationInitiationSteps = (output, context) => {
|
|
@@ -3010,8 +3020,8 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = (output, context)
|
|
|
3010
3020
|
};
|
|
3011
3021
|
const deserializeAws_restJson1Disk = (output, context) => {
|
|
3012
3022
|
return {
|
|
3013
|
-
bytes: smithy_client_1.expectLong(output.bytes),
|
|
3014
|
-
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
3023
|
+
bytes: (0, smithy_client_1.expectLong)(output.bytes),
|
|
3024
|
+
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
3015
3025
|
};
|
|
3016
3026
|
};
|
|
3017
3027
|
const deserializeAws_restJson1Disks = (output, context) => {
|
|
@@ -3027,11 +3037,11 @@ const deserializeAws_restJson1Disks = (output, context) => {
|
|
|
3027
3037
|
};
|
|
3028
3038
|
const deserializeAws_restJson1IdentificationHints = (output, context) => {
|
|
3029
3039
|
return {
|
|
3030
|
-
awsInstanceID: smithy_client_1.expectString(output.awsInstanceID),
|
|
3031
|
-
fqdn: smithy_client_1.expectString(output.fqdn),
|
|
3032
|
-
hostname: smithy_client_1.expectString(output.hostname),
|
|
3033
|
-
vmPath: smithy_client_1.expectString(output.vmPath),
|
|
3034
|
-
vmWareUuid: smithy_client_1.expectString(output.vmWareUuid),
|
|
3040
|
+
awsInstanceID: (0, smithy_client_1.expectString)(output.awsInstanceID),
|
|
3041
|
+
fqdn: (0, smithy_client_1.expectString)(output.fqdn),
|
|
3042
|
+
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
3043
|
+
vmPath: (0, smithy_client_1.expectString)(output.vmPath),
|
|
3044
|
+
vmWareUuid: (0, smithy_client_1.expectString)(output.vmWareUuid),
|
|
3035
3045
|
};
|
|
3036
3046
|
};
|
|
3037
3047
|
const deserializeAws_restJson1IPsList = (output, context) => {
|
|
@@ -3041,42 +3051,42 @@ const deserializeAws_restJson1IPsList = (output, context) => {
|
|
|
3041
3051
|
if (entry === null) {
|
|
3042
3052
|
return null;
|
|
3043
3053
|
}
|
|
3044
|
-
return smithy_client_1.expectString(entry);
|
|
3054
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3045
3055
|
});
|
|
3046
3056
|
return retVal;
|
|
3047
3057
|
};
|
|
3048
3058
|
const deserializeAws_restJson1Job = (output, context) => {
|
|
3049
3059
|
return {
|
|
3050
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3051
|
-
creationDateTime: smithy_client_1.expectString(output.creationDateTime),
|
|
3052
|
-
endDateTime: smithy_client_1.expectString(output.endDateTime),
|
|
3053
|
-
initiatedBy: smithy_client_1.expectString(output.initiatedBy),
|
|
3054
|
-
jobID: smithy_client_1.expectString(output.jobID),
|
|
3060
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3061
|
+
creationDateTime: (0, smithy_client_1.expectString)(output.creationDateTime),
|
|
3062
|
+
endDateTime: (0, smithy_client_1.expectString)(output.endDateTime),
|
|
3063
|
+
initiatedBy: (0, smithy_client_1.expectString)(output.initiatedBy),
|
|
3064
|
+
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3055
3065
|
participatingServers: output.participatingServers !== undefined && output.participatingServers !== null
|
|
3056
3066
|
? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
|
|
3057
3067
|
: undefined,
|
|
3058
|
-
status: smithy_client_1.expectString(output.status),
|
|
3068
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3059
3069
|
tags: output.tags !== undefined && output.tags !== null
|
|
3060
3070
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3061
3071
|
: undefined,
|
|
3062
|
-
type: smithy_client_1.expectString(output.type),
|
|
3072
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
3063
3073
|
};
|
|
3064
3074
|
};
|
|
3065
3075
|
const deserializeAws_restJson1JobLog = (output, context) => {
|
|
3066
3076
|
return {
|
|
3067
|
-
event: smithy_client_1.expectString(output.event),
|
|
3077
|
+
event: (0, smithy_client_1.expectString)(output.event),
|
|
3068
3078
|
eventData: output.eventData !== undefined && output.eventData !== null
|
|
3069
3079
|
? deserializeAws_restJson1JobLogEventData(output.eventData, context)
|
|
3070
3080
|
: undefined,
|
|
3071
|
-
logDateTime: smithy_client_1.expectString(output.logDateTime),
|
|
3081
|
+
logDateTime: (0, smithy_client_1.expectString)(output.logDateTime),
|
|
3072
3082
|
};
|
|
3073
3083
|
};
|
|
3074
3084
|
const deserializeAws_restJson1JobLogEventData = (output, context) => {
|
|
3075
3085
|
return {
|
|
3076
|
-
conversionServerID: smithy_client_1.expectString(output.conversionServerID),
|
|
3077
|
-
rawError: smithy_client_1.expectString(output.rawError),
|
|
3078
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3079
|
-
targetInstanceID: smithy_client_1.expectString(output.targetInstanceID),
|
|
3086
|
+
conversionServerID: (0, smithy_client_1.expectString)(output.conversionServerID),
|
|
3087
|
+
rawError: (0, smithy_client_1.expectString)(output.rawError),
|
|
3088
|
+
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3089
|
+
targetInstanceID: (0, smithy_client_1.expectString)(output.targetInstanceID),
|
|
3080
3090
|
};
|
|
3081
3091
|
};
|
|
3082
3092
|
const deserializeAws_restJson1JobLogs = (output, context) => {
|
|
@@ -3103,29 +3113,29 @@ const deserializeAws_restJson1JobsList = (output, context) => {
|
|
|
3103
3113
|
};
|
|
3104
3114
|
const deserializeAws_restJson1LaunchedInstance = (output, context) => {
|
|
3105
3115
|
return {
|
|
3106
|
-
ec2InstanceID: smithy_client_1.expectString(output.ec2InstanceID),
|
|
3107
|
-
firstBoot: smithy_client_1.expectString(output.firstBoot),
|
|
3108
|
-
jobID: smithy_client_1.expectString(output.jobID),
|
|
3116
|
+
ec2InstanceID: (0, smithy_client_1.expectString)(output.ec2InstanceID),
|
|
3117
|
+
firstBoot: (0, smithy_client_1.expectString)(output.firstBoot),
|
|
3118
|
+
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3109
3119
|
};
|
|
3110
3120
|
};
|
|
3111
3121
|
const deserializeAws_restJson1Licensing = (output, context) => {
|
|
3112
3122
|
return {
|
|
3113
|
-
osByol: smithy_client_1.expectBoolean(output.osByol),
|
|
3123
|
+
osByol: (0, smithy_client_1.expectBoolean)(output.osByol),
|
|
3114
3124
|
};
|
|
3115
3125
|
};
|
|
3116
3126
|
const deserializeAws_restJson1LifeCycle = (output, context) => {
|
|
3117
3127
|
return {
|
|
3118
|
-
addedToServiceDateTime: smithy_client_1.expectString(output.addedToServiceDateTime),
|
|
3119
|
-
elapsedReplicationDuration: smithy_client_1.expectString(output.elapsedReplicationDuration),
|
|
3120
|
-
firstByteDateTime: smithy_client_1.expectString(output.firstByteDateTime),
|
|
3128
|
+
addedToServiceDateTime: (0, smithy_client_1.expectString)(output.addedToServiceDateTime),
|
|
3129
|
+
elapsedReplicationDuration: (0, smithy_client_1.expectString)(output.elapsedReplicationDuration),
|
|
3130
|
+
firstByteDateTime: (0, smithy_client_1.expectString)(output.firstByteDateTime),
|
|
3121
3131
|
lastCutover: output.lastCutover !== undefined && output.lastCutover !== null
|
|
3122
3132
|
? deserializeAws_restJson1LifeCycleLastCutover(output.lastCutover, context)
|
|
3123
3133
|
: undefined,
|
|
3124
|
-
lastSeenByServiceDateTime: smithy_client_1.expectString(output.lastSeenByServiceDateTime),
|
|
3134
|
+
lastSeenByServiceDateTime: (0, smithy_client_1.expectString)(output.lastSeenByServiceDateTime),
|
|
3125
3135
|
lastTest: output.lastTest !== undefined && output.lastTest !== null
|
|
3126
3136
|
? deserializeAws_restJson1LifeCycleLastTest(output.lastTest, context)
|
|
3127
3137
|
: undefined,
|
|
3128
|
-
state: smithy_client_1.expectString(output.state),
|
|
3138
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
3129
3139
|
};
|
|
3130
3140
|
};
|
|
3131
3141
|
const deserializeAws_restJson1LifeCycleLastCutover = (output, context) => {
|
|
@@ -3143,18 +3153,18 @@ const deserializeAws_restJson1LifeCycleLastCutover = (output, context) => {
|
|
|
3143
3153
|
};
|
|
3144
3154
|
const deserializeAws_restJson1LifeCycleLastCutoverFinalized = (output, context) => {
|
|
3145
3155
|
return {
|
|
3146
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3156
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3147
3157
|
};
|
|
3148
3158
|
};
|
|
3149
3159
|
const deserializeAws_restJson1LifeCycleLastCutoverInitiated = (output, context) => {
|
|
3150
3160
|
return {
|
|
3151
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3152
|
-
jobID: smithy_client_1.expectString(output.jobID),
|
|
3161
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3162
|
+
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3153
3163
|
};
|
|
3154
3164
|
};
|
|
3155
3165
|
const deserializeAws_restJson1LifeCycleLastCutoverReverted = (output, context) => {
|
|
3156
3166
|
return {
|
|
3157
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3167
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3158
3168
|
};
|
|
3159
3169
|
};
|
|
3160
3170
|
const deserializeAws_restJson1LifeCycleLastTest = (output, context) => {
|
|
@@ -3172,18 +3182,18 @@ const deserializeAws_restJson1LifeCycleLastTest = (output, context) => {
|
|
|
3172
3182
|
};
|
|
3173
3183
|
const deserializeAws_restJson1LifeCycleLastTestFinalized = (output, context) => {
|
|
3174
3184
|
return {
|
|
3175
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3185
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3176
3186
|
};
|
|
3177
3187
|
};
|
|
3178
3188
|
const deserializeAws_restJson1LifeCycleLastTestInitiated = (output, context) => {
|
|
3179
3189
|
return {
|
|
3180
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3181
|
-
jobID: smithy_client_1.expectString(output.jobID),
|
|
3190
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3191
|
+
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3182
3192
|
};
|
|
3183
3193
|
};
|
|
3184
3194
|
const deserializeAws_restJson1LifeCycleLastTestReverted = (output, context) => {
|
|
3185
3195
|
return {
|
|
3186
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3196
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3187
3197
|
};
|
|
3188
3198
|
};
|
|
3189
3199
|
const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
@@ -3191,8 +3201,8 @@ const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
|
3191
3201
|
ips: output.ips !== undefined && output.ips !== null
|
|
3192
3202
|
? deserializeAws_restJson1IPsList(output.ips, context)
|
|
3193
3203
|
: undefined,
|
|
3194
|
-
isPrimary: smithy_client_1.expectBoolean(output.isPrimary),
|
|
3195
|
-
macAddress: smithy_client_1.expectString(output.macAddress),
|
|
3204
|
+
isPrimary: (0, smithy_client_1.expectBoolean)(output.isPrimary),
|
|
3205
|
+
macAddress: (0, smithy_client_1.expectString)(output.macAddress),
|
|
3196
3206
|
};
|
|
3197
3207
|
};
|
|
3198
3208
|
const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
@@ -3208,13 +3218,13 @@ const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
|
3208
3218
|
};
|
|
3209
3219
|
const deserializeAws_restJson1OS = (output, context) => {
|
|
3210
3220
|
return {
|
|
3211
|
-
fullString: smithy_client_1.expectString(output.fullString),
|
|
3221
|
+
fullString: (0, smithy_client_1.expectString)(output.fullString),
|
|
3212
3222
|
};
|
|
3213
3223
|
};
|
|
3214
3224
|
const deserializeAws_restJson1ParticipatingServer = (output, context) => {
|
|
3215
3225
|
return {
|
|
3216
|
-
launchStatus: smithy_client_1.expectString(output.launchStatus),
|
|
3217
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3226
|
+
launchStatus: (0, smithy_client_1.expectString)(output.launchStatus),
|
|
3227
|
+
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3218
3228
|
};
|
|
3219
3229
|
};
|
|
3220
3230
|
const deserializeAws_restJson1ParticipatingServers = (output, context) => {
|
|
@@ -3230,10 +3240,11 @@ const deserializeAws_restJson1ParticipatingServers = (output, context) => {
|
|
|
3230
3240
|
};
|
|
3231
3241
|
const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (output, context) => {
|
|
3232
3242
|
return {
|
|
3233
|
-
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
3234
|
-
iops: smithy_client_1.expectLong(output.iops),
|
|
3235
|
-
isBootDisk: smithy_client_1.expectBoolean(output.isBootDisk),
|
|
3236
|
-
stagingDiskType: smithy_client_1.expectString(output.stagingDiskType),
|
|
3243
|
+
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
3244
|
+
iops: (0, smithy_client_1.expectLong)(output.iops),
|
|
3245
|
+
isBootDisk: (0, smithy_client_1.expectBoolean)(output.isBootDisk),
|
|
3246
|
+
stagingDiskType: (0, smithy_client_1.expectString)(output.stagingDiskType),
|
|
3247
|
+
throughput: (0, smithy_client_1.expectLong)(output.throughput),
|
|
3237
3248
|
};
|
|
3238
3249
|
};
|
|
3239
3250
|
const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = (output, context) => {
|
|
@@ -3249,27 +3260,27 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = (output,
|
|
|
3249
3260
|
};
|
|
3250
3261
|
const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, context) => {
|
|
3251
3262
|
return {
|
|
3252
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3253
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean(output.associateDefaultSecurityGroup),
|
|
3254
|
-
bandwidthThrottling: smithy_client_1.expectLong(output.bandwidthThrottling),
|
|
3255
|
-
createPublicIP: smithy_client_1.expectBoolean(output.createPublicIP),
|
|
3256
|
-
dataPlaneRouting: smithy_client_1.expectString(output.dataPlaneRouting),
|
|
3257
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString(output.defaultLargeStagingDiskType),
|
|
3258
|
-
ebsEncryption: smithy_client_1.expectString(output.ebsEncryption),
|
|
3259
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString(output.ebsEncryptionKeyArn),
|
|
3260
|
-
replicationConfigurationTemplateID: smithy_client_1.expectString(output.replicationConfigurationTemplateID),
|
|
3261
|
-
replicationServerInstanceType: smithy_client_1.expectString(output.replicationServerInstanceType),
|
|
3263
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3264
|
+
associateDefaultSecurityGroup: (0, smithy_client_1.expectBoolean)(output.associateDefaultSecurityGroup),
|
|
3265
|
+
bandwidthThrottling: (0, smithy_client_1.expectLong)(output.bandwidthThrottling),
|
|
3266
|
+
createPublicIP: (0, smithy_client_1.expectBoolean)(output.createPublicIP),
|
|
3267
|
+
dataPlaneRouting: (0, smithy_client_1.expectString)(output.dataPlaneRouting),
|
|
3268
|
+
defaultLargeStagingDiskType: (0, smithy_client_1.expectString)(output.defaultLargeStagingDiskType),
|
|
3269
|
+
ebsEncryption: (0, smithy_client_1.expectString)(output.ebsEncryption),
|
|
3270
|
+
ebsEncryptionKeyArn: (0, smithy_client_1.expectString)(output.ebsEncryptionKeyArn),
|
|
3271
|
+
replicationConfigurationTemplateID: (0, smithy_client_1.expectString)(output.replicationConfigurationTemplateID),
|
|
3272
|
+
replicationServerInstanceType: (0, smithy_client_1.expectString)(output.replicationServerInstanceType),
|
|
3262
3273
|
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs !== undefined && output.replicationServersSecurityGroupsIDs !== null
|
|
3263
3274
|
? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
|
|
3264
3275
|
: undefined,
|
|
3265
|
-
stagingAreaSubnetId: smithy_client_1.expectString(output.stagingAreaSubnetId),
|
|
3276
|
+
stagingAreaSubnetId: (0, smithy_client_1.expectString)(output.stagingAreaSubnetId),
|
|
3266
3277
|
stagingAreaTags: output.stagingAreaTags !== undefined && output.stagingAreaTags !== null
|
|
3267
3278
|
? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context)
|
|
3268
3279
|
: undefined,
|
|
3269
3280
|
tags: output.tags !== undefined && output.tags !== null
|
|
3270
3281
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3271
3282
|
: undefined,
|
|
3272
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean(output.useDedicatedReplicationServer),
|
|
3283
|
+
useDedicatedReplicationServer: (0, smithy_client_1.expectBoolean)(output.useDedicatedReplicationServer),
|
|
3273
3284
|
};
|
|
3274
3285
|
};
|
|
3275
3286
|
const deserializeAws_restJson1ReplicationConfigurationTemplates = (output, context) => {
|
|
@@ -3290,7 +3301,7 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
|
|
|
3290
3301
|
if (entry === null) {
|
|
3291
3302
|
return null;
|
|
3292
3303
|
}
|
|
3293
|
-
return smithy_client_1.expectString(entry);
|
|
3304
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3294
3305
|
});
|
|
3295
3306
|
return retVal;
|
|
3296
3307
|
};
|
|
@@ -3305,37 +3316,37 @@ const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
|
3305
3316
|
identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
|
|
3306
3317
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3307
3318
|
: undefined,
|
|
3308
|
-
lastUpdatedDateTime: smithy_client_1.expectString(output.lastUpdatedDateTime),
|
|
3319
|
+
lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
|
|
3309
3320
|
networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
|
|
3310
3321
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
3311
3322
|
: undefined,
|
|
3312
3323
|
os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3313
|
-
ramBytes: smithy_client_1.expectLong(output.ramBytes),
|
|
3314
|
-
recommendedInstanceType: smithy_client_1.expectString(output.recommendedInstanceType),
|
|
3324
|
+
ramBytes: (0, smithy_client_1.expectLong)(output.ramBytes),
|
|
3325
|
+
recommendedInstanceType: (0, smithy_client_1.expectString)(output.recommendedInstanceType),
|
|
3315
3326
|
};
|
|
3316
3327
|
};
|
|
3317
3328
|
const deserializeAws_restJson1SourceServer = (output, context) => {
|
|
3318
3329
|
return {
|
|
3319
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3330
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3320
3331
|
dataReplicationInfo: output.dataReplicationInfo !== undefined && output.dataReplicationInfo !== null
|
|
3321
3332
|
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
3322
3333
|
: undefined,
|
|
3323
|
-
isArchived: smithy_client_1.expectBoolean(output.isArchived),
|
|
3334
|
+
isArchived: (0, smithy_client_1.expectBoolean)(output.isArchived),
|
|
3324
3335
|
launchedInstance: output.launchedInstance !== undefined && output.launchedInstance !== null
|
|
3325
3336
|
? deserializeAws_restJson1LaunchedInstance(output.launchedInstance, context)
|
|
3326
3337
|
: undefined,
|
|
3327
3338
|
lifeCycle: output.lifeCycle !== undefined && output.lifeCycle !== null
|
|
3328
3339
|
? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
|
|
3329
3340
|
: undefined,
|
|
3330
|
-
replicationType: smithy_client_1.expectString(output.replicationType),
|
|
3341
|
+
replicationType: (0, smithy_client_1.expectString)(output.replicationType),
|
|
3331
3342
|
sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
|
|
3332
3343
|
? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
|
|
3333
3344
|
: undefined,
|
|
3334
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3345
|
+
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3335
3346
|
tags: output.tags !== undefined && output.tags !== null
|
|
3336
3347
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3337
3348
|
: undefined,
|
|
3338
|
-
vcenterClientID: smithy_client_1.expectString(output.vcenterClientID),
|
|
3349
|
+
vcenterClientID: (0, smithy_client_1.expectString)(output.vcenterClientID),
|
|
3339
3350
|
};
|
|
3340
3351
|
};
|
|
3341
3352
|
const deserializeAws_restJson1SourceServersList = (output, context) => {
|
|
@@ -3356,14 +3367,14 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
3356
3367
|
}
|
|
3357
3368
|
return {
|
|
3358
3369
|
...acc,
|
|
3359
|
-
[key]: smithy_client_1.expectString(value),
|
|
3370
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3360
3371
|
};
|
|
3361
3372
|
}, {});
|
|
3362
3373
|
};
|
|
3363
3374
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
3364
3375
|
return {
|
|
3365
|
-
message: smithy_client_1.expectString(output.message),
|
|
3366
|
-
name: smithy_client_1.expectString(output.name),
|
|
3376
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3377
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
3367
3378
|
};
|
|
3368
3379
|
};
|
|
3369
3380
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
@@ -3379,18 +3390,18 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
3379
3390
|
};
|
|
3380
3391
|
const deserializeAws_restJson1VcenterClient = (output, context) => {
|
|
3381
3392
|
return {
|
|
3382
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3383
|
-
datacenterName: smithy_client_1.expectString(output.datacenterName),
|
|
3384
|
-
hostname: smithy_client_1.expectString(output.hostname),
|
|
3385
|
-
lastSeenDatetime: smithy_client_1.expectString(output.lastSeenDatetime),
|
|
3393
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3394
|
+
datacenterName: (0, smithy_client_1.expectString)(output.datacenterName),
|
|
3395
|
+
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
3396
|
+
lastSeenDatetime: (0, smithy_client_1.expectString)(output.lastSeenDatetime),
|
|
3386
3397
|
sourceServerTags: output.sourceServerTags !== undefined && output.sourceServerTags !== null
|
|
3387
3398
|
? deserializeAws_restJson1TagsMap(output.sourceServerTags, context)
|
|
3388
3399
|
: undefined,
|
|
3389
3400
|
tags: output.tags !== undefined && output.tags !== null
|
|
3390
3401
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3391
3402
|
: undefined,
|
|
3392
|
-
vcenterClientID: smithy_client_1.expectString(output.vcenterClientID),
|
|
3393
|
-
vcenterUUID: smithy_client_1.expectString(output.vcenterUUID),
|
|
3403
|
+
vcenterClientID: (0, smithy_client_1.expectString)(output.vcenterClientID),
|
|
3404
|
+
vcenterUUID: (0, smithy_client_1.expectString)(output.vcenterUUID),
|
|
3394
3405
|
};
|
|
3395
3406
|
};
|
|
3396
3407
|
const deserializeAws_restJson1VcenterClientList = (output, context) => {
|