@aws-sdk/client-mgn 3.54.1 → 3.58.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 +24 -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/protocols/Aws_restJson1.js +287 -287
- 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/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 +29 -29
- package/dist-types/runtimeConfig.native.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +2 -2
- 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.");
|
|
@@ -829,15 +829,15 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
|
|
|
829
829
|
tags: undefined,
|
|
830
830
|
vcenterClientID: undefined,
|
|
831
831
|
};
|
|
832
|
-
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");
|
|
833
833
|
if (data.arn !== undefined && data.arn !== null) {
|
|
834
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
834
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
835
835
|
}
|
|
836
836
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
837
837
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
838
838
|
}
|
|
839
839
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
840
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
840
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
841
841
|
}
|
|
842
842
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
843
843
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -846,19 +846,19 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommand = async (output,
|
|
|
846
846
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
847
847
|
}
|
|
848
848
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
849
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
849
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
850
850
|
}
|
|
851
851
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
852
852
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
853
853
|
}
|
|
854
854
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
855
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
855
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
856
856
|
}
|
|
857
857
|
if (data.tags !== undefined && data.tags !== null) {
|
|
858
858
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
859
859
|
}
|
|
860
860
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
861
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
861
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
862
862
|
}
|
|
863
863
|
return Promise.resolve(contents);
|
|
864
864
|
};
|
|
@@ -891,7 +891,7 @@ const deserializeAws_restJson1ChangeServerLifeCycleStateCommandError = async (ou
|
|
|
891
891
|
$fault: "client",
|
|
892
892
|
$metadata: deserializeMetadata(output),
|
|
893
893
|
});
|
|
894
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
894
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
895
895
|
}
|
|
896
896
|
};
|
|
897
897
|
const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
@@ -916,42 +916,42 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = as
|
|
|
916
916
|
tags: undefined,
|
|
917
917
|
useDedicatedReplicationServer: undefined,
|
|
918
918
|
};
|
|
919
|
-
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");
|
|
920
920
|
if (data.arn !== undefined && data.arn !== null) {
|
|
921
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
921
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
922
922
|
}
|
|
923
923
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
924
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
924
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
925
925
|
}
|
|
926
926
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
927
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
927
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
928
928
|
}
|
|
929
929
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
930
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
930
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
931
931
|
}
|
|
932
932
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
933
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
933
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
934
934
|
}
|
|
935
935
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
936
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
936
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
937
937
|
}
|
|
938
938
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
939
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
939
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
940
940
|
}
|
|
941
941
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
942
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
942
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
943
943
|
}
|
|
944
944
|
if (data.replicationConfigurationTemplateID !== undefined && data.replicationConfigurationTemplateID !== null) {
|
|
945
|
-
contents.replicationConfigurationTemplateID = smithy_client_1.expectString(data.replicationConfigurationTemplateID);
|
|
945
|
+
contents.replicationConfigurationTemplateID = (0, smithy_client_1.expectString)(data.replicationConfigurationTemplateID);
|
|
946
946
|
}
|
|
947
947
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
948
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
948
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
949
949
|
}
|
|
950
950
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
951
951
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
952
952
|
}
|
|
953
953
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
954
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
954
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
955
955
|
}
|
|
956
956
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
957
957
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
@@ -960,7 +960,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = as
|
|
|
960
960
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
961
961
|
}
|
|
962
962
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
963
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
963
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
964
964
|
}
|
|
965
965
|
return Promise.resolve(contents);
|
|
966
966
|
};
|
|
@@ -990,7 +990,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
990
990
|
$fault: "client",
|
|
991
991
|
$metadata: deserializeMetadata(output),
|
|
992
992
|
});
|
|
993
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
993
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
994
994
|
}
|
|
995
995
|
};
|
|
996
996
|
const deserializeAws_restJson1DeleteJobCommand = async (output, context) => {
|
|
@@ -1029,7 +1029,7 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
1029
1029
|
$fault: "client",
|
|
1030
1030
|
$metadata: deserializeMetadata(output),
|
|
1031
1031
|
});
|
|
1032
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1032
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1033
1033
|
}
|
|
1034
1034
|
};
|
|
1035
1035
|
const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
@@ -1068,7 +1068,7 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1068
1068
|
$fault: "client",
|
|
1069
1069
|
$metadata: deserializeMetadata(output),
|
|
1070
1070
|
});
|
|
1071
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1071
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1072
1072
|
}
|
|
1073
1073
|
};
|
|
1074
1074
|
const deserializeAws_restJson1DeleteSourceServerCommand = async (output, context) => {
|
|
@@ -1107,7 +1107,7 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1107
1107
|
$fault: "client",
|
|
1108
1108
|
$metadata: deserializeMetadata(output),
|
|
1109
1109
|
});
|
|
1110
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1110
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1111
1111
|
}
|
|
1112
1112
|
};
|
|
1113
1113
|
const deserializeAws_restJson1DeleteVcenterClientCommand = async (output, context) => {
|
|
@@ -1146,7 +1146,7 @@ const deserializeAws_restJson1DeleteVcenterClientCommandError = async (output, c
|
|
|
1146
1146
|
$fault: "client",
|
|
1147
1147
|
$metadata: deserializeMetadata(output),
|
|
1148
1148
|
});
|
|
1149
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1149
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1150
1150
|
}
|
|
1151
1151
|
};
|
|
1152
1152
|
const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, context) => {
|
|
@@ -1158,12 +1158,12 @@ const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, contex
|
|
|
1158
1158
|
items: undefined,
|
|
1159
1159
|
nextToken: undefined,
|
|
1160
1160
|
};
|
|
1161
|
-
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");
|
|
1162
1162
|
if (data.items !== undefined && data.items !== null) {
|
|
1163
1163
|
contents.items = deserializeAws_restJson1JobLogs(data.items, context);
|
|
1164
1164
|
}
|
|
1165
1165
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1166
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1166
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1167
1167
|
}
|
|
1168
1168
|
return Promise.resolve(contents);
|
|
1169
1169
|
};
|
|
@@ -1190,7 +1190,7 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1190
1190
|
$fault: "client",
|
|
1191
1191
|
$metadata: deserializeMetadata(output),
|
|
1192
1192
|
});
|
|
1193
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1193
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1194
1194
|
}
|
|
1195
1195
|
};
|
|
1196
1196
|
const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
@@ -1202,12 +1202,12 @@ const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
|
1202
1202
|
items: undefined,
|
|
1203
1203
|
nextToken: undefined,
|
|
1204
1204
|
};
|
|
1205
|
-
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");
|
|
1206
1206
|
if (data.items !== undefined && data.items !== null) {
|
|
1207
1207
|
contents.items = deserializeAws_restJson1JobsList(data.items, context);
|
|
1208
1208
|
}
|
|
1209
1209
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1210
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1210
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1211
1211
|
}
|
|
1212
1212
|
return Promise.resolve(contents);
|
|
1213
1213
|
};
|
|
@@ -1234,7 +1234,7 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1234
1234
|
$fault: "client",
|
|
1235
1235
|
$metadata: deserializeMetadata(output),
|
|
1236
1236
|
});
|
|
1237
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1237
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1238
1238
|
}
|
|
1239
1239
|
};
|
|
1240
1240
|
const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = async (output, context) => {
|
|
@@ -1246,12 +1246,12 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand =
|
|
|
1246
1246
|
items: undefined,
|
|
1247
1247
|
nextToken: undefined,
|
|
1248
1248
|
};
|
|
1249
|
-
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");
|
|
1250
1250
|
if (data.items !== undefined && data.items !== null) {
|
|
1251
1251
|
contents.items = deserializeAws_restJson1ReplicationConfigurationTemplates(data.items, context);
|
|
1252
1252
|
}
|
|
1253
1253
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1254
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1254
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1255
1255
|
}
|
|
1256
1256
|
return Promise.resolve(contents);
|
|
1257
1257
|
};
|
|
@@ -1281,7 +1281,7 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1281
1281
|
$fault: "client",
|
|
1282
1282
|
$metadata: deserializeMetadata(output),
|
|
1283
1283
|
});
|
|
1284
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1284
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1285
1285
|
}
|
|
1286
1286
|
};
|
|
1287
1287
|
const deserializeAws_restJson1DescribeSourceServersCommand = async (output, context) => {
|
|
@@ -1293,12 +1293,12 @@ const deserializeAws_restJson1DescribeSourceServersCommand = async (output, cont
|
|
|
1293
1293
|
items: undefined,
|
|
1294
1294
|
nextToken: undefined,
|
|
1295
1295
|
};
|
|
1296
|
-
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");
|
|
1297
1297
|
if (data.items !== undefined && data.items !== null) {
|
|
1298
1298
|
contents.items = deserializeAws_restJson1SourceServersList(data.items, context);
|
|
1299
1299
|
}
|
|
1300
1300
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1301
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1301
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1302
1302
|
}
|
|
1303
1303
|
return Promise.resolve(contents);
|
|
1304
1304
|
};
|
|
@@ -1325,7 +1325,7 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1325
1325
|
$fault: "client",
|
|
1326
1326
|
$metadata: deserializeMetadata(output),
|
|
1327
1327
|
});
|
|
1328
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1328
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1329
1329
|
}
|
|
1330
1330
|
};
|
|
1331
1331
|
const deserializeAws_restJson1DescribeVcenterClientsCommand = async (output, context) => {
|
|
@@ -1337,12 +1337,12 @@ const deserializeAws_restJson1DescribeVcenterClientsCommand = async (output, con
|
|
|
1337
1337
|
items: undefined,
|
|
1338
1338
|
nextToken: undefined,
|
|
1339
1339
|
};
|
|
1340
|
-
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");
|
|
1341
1341
|
if (data.items !== undefined && data.items !== null) {
|
|
1342
1342
|
contents.items = deserializeAws_restJson1VcenterClientList(data.items, context);
|
|
1343
1343
|
}
|
|
1344
1344
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1345
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1345
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1346
1346
|
}
|
|
1347
1347
|
return Promise.resolve(contents);
|
|
1348
1348
|
};
|
|
@@ -1372,7 +1372,7 @@ const deserializeAws_restJson1DescribeVcenterClientsCommandError = async (output
|
|
|
1372
1372
|
$fault: "client",
|
|
1373
1373
|
$metadata: deserializeMetadata(output),
|
|
1374
1374
|
});
|
|
1375
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1375
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1376
1376
|
}
|
|
1377
1377
|
};
|
|
1378
1378
|
const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, context) => {
|
|
@@ -1392,15 +1392,15 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
|
|
|
1392
1392
|
tags: undefined,
|
|
1393
1393
|
vcenterClientID: undefined,
|
|
1394
1394
|
};
|
|
1395
|
-
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");
|
|
1396
1396
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1397
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1397
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1398
1398
|
}
|
|
1399
1399
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1400
1400
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1401
1401
|
}
|
|
1402
1402
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
1403
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
1403
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1404
1404
|
}
|
|
1405
1405
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
1406
1406
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -1409,19 +1409,19 @@ const deserializeAws_restJson1DisconnectFromServiceCommand = async (output, cont
|
|
|
1409
1409
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1410
1410
|
}
|
|
1411
1411
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
1412
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
1412
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1413
1413
|
}
|
|
1414
1414
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1415
1415
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1416
1416
|
}
|
|
1417
1417
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1418
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1418
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1419
1419
|
}
|
|
1420
1420
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1421
1421
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1422
1422
|
}
|
|
1423
1423
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
1424
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
1424
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1425
1425
|
}
|
|
1426
1426
|
return Promise.resolve(contents);
|
|
1427
1427
|
};
|
|
@@ -1451,7 +1451,7 @@ const deserializeAws_restJson1DisconnectFromServiceCommandError = async (output,
|
|
|
1451
1451
|
$fault: "client",
|
|
1452
1452
|
$metadata: deserializeMetadata(output),
|
|
1453
1453
|
});
|
|
1454
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1454
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1455
1455
|
}
|
|
1456
1456
|
};
|
|
1457
1457
|
const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) => {
|
|
@@ -1471,15 +1471,15 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
|
|
|
1471
1471
|
tags: undefined,
|
|
1472
1472
|
vcenterClientID: undefined,
|
|
1473
1473
|
};
|
|
1474
|
-
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");
|
|
1475
1475
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1476
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1476
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1477
1477
|
}
|
|
1478
1478
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1479
1479
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1480
1480
|
}
|
|
1481
1481
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
1482
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
1482
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1483
1483
|
}
|
|
1484
1484
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
1485
1485
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -1488,19 +1488,19 @@ const deserializeAws_restJson1FinalizeCutoverCommand = async (output, context) =
|
|
|
1488
1488
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1489
1489
|
}
|
|
1490
1490
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
1491
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
1491
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1492
1492
|
}
|
|
1493
1493
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1494
1494
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1495
1495
|
}
|
|
1496
1496
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1497
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1497
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1498
1498
|
}
|
|
1499
1499
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1500
1500
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1501
1501
|
}
|
|
1502
1502
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
1503
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
1503
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1504
1504
|
}
|
|
1505
1505
|
return Promise.resolve(contents);
|
|
1506
1506
|
};
|
|
@@ -1533,7 +1533,7 @@ const deserializeAws_restJson1FinalizeCutoverCommandError = async (output, conte
|
|
|
1533
1533
|
$fault: "client",
|
|
1534
1534
|
$metadata: deserializeMetadata(output),
|
|
1535
1535
|
});
|
|
1536
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1536
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1537
1537
|
}
|
|
1538
1538
|
};
|
|
1539
1539
|
const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, context) => {
|
|
@@ -1552,33 +1552,33 @@ const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, con
|
|
|
1552
1552
|
sourceServerID: undefined,
|
|
1553
1553
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
1554
1554
|
};
|
|
1555
|
-
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
1556
|
if (data.bootMode !== undefined && data.bootMode !== null) {
|
|
1557
|
-
contents.bootMode = smithy_client_1.expectString(data.bootMode);
|
|
1557
|
+
contents.bootMode = (0, smithy_client_1.expectString)(data.bootMode);
|
|
1558
1558
|
}
|
|
1559
1559
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
1560
|
-
contents.copyPrivateIp = smithy_client_1.expectBoolean(data.copyPrivateIp);
|
|
1560
|
+
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
1561
1561
|
}
|
|
1562
1562
|
if (data.copyTags !== undefined && data.copyTags !== null) {
|
|
1563
|
-
contents.copyTags = smithy_client_1.expectBoolean(data.copyTags);
|
|
1563
|
+
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
1564
1564
|
}
|
|
1565
1565
|
if (data.ec2LaunchTemplateID !== undefined && data.ec2LaunchTemplateID !== null) {
|
|
1566
|
-
contents.ec2LaunchTemplateID = smithy_client_1.expectString(data.ec2LaunchTemplateID);
|
|
1566
|
+
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
1567
1567
|
}
|
|
1568
1568
|
if (data.launchDisposition !== undefined && data.launchDisposition !== null) {
|
|
1569
|
-
contents.launchDisposition = smithy_client_1.expectString(data.launchDisposition);
|
|
1569
|
+
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
1570
1570
|
}
|
|
1571
1571
|
if (data.licensing !== undefined && data.licensing !== null) {
|
|
1572
1572
|
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
1573
1573
|
}
|
|
1574
1574
|
if (data.name !== undefined && data.name !== null) {
|
|
1575
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
1575
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1576
1576
|
}
|
|
1577
1577
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1578
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1578
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1579
1579
|
}
|
|
1580
1580
|
if (data.targetInstanceTypeRightSizingMethod !== undefined && data.targetInstanceTypeRightSizingMethod !== null) {
|
|
1581
|
-
contents.targetInstanceTypeRightSizingMethod = smithy_client_1.expectString(data.targetInstanceTypeRightSizingMethod);
|
|
1581
|
+
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
1582
1582
|
}
|
|
1583
1583
|
return Promise.resolve(contents);
|
|
1584
1584
|
};
|
|
@@ -1605,7 +1605,7 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
1605
1605
|
$fault: "client",
|
|
1606
1606
|
$metadata: deserializeMetadata(output),
|
|
1607
1607
|
});
|
|
1608
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1608
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1609
1609
|
}
|
|
1610
1610
|
};
|
|
1611
1611
|
const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output, context) => {
|
|
@@ -1630,51 +1630,51 @@ const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output
|
|
|
1630
1630
|
stagingAreaTags: undefined,
|
|
1631
1631
|
useDedicatedReplicationServer: undefined,
|
|
1632
1632
|
};
|
|
1633
|
-
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");
|
|
1634
1634
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
1635
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
1635
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
1636
1636
|
}
|
|
1637
1637
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
1638
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
1638
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
1639
1639
|
}
|
|
1640
1640
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
1641
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
1641
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
1642
1642
|
}
|
|
1643
1643
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
1644
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
1644
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
1645
1645
|
}
|
|
1646
1646
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
1647
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
1647
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
1648
1648
|
}
|
|
1649
1649
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
1650
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
1650
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
1651
1651
|
}
|
|
1652
1652
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
1653
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
1653
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
1654
1654
|
}
|
|
1655
1655
|
if (data.name !== undefined && data.name !== null) {
|
|
1656
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
1656
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1657
1657
|
}
|
|
1658
1658
|
if (data.replicatedDisks !== undefined && data.replicatedDisks !== null) {
|
|
1659
1659
|
contents.replicatedDisks = deserializeAws_restJson1ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
1660
1660
|
}
|
|
1661
1661
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
1662
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
1662
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
1663
1663
|
}
|
|
1664
1664
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
1665
1665
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
1666
1666
|
}
|
|
1667
1667
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1668
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1668
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1669
1669
|
}
|
|
1670
1670
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
1671
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
1671
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
1672
1672
|
}
|
|
1673
1673
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
1674
1674
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
1675
1675
|
}
|
|
1676
1676
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
1677
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
1677
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
1678
1678
|
}
|
|
1679
1679
|
return Promise.resolve(contents);
|
|
1680
1680
|
};
|
|
@@ -1701,7 +1701,7 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
1701
1701
|
$fault: "client",
|
|
1702
1702
|
$metadata: deserializeMetadata(output),
|
|
1703
1703
|
});
|
|
1704
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1704
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1705
1705
|
}
|
|
1706
1706
|
};
|
|
1707
1707
|
const deserializeAws_restJson1InitializeServiceCommand = async (output, context) => {
|
|
@@ -1737,7 +1737,7 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1737
1737
|
$fault: "client",
|
|
1738
1738
|
$metadata: deserializeMetadata(output),
|
|
1739
1739
|
});
|
|
1740
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1740
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1741
1741
|
}
|
|
1742
1742
|
};
|
|
1743
1743
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1748,7 +1748,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
1748
1748
|
$metadata: deserializeMetadata(output),
|
|
1749
1749
|
tags: undefined,
|
|
1750
1750
|
};
|
|
1751
|
-
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");
|
|
1752
1752
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1753
1753
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1754
1754
|
}
|
|
@@ -1786,7 +1786,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1786
1786
|
$fault: "client",
|
|
1787
1787
|
$metadata: deserializeMetadata(output),
|
|
1788
1788
|
});
|
|
1789
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1789
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1790
1790
|
}
|
|
1791
1791
|
};
|
|
1792
1792
|
const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) => {
|
|
@@ -1806,15 +1806,15 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
|
|
|
1806
1806
|
tags: undefined,
|
|
1807
1807
|
vcenterClientID: undefined,
|
|
1808
1808
|
};
|
|
1809
|
-
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");
|
|
1810
1810
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1811
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1811
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1812
1812
|
}
|
|
1813
1813
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1814
1814
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1815
1815
|
}
|
|
1816
1816
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
1817
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
1817
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1818
1818
|
}
|
|
1819
1819
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
1820
1820
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -1823,19 +1823,19 @@ const deserializeAws_restJson1MarkAsArchivedCommand = async (output, context) =>
|
|
|
1823
1823
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1824
1824
|
}
|
|
1825
1825
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
1826
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
1826
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1827
1827
|
}
|
|
1828
1828
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1829
1829
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1830
1830
|
}
|
|
1831
1831
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1832
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1832
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1833
1833
|
}
|
|
1834
1834
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1835
1835
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1836
1836
|
}
|
|
1837
1837
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
1838
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
1838
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1839
1839
|
}
|
|
1840
1840
|
return Promise.resolve(contents);
|
|
1841
1841
|
};
|
|
@@ -1865,7 +1865,7 @@ const deserializeAws_restJson1MarkAsArchivedCommandError = async (output, contex
|
|
|
1865
1865
|
$fault: "client",
|
|
1866
1866
|
$metadata: deserializeMetadata(output),
|
|
1867
1867
|
});
|
|
1868
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1868
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1869
1869
|
}
|
|
1870
1870
|
};
|
|
1871
1871
|
const deserializeAws_restJson1RetryDataReplicationCommand = async (output, context) => {
|
|
@@ -1885,15 +1885,15 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
|
|
|
1885
1885
|
tags: undefined,
|
|
1886
1886
|
vcenterClientID: undefined,
|
|
1887
1887
|
};
|
|
1888
|
-
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");
|
|
1889
1889
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1890
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1890
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1891
1891
|
}
|
|
1892
1892
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1893
1893
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1894
1894
|
}
|
|
1895
1895
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
1896
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
1896
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
1897
1897
|
}
|
|
1898
1898
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
1899
1899
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -1902,19 +1902,19 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
|
|
|
1902
1902
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1903
1903
|
}
|
|
1904
1904
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
1905
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
1905
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
1906
1906
|
}
|
|
1907
1907
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1908
1908
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1909
1909
|
}
|
|
1910
1910
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1911
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1911
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1912
1912
|
}
|
|
1913
1913
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1914
1914
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1915
1915
|
}
|
|
1916
1916
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
1917
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
1917
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
1918
1918
|
}
|
|
1919
1919
|
return Promise.resolve(contents);
|
|
1920
1920
|
};
|
|
@@ -1944,7 +1944,7 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
1944
1944
|
$fault: "client",
|
|
1945
1945
|
$metadata: deserializeMetadata(output),
|
|
1946
1946
|
});
|
|
1947
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1947
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1948
1948
|
}
|
|
1949
1949
|
};
|
|
1950
1950
|
const deserializeAws_restJson1StartCutoverCommand = async (output, context) => {
|
|
@@ -1955,7 +1955,7 @@ const deserializeAws_restJson1StartCutoverCommand = async (output, context) => {
|
|
|
1955
1955
|
$metadata: deserializeMetadata(output),
|
|
1956
1956
|
job: undefined,
|
|
1957
1957
|
};
|
|
1958
|
-
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");
|
|
1959
1959
|
if (data.job !== undefined && data.job !== null) {
|
|
1960
1960
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
1961
1961
|
}
|
|
@@ -1987,7 +1987,7 @@ const deserializeAws_restJson1StartCutoverCommandError = async (output, context)
|
|
|
1987
1987
|
$fault: "client",
|
|
1988
1988
|
$metadata: deserializeMetadata(output),
|
|
1989
1989
|
});
|
|
1990
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1990
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1991
1991
|
}
|
|
1992
1992
|
};
|
|
1993
1993
|
const deserializeAws_restJson1StartReplicationCommand = async (output, context) => {
|
|
@@ -2007,15 +2007,15 @@ const deserializeAws_restJson1StartReplicationCommand = async (output, context)
|
|
|
2007
2007
|
tags: undefined,
|
|
2008
2008
|
vcenterClientID: undefined,
|
|
2009
2009
|
};
|
|
2010
|
-
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");
|
|
2011
2011
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2012
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
2012
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2013
2013
|
}
|
|
2014
2014
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
2015
2015
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2016
2016
|
}
|
|
2017
2017
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
2018
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
2018
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
2019
2019
|
}
|
|
2020
2020
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
2021
2021
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -2024,19 +2024,19 @@ const deserializeAws_restJson1StartReplicationCommand = async (output, context)
|
|
|
2024
2024
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2025
2025
|
}
|
|
2026
2026
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
2027
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
2027
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
2028
2028
|
}
|
|
2029
2029
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
2030
2030
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2031
2031
|
}
|
|
2032
2032
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2033
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2033
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2034
2034
|
}
|
|
2035
2035
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2036
2036
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2037
2037
|
}
|
|
2038
2038
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
2039
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
2039
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
2040
2040
|
}
|
|
2041
2041
|
return Promise.resolve(contents);
|
|
2042
2042
|
};
|
|
@@ -2072,7 +2072,7 @@ const deserializeAws_restJson1StartReplicationCommandError = async (output, cont
|
|
|
2072
2072
|
$fault: "client",
|
|
2073
2073
|
$metadata: deserializeMetadata(output),
|
|
2074
2074
|
});
|
|
2075
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2075
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2076
2076
|
}
|
|
2077
2077
|
};
|
|
2078
2078
|
const deserializeAws_restJson1StartTestCommand = async (output, context) => {
|
|
@@ -2083,7 +2083,7 @@ const deserializeAws_restJson1StartTestCommand = async (output, context) => {
|
|
|
2083
2083
|
$metadata: deserializeMetadata(output),
|
|
2084
2084
|
job: undefined,
|
|
2085
2085
|
};
|
|
2086
|
-
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");
|
|
2087
2087
|
if (data.job !== undefined && data.job !== null) {
|
|
2088
2088
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2089
2089
|
}
|
|
@@ -2115,7 +2115,7 @@ const deserializeAws_restJson1StartTestCommandError = async (output, context) =>
|
|
|
2115
2115
|
$fault: "client",
|
|
2116
2116
|
$metadata: deserializeMetadata(output),
|
|
2117
2117
|
});
|
|
2118
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2118
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2119
2119
|
}
|
|
2120
2120
|
};
|
|
2121
2121
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -2160,7 +2160,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2160
2160
|
$fault: "client",
|
|
2161
2161
|
$metadata: deserializeMetadata(output),
|
|
2162
2162
|
});
|
|
2163
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2163
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2164
2164
|
}
|
|
2165
2165
|
};
|
|
2166
2166
|
const deserializeAws_restJson1TerminateTargetInstancesCommand = async (output, context) => {
|
|
@@ -2171,7 +2171,7 @@ const deserializeAws_restJson1TerminateTargetInstancesCommand = async (output, c
|
|
|
2171
2171
|
$metadata: deserializeMetadata(output),
|
|
2172
2172
|
job: undefined,
|
|
2173
2173
|
};
|
|
2174
|
-
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");
|
|
2175
2175
|
if (data.job !== undefined && data.job !== null) {
|
|
2176
2176
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2177
2177
|
}
|
|
@@ -2203,7 +2203,7 @@ const deserializeAws_restJson1TerminateTargetInstancesCommandError = async (outp
|
|
|
2203
2203
|
$fault: "client",
|
|
2204
2204
|
$metadata: deserializeMetadata(output),
|
|
2205
2205
|
});
|
|
2206
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2206
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2207
2207
|
}
|
|
2208
2208
|
};
|
|
2209
2209
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -2248,7 +2248,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2248
2248
|
$fault: "client",
|
|
2249
2249
|
$metadata: deserializeMetadata(output),
|
|
2250
2250
|
});
|
|
2251
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2251
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2252
2252
|
}
|
|
2253
2253
|
};
|
|
2254
2254
|
const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
@@ -2267,33 +2267,33 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output,
|
|
|
2267
2267
|
sourceServerID: undefined,
|
|
2268
2268
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
2269
2269
|
};
|
|
2270
|
-
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
2271
|
if (data.bootMode !== undefined && data.bootMode !== null) {
|
|
2272
|
-
contents.bootMode = smithy_client_1.expectString(data.bootMode);
|
|
2272
|
+
contents.bootMode = (0, smithy_client_1.expectString)(data.bootMode);
|
|
2273
2273
|
}
|
|
2274
2274
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
2275
|
-
contents.copyPrivateIp = smithy_client_1.expectBoolean(data.copyPrivateIp);
|
|
2275
|
+
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
2276
2276
|
}
|
|
2277
2277
|
if (data.copyTags !== undefined && data.copyTags !== null) {
|
|
2278
|
-
contents.copyTags = smithy_client_1.expectBoolean(data.copyTags);
|
|
2278
|
+
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
2279
2279
|
}
|
|
2280
2280
|
if (data.ec2LaunchTemplateID !== undefined && data.ec2LaunchTemplateID !== null) {
|
|
2281
|
-
contents.ec2LaunchTemplateID = smithy_client_1.expectString(data.ec2LaunchTemplateID);
|
|
2281
|
+
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
2282
2282
|
}
|
|
2283
2283
|
if (data.launchDisposition !== undefined && data.launchDisposition !== null) {
|
|
2284
|
-
contents.launchDisposition = smithy_client_1.expectString(data.launchDisposition);
|
|
2284
|
+
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
2285
2285
|
}
|
|
2286
2286
|
if (data.licensing !== undefined && data.licensing !== null) {
|
|
2287
2287
|
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
2288
2288
|
}
|
|
2289
2289
|
if (data.name !== undefined && data.name !== null) {
|
|
2290
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
2290
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2291
2291
|
}
|
|
2292
2292
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2293
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2293
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2294
2294
|
}
|
|
2295
2295
|
if (data.targetInstanceTypeRightSizingMethod !== undefined && data.targetInstanceTypeRightSizingMethod !== null) {
|
|
2296
|
-
contents.targetInstanceTypeRightSizingMethod = smithy_client_1.expectString(data.targetInstanceTypeRightSizingMethod);
|
|
2296
|
+
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
2297
2297
|
}
|
|
2298
2298
|
return Promise.resolve(contents);
|
|
2299
2299
|
};
|
|
@@ -2326,7 +2326,7 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
2326
2326
|
$fault: "client",
|
|
2327
2327
|
$metadata: deserializeMetadata(output),
|
|
2328
2328
|
});
|
|
2329
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2329
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2330
2330
|
}
|
|
2331
2331
|
};
|
|
2332
2332
|
const deserializeAws_restJson1UpdateReplicationConfigurationCommand = async (output, context) => {
|
|
@@ -2351,51 +2351,51 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommand = async (out
|
|
|
2351
2351
|
stagingAreaTags: undefined,
|
|
2352
2352
|
useDedicatedReplicationServer: undefined,
|
|
2353
2353
|
};
|
|
2354
|
-
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");
|
|
2355
2355
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
2356
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
2356
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
2357
2357
|
}
|
|
2358
2358
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
2359
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
2359
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
2360
2360
|
}
|
|
2361
2361
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
2362
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
2362
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
2363
2363
|
}
|
|
2364
2364
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
2365
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
2365
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
2366
2366
|
}
|
|
2367
2367
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
2368
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
2368
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
2369
2369
|
}
|
|
2370
2370
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
2371
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
2371
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
2372
2372
|
}
|
|
2373
2373
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
2374
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
2374
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
2375
2375
|
}
|
|
2376
2376
|
if (data.name !== undefined && data.name !== null) {
|
|
2377
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
2377
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2378
2378
|
}
|
|
2379
2379
|
if (data.replicatedDisks !== undefined && data.replicatedDisks !== null) {
|
|
2380
2380
|
contents.replicatedDisks = deserializeAws_restJson1ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
2381
2381
|
}
|
|
2382
2382
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
2383
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
2383
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
2384
2384
|
}
|
|
2385
2385
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
2386
2386
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2387
2387
|
}
|
|
2388
2388
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2389
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2389
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2390
2390
|
}
|
|
2391
2391
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
2392
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
2392
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
2393
2393
|
}
|
|
2394
2394
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
2395
2395
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
2396
2396
|
}
|
|
2397
2397
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
2398
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
2398
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
2399
2399
|
}
|
|
2400
2400
|
return Promise.resolve(contents);
|
|
2401
2401
|
};
|
|
@@ -2431,7 +2431,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
2431
2431
|
$fault: "client",
|
|
2432
2432
|
$metadata: deserializeMetadata(output),
|
|
2433
2433
|
});
|
|
2434
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2434
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2435
2435
|
}
|
|
2436
2436
|
};
|
|
2437
2437
|
const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
@@ -2456,42 +2456,42 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = as
|
|
|
2456
2456
|
tags: undefined,
|
|
2457
2457
|
useDedicatedReplicationServer: undefined,
|
|
2458
2458
|
};
|
|
2459
|
-
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");
|
|
2460
2460
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2461
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
2461
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2462
2462
|
}
|
|
2463
2463
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
2464
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
2464
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
2465
2465
|
}
|
|
2466
2466
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
2467
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
2467
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
2468
2468
|
}
|
|
2469
2469
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
2470
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
2470
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
2471
2471
|
}
|
|
2472
2472
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
2473
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
2473
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
2474
2474
|
}
|
|
2475
2475
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
2476
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
2476
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
2477
2477
|
}
|
|
2478
2478
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
2479
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
2479
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
2480
2480
|
}
|
|
2481
2481
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
2482
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
2482
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
2483
2483
|
}
|
|
2484
2484
|
if (data.replicationConfigurationTemplateID !== undefined && data.replicationConfigurationTemplateID !== null) {
|
|
2485
|
-
contents.replicationConfigurationTemplateID = smithy_client_1.expectString(data.replicationConfigurationTemplateID);
|
|
2485
|
+
contents.replicationConfigurationTemplateID = (0, smithy_client_1.expectString)(data.replicationConfigurationTemplateID);
|
|
2486
2486
|
}
|
|
2487
2487
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
2488
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
2488
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
2489
2489
|
}
|
|
2490
2490
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
2491
2491
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2492
2492
|
}
|
|
2493
2493
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
2494
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
2494
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
2495
2495
|
}
|
|
2496
2496
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
2497
2497
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
@@ -2500,7 +2500,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = as
|
|
|
2500
2500
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2501
2501
|
}
|
|
2502
2502
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
2503
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
2503
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
2504
2504
|
}
|
|
2505
2505
|
return Promise.resolve(contents);
|
|
2506
2506
|
};
|
|
@@ -2533,7 +2533,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
2533
2533
|
$fault: "client",
|
|
2534
2534
|
$metadata: deserializeMetadata(output),
|
|
2535
2535
|
});
|
|
2536
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2536
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2537
2537
|
}
|
|
2538
2538
|
};
|
|
2539
2539
|
const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (output, context) => {
|
|
@@ -2553,15 +2553,15 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (
|
|
|
2553
2553
|
tags: undefined,
|
|
2554
2554
|
vcenterClientID: undefined,
|
|
2555
2555
|
};
|
|
2556
|
-
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");
|
|
2557
2557
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2558
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
2558
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2559
2559
|
}
|
|
2560
2560
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
2561
2561
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
2562
2562
|
}
|
|
2563
2563
|
if (data.isArchived !== undefined && data.isArchived !== null) {
|
|
2564
|
-
contents.isArchived = smithy_client_1.expectBoolean(data.isArchived);
|
|
2564
|
+
contents.isArchived = (0, smithy_client_1.expectBoolean)(data.isArchived);
|
|
2565
2565
|
}
|
|
2566
2566
|
if (data.launchedInstance !== undefined && data.launchedInstance !== null) {
|
|
2567
2567
|
contents.launchedInstance = deserializeAws_restJson1LaunchedInstance(data.launchedInstance, context);
|
|
@@ -2570,19 +2570,19 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommand = async (
|
|
|
2570
2570
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
2571
2571
|
}
|
|
2572
2572
|
if (data.replicationType !== undefined && data.replicationType !== null) {
|
|
2573
|
-
contents.replicationType = smithy_client_1.expectString(data.replicationType);
|
|
2573
|
+
contents.replicationType = (0, smithy_client_1.expectString)(data.replicationType);
|
|
2574
2574
|
}
|
|
2575
2575
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
2576
2576
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
2577
2577
|
}
|
|
2578
2578
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2579
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2579
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2580
2580
|
}
|
|
2581
2581
|
if (data.tags !== undefined && data.tags !== null) {
|
|
2582
2582
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2583
2583
|
}
|
|
2584
2584
|
if (data.vcenterClientID !== undefined && data.vcenterClientID !== null) {
|
|
2585
|
-
contents.vcenterClientID = smithy_client_1.expectString(data.vcenterClientID);
|
|
2585
|
+
contents.vcenterClientID = (0, smithy_client_1.expectString)(data.vcenterClientID);
|
|
2586
2586
|
}
|
|
2587
2587
|
return Promise.resolve(contents);
|
|
2588
2588
|
};
|
|
@@ -2615,107 +2615,107 @@ const deserializeAws_restJson1UpdateSourceServerReplicationTypeCommandError = as
|
|
|
2615
2615
|
$fault: "client",
|
|
2616
2616
|
$metadata: deserializeMetadata(output),
|
|
2617
2617
|
});
|
|
2618
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2618
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2619
2619
|
}
|
|
2620
2620
|
};
|
|
2621
2621
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2622
2622
|
const contents = {};
|
|
2623
2623
|
const data = parsedOutput.body;
|
|
2624
2624
|
if (data.code !== undefined && data.code !== null) {
|
|
2625
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2625
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2626
2626
|
}
|
|
2627
2627
|
if (data.message !== undefined && data.message !== null) {
|
|
2628
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2628
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2629
2629
|
}
|
|
2630
2630
|
const exception = new models_0_1.AccessDeniedException({
|
|
2631
2631
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2632
2632
|
...contents,
|
|
2633
2633
|
});
|
|
2634
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2634
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2635
2635
|
};
|
|
2636
2636
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2637
2637
|
const contents = {};
|
|
2638
2638
|
const data = parsedOutput.body;
|
|
2639
2639
|
if (data.code !== undefined && data.code !== null) {
|
|
2640
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2640
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2641
2641
|
}
|
|
2642
2642
|
if (data.message !== undefined && data.message !== null) {
|
|
2643
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2643
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2644
2644
|
}
|
|
2645
2645
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2646
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2646
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2647
2647
|
}
|
|
2648
2648
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2649
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2649
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2650
2650
|
}
|
|
2651
2651
|
const exception = new models_0_1.ConflictException({
|
|
2652
2652
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2653
2653
|
...contents,
|
|
2654
2654
|
});
|
|
2655
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2655
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2656
2656
|
};
|
|
2657
2657
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2658
2658
|
const contents = {};
|
|
2659
2659
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2660
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseLong(parsedOutput.headers["retry-after"]);
|
|
2660
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseLong)(parsedOutput.headers["retry-after"]);
|
|
2661
2661
|
}
|
|
2662
2662
|
const data = parsedOutput.body;
|
|
2663
2663
|
if (data.message !== undefined && data.message !== null) {
|
|
2664
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2664
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2665
2665
|
}
|
|
2666
2666
|
const exception = new models_0_1.InternalServerException({
|
|
2667
2667
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2668
2668
|
...contents,
|
|
2669
2669
|
});
|
|
2670
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2670
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2671
2671
|
};
|
|
2672
2672
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2673
2673
|
const contents = {};
|
|
2674
2674
|
const data = parsedOutput.body;
|
|
2675
2675
|
if (data.code !== undefined && data.code !== null) {
|
|
2676
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2676
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2677
2677
|
}
|
|
2678
2678
|
if (data.message !== undefined && data.message !== null) {
|
|
2679
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2679
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2680
2680
|
}
|
|
2681
2681
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2682
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2682
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2683
2683
|
}
|
|
2684
2684
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2685
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2685
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2686
2686
|
}
|
|
2687
2687
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2688
2688
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2689
2689
|
...contents,
|
|
2690
2690
|
});
|
|
2691
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2691
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2692
2692
|
};
|
|
2693
2693
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2694
2694
|
const contents = {};
|
|
2695
2695
|
const data = parsedOutput.body;
|
|
2696
2696
|
if (data.code !== undefined && data.code !== null) {
|
|
2697
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2697
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2698
2698
|
}
|
|
2699
2699
|
if (data.message !== undefined && data.message !== null) {
|
|
2700
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2700
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2701
2701
|
}
|
|
2702
2702
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
2703
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
2703
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2704
2704
|
}
|
|
2705
2705
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2706
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2706
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2707
2707
|
}
|
|
2708
2708
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2709
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2709
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2710
2710
|
}
|
|
2711
2711
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
2712
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
2712
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2713
2713
|
}
|
|
2714
2714
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2715
2715
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2716
2716
|
...contents,
|
|
2717
2717
|
});
|
|
2718
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2718
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2719
2719
|
};
|
|
2720
2720
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2721
2721
|
const contents = {};
|
|
@@ -2724,55 +2724,55 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2724
2724
|
}
|
|
2725
2725
|
const data = parsedOutput.body;
|
|
2726
2726
|
if (data.message !== undefined && data.message !== null) {
|
|
2727
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2727
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2728
2728
|
}
|
|
2729
2729
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
2730
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
2730
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2731
2731
|
}
|
|
2732
2732
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
2733
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
2733
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2734
2734
|
}
|
|
2735
2735
|
const exception = new models_0_1.ThrottlingException({
|
|
2736
2736
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2737
2737
|
...contents,
|
|
2738
2738
|
});
|
|
2739
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2739
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2740
2740
|
};
|
|
2741
2741
|
const deserializeAws_restJson1UninitializedAccountExceptionResponse = async (parsedOutput, context) => {
|
|
2742
2742
|
const contents = {};
|
|
2743
2743
|
const data = parsedOutput.body;
|
|
2744
2744
|
if (data.code !== undefined && data.code !== null) {
|
|
2745
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2745
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2746
2746
|
}
|
|
2747
2747
|
if (data.message !== undefined && data.message !== null) {
|
|
2748
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2748
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2749
2749
|
}
|
|
2750
2750
|
const exception = new models_0_1.UninitializedAccountException({
|
|
2751
2751
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2752
2752
|
...contents,
|
|
2753
2753
|
});
|
|
2754
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2754
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2755
2755
|
};
|
|
2756
2756
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2757
2757
|
const contents = {};
|
|
2758
2758
|
const data = parsedOutput.body;
|
|
2759
2759
|
if (data.code !== undefined && data.code !== null) {
|
|
2760
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2760
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2761
2761
|
}
|
|
2762
2762
|
if (data.fieldList !== undefined && data.fieldList !== null) {
|
|
2763
2763
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
2764
2764
|
}
|
|
2765
2765
|
if (data.message !== undefined && data.message !== null) {
|
|
2766
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2766
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2767
2767
|
}
|
|
2768
2768
|
if (data.reason !== undefined && data.reason !== null) {
|
|
2769
|
-
contents.reason = smithy_client_1.expectString(data.reason);
|
|
2769
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
2770
2770
|
}
|
|
2771
2771
|
const exception = new models_0_1.ValidationException({
|
|
2772
2772
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2773
2773
|
...contents,
|
|
2774
2774
|
});
|
|
2775
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2775
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2776
2776
|
};
|
|
2777
2777
|
const serializeAws_restJson1ChangeServerLifeCycleStateSourceServerLifecycle = (input, context) => {
|
|
2778
2778
|
return {
|
|
@@ -2934,8 +2934,8 @@ const serializeAws_restJson1TerminateTargetInstancesRequestSourceServerIDs = (in
|
|
|
2934
2934
|
};
|
|
2935
2935
|
const deserializeAws_restJson1CPU = (output, context) => {
|
|
2936
2936
|
return {
|
|
2937
|
-
cores: smithy_client_1.expectLong(output.cores),
|
|
2938
|
-
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),
|
|
2939
2939
|
};
|
|
2940
2940
|
};
|
|
2941
2941
|
const deserializeAws_restJson1Cpus = (output, context) => {
|
|
@@ -2951,8 +2951,8 @@ const deserializeAws_restJson1Cpus = (output, context) => {
|
|
|
2951
2951
|
};
|
|
2952
2952
|
const deserializeAws_restJson1DataReplicationError = (output, context) => {
|
|
2953
2953
|
return {
|
|
2954
|
-
error: smithy_client_1.expectString(output.error),
|
|
2955
|
-
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),
|
|
2956
2956
|
};
|
|
2957
2957
|
};
|
|
2958
2958
|
const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
@@ -2963,10 +2963,10 @@ const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
|
2963
2963
|
dataReplicationInitiation: output.dataReplicationInitiation !== undefined && output.dataReplicationInitiation !== null
|
|
2964
2964
|
? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
2965
2965
|
: undefined,
|
|
2966
|
-
dataReplicationState: smithy_client_1.expectString(output.dataReplicationState),
|
|
2967
|
-
etaDateTime: smithy_client_1.expectString(output.etaDateTime),
|
|
2968
|
-
lagDuration: smithy_client_1.expectString(output.lagDuration),
|
|
2969
|
-
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),
|
|
2970
2970
|
replicatedDisks: output.replicatedDisks !== undefined && output.replicatedDisks !== null
|
|
2971
2971
|
? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
2972
2972
|
: undefined,
|
|
@@ -2974,11 +2974,11 @@ const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
|
2974
2974
|
};
|
|
2975
2975
|
const deserializeAws_restJson1DataReplicationInfoReplicatedDisk = (output, context) => {
|
|
2976
2976
|
return {
|
|
2977
|
-
backloggedStorageBytes: smithy_client_1.expectLong(output.backloggedStorageBytes),
|
|
2978
|
-
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
2979
|
-
replicatedStorageBytes: smithy_client_1.expectLong(output.replicatedStorageBytes),
|
|
2980
|
-
rescannedStorageBytes: smithy_client_1.expectLong(output.rescannedStorageBytes),
|
|
2981
|
-
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),
|
|
2982
2982
|
};
|
|
2983
2983
|
};
|
|
2984
2984
|
const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = (output, context) => {
|
|
@@ -2994,8 +2994,8 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = (output, cont
|
|
|
2994
2994
|
};
|
|
2995
2995
|
const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
2996
2996
|
return {
|
|
2997
|
-
nextAttemptDateTime: smithy_client_1.expectString(output.nextAttemptDateTime),
|
|
2998
|
-
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),
|
|
2999
2999
|
steps: output.steps !== undefined && output.steps !== null
|
|
3000
3000
|
? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
|
|
3001
3001
|
: undefined,
|
|
@@ -3003,8 +3003,8 @@ const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
|
3003
3003
|
};
|
|
3004
3004
|
const deserializeAws_restJson1DataReplicationInitiationStep = (output, context) => {
|
|
3005
3005
|
return {
|
|
3006
|
-
name: smithy_client_1.expectString(output.name),
|
|
3007
|
-
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),
|
|
3008
3008
|
};
|
|
3009
3009
|
};
|
|
3010
3010
|
const deserializeAws_restJson1DataReplicationInitiationSteps = (output, context) => {
|
|
@@ -3020,8 +3020,8 @@ const deserializeAws_restJson1DataReplicationInitiationSteps = (output, context)
|
|
|
3020
3020
|
};
|
|
3021
3021
|
const deserializeAws_restJson1Disk = (output, context) => {
|
|
3022
3022
|
return {
|
|
3023
|
-
bytes: smithy_client_1.expectLong(output.bytes),
|
|
3024
|
-
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),
|
|
3025
3025
|
};
|
|
3026
3026
|
};
|
|
3027
3027
|
const deserializeAws_restJson1Disks = (output, context) => {
|
|
@@ -3037,11 +3037,11 @@ const deserializeAws_restJson1Disks = (output, context) => {
|
|
|
3037
3037
|
};
|
|
3038
3038
|
const deserializeAws_restJson1IdentificationHints = (output, context) => {
|
|
3039
3039
|
return {
|
|
3040
|
-
awsInstanceID: smithy_client_1.expectString(output.awsInstanceID),
|
|
3041
|
-
fqdn: smithy_client_1.expectString(output.fqdn),
|
|
3042
|
-
hostname: smithy_client_1.expectString(output.hostname),
|
|
3043
|
-
vmPath: smithy_client_1.expectString(output.vmPath),
|
|
3044
|
-
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),
|
|
3045
3045
|
};
|
|
3046
3046
|
};
|
|
3047
3047
|
const deserializeAws_restJson1IPsList = (output, context) => {
|
|
@@ -3051,42 +3051,42 @@ const deserializeAws_restJson1IPsList = (output, context) => {
|
|
|
3051
3051
|
if (entry === null) {
|
|
3052
3052
|
return null;
|
|
3053
3053
|
}
|
|
3054
|
-
return smithy_client_1.expectString(entry);
|
|
3054
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3055
3055
|
});
|
|
3056
3056
|
return retVal;
|
|
3057
3057
|
};
|
|
3058
3058
|
const deserializeAws_restJson1Job = (output, context) => {
|
|
3059
3059
|
return {
|
|
3060
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3061
|
-
creationDateTime: smithy_client_1.expectString(output.creationDateTime),
|
|
3062
|
-
endDateTime: smithy_client_1.expectString(output.endDateTime),
|
|
3063
|
-
initiatedBy: smithy_client_1.expectString(output.initiatedBy),
|
|
3064
|
-
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),
|
|
3065
3065
|
participatingServers: output.participatingServers !== undefined && output.participatingServers !== null
|
|
3066
3066
|
? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
|
|
3067
3067
|
: undefined,
|
|
3068
|
-
status: smithy_client_1.expectString(output.status),
|
|
3068
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3069
3069
|
tags: output.tags !== undefined && output.tags !== null
|
|
3070
3070
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3071
3071
|
: undefined,
|
|
3072
|
-
type: smithy_client_1.expectString(output.type),
|
|
3072
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
3073
3073
|
};
|
|
3074
3074
|
};
|
|
3075
3075
|
const deserializeAws_restJson1JobLog = (output, context) => {
|
|
3076
3076
|
return {
|
|
3077
|
-
event: smithy_client_1.expectString(output.event),
|
|
3077
|
+
event: (0, smithy_client_1.expectString)(output.event),
|
|
3078
3078
|
eventData: output.eventData !== undefined && output.eventData !== null
|
|
3079
3079
|
? deserializeAws_restJson1JobLogEventData(output.eventData, context)
|
|
3080
3080
|
: undefined,
|
|
3081
|
-
logDateTime: smithy_client_1.expectString(output.logDateTime),
|
|
3081
|
+
logDateTime: (0, smithy_client_1.expectString)(output.logDateTime),
|
|
3082
3082
|
};
|
|
3083
3083
|
};
|
|
3084
3084
|
const deserializeAws_restJson1JobLogEventData = (output, context) => {
|
|
3085
3085
|
return {
|
|
3086
|
-
conversionServerID: smithy_client_1.expectString(output.conversionServerID),
|
|
3087
|
-
rawError: smithy_client_1.expectString(output.rawError),
|
|
3088
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3089
|
-
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),
|
|
3090
3090
|
};
|
|
3091
3091
|
};
|
|
3092
3092
|
const deserializeAws_restJson1JobLogs = (output, context) => {
|
|
@@ -3113,29 +3113,29 @@ const deserializeAws_restJson1JobsList = (output, context) => {
|
|
|
3113
3113
|
};
|
|
3114
3114
|
const deserializeAws_restJson1LaunchedInstance = (output, context) => {
|
|
3115
3115
|
return {
|
|
3116
|
-
ec2InstanceID: smithy_client_1.expectString(output.ec2InstanceID),
|
|
3117
|
-
firstBoot: smithy_client_1.expectString(output.firstBoot),
|
|
3118
|
-
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),
|
|
3119
3119
|
};
|
|
3120
3120
|
};
|
|
3121
3121
|
const deserializeAws_restJson1Licensing = (output, context) => {
|
|
3122
3122
|
return {
|
|
3123
|
-
osByol: smithy_client_1.expectBoolean(output.osByol),
|
|
3123
|
+
osByol: (0, smithy_client_1.expectBoolean)(output.osByol),
|
|
3124
3124
|
};
|
|
3125
3125
|
};
|
|
3126
3126
|
const deserializeAws_restJson1LifeCycle = (output, context) => {
|
|
3127
3127
|
return {
|
|
3128
|
-
addedToServiceDateTime: smithy_client_1.expectString(output.addedToServiceDateTime),
|
|
3129
|
-
elapsedReplicationDuration: smithy_client_1.expectString(output.elapsedReplicationDuration),
|
|
3130
|
-
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),
|
|
3131
3131
|
lastCutover: output.lastCutover !== undefined && output.lastCutover !== null
|
|
3132
3132
|
? deserializeAws_restJson1LifeCycleLastCutover(output.lastCutover, context)
|
|
3133
3133
|
: undefined,
|
|
3134
|
-
lastSeenByServiceDateTime: smithy_client_1.expectString(output.lastSeenByServiceDateTime),
|
|
3134
|
+
lastSeenByServiceDateTime: (0, smithy_client_1.expectString)(output.lastSeenByServiceDateTime),
|
|
3135
3135
|
lastTest: output.lastTest !== undefined && output.lastTest !== null
|
|
3136
3136
|
? deserializeAws_restJson1LifeCycleLastTest(output.lastTest, context)
|
|
3137
3137
|
: undefined,
|
|
3138
|
-
state: smithy_client_1.expectString(output.state),
|
|
3138
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
3139
3139
|
};
|
|
3140
3140
|
};
|
|
3141
3141
|
const deserializeAws_restJson1LifeCycleLastCutover = (output, context) => {
|
|
@@ -3153,18 +3153,18 @@ const deserializeAws_restJson1LifeCycleLastCutover = (output, context) => {
|
|
|
3153
3153
|
};
|
|
3154
3154
|
const deserializeAws_restJson1LifeCycleLastCutoverFinalized = (output, context) => {
|
|
3155
3155
|
return {
|
|
3156
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3156
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3157
3157
|
};
|
|
3158
3158
|
};
|
|
3159
3159
|
const deserializeAws_restJson1LifeCycleLastCutoverInitiated = (output, context) => {
|
|
3160
3160
|
return {
|
|
3161
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3162
|
-
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),
|
|
3163
3163
|
};
|
|
3164
3164
|
};
|
|
3165
3165
|
const deserializeAws_restJson1LifeCycleLastCutoverReverted = (output, context) => {
|
|
3166
3166
|
return {
|
|
3167
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3167
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3168
3168
|
};
|
|
3169
3169
|
};
|
|
3170
3170
|
const deserializeAws_restJson1LifeCycleLastTest = (output, context) => {
|
|
@@ -3182,18 +3182,18 @@ const deserializeAws_restJson1LifeCycleLastTest = (output, context) => {
|
|
|
3182
3182
|
};
|
|
3183
3183
|
const deserializeAws_restJson1LifeCycleLastTestFinalized = (output, context) => {
|
|
3184
3184
|
return {
|
|
3185
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3185
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3186
3186
|
};
|
|
3187
3187
|
};
|
|
3188
3188
|
const deserializeAws_restJson1LifeCycleLastTestInitiated = (output, context) => {
|
|
3189
3189
|
return {
|
|
3190
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3191
|
-
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),
|
|
3192
3192
|
};
|
|
3193
3193
|
};
|
|
3194
3194
|
const deserializeAws_restJson1LifeCycleLastTestReverted = (output, context) => {
|
|
3195
3195
|
return {
|
|
3196
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3196
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3197
3197
|
};
|
|
3198
3198
|
};
|
|
3199
3199
|
const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
@@ -3201,8 +3201,8 @@ const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
|
3201
3201
|
ips: output.ips !== undefined && output.ips !== null
|
|
3202
3202
|
? deserializeAws_restJson1IPsList(output.ips, context)
|
|
3203
3203
|
: undefined,
|
|
3204
|
-
isPrimary: smithy_client_1.expectBoolean(output.isPrimary),
|
|
3205
|
-
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),
|
|
3206
3206
|
};
|
|
3207
3207
|
};
|
|
3208
3208
|
const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
@@ -3218,13 +3218,13 @@ const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
|
3218
3218
|
};
|
|
3219
3219
|
const deserializeAws_restJson1OS = (output, context) => {
|
|
3220
3220
|
return {
|
|
3221
|
-
fullString: smithy_client_1.expectString(output.fullString),
|
|
3221
|
+
fullString: (0, smithy_client_1.expectString)(output.fullString),
|
|
3222
3222
|
};
|
|
3223
3223
|
};
|
|
3224
3224
|
const deserializeAws_restJson1ParticipatingServer = (output, context) => {
|
|
3225
3225
|
return {
|
|
3226
|
-
launchStatus: smithy_client_1.expectString(output.launchStatus),
|
|
3227
|
-
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),
|
|
3228
3228
|
};
|
|
3229
3229
|
};
|
|
3230
3230
|
const deserializeAws_restJson1ParticipatingServers = (output, context) => {
|
|
@@ -3240,11 +3240,11 @@ const deserializeAws_restJson1ParticipatingServers = (output, context) => {
|
|
|
3240
3240
|
};
|
|
3241
3241
|
const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (output, context) => {
|
|
3242
3242
|
return {
|
|
3243
|
-
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
3244
|
-
iops: smithy_client_1.expectLong(output.iops),
|
|
3245
|
-
isBootDisk: smithy_client_1.expectBoolean(output.isBootDisk),
|
|
3246
|
-
stagingDiskType: smithy_client_1.expectString(output.stagingDiskType),
|
|
3247
|
-
throughput: smithy_client_1.expectLong(output.throughput),
|
|
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),
|
|
3248
3248
|
};
|
|
3249
3249
|
};
|
|
3250
3250
|
const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = (output, context) => {
|
|
@@ -3260,27 +3260,27 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = (output,
|
|
|
3260
3260
|
};
|
|
3261
3261
|
const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, context) => {
|
|
3262
3262
|
return {
|
|
3263
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3264
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean(output.associateDefaultSecurityGroup),
|
|
3265
|
-
bandwidthThrottling: smithy_client_1.expectLong(output.bandwidthThrottling),
|
|
3266
|
-
createPublicIP: smithy_client_1.expectBoolean(output.createPublicIP),
|
|
3267
|
-
dataPlaneRouting: smithy_client_1.expectString(output.dataPlaneRouting),
|
|
3268
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString(output.defaultLargeStagingDiskType),
|
|
3269
|
-
ebsEncryption: smithy_client_1.expectString(output.ebsEncryption),
|
|
3270
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString(output.ebsEncryptionKeyArn),
|
|
3271
|
-
replicationConfigurationTemplateID: smithy_client_1.expectString(output.replicationConfigurationTemplateID),
|
|
3272
|
-
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),
|
|
3273
3273
|
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs !== undefined && output.replicationServersSecurityGroupsIDs !== null
|
|
3274
3274
|
? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
|
|
3275
3275
|
: undefined,
|
|
3276
|
-
stagingAreaSubnetId: smithy_client_1.expectString(output.stagingAreaSubnetId),
|
|
3276
|
+
stagingAreaSubnetId: (0, smithy_client_1.expectString)(output.stagingAreaSubnetId),
|
|
3277
3277
|
stagingAreaTags: output.stagingAreaTags !== undefined && output.stagingAreaTags !== null
|
|
3278
3278
|
? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context)
|
|
3279
3279
|
: undefined,
|
|
3280
3280
|
tags: output.tags !== undefined && output.tags !== null
|
|
3281
3281
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3282
3282
|
: undefined,
|
|
3283
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean(output.useDedicatedReplicationServer),
|
|
3283
|
+
useDedicatedReplicationServer: (0, smithy_client_1.expectBoolean)(output.useDedicatedReplicationServer),
|
|
3284
3284
|
};
|
|
3285
3285
|
};
|
|
3286
3286
|
const deserializeAws_restJson1ReplicationConfigurationTemplates = (output, context) => {
|
|
@@ -3301,7 +3301,7 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
|
|
|
3301
3301
|
if (entry === null) {
|
|
3302
3302
|
return null;
|
|
3303
3303
|
}
|
|
3304
|
-
return smithy_client_1.expectString(entry);
|
|
3304
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3305
3305
|
});
|
|
3306
3306
|
return retVal;
|
|
3307
3307
|
};
|
|
@@ -3316,37 +3316,37 @@ const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
|
3316
3316
|
identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
|
|
3317
3317
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3318
3318
|
: undefined,
|
|
3319
|
-
lastUpdatedDateTime: smithy_client_1.expectString(output.lastUpdatedDateTime),
|
|
3319
|
+
lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
|
|
3320
3320
|
networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
|
|
3321
3321
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
3322
3322
|
: undefined,
|
|
3323
3323
|
os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3324
|
-
ramBytes: smithy_client_1.expectLong(output.ramBytes),
|
|
3325
|
-
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),
|
|
3326
3326
|
};
|
|
3327
3327
|
};
|
|
3328
3328
|
const deserializeAws_restJson1SourceServer = (output, context) => {
|
|
3329
3329
|
return {
|
|
3330
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3330
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3331
3331
|
dataReplicationInfo: output.dataReplicationInfo !== undefined && output.dataReplicationInfo !== null
|
|
3332
3332
|
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
3333
3333
|
: undefined,
|
|
3334
|
-
isArchived: smithy_client_1.expectBoolean(output.isArchived),
|
|
3334
|
+
isArchived: (0, smithy_client_1.expectBoolean)(output.isArchived),
|
|
3335
3335
|
launchedInstance: output.launchedInstance !== undefined && output.launchedInstance !== null
|
|
3336
3336
|
? deserializeAws_restJson1LaunchedInstance(output.launchedInstance, context)
|
|
3337
3337
|
: undefined,
|
|
3338
3338
|
lifeCycle: output.lifeCycle !== undefined && output.lifeCycle !== null
|
|
3339
3339
|
? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
|
|
3340
3340
|
: undefined,
|
|
3341
|
-
replicationType: smithy_client_1.expectString(output.replicationType),
|
|
3341
|
+
replicationType: (0, smithy_client_1.expectString)(output.replicationType),
|
|
3342
3342
|
sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
|
|
3343
3343
|
? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
|
|
3344
3344
|
: undefined,
|
|
3345
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3345
|
+
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3346
3346
|
tags: output.tags !== undefined && output.tags !== null
|
|
3347
3347
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3348
3348
|
: undefined,
|
|
3349
|
-
vcenterClientID: smithy_client_1.expectString(output.vcenterClientID),
|
|
3349
|
+
vcenterClientID: (0, smithy_client_1.expectString)(output.vcenterClientID),
|
|
3350
3350
|
};
|
|
3351
3351
|
};
|
|
3352
3352
|
const deserializeAws_restJson1SourceServersList = (output, context) => {
|
|
@@ -3367,14 +3367,14 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
3367
3367
|
}
|
|
3368
3368
|
return {
|
|
3369
3369
|
...acc,
|
|
3370
|
-
[key]: smithy_client_1.expectString(value),
|
|
3370
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3371
3371
|
};
|
|
3372
3372
|
}, {});
|
|
3373
3373
|
};
|
|
3374
3374
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
3375
3375
|
return {
|
|
3376
|
-
message: smithy_client_1.expectString(output.message),
|
|
3377
|
-
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),
|
|
3378
3378
|
};
|
|
3379
3379
|
};
|
|
3380
3380
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|
|
@@ -3390,18 +3390,18 @@ const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) =
|
|
|
3390
3390
|
};
|
|
3391
3391
|
const deserializeAws_restJson1VcenterClient = (output, context) => {
|
|
3392
3392
|
return {
|
|
3393
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3394
|
-
datacenterName: smithy_client_1.expectString(output.datacenterName),
|
|
3395
|
-
hostname: smithy_client_1.expectString(output.hostname),
|
|
3396
|
-
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),
|
|
3397
3397
|
sourceServerTags: output.sourceServerTags !== undefined && output.sourceServerTags !== null
|
|
3398
3398
|
? deserializeAws_restJson1TagsMap(output.sourceServerTags, context)
|
|
3399
3399
|
: undefined,
|
|
3400
3400
|
tags: output.tags !== undefined && output.tags !== null
|
|
3401
3401
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3402
3402
|
: undefined,
|
|
3403
|
-
vcenterClientID: smithy_client_1.expectString(output.vcenterClientID),
|
|
3404
|
-
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),
|
|
3405
3405
|
};
|
|
3406
3406
|
};
|
|
3407
3407
|
const deserializeAws_restJson1VcenterClientList = (output, context) => {
|