@aws-sdk/client-drs 3.54.0 → 3.56.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/DrsClient.js +13 -13
- package/dist-cjs/commands/CreateReplicationConfigurationTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteJobCommand.js +3 -3
- package/dist-cjs/commands/DeleteRecoveryInstanceCommand.js +3 -3
- package/dist-cjs/commands/DeleteReplicationConfigurationTemplateCommand.js +3 -3
- package/dist-cjs/commands/DeleteSourceServerCommand.js +3 -3
- package/dist-cjs/commands/DescribeJobLogItemsCommand.js +3 -3
- package/dist-cjs/commands/DescribeJobsCommand.js +3 -3
- package/dist-cjs/commands/DescribeRecoveryInstancesCommand.js +3 -3
- package/dist-cjs/commands/DescribeRecoverySnapshotsCommand.js +3 -3
- package/dist-cjs/commands/DescribeReplicationConfigurationTemplatesCommand.js +3 -3
- package/dist-cjs/commands/DescribeSourceServersCommand.js +3 -3
- package/dist-cjs/commands/DisconnectRecoveryInstanceCommand.js +3 -3
- package/dist-cjs/commands/DisconnectSourceServerCommand.js +3 -3
- package/dist-cjs/commands/GetFailbackReplicationConfigurationCommand.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/RetryDataReplicationCommand.js +3 -3
- package/dist-cjs/commands/StartFailbackLaunchCommand.js +3 -3
- package/dist-cjs/commands/StartRecoveryCommand.js +3 -3
- package/dist-cjs/commands/StopFailbackCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/TerminateRecoveryInstancesCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateFailbackReplicationConfigurationCommand.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/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_restJson1.js +288 -288
- 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/Drs.js +29 -29
- package/dist-es/pagination/DescribeJobLogItemsPaginator.js +4 -4
- package/dist-es/pagination/DescribeJobsPaginator.js +4 -4
- package/dist-es/pagination/DescribeRecoveryInstancesPaginator.js +4 -4
- package/dist-es/pagination/DescribeRecoverySnapshotsPaginator.js +4 -4
- package/dist-es/pagination/DescribeReplicationConfigurationTemplatesPaginator.js +4 -4
- package/dist-es/pagination/DescribeSourceServersPaginator.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
|
@@ -445,7 +445,7 @@ const serializeAws_restJson1ListTagsForResourceCommand = async (input, context)
|
|
|
445
445
|
if (labelValue.length <= 0) {
|
|
446
446
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
447
447
|
}
|
|
448
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
448
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
449
449
|
}
|
|
450
450
|
else {
|
|
451
451
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -570,7 +570,7 @@ const serializeAws_restJson1TagResourceCommand = async (input, context) => {
|
|
|
570
570
|
if (labelValue.length <= 0) {
|
|
571
571
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
572
572
|
}
|
|
573
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
573
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
574
574
|
}
|
|
575
575
|
else {
|
|
576
576
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -624,7 +624,7 @@ const serializeAws_restJson1UntagResourceCommand = async (input, context) => {
|
|
|
624
624
|
if (labelValue.length <= 0) {
|
|
625
625
|
throw new Error("Empty value provided for input HTTP label: resourceArn.");
|
|
626
626
|
}
|
|
627
|
-
resolvedPath = resolvedPath.replace("{resourceArn}", smithy_client_1.extendedEncodeURIComponent(labelValue));
|
|
627
|
+
resolvedPath = resolvedPath.replace("{resourceArn}", (0, smithy_client_1.extendedEncodeURIComponent)(labelValue));
|
|
628
628
|
}
|
|
629
629
|
else {
|
|
630
630
|
throw new Error("No value provided for input HTTP label: resourceArn.");
|
|
@@ -849,45 +849,45 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = as
|
|
|
849
849
|
tags: undefined,
|
|
850
850
|
useDedicatedReplicationServer: undefined,
|
|
851
851
|
};
|
|
852
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
852
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
853
853
|
if (data.arn !== undefined && data.arn !== null) {
|
|
854
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
854
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
855
855
|
}
|
|
856
856
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
857
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
857
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
858
858
|
}
|
|
859
859
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
860
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
860
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
861
861
|
}
|
|
862
862
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
863
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
863
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
864
864
|
}
|
|
865
865
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
866
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
866
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
867
867
|
}
|
|
868
868
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
869
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
869
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
870
870
|
}
|
|
871
871
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
872
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
872
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
873
873
|
}
|
|
874
874
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
875
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
875
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
876
876
|
}
|
|
877
877
|
if (data.pitPolicy !== undefined && data.pitPolicy !== null) {
|
|
878
878
|
contents.pitPolicy = deserializeAws_restJson1PITPolicy(data.pitPolicy, context);
|
|
879
879
|
}
|
|
880
880
|
if (data.replicationConfigurationTemplateID !== undefined && data.replicationConfigurationTemplateID !== null) {
|
|
881
|
-
contents.replicationConfigurationTemplateID = smithy_client_1.expectString(data.replicationConfigurationTemplateID);
|
|
881
|
+
contents.replicationConfigurationTemplateID = (0, smithy_client_1.expectString)(data.replicationConfigurationTemplateID);
|
|
882
882
|
}
|
|
883
883
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
884
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
884
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
885
885
|
}
|
|
886
886
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
887
887
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
888
888
|
}
|
|
889
889
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
890
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
890
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
891
891
|
}
|
|
892
892
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
893
893
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
@@ -896,7 +896,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommand = as
|
|
|
896
896
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
897
897
|
}
|
|
898
898
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
899
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
899
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
900
900
|
}
|
|
901
901
|
return Promise.resolve(contents);
|
|
902
902
|
};
|
|
@@ -935,7 +935,7 @@ const deserializeAws_restJson1CreateReplicationConfigurationTemplateCommandError
|
|
|
935
935
|
$fault: "client",
|
|
936
936
|
$metadata: deserializeMetadata(output),
|
|
937
937
|
});
|
|
938
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
938
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
939
939
|
}
|
|
940
940
|
};
|
|
941
941
|
const deserializeAws_restJson1DeleteJobCommand = async (output, context) => {
|
|
@@ -980,7 +980,7 @@ const deserializeAws_restJson1DeleteJobCommandError = async (output, context) =>
|
|
|
980
980
|
$fault: "client",
|
|
981
981
|
$metadata: deserializeMetadata(output),
|
|
982
982
|
});
|
|
983
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
983
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
984
984
|
}
|
|
985
985
|
};
|
|
986
986
|
const deserializeAws_restJson1DeleteRecoveryInstanceCommand = async (output, context) => {
|
|
@@ -1025,7 +1025,7 @@ const deserializeAws_restJson1DeleteRecoveryInstanceCommandError = async (output
|
|
|
1025
1025
|
$fault: "client",
|
|
1026
1026
|
$metadata: deserializeMetadata(output),
|
|
1027
1027
|
});
|
|
1028
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1028
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1029
1029
|
}
|
|
1030
1030
|
};
|
|
1031
1031
|
const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
@@ -1070,7 +1070,7 @@ const deserializeAws_restJson1DeleteReplicationConfigurationTemplateCommandError
|
|
|
1070
1070
|
$fault: "client",
|
|
1071
1071
|
$metadata: deserializeMetadata(output),
|
|
1072
1072
|
});
|
|
1073
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1073
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1074
1074
|
}
|
|
1075
1075
|
};
|
|
1076
1076
|
const deserializeAws_restJson1DeleteSourceServerCommand = async (output, context) => {
|
|
@@ -1115,7 +1115,7 @@ const deserializeAws_restJson1DeleteSourceServerCommandError = async (output, co
|
|
|
1115
1115
|
$fault: "client",
|
|
1116
1116
|
$metadata: deserializeMetadata(output),
|
|
1117
1117
|
});
|
|
1118
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1118
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1119
1119
|
}
|
|
1120
1120
|
};
|
|
1121
1121
|
const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, context) => {
|
|
@@ -1127,12 +1127,12 @@ const deserializeAws_restJson1DescribeJobLogItemsCommand = async (output, contex
|
|
|
1127
1127
|
items: undefined,
|
|
1128
1128
|
nextToken: undefined,
|
|
1129
1129
|
};
|
|
1130
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1130
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1131
1131
|
if (data.items !== undefined && data.items !== null) {
|
|
1132
1132
|
contents.items = deserializeAws_restJson1JobLogs(data.items, context);
|
|
1133
1133
|
}
|
|
1134
1134
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1135
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1135
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1136
1136
|
}
|
|
1137
1137
|
return Promise.resolve(contents);
|
|
1138
1138
|
};
|
|
@@ -1165,7 +1165,7 @@ const deserializeAws_restJson1DescribeJobLogItemsCommandError = async (output, c
|
|
|
1165
1165
|
$fault: "client",
|
|
1166
1166
|
$metadata: deserializeMetadata(output),
|
|
1167
1167
|
});
|
|
1168
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1168
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1169
1169
|
}
|
|
1170
1170
|
};
|
|
1171
1171
|
const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
@@ -1177,12 +1177,12 @@ const deserializeAws_restJson1DescribeJobsCommand = async (output, context) => {
|
|
|
1177
1177
|
items: undefined,
|
|
1178
1178
|
nextToken: undefined,
|
|
1179
1179
|
};
|
|
1180
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1180
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1181
1181
|
if (data.items !== undefined && data.items !== null) {
|
|
1182
1182
|
contents.items = deserializeAws_restJson1JobsList(data.items, context);
|
|
1183
1183
|
}
|
|
1184
1184
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1185
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1185
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1186
1186
|
}
|
|
1187
1187
|
return Promise.resolve(contents);
|
|
1188
1188
|
};
|
|
@@ -1215,7 +1215,7 @@ const deserializeAws_restJson1DescribeJobsCommandError = async (output, context)
|
|
|
1215
1215
|
$fault: "client",
|
|
1216
1216
|
$metadata: deserializeMetadata(output),
|
|
1217
1217
|
});
|
|
1218
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1218
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1219
1219
|
}
|
|
1220
1220
|
};
|
|
1221
1221
|
const deserializeAws_restJson1DescribeRecoveryInstancesCommand = async (output, context) => {
|
|
@@ -1227,12 +1227,12 @@ const deserializeAws_restJson1DescribeRecoveryInstancesCommand = async (output,
|
|
|
1227
1227
|
items: undefined,
|
|
1228
1228
|
nextToken: undefined,
|
|
1229
1229
|
};
|
|
1230
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1230
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1231
1231
|
if (data.items !== undefined && data.items !== null) {
|
|
1232
1232
|
contents.items = deserializeAws_restJson1DescribeRecoveryInstancesItems(data.items, context);
|
|
1233
1233
|
}
|
|
1234
1234
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1235
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1235
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1236
1236
|
}
|
|
1237
1237
|
return Promise.resolve(contents);
|
|
1238
1238
|
};
|
|
@@ -1265,7 +1265,7 @@ const deserializeAws_restJson1DescribeRecoveryInstancesCommandError = async (out
|
|
|
1265
1265
|
$fault: "client",
|
|
1266
1266
|
$metadata: deserializeMetadata(output),
|
|
1267
1267
|
});
|
|
1268
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1268
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1269
1269
|
}
|
|
1270
1270
|
};
|
|
1271
1271
|
const deserializeAws_restJson1DescribeRecoverySnapshotsCommand = async (output, context) => {
|
|
@@ -1277,12 +1277,12 @@ const deserializeAws_restJson1DescribeRecoverySnapshotsCommand = async (output,
|
|
|
1277
1277
|
items: undefined,
|
|
1278
1278
|
nextToken: undefined,
|
|
1279
1279
|
};
|
|
1280
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1280
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1281
1281
|
if (data.items !== undefined && data.items !== null) {
|
|
1282
1282
|
contents.items = deserializeAws_restJson1RecoverySnapshotsList(data.items, context);
|
|
1283
1283
|
}
|
|
1284
1284
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1285
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1285
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1286
1286
|
}
|
|
1287
1287
|
return Promise.resolve(contents);
|
|
1288
1288
|
};
|
|
@@ -1318,7 +1318,7 @@ const deserializeAws_restJson1DescribeRecoverySnapshotsCommandError = async (out
|
|
|
1318
1318
|
$fault: "client",
|
|
1319
1319
|
$metadata: deserializeMetadata(output),
|
|
1320
1320
|
});
|
|
1321
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1321
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1322
1322
|
}
|
|
1323
1323
|
};
|
|
1324
1324
|
const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand = async (output, context) => {
|
|
@@ -1330,12 +1330,12 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommand =
|
|
|
1330
1330
|
items: undefined,
|
|
1331
1331
|
nextToken: undefined,
|
|
1332
1332
|
};
|
|
1333
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1333
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1334
1334
|
if (data.items !== undefined && data.items !== null) {
|
|
1335
1335
|
contents.items = deserializeAws_restJson1ReplicationConfigurationTemplates(data.items, context);
|
|
1336
1336
|
}
|
|
1337
1337
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1338
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1338
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1339
1339
|
}
|
|
1340
1340
|
return Promise.resolve(contents);
|
|
1341
1341
|
};
|
|
@@ -1371,7 +1371,7 @@ const deserializeAws_restJson1DescribeReplicationConfigurationTemplatesCommandEr
|
|
|
1371
1371
|
$fault: "client",
|
|
1372
1372
|
$metadata: deserializeMetadata(output),
|
|
1373
1373
|
});
|
|
1374
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1374
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1375
1375
|
}
|
|
1376
1376
|
};
|
|
1377
1377
|
const deserializeAws_restJson1DescribeSourceServersCommand = async (output, context) => {
|
|
@@ -1383,12 +1383,12 @@ const deserializeAws_restJson1DescribeSourceServersCommand = async (output, cont
|
|
|
1383
1383
|
items: undefined,
|
|
1384
1384
|
nextToken: undefined,
|
|
1385
1385
|
};
|
|
1386
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1386
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1387
1387
|
if (data.items !== undefined && data.items !== null) {
|
|
1388
1388
|
contents.items = deserializeAws_restJson1SourceServersList(data.items, context);
|
|
1389
1389
|
}
|
|
1390
1390
|
if (data.nextToken !== undefined && data.nextToken !== null) {
|
|
1391
|
-
contents.nextToken = smithy_client_1.expectString(data.nextToken);
|
|
1391
|
+
contents.nextToken = (0, smithy_client_1.expectString)(data.nextToken);
|
|
1392
1392
|
}
|
|
1393
1393
|
return Promise.resolve(contents);
|
|
1394
1394
|
};
|
|
@@ -1421,7 +1421,7 @@ const deserializeAws_restJson1DescribeSourceServersCommandError = async (output,
|
|
|
1421
1421
|
$fault: "client",
|
|
1422
1422
|
$metadata: deserializeMetadata(output),
|
|
1423
1423
|
});
|
|
1424
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1424
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1425
1425
|
}
|
|
1426
1426
|
};
|
|
1427
1427
|
const deserializeAws_restJson1DisconnectRecoveryInstanceCommand = async (output, context) => {
|
|
@@ -1469,7 +1469,7 @@ const deserializeAws_restJson1DisconnectRecoveryInstanceCommandError = async (ou
|
|
|
1469
1469
|
$fault: "client",
|
|
1470
1470
|
$metadata: deserializeMetadata(output),
|
|
1471
1471
|
});
|
|
1472
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1472
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1473
1473
|
}
|
|
1474
1474
|
};
|
|
1475
1475
|
const deserializeAws_restJson1DisconnectSourceServerCommand = async (output, context) => {
|
|
@@ -1487,27 +1487,27 @@ const deserializeAws_restJson1DisconnectSourceServerCommand = async (output, con
|
|
|
1487
1487
|
sourceServerID: undefined,
|
|
1488
1488
|
tags: undefined,
|
|
1489
1489
|
};
|
|
1490
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1490
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1491
1491
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1492
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1492
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1493
1493
|
}
|
|
1494
1494
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1495
1495
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1496
1496
|
}
|
|
1497
1497
|
if (data.lastLaunchResult !== undefined && data.lastLaunchResult !== null) {
|
|
1498
|
-
contents.lastLaunchResult = smithy_client_1.expectString(data.lastLaunchResult);
|
|
1498
|
+
contents.lastLaunchResult = (0, smithy_client_1.expectString)(data.lastLaunchResult);
|
|
1499
1499
|
}
|
|
1500
1500
|
if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
|
|
1501
1501
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1502
1502
|
}
|
|
1503
1503
|
if (data.recoveryInstanceId !== undefined && data.recoveryInstanceId !== null) {
|
|
1504
|
-
contents.recoveryInstanceId = smithy_client_1.expectString(data.recoveryInstanceId);
|
|
1504
|
+
contents.recoveryInstanceId = (0, smithy_client_1.expectString)(data.recoveryInstanceId);
|
|
1505
1505
|
}
|
|
1506
1506
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1507
1507
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1508
1508
|
}
|
|
1509
1509
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1510
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1510
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1511
1511
|
}
|
|
1512
1512
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1513
1513
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
@@ -1546,7 +1546,7 @@ const deserializeAws_restJson1DisconnectSourceServerCommandError = async (output
|
|
|
1546
1546
|
$fault: "client",
|
|
1547
1547
|
$metadata: deserializeMetadata(output),
|
|
1548
1548
|
});
|
|
1549
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1549
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1550
1550
|
}
|
|
1551
1551
|
};
|
|
1552
1552
|
const deserializeAws_restJson1GetFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
@@ -1560,18 +1560,18 @@ const deserializeAws_restJson1GetFailbackReplicationConfigurationCommand = async
|
|
|
1560
1560
|
recoveryInstanceID: undefined,
|
|
1561
1561
|
usePrivateIP: undefined,
|
|
1562
1562
|
};
|
|
1563
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1563
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1564
1564
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
1565
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
1565
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
1566
1566
|
}
|
|
1567
1567
|
if (data.name !== undefined && data.name !== null) {
|
|
1568
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
1568
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1569
1569
|
}
|
|
1570
1570
|
if (data.recoveryInstanceID !== undefined && data.recoveryInstanceID !== null) {
|
|
1571
|
-
contents.recoveryInstanceID = smithy_client_1.expectString(data.recoveryInstanceID);
|
|
1571
|
+
contents.recoveryInstanceID = (0, smithy_client_1.expectString)(data.recoveryInstanceID);
|
|
1572
1572
|
}
|
|
1573
1573
|
if (data.usePrivateIP !== undefined && data.usePrivateIP !== null) {
|
|
1574
|
-
contents.usePrivateIP = smithy_client_1.expectBoolean(data.usePrivateIP);
|
|
1574
|
+
contents.usePrivateIP = (0, smithy_client_1.expectBoolean)(data.usePrivateIP);
|
|
1575
1575
|
}
|
|
1576
1576
|
return Promise.resolve(contents);
|
|
1577
1577
|
};
|
|
@@ -1604,7 +1604,7 @@ const deserializeAws_restJson1GetFailbackReplicationConfigurationCommandError =
|
|
|
1604
1604
|
$fault: "client",
|
|
1605
1605
|
$metadata: deserializeMetadata(output),
|
|
1606
1606
|
});
|
|
1607
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1607
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1608
1608
|
}
|
|
1609
1609
|
};
|
|
1610
1610
|
const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, context) => {
|
|
@@ -1622,30 +1622,30 @@ const deserializeAws_restJson1GetLaunchConfigurationCommand = async (output, con
|
|
|
1622
1622
|
sourceServerID: undefined,
|
|
1623
1623
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
1624
1624
|
};
|
|
1625
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1625
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1626
1626
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
1627
|
-
contents.copyPrivateIp = smithy_client_1.expectBoolean(data.copyPrivateIp);
|
|
1627
|
+
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
1628
1628
|
}
|
|
1629
1629
|
if (data.copyTags !== undefined && data.copyTags !== null) {
|
|
1630
|
-
contents.copyTags = smithy_client_1.expectBoolean(data.copyTags);
|
|
1630
|
+
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
1631
1631
|
}
|
|
1632
1632
|
if (data.ec2LaunchTemplateID !== undefined && data.ec2LaunchTemplateID !== null) {
|
|
1633
|
-
contents.ec2LaunchTemplateID = smithy_client_1.expectString(data.ec2LaunchTemplateID);
|
|
1633
|
+
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
1634
1634
|
}
|
|
1635
1635
|
if (data.launchDisposition !== undefined && data.launchDisposition !== null) {
|
|
1636
|
-
contents.launchDisposition = smithy_client_1.expectString(data.launchDisposition);
|
|
1636
|
+
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
1637
1637
|
}
|
|
1638
1638
|
if (data.licensing !== undefined && data.licensing !== null) {
|
|
1639
1639
|
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
1640
1640
|
}
|
|
1641
1641
|
if (data.name !== undefined && data.name !== null) {
|
|
1642
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
1642
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1643
1643
|
}
|
|
1644
1644
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1645
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1645
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1646
1646
|
}
|
|
1647
1647
|
if (data.targetInstanceTypeRightSizingMethod !== undefined && data.targetInstanceTypeRightSizingMethod !== null) {
|
|
1648
|
-
contents.targetInstanceTypeRightSizingMethod = smithy_client_1.expectString(data.targetInstanceTypeRightSizingMethod);
|
|
1648
|
+
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
1649
1649
|
}
|
|
1650
1650
|
return Promise.resolve(contents);
|
|
1651
1651
|
};
|
|
@@ -1678,7 +1678,7 @@ const deserializeAws_restJson1GetLaunchConfigurationCommandError = async (output
|
|
|
1678
1678
|
$fault: "client",
|
|
1679
1679
|
$metadata: deserializeMetadata(output),
|
|
1680
1680
|
});
|
|
1681
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1681
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1682
1682
|
}
|
|
1683
1683
|
};
|
|
1684
1684
|
const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output, context) => {
|
|
@@ -1704,30 +1704,30 @@ const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output
|
|
|
1704
1704
|
stagingAreaTags: undefined,
|
|
1705
1705
|
useDedicatedReplicationServer: undefined,
|
|
1706
1706
|
};
|
|
1707
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1707
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1708
1708
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
1709
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
1709
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
1710
1710
|
}
|
|
1711
1711
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
1712
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
1712
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
1713
1713
|
}
|
|
1714
1714
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
1715
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
1715
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
1716
1716
|
}
|
|
1717
1717
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
1718
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
1718
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
1719
1719
|
}
|
|
1720
1720
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
1721
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
1721
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
1722
1722
|
}
|
|
1723
1723
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
1724
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
1724
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
1725
1725
|
}
|
|
1726
1726
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
1727
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
1727
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
1728
1728
|
}
|
|
1729
1729
|
if (data.name !== undefined && data.name !== null) {
|
|
1730
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
1730
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
1731
1731
|
}
|
|
1732
1732
|
if (data.pitPolicy !== undefined && data.pitPolicy !== null) {
|
|
1733
1733
|
contents.pitPolicy = deserializeAws_restJson1PITPolicy(data.pitPolicy, context);
|
|
@@ -1736,22 +1736,22 @@ const deserializeAws_restJson1GetReplicationConfigurationCommand = async (output
|
|
|
1736
1736
|
contents.replicatedDisks = deserializeAws_restJson1ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
1737
1737
|
}
|
|
1738
1738
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
1739
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
1739
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
1740
1740
|
}
|
|
1741
1741
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
1742
1742
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
1743
1743
|
}
|
|
1744
1744
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1745
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1745
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1746
1746
|
}
|
|
1747
1747
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
1748
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
1748
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
1749
1749
|
}
|
|
1750
1750
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
1751
1751
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
1752
1752
|
}
|
|
1753
1753
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
1754
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
1754
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
1755
1755
|
}
|
|
1756
1756
|
return Promise.resolve(contents);
|
|
1757
1757
|
};
|
|
@@ -1784,7 +1784,7 @@ const deserializeAws_restJson1GetReplicationConfigurationCommandError = async (o
|
|
|
1784
1784
|
$fault: "client",
|
|
1785
1785
|
$metadata: deserializeMetadata(output),
|
|
1786
1786
|
});
|
|
1787
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1787
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1788
1788
|
}
|
|
1789
1789
|
};
|
|
1790
1790
|
const deserializeAws_restJson1InitializeServiceCommand = async (output, context) => {
|
|
@@ -1826,7 +1826,7 @@ const deserializeAws_restJson1InitializeServiceCommandError = async (output, con
|
|
|
1826
1826
|
$fault: "client",
|
|
1827
1827
|
$metadata: deserializeMetadata(output),
|
|
1828
1828
|
});
|
|
1829
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1829
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1830
1830
|
}
|
|
1831
1831
|
};
|
|
1832
1832
|
const deserializeAws_restJson1ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -1837,7 +1837,7 @@ const deserializeAws_restJson1ListTagsForResourceCommand = async (output, contex
|
|
|
1837
1837
|
$metadata: deserializeMetadata(output),
|
|
1838
1838
|
tags: undefined,
|
|
1839
1839
|
};
|
|
1840
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1840
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1841
1841
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1842
1842
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
1843
1843
|
}
|
|
@@ -1875,7 +1875,7 @@ const deserializeAws_restJson1ListTagsForResourceCommandError = async (output, c
|
|
|
1875
1875
|
$fault: "client",
|
|
1876
1876
|
$metadata: deserializeMetadata(output),
|
|
1877
1877
|
});
|
|
1878
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1878
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1879
1879
|
}
|
|
1880
1880
|
};
|
|
1881
1881
|
const deserializeAws_restJson1RetryDataReplicationCommand = async (output, context) => {
|
|
@@ -1893,27 +1893,27 @@ const deserializeAws_restJson1RetryDataReplicationCommand = async (output, conte
|
|
|
1893
1893
|
sourceServerID: undefined,
|
|
1894
1894
|
tags: undefined,
|
|
1895
1895
|
};
|
|
1896
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1896
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1897
1897
|
if (data.arn !== undefined && data.arn !== null) {
|
|
1898
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
1898
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
1899
1899
|
}
|
|
1900
1900
|
if (data.dataReplicationInfo !== undefined && data.dataReplicationInfo !== null) {
|
|
1901
1901
|
contents.dataReplicationInfo = deserializeAws_restJson1DataReplicationInfo(data.dataReplicationInfo, context);
|
|
1902
1902
|
}
|
|
1903
1903
|
if (data.lastLaunchResult !== undefined && data.lastLaunchResult !== null) {
|
|
1904
|
-
contents.lastLaunchResult = smithy_client_1.expectString(data.lastLaunchResult);
|
|
1904
|
+
contents.lastLaunchResult = (0, smithy_client_1.expectString)(data.lastLaunchResult);
|
|
1905
1905
|
}
|
|
1906
1906
|
if (data.lifeCycle !== undefined && data.lifeCycle !== null) {
|
|
1907
1907
|
contents.lifeCycle = deserializeAws_restJson1LifeCycle(data.lifeCycle, context);
|
|
1908
1908
|
}
|
|
1909
1909
|
if (data.recoveryInstanceId !== undefined && data.recoveryInstanceId !== null) {
|
|
1910
|
-
contents.recoveryInstanceId = smithy_client_1.expectString(data.recoveryInstanceId);
|
|
1910
|
+
contents.recoveryInstanceId = (0, smithy_client_1.expectString)(data.recoveryInstanceId);
|
|
1911
1911
|
}
|
|
1912
1912
|
if (data.sourceProperties !== undefined && data.sourceProperties !== null) {
|
|
1913
1913
|
contents.sourceProperties = deserializeAws_restJson1SourceProperties(data.sourceProperties, context);
|
|
1914
1914
|
}
|
|
1915
1915
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
1916
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
1916
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
1917
1917
|
}
|
|
1918
1918
|
if (data.tags !== undefined && data.tags !== null) {
|
|
1919
1919
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
@@ -1952,7 +1952,7 @@ const deserializeAws_restJson1RetryDataReplicationCommandError = async (output,
|
|
|
1952
1952
|
$fault: "client",
|
|
1953
1953
|
$metadata: deserializeMetadata(output),
|
|
1954
1954
|
});
|
|
1955
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
1955
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
1956
1956
|
}
|
|
1957
1957
|
};
|
|
1958
1958
|
const deserializeAws_restJson1StartFailbackLaunchCommand = async (output, context) => {
|
|
@@ -1963,7 +1963,7 @@ const deserializeAws_restJson1StartFailbackLaunchCommand = async (output, contex
|
|
|
1963
1963
|
$metadata: deserializeMetadata(output),
|
|
1964
1964
|
job: undefined,
|
|
1965
1965
|
};
|
|
1966
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
1966
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
1967
1967
|
if (data.job !== undefined && data.job !== null) {
|
|
1968
1968
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
1969
1969
|
}
|
|
@@ -2004,7 +2004,7 @@ const deserializeAws_restJson1StartFailbackLaunchCommandError = async (output, c
|
|
|
2004
2004
|
$fault: "client",
|
|
2005
2005
|
$metadata: deserializeMetadata(output),
|
|
2006
2006
|
});
|
|
2007
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2007
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2008
2008
|
}
|
|
2009
2009
|
};
|
|
2010
2010
|
const deserializeAws_restJson1StartRecoveryCommand = async (output, context) => {
|
|
@@ -2015,7 +2015,7 @@ const deserializeAws_restJson1StartRecoveryCommand = async (output, context) =>
|
|
|
2015
2015
|
$metadata: deserializeMetadata(output),
|
|
2016
2016
|
job: undefined,
|
|
2017
2017
|
};
|
|
2018
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2018
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2019
2019
|
if (data.job !== undefined && data.job !== null) {
|
|
2020
2020
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2021
2021
|
}
|
|
@@ -2053,7 +2053,7 @@ const deserializeAws_restJson1StartRecoveryCommandError = async (output, context
|
|
|
2053
2053
|
$fault: "client",
|
|
2054
2054
|
$metadata: deserializeMetadata(output),
|
|
2055
2055
|
});
|
|
2056
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2056
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2057
2057
|
}
|
|
2058
2058
|
};
|
|
2059
2059
|
const deserializeAws_restJson1StopFailbackCommand = async (output, context) => {
|
|
@@ -2095,7 +2095,7 @@ const deserializeAws_restJson1StopFailbackCommandError = async (output, context)
|
|
|
2095
2095
|
$fault: "client",
|
|
2096
2096
|
$metadata: deserializeMetadata(output),
|
|
2097
2097
|
});
|
|
2098
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2098
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2099
2099
|
}
|
|
2100
2100
|
};
|
|
2101
2101
|
const deserializeAws_restJson1TagResourceCommand = async (output, context) => {
|
|
@@ -2140,7 +2140,7 @@ const deserializeAws_restJson1TagResourceCommandError = async (output, context)
|
|
|
2140
2140
|
$fault: "client",
|
|
2141
2141
|
$metadata: deserializeMetadata(output),
|
|
2142
2142
|
});
|
|
2143
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2143
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2144
2144
|
}
|
|
2145
2145
|
};
|
|
2146
2146
|
const deserializeAws_restJson1TerminateRecoveryInstancesCommand = async (output, context) => {
|
|
@@ -2151,7 +2151,7 @@ const deserializeAws_restJson1TerminateRecoveryInstancesCommand = async (output,
|
|
|
2151
2151
|
$metadata: deserializeMetadata(output),
|
|
2152
2152
|
job: undefined,
|
|
2153
2153
|
};
|
|
2154
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2154
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2155
2155
|
if (data.job !== undefined && data.job !== null) {
|
|
2156
2156
|
contents.job = deserializeAws_restJson1Job(data.job, context);
|
|
2157
2157
|
}
|
|
@@ -2189,7 +2189,7 @@ const deserializeAws_restJson1TerminateRecoveryInstancesCommandError = async (ou
|
|
|
2189
2189
|
$fault: "client",
|
|
2190
2190
|
$metadata: deserializeMetadata(output),
|
|
2191
2191
|
});
|
|
2192
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2192
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2193
2193
|
}
|
|
2194
2194
|
};
|
|
2195
2195
|
const deserializeAws_restJson1UntagResourceCommand = async (output, context) => {
|
|
@@ -2234,7 +2234,7 @@ const deserializeAws_restJson1UntagResourceCommandError = async (output, context
|
|
|
2234
2234
|
$fault: "client",
|
|
2235
2235
|
$metadata: deserializeMetadata(output),
|
|
2236
2236
|
});
|
|
2237
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2237
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2238
2238
|
}
|
|
2239
2239
|
};
|
|
2240
2240
|
const deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommand = async (output, context) => {
|
|
@@ -2279,7 +2279,7 @@ const deserializeAws_restJson1UpdateFailbackReplicationConfigurationCommandError
|
|
|
2279
2279
|
$fault: "client",
|
|
2280
2280
|
$metadata: deserializeMetadata(output),
|
|
2281
2281
|
});
|
|
2282
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2282
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2283
2283
|
}
|
|
2284
2284
|
};
|
|
2285
2285
|
const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output, context) => {
|
|
@@ -2297,30 +2297,30 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommand = async (output,
|
|
|
2297
2297
|
sourceServerID: undefined,
|
|
2298
2298
|
targetInstanceTypeRightSizingMethod: undefined,
|
|
2299
2299
|
};
|
|
2300
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2300
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2301
2301
|
if (data.copyPrivateIp !== undefined && data.copyPrivateIp !== null) {
|
|
2302
|
-
contents.copyPrivateIp = smithy_client_1.expectBoolean(data.copyPrivateIp);
|
|
2302
|
+
contents.copyPrivateIp = (0, smithy_client_1.expectBoolean)(data.copyPrivateIp);
|
|
2303
2303
|
}
|
|
2304
2304
|
if (data.copyTags !== undefined && data.copyTags !== null) {
|
|
2305
|
-
contents.copyTags = smithy_client_1.expectBoolean(data.copyTags);
|
|
2305
|
+
contents.copyTags = (0, smithy_client_1.expectBoolean)(data.copyTags);
|
|
2306
2306
|
}
|
|
2307
2307
|
if (data.ec2LaunchTemplateID !== undefined && data.ec2LaunchTemplateID !== null) {
|
|
2308
|
-
contents.ec2LaunchTemplateID = smithy_client_1.expectString(data.ec2LaunchTemplateID);
|
|
2308
|
+
contents.ec2LaunchTemplateID = (0, smithy_client_1.expectString)(data.ec2LaunchTemplateID);
|
|
2309
2309
|
}
|
|
2310
2310
|
if (data.launchDisposition !== undefined && data.launchDisposition !== null) {
|
|
2311
|
-
contents.launchDisposition = smithy_client_1.expectString(data.launchDisposition);
|
|
2311
|
+
contents.launchDisposition = (0, smithy_client_1.expectString)(data.launchDisposition);
|
|
2312
2312
|
}
|
|
2313
2313
|
if (data.licensing !== undefined && data.licensing !== null) {
|
|
2314
2314
|
contents.licensing = deserializeAws_restJson1Licensing(data.licensing, context);
|
|
2315
2315
|
}
|
|
2316
2316
|
if (data.name !== undefined && data.name !== null) {
|
|
2317
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
2317
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2318
2318
|
}
|
|
2319
2319
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2320
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2320
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2321
2321
|
}
|
|
2322
2322
|
if (data.targetInstanceTypeRightSizingMethod !== undefined && data.targetInstanceTypeRightSizingMethod !== null) {
|
|
2323
|
-
contents.targetInstanceTypeRightSizingMethod = smithy_client_1.expectString(data.targetInstanceTypeRightSizingMethod);
|
|
2323
|
+
contents.targetInstanceTypeRightSizingMethod = (0, smithy_client_1.expectString)(data.targetInstanceTypeRightSizingMethod);
|
|
2324
2324
|
}
|
|
2325
2325
|
return Promise.resolve(contents);
|
|
2326
2326
|
};
|
|
@@ -2359,7 +2359,7 @@ const deserializeAws_restJson1UpdateLaunchConfigurationCommandError = async (out
|
|
|
2359
2359
|
$fault: "client",
|
|
2360
2360
|
$metadata: deserializeMetadata(output),
|
|
2361
2361
|
});
|
|
2362
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2362
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2363
2363
|
}
|
|
2364
2364
|
};
|
|
2365
2365
|
const deserializeAws_restJson1UpdateReplicationConfigurationCommand = async (output, context) => {
|
|
@@ -2385,30 +2385,30 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommand = async (out
|
|
|
2385
2385
|
stagingAreaTags: undefined,
|
|
2386
2386
|
useDedicatedReplicationServer: undefined,
|
|
2387
2387
|
};
|
|
2388
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2388
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2389
2389
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
2390
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
2390
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
2391
2391
|
}
|
|
2392
2392
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
2393
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
2393
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
2394
2394
|
}
|
|
2395
2395
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
2396
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
2396
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
2397
2397
|
}
|
|
2398
2398
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
2399
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
2399
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
2400
2400
|
}
|
|
2401
2401
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
2402
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
2402
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
2403
2403
|
}
|
|
2404
2404
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
2405
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
2405
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
2406
2406
|
}
|
|
2407
2407
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
2408
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
2408
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
2409
2409
|
}
|
|
2410
2410
|
if (data.name !== undefined && data.name !== null) {
|
|
2411
|
-
contents.name = smithy_client_1.expectString(data.name);
|
|
2411
|
+
contents.name = (0, smithy_client_1.expectString)(data.name);
|
|
2412
2412
|
}
|
|
2413
2413
|
if (data.pitPolicy !== undefined && data.pitPolicy !== null) {
|
|
2414
2414
|
contents.pitPolicy = deserializeAws_restJson1PITPolicy(data.pitPolicy, context);
|
|
@@ -2417,22 +2417,22 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommand = async (out
|
|
|
2417
2417
|
contents.replicatedDisks = deserializeAws_restJson1ReplicationConfigurationReplicatedDisks(data.replicatedDisks, context);
|
|
2418
2418
|
}
|
|
2419
2419
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
2420
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
2420
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
2421
2421
|
}
|
|
2422
2422
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
2423
2423
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2424
2424
|
}
|
|
2425
2425
|
if (data.sourceServerID !== undefined && data.sourceServerID !== null) {
|
|
2426
|
-
contents.sourceServerID = smithy_client_1.expectString(data.sourceServerID);
|
|
2426
|
+
contents.sourceServerID = (0, smithy_client_1.expectString)(data.sourceServerID);
|
|
2427
2427
|
}
|
|
2428
2428
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
2429
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
2429
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
2430
2430
|
}
|
|
2431
2431
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
2432
2432
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
2433
2433
|
}
|
|
2434
2434
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
2435
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
2435
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
2436
2436
|
}
|
|
2437
2437
|
return Promise.resolve(contents);
|
|
2438
2438
|
};
|
|
@@ -2474,7 +2474,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationCommandError = async
|
|
|
2474
2474
|
$fault: "client",
|
|
2475
2475
|
$metadata: deserializeMetadata(output),
|
|
2476
2476
|
});
|
|
2477
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2477
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2478
2478
|
}
|
|
2479
2479
|
};
|
|
2480
2480
|
const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = async (output, context) => {
|
|
@@ -2500,45 +2500,45 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = as
|
|
|
2500
2500
|
tags: undefined,
|
|
2501
2501
|
useDedicatedReplicationServer: undefined,
|
|
2502
2502
|
};
|
|
2503
|
-
const data = smithy_client_1.expectNonNull(smithy_client_1.expectObject(await parseBody(output.body, context)), "body");
|
|
2503
|
+
const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body");
|
|
2504
2504
|
if (data.arn !== undefined && data.arn !== null) {
|
|
2505
|
-
contents.arn = smithy_client_1.expectString(data.arn);
|
|
2505
|
+
contents.arn = (0, smithy_client_1.expectString)(data.arn);
|
|
2506
2506
|
}
|
|
2507
2507
|
if (data.associateDefaultSecurityGroup !== undefined && data.associateDefaultSecurityGroup !== null) {
|
|
2508
|
-
contents.associateDefaultSecurityGroup = smithy_client_1.expectBoolean(data.associateDefaultSecurityGroup);
|
|
2508
|
+
contents.associateDefaultSecurityGroup = (0, smithy_client_1.expectBoolean)(data.associateDefaultSecurityGroup);
|
|
2509
2509
|
}
|
|
2510
2510
|
if (data.bandwidthThrottling !== undefined && data.bandwidthThrottling !== null) {
|
|
2511
|
-
contents.bandwidthThrottling = smithy_client_1.expectLong(data.bandwidthThrottling);
|
|
2511
|
+
contents.bandwidthThrottling = (0, smithy_client_1.expectLong)(data.bandwidthThrottling);
|
|
2512
2512
|
}
|
|
2513
2513
|
if (data.createPublicIP !== undefined && data.createPublicIP !== null) {
|
|
2514
|
-
contents.createPublicIP = smithy_client_1.expectBoolean(data.createPublicIP);
|
|
2514
|
+
contents.createPublicIP = (0, smithy_client_1.expectBoolean)(data.createPublicIP);
|
|
2515
2515
|
}
|
|
2516
2516
|
if (data.dataPlaneRouting !== undefined && data.dataPlaneRouting !== null) {
|
|
2517
|
-
contents.dataPlaneRouting = smithy_client_1.expectString(data.dataPlaneRouting);
|
|
2517
|
+
contents.dataPlaneRouting = (0, smithy_client_1.expectString)(data.dataPlaneRouting);
|
|
2518
2518
|
}
|
|
2519
2519
|
if (data.defaultLargeStagingDiskType !== undefined && data.defaultLargeStagingDiskType !== null) {
|
|
2520
|
-
contents.defaultLargeStagingDiskType = smithy_client_1.expectString(data.defaultLargeStagingDiskType);
|
|
2520
|
+
contents.defaultLargeStagingDiskType = (0, smithy_client_1.expectString)(data.defaultLargeStagingDiskType);
|
|
2521
2521
|
}
|
|
2522
2522
|
if (data.ebsEncryption !== undefined && data.ebsEncryption !== null) {
|
|
2523
|
-
contents.ebsEncryption = smithy_client_1.expectString(data.ebsEncryption);
|
|
2523
|
+
contents.ebsEncryption = (0, smithy_client_1.expectString)(data.ebsEncryption);
|
|
2524
2524
|
}
|
|
2525
2525
|
if (data.ebsEncryptionKeyArn !== undefined && data.ebsEncryptionKeyArn !== null) {
|
|
2526
|
-
contents.ebsEncryptionKeyArn = smithy_client_1.expectString(data.ebsEncryptionKeyArn);
|
|
2526
|
+
contents.ebsEncryptionKeyArn = (0, smithy_client_1.expectString)(data.ebsEncryptionKeyArn);
|
|
2527
2527
|
}
|
|
2528
2528
|
if (data.pitPolicy !== undefined && data.pitPolicy !== null) {
|
|
2529
2529
|
contents.pitPolicy = deserializeAws_restJson1PITPolicy(data.pitPolicy, context);
|
|
2530
2530
|
}
|
|
2531
2531
|
if (data.replicationConfigurationTemplateID !== undefined && data.replicationConfigurationTemplateID !== null) {
|
|
2532
|
-
contents.replicationConfigurationTemplateID = smithy_client_1.expectString(data.replicationConfigurationTemplateID);
|
|
2532
|
+
contents.replicationConfigurationTemplateID = (0, smithy_client_1.expectString)(data.replicationConfigurationTemplateID);
|
|
2533
2533
|
}
|
|
2534
2534
|
if (data.replicationServerInstanceType !== undefined && data.replicationServerInstanceType !== null) {
|
|
2535
|
-
contents.replicationServerInstanceType = smithy_client_1.expectString(data.replicationServerInstanceType);
|
|
2535
|
+
contents.replicationServerInstanceType = (0, smithy_client_1.expectString)(data.replicationServerInstanceType);
|
|
2536
2536
|
}
|
|
2537
2537
|
if (data.replicationServersSecurityGroupsIDs !== undefined && data.replicationServersSecurityGroupsIDs !== null) {
|
|
2538
2538
|
contents.replicationServersSecurityGroupsIDs = deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(data.replicationServersSecurityGroupsIDs, context);
|
|
2539
2539
|
}
|
|
2540
2540
|
if (data.stagingAreaSubnetId !== undefined && data.stagingAreaSubnetId !== null) {
|
|
2541
|
-
contents.stagingAreaSubnetId = smithy_client_1.expectString(data.stagingAreaSubnetId);
|
|
2541
|
+
contents.stagingAreaSubnetId = (0, smithy_client_1.expectString)(data.stagingAreaSubnetId);
|
|
2542
2542
|
}
|
|
2543
2543
|
if (data.stagingAreaTags !== undefined && data.stagingAreaTags !== null) {
|
|
2544
2544
|
contents.stagingAreaTags = deserializeAws_restJson1TagsMap(data.stagingAreaTags, context);
|
|
@@ -2547,7 +2547,7 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommand = as
|
|
|
2547
2547
|
contents.tags = deserializeAws_restJson1TagsMap(data.tags, context);
|
|
2548
2548
|
}
|
|
2549
2549
|
if (data.useDedicatedReplicationServer !== undefined && data.useDedicatedReplicationServer !== null) {
|
|
2550
|
-
contents.useDedicatedReplicationServer = smithy_client_1.expectBoolean(data.useDedicatedReplicationServer);
|
|
2550
|
+
contents.useDedicatedReplicationServer = (0, smithy_client_1.expectBoolean)(data.useDedicatedReplicationServer);
|
|
2551
2551
|
}
|
|
2552
2552
|
return Promise.resolve(contents);
|
|
2553
2553
|
};
|
|
@@ -2586,107 +2586,107 @@ const deserializeAws_restJson1UpdateReplicationConfigurationTemplateCommandError
|
|
|
2586
2586
|
$fault: "client",
|
|
2587
2587
|
$metadata: deserializeMetadata(output),
|
|
2588
2588
|
});
|
|
2589
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
2589
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
2590
2590
|
}
|
|
2591
2591
|
};
|
|
2592
2592
|
const deserializeAws_restJson1AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
2593
2593
|
const contents = {};
|
|
2594
2594
|
const data = parsedOutput.body;
|
|
2595
2595
|
if (data.code !== undefined && data.code !== null) {
|
|
2596
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2596
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2597
2597
|
}
|
|
2598
2598
|
if (data.message !== undefined && data.message !== null) {
|
|
2599
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2599
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2600
2600
|
}
|
|
2601
2601
|
const exception = new models_0_1.AccessDeniedException({
|
|
2602
2602
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2603
2603
|
...contents,
|
|
2604
2604
|
});
|
|
2605
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2605
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2606
2606
|
};
|
|
2607
2607
|
const deserializeAws_restJson1ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
2608
2608
|
const contents = {};
|
|
2609
2609
|
const data = parsedOutput.body;
|
|
2610
2610
|
if (data.code !== undefined && data.code !== null) {
|
|
2611
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2611
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2612
2612
|
}
|
|
2613
2613
|
if (data.message !== undefined && data.message !== null) {
|
|
2614
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2614
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2615
2615
|
}
|
|
2616
2616
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2617
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2617
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2618
2618
|
}
|
|
2619
2619
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2620
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2620
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2621
2621
|
}
|
|
2622
2622
|
const exception = new models_0_1.ConflictException({
|
|
2623
2623
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2624
2624
|
...contents,
|
|
2625
2625
|
});
|
|
2626
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2626
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2627
2627
|
};
|
|
2628
2628
|
const deserializeAws_restJson1InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
2629
2629
|
const contents = {};
|
|
2630
2630
|
if (parsedOutput.headers["retry-after"] !== undefined) {
|
|
2631
|
-
contents.retryAfterSeconds = smithy_client_1.strictParseLong(parsedOutput.headers["retry-after"]);
|
|
2631
|
+
contents.retryAfterSeconds = (0, smithy_client_1.strictParseLong)(parsedOutput.headers["retry-after"]);
|
|
2632
2632
|
}
|
|
2633
2633
|
const data = parsedOutput.body;
|
|
2634
2634
|
if (data.message !== undefined && data.message !== null) {
|
|
2635
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2635
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2636
2636
|
}
|
|
2637
2637
|
const exception = new models_0_1.InternalServerException({
|
|
2638
2638
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2639
2639
|
...contents,
|
|
2640
2640
|
});
|
|
2641
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2641
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2642
2642
|
};
|
|
2643
2643
|
const deserializeAws_restJson1ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
2644
2644
|
const contents = {};
|
|
2645
2645
|
const data = parsedOutput.body;
|
|
2646
2646
|
if (data.code !== undefined && data.code !== null) {
|
|
2647
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2647
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2648
2648
|
}
|
|
2649
2649
|
if (data.message !== undefined && data.message !== null) {
|
|
2650
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2650
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2651
2651
|
}
|
|
2652
2652
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2653
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2653
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2654
2654
|
}
|
|
2655
2655
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2656
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2656
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2657
2657
|
}
|
|
2658
2658
|
const exception = new models_0_1.ResourceNotFoundException({
|
|
2659
2659
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2660
2660
|
...contents,
|
|
2661
2661
|
});
|
|
2662
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2662
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2663
2663
|
};
|
|
2664
2664
|
const deserializeAws_restJson1ServiceQuotaExceededExceptionResponse = async (parsedOutput, context) => {
|
|
2665
2665
|
const contents = {};
|
|
2666
2666
|
const data = parsedOutput.body;
|
|
2667
2667
|
if (data.code !== undefined && data.code !== null) {
|
|
2668
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2668
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2669
2669
|
}
|
|
2670
2670
|
if (data.message !== undefined && data.message !== null) {
|
|
2671
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2671
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2672
2672
|
}
|
|
2673
2673
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
2674
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
2674
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2675
2675
|
}
|
|
2676
2676
|
if (data.resourceId !== undefined && data.resourceId !== null) {
|
|
2677
|
-
contents.resourceId = smithy_client_1.expectString(data.resourceId);
|
|
2677
|
+
contents.resourceId = (0, smithy_client_1.expectString)(data.resourceId);
|
|
2678
2678
|
}
|
|
2679
2679
|
if (data.resourceType !== undefined && data.resourceType !== null) {
|
|
2680
|
-
contents.resourceType = smithy_client_1.expectString(data.resourceType);
|
|
2680
|
+
contents.resourceType = (0, smithy_client_1.expectString)(data.resourceType);
|
|
2681
2681
|
}
|
|
2682
2682
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
2683
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
2683
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2684
2684
|
}
|
|
2685
2685
|
const exception = new models_0_1.ServiceQuotaExceededException({
|
|
2686
2686
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2687
2687
|
...contents,
|
|
2688
2688
|
});
|
|
2689
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2689
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2690
2690
|
};
|
|
2691
2691
|
const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput, context) => {
|
|
2692
2692
|
const contents = {};
|
|
@@ -2695,55 +2695,55 @@ const deserializeAws_restJson1ThrottlingExceptionResponse = async (parsedOutput,
|
|
|
2695
2695
|
}
|
|
2696
2696
|
const data = parsedOutput.body;
|
|
2697
2697
|
if (data.message !== undefined && data.message !== null) {
|
|
2698
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2698
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2699
2699
|
}
|
|
2700
2700
|
if (data.quotaCode !== undefined && data.quotaCode !== null) {
|
|
2701
|
-
contents.quotaCode = smithy_client_1.expectString(data.quotaCode);
|
|
2701
|
+
contents.quotaCode = (0, smithy_client_1.expectString)(data.quotaCode);
|
|
2702
2702
|
}
|
|
2703
2703
|
if (data.serviceCode !== undefined && data.serviceCode !== null) {
|
|
2704
|
-
contents.serviceCode = smithy_client_1.expectString(data.serviceCode);
|
|
2704
|
+
contents.serviceCode = (0, smithy_client_1.expectString)(data.serviceCode);
|
|
2705
2705
|
}
|
|
2706
2706
|
const exception = new models_0_1.ThrottlingException({
|
|
2707
2707
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2708
2708
|
...contents,
|
|
2709
2709
|
});
|
|
2710
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2710
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2711
2711
|
};
|
|
2712
2712
|
const deserializeAws_restJson1UninitializedAccountExceptionResponse = async (parsedOutput, context) => {
|
|
2713
2713
|
const contents = {};
|
|
2714
2714
|
const data = parsedOutput.body;
|
|
2715
2715
|
if (data.code !== undefined && data.code !== null) {
|
|
2716
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2716
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2717
2717
|
}
|
|
2718
2718
|
if (data.message !== undefined && data.message !== null) {
|
|
2719
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2719
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2720
2720
|
}
|
|
2721
2721
|
const exception = new models_0_1.UninitializedAccountException({
|
|
2722
2722
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2723
2723
|
...contents,
|
|
2724
2724
|
});
|
|
2725
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2725
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2726
2726
|
};
|
|
2727
2727
|
const deserializeAws_restJson1ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
2728
2728
|
const contents = {};
|
|
2729
2729
|
const data = parsedOutput.body;
|
|
2730
2730
|
if (data.code !== undefined && data.code !== null) {
|
|
2731
|
-
contents.code = smithy_client_1.expectString(data.code);
|
|
2731
|
+
contents.code = (0, smithy_client_1.expectString)(data.code);
|
|
2732
2732
|
}
|
|
2733
2733
|
if (data.fieldList !== undefined && data.fieldList !== null) {
|
|
2734
2734
|
contents.fieldList = deserializeAws_restJson1ValidationExceptionFieldList(data.fieldList, context);
|
|
2735
2735
|
}
|
|
2736
2736
|
if (data.message !== undefined && data.message !== null) {
|
|
2737
|
-
contents.message = smithy_client_1.expectString(data.message);
|
|
2737
|
+
contents.message = (0, smithy_client_1.expectString)(data.message);
|
|
2738
2738
|
}
|
|
2739
2739
|
if (data.reason !== undefined && data.reason !== null) {
|
|
2740
|
-
contents.reason = smithy_client_1.expectString(data.reason);
|
|
2740
|
+
contents.reason = (0, smithy_client_1.expectString)(data.reason);
|
|
2741
2741
|
}
|
|
2742
2742
|
const exception = new models_0_1.ValidationException({
|
|
2743
2743
|
$metadata: deserializeMetadata(parsedOutput),
|
|
2744
2744
|
...contents,
|
|
2745
2745
|
});
|
|
2746
|
-
return smithy_client_1.decorateServiceException(exception, parsedOutput.body);
|
|
2746
|
+
return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body);
|
|
2747
2747
|
};
|
|
2748
2748
|
const serializeAws_restJson1DescribeJobsRequestFilters = (input, context) => {
|
|
2749
2749
|
return {
|
|
@@ -2938,8 +2938,8 @@ const serializeAws_restJson1TagsMap = (input, context) => {
|
|
|
2938
2938
|
};
|
|
2939
2939
|
const deserializeAws_restJson1CPU = (output, context) => {
|
|
2940
2940
|
return {
|
|
2941
|
-
cores: smithy_client_1.expectLong(output.cores),
|
|
2942
|
-
modelName: smithy_client_1.expectString(output.modelName),
|
|
2941
|
+
cores: (0, smithy_client_1.expectLong)(output.cores),
|
|
2942
|
+
modelName: (0, smithy_client_1.expectString)(output.modelName),
|
|
2943
2943
|
};
|
|
2944
2944
|
};
|
|
2945
2945
|
const deserializeAws_restJson1Cpus = (output, context) => {
|
|
@@ -2955,8 +2955,8 @@ const deserializeAws_restJson1Cpus = (output, context) => {
|
|
|
2955
2955
|
};
|
|
2956
2956
|
const deserializeAws_restJson1DataReplicationError = (output, context) => {
|
|
2957
2957
|
return {
|
|
2958
|
-
error: smithy_client_1.expectString(output.error),
|
|
2959
|
-
rawError: smithy_client_1.expectString(output.rawError),
|
|
2958
|
+
error: (0, smithy_client_1.expectString)(output.error),
|
|
2959
|
+
rawError: (0, smithy_client_1.expectString)(output.rawError),
|
|
2960
2960
|
};
|
|
2961
2961
|
};
|
|
2962
2962
|
const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
@@ -2967,9 +2967,9 @@ const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
|
2967
2967
|
dataReplicationInitiation: output.dataReplicationInitiation !== undefined && output.dataReplicationInitiation !== null
|
|
2968
2968
|
? deserializeAws_restJson1DataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
2969
2969
|
: undefined,
|
|
2970
|
-
dataReplicationState: smithy_client_1.expectString(output.dataReplicationState),
|
|
2971
|
-
etaDateTime: smithy_client_1.expectString(output.etaDateTime),
|
|
2972
|
-
lagDuration: smithy_client_1.expectString(output.lagDuration),
|
|
2970
|
+
dataReplicationState: (0, smithy_client_1.expectString)(output.dataReplicationState),
|
|
2971
|
+
etaDateTime: (0, smithy_client_1.expectString)(output.etaDateTime),
|
|
2972
|
+
lagDuration: (0, smithy_client_1.expectString)(output.lagDuration),
|
|
2973
2973
|
replicatedDisks: output.replicatedDisks !== undefined && output.replicatedDisks !== null
|
|
2974
2974
|
? deserializeAws_restJson1DataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
2975
2975
|
: undefined,
|
|
@@ -2977,11 +2977,11 @@ const deserializeAws_restJson1DataReplicationInfo = (output, context) => {
|
|
|
2977
2977
|
};
|
|
2978
2978
|
const deserializeAws_restJson1DataReplicationInfoReplicatedDisk = (output, context) => {
|
|
2979
2979
|
return {
|
|
2980
|
-
backloggedStorageBytes: smithy_client_1.expectLong(output.backloggedStorageBytes),
|
|
2981
|
-
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
2982
|
-
replicatedStorageBytes: smithy_client_1.expectLong(output.replicatedStorageBytes),
|
|
2983
|
-
rescannedStorageBytes: smithy_client_1.expectLong(output.rescannedStorageBytes),
|
|
2984
|
-
totalStorageBytes: smithy_client_1.expectLong(output.totalStorageBytes),
|
|
2980
|
+
backloggedStorageBytes: (0, smithy_client_1.expectLong)(output.backloggedStorageBytes),
|
|
2981
|
+
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
2982
|
+
replicatedStorageBytes: (0, smithy_client_1.expectLong)(output.replicatedStorageBytes),
|
|
2983
|
+
rescannedStorageBytes: (0, smithy_client_1.expectLong)(output.rescannedStorageBytes),
|
|
2984
|
+
totalStorageBytes: (0, smithy_client_1.expectLong)(output.totalStorageBytes),
|
|
2985
2985
|
};
|
|
2986
2986
|
};
|
|
2987
2987
|
const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = (output, context) => {
|
|
@@ -2997,8 +2997,8 @@ const deserializeAws_restJson1DataReplicationInfoReplicatedDisks = (output, cont
|
|
|
2997
2997
|
};
|
|
2998
2998
|
const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
2999
2999
|
return {
|
|
3000
|
-
nextAttemptDateTime: smithy_client_1.expectString(output.nextAttemptDateTime),
|
|
3001
|
-
startDateTime: smithy_client_1.expectString(output.startDateTime),
|
|
3000
|
+
nextAttemptDateTime: (0, smithy_client_1.expectString)(output.nextAttemptDateTime),
|
|
3001
|
+
startDateTime: (0, smithy_client_1.expectString)(output.startDateTime),
|
|
3002
3002
|
steps: output.steps !== undefined && output.steps !== null
|
|
3003
3003
|
? deserializeAws_restJson1DataReplicationInitiationSteps(output.steps, context)
|
|
3004
3004
|
: undefined,
|
|
@@ -3006,8 +3006,8 @@ const deserializeAws_restJson1DataReplicationInitiation = (output, context) => {
|
|
|
3006
3006
|
};
|
|
3007
3007
|
const deserializeAws_restJson1DataReplicationInitiationStep = (output, context) => {
|
|
3008
3008
|
return {
|
|
3009
|
-
name: smithy_client_1.expectString(output.name),
|
|
3010
|
-
status: smithy_client_1.expectString(output.status),
|
|
3009
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
3010
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3011
3011
|
};
|
|
3012
3012
|
};
|
|
3013
3013
|
const deserializeAws_restJson1DataReplicationInitiationSteps = (output, context) => {
|
|
@@ -3034,8 +3034,8 @@ const deserializeAws_restJson1DescribeRecoveryInstancesItems = (output, context)
|
|
|
3034
3034
|
};
|
|
3035
3035
|
const deserializeAws_restJson1Disk = (output, context) => {
|
|
3036
3036
|
return {
|
|
3037
|
-
bytes: smithy_client_1.expectLong(output.bytes),
|
|
3038
|
-
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
3037
|
+
bytes: (0, smithy_client_1.expectLong)(output.bytes),
|
|
3038
|
+
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
3039
3039
|
};
|
|
3040
3040
|
};
|
|
3041
3041
|
const deserializeAws_restJson1Disks = (output, context) => {
|
|
@@ -3056,16 +3056,16 @@ const deserializeAws_restJson1EbsSnapshotsList = (output, context) => {
|
|
|
3056
3056
|
if (entry === null) {
|
|
3057
3057
|
return null;
|
|
3058
3058
|
}
|
|
3059
|
-
return smithy_client_1.expectString(entry);
|
|
3059
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3060
3060
|
});
|
|
3061
3061
|
return retVal;
|
|
3062
3062
|
};
|
|
3063
3063
|
const deserializeAws_restJson1IdentificationHints = (output, context) => {
|
|
3064
3064
|
return {
|
|
3065
|
-
awsInstanceID: smithy_client_1.expectString(output.awsInstanceID),
|
|
3066
|
-
fqdn: smithy_client_1.expectString(output.fqdn),
|
|
3067
|
-
hostname: smithy_client_1.expectString(output.hostname),
|
|
3068
|
-
vmWareUuid: smithy_client_1.expectString(output.vmWareUuid),
|
|
3065
|
+
awsInstanceID: (0, smithy_client_1.expectString)(output.awsInstanceID),
|
|
3066
|
+
fqdn: (0, smithy_client_1.expectString)(output.fqdn),
|
|
3067
|
+
hostname: (0, smithy_client_1.expectString)(output.hostname),
|
|
3068
|
+
vmWareUuid: (0, smithy_client_1.expectString)(output.vmWareUuid),
|
|
3069
3069
|
};
|
|
3070
3070
|
};
|
|
3071
3071
|
const deserializeAws_restJson1IPsList = (output, context) => {
|
|
@@ -3075,42 +3075,42 @@ const deserializeAws_restJson1IPsList = (output, context) => {
|
|
|
3075
3075
|
if (entry === null) {
|
|
3076
3076
|
return null;
|
|
3077
3077
|
}
|
|
3078
|
-
return smithy_client_1.expectString(entry);
|
|
3078
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3079
3079
|
});
|
|
3080
3080
|
return retVal;
|
|
3081
3081
|
};
|
|
3082
3082
|
const deserializeAws_restJson1Job = (output, context) => {
|
|
3083
3083
|
return {
|
|
3084
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3085
|
-
creationDateTime: smithy_client_1.expectString(output.creationDateTime),
|
|
3086
|
-
endDateTime: smithy_client_1.expectString(output.endDateTime),
|
|
3087
|
-
initiatedBy: smithy_client_1.expectString(output.initiatedBy),
|
|
3088
|
-
jobID: smithy_client_1.expectString(output.jobID),
|
|
3084
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3085
|
+
creationDateTime: (0, smithy_client_1.expectString)(output.creationDateTime),
|
|
3086
|
+
endDateTime: (0, smithy_client_1.expectString)(output.endDateTime),
|
|
3087
|
+
initiatedBy: (0, smithy_client_1.expectString)(output.initiatedBy),
|
|
3088
|
+
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3089
3089
|
participatingServers: output.participatingServers !== undefined && output.participatingServers !== null
|
|
3090
3090
|
? deserializeAws_restJson1ParticipatingServers(output.participatingServers, context)
|
|
3091
3091
|
: undefined,
|
|
3092
|
-
status: smithy_client_1.expectString(output.status),
|
|
3092
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3093
3093
|
tags: output.tags !== undefined && output.tags !== null
|
|
3094
3094
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3095
3095
|
: undefined,
|
|
3096
|
-
type: smithy_client_1.expectString(output.type),
|
|
3096
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
3097
3097
|
};
|
|
3098
3098
|
};
|
|
3099
3099
|
const deserializeAws_restJson1JobLog = (output, context) => {
|
|
3100
3100
|
return {
|
|
3101
|
-
event: smithy_client_1.expectString(output.event),
|
|
3101
|
+
event: (0, smithy_client_1.expectString)(output.event),
|
|
3102
3102
|
eventData: output.eventData !== undefined && output.eventData !== null
|
|
3103
3103
|
? deserializeAws_restJson1JobLogEventData(output.eventData, context)
|
|
3104
3104
|
: undefined,
|
|
3105
|
-
logDateTime: smithy_client_1.expectString(output.logDateTime),
|
|
3105
|
+
logDateTime: (0, smithy_client_1.expectString)(output.logDateTime),
|
|
3106
3106
|
};
|
|
3107
3107
|
};
|
|
3108
3108
|
const deserializeAws_restJson1JobLogEventData = (output, context) => {
|
|
3109
3109
|
return {
|
|
3110
|
-
conversionServerID: smithy_client_1.expectString(output.conversionServerID),
|
|
3111
|
-
rawError: smithy_client_1.expectString(output.rawError),
|
|
3112
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3113
|
-
targetInstanceID: smithy_client_1.expectString(output.targetInstanceID),
|
|
3110
|
+
conversionServerID: (0, smithy_client_1.expectString)(output.conversionServerID),
|
|
3111
|
+
rawError: (0, smithy_client_1.expectString)(output.rawError),
|
|
3112
|
+
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3113
|
+
targetInstanceID: (0, smithy_client_1.expectString)(output.targetInstanceID),
|
|
3114
3114
|
};
|
|
3115
3115
|
};
|
|
3116
3116
|
const deserializeAws_restJson1JobLogs = (output, context) => {
|
|
@@ -3137,18 +3137,18 @@ const deserializeAws_restJson1JobsList = (output, context) => {
|
|
|
3137
3137
|
};
|
|
3138
3138
|
const deserializeAws_restJson1Licensing = (output, context) => {
|
|
3139
3139
|
return {
|
|
3140
|
-
osByol: smithy_client_1.expectBoolean(output.osByol),
|
|
3140
|
+
osByol: (0, smithy_client_1.expectBoolean)(output.osByol),
|
|
3141
3141
|
};
|
|
3142
3142
|
};
|
|
3143
3143
|
const deserializeAws_restJson1LifeCycle = (output, context) => {
|
|
3144
3144
|
return {
|
|
3145
|
-
addedToServiceDateTime: smithy_client_1.expectString(output.addedToServiceDateTime),
|
|
3146
|
-
elapsedReplicationDuration: smithy_client_1.expectString(output.elapsedReplicationDuration),
|
|
3147
|
-
firstByteDateTime: smithy_client_1.expectString(output.firstByteDateTime),
|
|
3145
|
+
addedToServiceDateTime: (0, smithy_client_1.expectString)(output.addedToServiceDateTime),
|
|
3146
|
+
elapsedReplicationDuration: (0, smithy_client_1.expectString)(output.elapsedReplicationDuration),
|
|
3147
|
+
firstByteDateTime: (0, smithy_client_1.expectString)(output.firstByteDateTime),
|
|
3148
3148
|
lastLaunch: output.lastLaunch !== undefined && output.lastLaunch !== null
|
|
3149
3149
|
? deserializeAws_restJson1LifeCycleLastLaunch(output.lastLaunch, context)
|
|
3150
3150
|
: undefined,
|
|
3151
|
-
lastSeenByServiceDateTime: smithy_client_1.expectString(output.lastSeenByServiceDateTime),
|
|
3151
|
+
lastSeenByServiceDateTime: (0, smithy_client_1.expectString)(output.lastSeenByServiceDateTime),
|
|
3152
3152
|
};
|
|
3153
3153
|
};
|
|
3154
3154
|
const deserializeAws_restJson1LifeCycleLastLaunch = (output, context) => {
|
|
@@ -3160,9 +3160,9 @@ const deserializeAws_restJson1LifeCycleLastLaunch = (output, context) => {
|
|
|
3160
3160
|
};
|
|
3161
3161
|
const deserializeAws_restJson1LifeCycleLastLaunchInitiated = (output, context) => {
|
|
3162
3162
|
return {
|
|
3163
|
-
apiCallDateTime: smithy_client_1.expectString(output.apiCallDateTime),
|
|
3164
|
-
jobID: smithy_client_1.expectString(output.jobID),
|
|
3165
|
-
type: smithy_client_1.expectString(output.type),
|
|
3163
|
+
apiCallDateTime: (0, smithy_client_1.expectString)(output.apiCallDateTime),
|
|
3164
|
+
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3165
|
+
type: (0, smithy_client_1.expectString)(output.type),
|
|
3166
3166
|
};
|
|
3167
3167
|
};
|
|
3168
3168
|
const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
@@ -3170,8 +3170,8 @@ const deserializeAws_restJson1NetworkInterface = (output, context) => {
|
|
|
3170
3170
|
ips: output.ips !== undefined && output.ips !== null
|
|
3171
3171
|
? deserializeAws_restJson1IPsList(output.ips, context)
|
|
3172
3172
|
: undefined,
|
|
3173
|
-
isPrimary: smithy_client_1.expectBoolean(output.isPrimary),
|
|
3174
|
-
macAddress: smithy_client_1.expectString(output.macAddress),
|
|
3173
|
+
isPrimary: (0, smithy_client_1.expectBoolean)(output.isPrimary),
|
|
3174
|
+
macAddress: (0, smithy_client_1.expectString)(output.macAddress),
|
|
3175
3175
|
};
|
|
3176
3176
|
};
|
|
3177
3177
|
const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
@@ -3187,14 +3187,14 @@ const deserializeAws_restJson1NetworkInterfaces = (output, context) => {
|
|
|
3187
3187
|
};
|
|
3188
3188
|
const deserializeAws_restJson1OS = (output, context) => {
|
|
3189
3189
|
return {
|
|
3190
|
-
fullString: smithy_client_1.expectString(output.fullString),
|
|
3190
|
+
fullString: (0, smithy_client_1.expectString)(output.fullString),
|
|
3191
3191
|
};
|
|
3192
3192
|
};
|
|
3193
3193
|
const deserializeAws_restJson1ParticipatingServer = (output, context) => {
|
|
3194
3194
|
return {
|
|
3195
|
-
launchStatus: smithy_client_1.expectString(output.launchStatus),
|
|
3196
|
-
recoveryInstanceID: smithy_client_1.expectString(output.recoveryInstanceID),
|
|
3197
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3195
|
+
launchStatus: (0, smithy_client_1.expectString)(output.launchStatus),
|
|
3196
|
+
recoveryInstanceID: (0, smithy_client_1.expectString)(output.recoveryInstanceID),
|
|
3197
|
+
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3198
3198
|
};
|
|
3199
3199
|
};
|
|
3200
3200
|
const deserializeAws_restJson1ParticipatingServers = (output, context) => {
|
|
@@ -3221,32 +3221,32 @@ const deserializeAws_restJson1PITPolicy = (output, context) => {
|
|
|
3221
3221
|
};
|
|
3222
3222
|
const deserializeAws_restJson1PITPolicyRule = (output, context) => {
|
|
3223
3223
|
return {
|
|
3224
|
-
enabled: smithy_client_1.expectBoolean(output.enabled),
|
|
3225
|
-
interval: smithy_client_1.expectInt32(output.interval),
|
|
3226
|
-
retentionDuration: smithy_client_1.expectInt32(output.retentionDuration),
|
|
3227
|
-
ruleID: smithy_client_1.expectLong(output.ruleID),
|
|
3228
|
-
units: smithy_client_1.expectString(output.units),
|
|
3224
|
+
enabled: (0, smithy_client_1.expectBoolean)(output.enabled),
|
|
3225
|
+
interval: (0, smithy_client_1.expectInt32)(output.interval),
|
|
3226
|
+
retentionDuration: (0, smithy_client_1.expectInt32)(output.retentionDuration),
|
|
3227
|
+
ruleID: (0, smithy_client_1.expectLong)(output.ruleID),
|
|
3228
|
+
units: (0, smithy_client_1.expectString)(output.units),
|
|
3229
3229
|
};
|
|
3230
3230
|
};
|
|
3231
3231
|
const deserializeAws_restJson1RecoveryInstance = (output, context) => {
|
|
3232
3232
|
return {
|
|
3233
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3233
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3234
3234
|
dataReplicationInfo: output.dataReplicationInfo !== undefined && output.dataReplicationInfo !== null
|
|
3235
3235
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInfo(output.dataReplicationInfo, context)
|
|
3236
3236
|
: undefined,
|
|
3237
|
-
ec2InstanceID: smithy_client_1.expectString(output.ec2InstanceID),
|
|
3238
|
-
ec2InstanceState: smithy_client_1.expectString(output.ec2InstanceState),
|
|
3237
|
+
ec2InstanceID: (0, smithy_client_1.expectString)(output.ec2InstanceID),
|
|
3238
|
+
ec2InstanceState: (0, smithy_client_1.expectString)(output.ec2InstanceState),
|
|
3239
3239
|
failback: output.failback !== undefined && output.failback !== null
|
|
3240
3240
|
? deserializeAws_restJson1RecoveryInstanceFailback(output.failback, context)
|
|
3241
3241
|
: undefined,
|
|
3242
|
-
isDrill: smithy_client_1.expectBoolean(output.isDrill),
|
|
3243
|
-
jobID: smithy_client_1.expectString(output.jobID),
|
|
3244
|
-
pointInTimeSnapshotDateTime: smithy_client_1.expectString(output.pointInTimeSnapshotDateTime),
|
|
3245
|
-
recoveryInstanceID: smithy_client_1.expectString(output.recoveryInstanceID),
|
|
3242
|
+
isDrill: (0, smithy_client_1.expectBoolean)(output.isDrill),
|
|
3243
|
+
jobID: (0, smithy_client_1.expectString)(output.jobID),
|
|
3244
|
+
pointInTimeSnapshotDateTime: (0, smithy_client_1.expectString)(output.pointInTimeSnapshotDateTime),
|
|
3245
|
+
recoveryInstanceID: (0, smithy_client_1.expectString)(output.recoveryInstanceID),
|
|
3246
3246
|
recoveryInstanceProperties: output.recoveryInstanceProperties !== undefined && output.recoveryInstanceProperties !== null
|
|
3247
3247
|
? deserializeAws_restJson1RecoveryInstanceProperties(output.recoveryInstanceProperties, context)
|
|
3248
3248
|
: undefined,
|
|
3249
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3249
|
+
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3250
3250
|
tags: output.tags !== undefined && output.tags !== null
|
|
3251
3251
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3252
3252
|
: undefined,
|
|
@@ -3254,8 +3254,8 @@ const deserializeAws_restJson1RecoveryInstance = (output, context) => {
|
|
|
3254
3254
|
};
|
|
3255
3255
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationError = (output, context) => {
|
|
3256
3256
|
return {
|
|
3257
|
-
error: smithy_client_1.expectString(output.error),
|
|
3258
|
-
rawError: smithy_client_1.expectString(output.rawError),
|
|
3257
|
+
error: (0, smithy_client_1.expectString)(output.error),
|
|
3258
|
+
rawError: (0, smithy_client_1.expectString)(output.rawError),
|
|
3259
3259
|
};
|
|
3260
3260
|
};
|
|
3261
3261
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInfo = (output, context) => {
|
|
@@ -3266,9 +3266,9 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfo = (output, con
|
|
|
3266
3266
|
dataReplicationInitiation: output.dataReplicationInitiation !== undefined && output.dataReplicationInitiation !== null
|
|
3267
3267
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation(output.dataReplicationInitiation, context)
|
|
3268
3268
|
: undefined,
|
|
3269
|
-
dataReplicationState: smithy_client_1.expectString(output.dataReplicationState),
|
|
3270
|
-
etaDateTime: smithy_client_1.expectString(output.etaDateTime),
|
|
3271
|
-
lagDuration: smithy_client_1.expectString(output.lagDuration),
|
|
3269
|
+
dataReplicationState: (0, smithy_client_1.expectString)(output.dataReplicationState),
|
|
3270
|
+
etaDateTime: (0, smithy_client_1.expectString)(output.etaDateTime),
|
|
3271
|
+
lagDuration: (0, smithy_client_1.expectString)(output.lagDuration),
|
|
3272
3272
|
replicatedDisks: output.replicatedDisks !== undefined && output.replicatedDisks !== null
|
|
3273
3273
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks(output.replicatedDisks, context)
|
|
3274
3274
|
: undefined,
|
|
@@ -3276,11 +3276,11 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfo = (output, con
|
|
|
3276
3276
|
};
|
|
3277
3277
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisk = (output, context) => {
|
|
3278
3278
|
return {
|
|
3279
|
-
backloggedStorageBytes: smithy_client_1.expectLong(output.backloggedStorageBytes),
|
|
3280
|
-
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
3281
|
-
replicatedStorageBytes: smithy_client_1.expectLong(output.replicatedStorageBytes),
|
|
3282
|
-
rescannedStorageBytes: smithy_client_1.expectLong(output.rescannedStorageBytes),
|
|
3283
|
-
totalStorageBytes: smithy_client_1.expectLong(output.totalStorageBytes),
|
|
3279
|
+
backloggedStorageBytes: (0, smithy_client_1.expectLong)(output.backloggedStorageBytes),
|
|
3280
|
+
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
3281
|
+
replicatedStorageBytes: (0, smithy_client_1.expectLong)(output.replicatedStorageBytes),
|
|
3282
|
+
rescannedStorageBytes: (0, smithy_client_1.expectLong)(output.rescannedStorageBytes),
|
|
3283
|
+
totalStorageBytes: (0, smithy_client_1.expectLong)(output.totalStorageBytes),
|
|
3284
3284
|
};
|
|
3285
3285
|
};
|
|
3286
3286
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks = (output, context) => {
|
|
@@ -3296,7 +3296,7 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInfoReplicatedDisks
|
|
|
3296
3296
|
};
|
|
3297
3297
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation = (output, context) => {
|
|
3298
3298
|
return {
|
|
3299
|
-
startDateTime: smithy_client_1.expectString(output.startDateTime),
|
|
3299
|
+
startDateTime: (0, smithy_client_1.expectString)(output.startDateTime),
|
|
3300
3300
|
steps: output.steps !== undefined && output.steps !== null
|
|
3301
3301
|
? deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps(output.steps, context)
|
|
3302
3302
|
: undefined,
|
|
@@ -3304,8 +3304,8 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiation = (outpu
|
|
|
3304
3304
|
};
|
|
3305
3305
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationStep = (output, context) => {
|
|
3306
3306
|
return {
|
|
3307
|
-
name: smithy_client_1.expectString(output.name),
|
|
3308
|
-
status: smithy_client_1.expectString(output.status),
|
|
3307
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
3308
|
+
status: (0, smithy_client_1.expectString)(output.status),
|
|
3309
3309
|
};
|
|
3310
3310
|
};
|
|
3311
3311
|
const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps = (output, context) => {
|
|
@@ -3321,9 +3321,9 @@ const deserializeAws_restJson1RecoveryInstanceDataReplicationInitiationSteps = (
|
|
|
3321
3321
|
};
|
|
3322
3322
|
const deserializeAws_restJson1RecoveryInstanceDisk = (output, context) => {
|
|
3323
3323
|
return {
|
|
3324
|
-
bytes: smithy_client_1.expectLong(output.bytes),
|
|
3325
|
-
ebsVolumeID: smithy_client_1.expectString(output.ebsVolumeID),
|
|
3326
|
-
internalDeviceName: smithy_client_1.expectString(output.internalDeviceName),
|
|
3324
|
+
bytes: (0, smithy_client_1.expectLong)(output.bytes),
|
|
3325
|
+
ebsVolumeID: (0, smithy_client_1.expectString)(output.ebsVolumeID),
|
|
3326
|
+
internalDeviceName: (0, smithy_client_1.expectString)(output.internalDeviceName),
|
|
3327
3327
|
};
|
|
3328
3328
|
};
|
|
3329
3329
|
const deserializeAws_restJson1RecoveryInstanceDisks = (output, context) => {
|
|
@@ -3339,15 +3339,15 @@ const deserializeAws_restJson1RecoveryInstanceDisks = (output, context) => {
|
|
|
3339
3339
|
};
|
|
3340
3340
|
const deserializeAws_restJson1RecoveryInstanceFailback = (output, context) => {
|
|
3341
3341
|
return {
|
|
3342
|
-
agentLastSeenByServiceDateTime: smithy_client_1.expectString(output.agentLastSeenByServiceDateTime),
|
|
3343
|
-
elapsedReplicationDuration: smithy_client_1.expectString(output.elapsedReplicationDuration),
|
|
3344
|
-
failbackClientID: smithy_client_1.expectString(output.failbackClientID),
|
|
3345
|
-
failbackClientLastSeenByServiceDateTime: smithy_client_1.expectString(output.failbackClientLastSeenByServiceDateTime),
|
|
3346
|
-
failbackInitiationTime: smithy_client_1.expectString(output.failbackInitiationTime),
|
|
3347
|
-
failbackJobID: smithy_client_1.expectString(output.failbackJobID),
|
|
3348
|
-
failbackToOriginalServer: smithy_client_1.expectBoolean(output.failbackToOriginalServer),
|
|
3349
|
-
firstByteDateTime: smithy_client_1.expectString(output.firstByteDateTime),
|
|
3350
|
-
state: smithy_client_1.expectString(output.state),
|
|
3342
|
+
agentLastSeenByServiceDateTime: (0, smithy_client_1.expectString)(output.agentLastSeenByServiceDateTime),
|
|
3343
|
+
elapsedReplicationDuration: (0, smithy_client_1.expectString)(output.elapsedReplicationDuration),
|
|
3344
|
+
failbackClientID: (0, smithy_client_1.expectString)(output.failbackClientID),
|
|
3345
|
+
failbackClientLastSeenByServiceDateTime: (0, smithy_client_1.expectString)(output.failbackClientLastSeenByServiceDateTime),
|
|
3346
|
+
failbackInitiationTime: (0, smithy_client_1.expectString)(output.failbackInitiationTime),
|
|
3347
|
+
failbackJobID: (0, smithy_client_1.expectString)(output.failbackJobID),
|
|
3348
|
+
failbackToOriginalServer: (0, smithy_client_1.expectBoolean)(output.failbackToOriginalServer),
|
|
3349
|
+
firstByteDateTime: (0, smithy_client_1.expectString)(output.firstByteDateTime),
|
|
3350
|
+
state: (0, smithy_client_1.expectString)(output.state),
|
|
3351
3351
|
};
|
|
3352
3352
|
};
|
|
3353
3353
|
const deserializeAws_restJson1RecoveryInstanceProperties = (output, context) => {
|
|
@@ -3361,12 +3361,12 @@ const deserializeAws_restJson1RecoveryInstanceProperties = (output, context) =>
|
|
|
3361
3361
|
identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
|
|
3362
3362
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3363
3363
|
: undefined,
|
|
3364
|
-
lastUpdatedDateTime: smithy_client_1.expectString(output.lastUpdatedDateTime),
|
|
3364
|
+
lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
|
|
3365
3365
|
networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
|
|
3366
3366
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
3367
3367
|
: undefined,
|
|
3368
3368
|
os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3369
|
-
ramBytes: smithy_client_1.expectLong(output.ramBytes),
|
|
3369
|
+
ramBytes: (0, smithy_client_1.expectLong)(output.ramBytes),
|
|
3370
3370
|
};
|
|
3371
3371
|
};
|
|
3372
3372
|
const deserializeAws_restJson1RecoverySnapshot = (output, context) => {
|
|
@@ -3374,10 +3374,10 @@ const deserializeAws_restJson1RecoverySnapshot = (output, context) => {
|
|
|
3374
3374
|
ebsSnapshots: output.ebsSnapshots !== undefined && output.ebsSnapshots !== null
|
|
3375
3375
|
? deserializeAws_restJson1EbsSnapshotsList(output.ebsSnapshots, context)
|
|
3376
3376
|
: undefined,
|
|
3377
|
-
expectedTimestamp: smithy_client_1.expectString(output.expectedTimestamp),
|
|
3378
|
-
snapshotID: smithy_client_1.expectString(output.snapshotID),
|
|
3379
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3380
|
-
timestamp: smithy_client_1.expectString(output.timestamp),
|
|
3377
|
+
expectedTimestamp: (0, smithy_client_1.expectString)(output.expectedTimestamp),
|
|
3378
|
+
snapshotID: (0, smithy_client_1.expectString)(output.snapshotID),
|
|
3379
|
+
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3380
|
+
timestamp: (0, smithy_client_1.expectString)(output.timestamp),
|
|
3381
3381
|
};
|
|
3382
3382
|
};
|
|
3383
3383
|
const deserializeAws_restJson1RecoverySnapshotsList = (output, context) => {
|
|
@@ -3393,11 +3393,11 @@ const deserializeAws_restJson1RecoverySnapshotsList = (output, context) => {
|
|
|
3393
3393
|
};
|
|
3394
3394
|
const deserializeAws_restJson1ReplicationConfigurationReplicatedDisk = (output, context) => {
|
|
3395
3395
|
return {
|
|
3396
|
-
deviceName: smithy_client_1.expectString(output.deviceName),
|
|
3397
|
-
iops: smithy_client_1.expectLong(output.iops),
|
|
3398
|
-
isBootDisk: smithy_client_1.expectBoolean(output.isBootDisk),
|
|
3399
|
-
stagingDiskType: smithy_client_1.expectString(output.stagingDiskType),
|
|
3400
|
-
throughput: smithy_client_1.expectLong(output.throughput),
|
|
3396
|
+
deviceName: (0, smithy_client_1.expectString)(output.deviceName),
|
|
3397
|
+
iops: (0, smithy_client_1.expectLong)(output.iops),
|
|
3398
|
+
isBootDisk: (0, smithy_client_1.expectBoolean)(output.isBootDisk),
|
|
3399
|
+
stagingDiskType: (0, smithy_client_1.expectString)(output.stagingDiskType),
|
|
3400
|
+
throughput: (0, smithy_client_1.expectLong)(output.throughput),
|
|
3401
3401
|
};
|
|
3402
3402
|
};
|
|
3403
3403
|
const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = (output, context) => {
|
|
@@ -3413,30 +3413,30 @@ const deserializeAws_restJson1ReplicationConfigurationReplicatedDisks = (output,
|
|
|
3413
3413
|
};
|
|
3414
3414
|
const deserializeAws_restJson1ReplicationConfigurationTemplate = (output, context) => {
|
|
3415
3415
|
return {
|
|
3416
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3417
|
-
associateDefaultSecurityGroup: smithy_client_1.expectBoolean(output.associateDefaultSecurityGroup),
|
|
3418
|
-
bandwidthThrottling: smithy_client_1.expectLong(output.bandwidthThrottling),
|
|
3419
|
-
createPublicIP: smithy_client_1.expectBoolean(output.createPublicIP),
|
|
3420
|
-
dataPlaneRouting: smithy_client_1.expectString(output.dataPlaneRouting),
|
|
3421
|
-
defaultLargeStagingDiskType: smithy_client_1.expectString(output.defaultLargeStagingDiskType),
|
|
3422
|
-
ebsEncryption: smithy_client_1.expectString(output.ebsEncryption),
|
|
3423
|
-
ebsEncryptionKeyArn: smithy_client_1.expectString(output.ebsEncryptionKeyArn),
|
|
3416
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3417
|
+
associateDefaultSecurityGroup: (0, smithy_client_1.expectBoolean)(output.associateDefaultSecurityGroup),
|
|
3418
|
+
bandwidthThrottling: (0, smithy_client_1.expectLong)(output.bandwidthThrottling),
|
|
3419
|
+
createPublicIP: (0, smithy_client_1.expectBoolean)(output.createPublicIP),
|
|
3420
|
+
dataPlaneRouting: (0, smithy_client_1.expectString)(output.dataPlaneRouting),
|
|
3421
|
+
defaultLargeStagingDiskType: (0, smithy_client_1.expectString)(output.defaultLargeStagingDiskType),
|
|
3422
|
+
ebsEncryption: (0, smithy_client_1.expectString)(output.ebsEncryption),
|
|
3423
|
+
ebsEncryptionKeyArn: (0, smithy_client_1.expectString)(output.ebsEncryptionKeyArn),
|
|
3424
3424
|
pitPolicy: output.pitPolicy !== undefined && output.pitPolicy !== null
|
|
3425
3425
|
? deserializeAws_restJson1PITPolicy(output.pitPolicy, context)
|
|
3426
3426
|
: undefined,
|
|
3427
|
-
replicationConfigurationTemplateID: smithy_client_1.expectString(output.replicationConfigurationTemplateID),
|
|
3428
|
-
replicationServerInstanceType: smithy_client_1.expectString(output.replicationServerInstanceType),
|
|
3427
|
+
replicationConfigurationTemplateID: (0, smithy_client_1.expectString)(output.replicationConfigurationTemplateID),
|
|
3428
|
+
replicationServerInstanceType: (0, smithy_client_1.expectString)(output.replicationServerInstanceType),
|
|
3429
3429
|
replicationServersSecurityGroupsIDs: output.replicationServersSecurityGroupsIDs !== undefined && output.replicationServersSecurityGroupsIDs !== null
|
|
3430
3430
|
? deserializeAws_restJson1ReplicationServersSecurityGroupsIDs(output.replicationServersSecurityGroupsIDs, context)
|
|
3431
3431
|
: undefined,
|
|
3432
|
-
stagingAreaSubnetId: smithy_client_1.expectString(output.stagingAreaSubnetId),
|
|
3432
|
+
stagingAreaSubnetId: (0, smithy_client_1.expectString)(output.stagingAreaSubnetId),
|
|
3433
3433
|
stagingAreaTags: output.stagingAreaTags !== undefined && output.stagingAreaTags !== null
|
|
3434
3434
|
? deserializeAws_restJson1TagsMap(output.stagingAreaTags, context)
|
|
3435
3435
|
: undefined,
|
|
3436
3436
|
tags: output.tags !== undefined && output.tags !== null
|
|
3437
3437
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3438
3438
|
: undefined,
|
|
3439
|
-
useDedicatedReplicationServer: smithy_client_1.expectBoolean(output.useDedicatedReplicationServer),
|
|
3439
|
+
useDedicatedReplicationServer: (0, smithy_client_1.expectBoolean)(output.useDedicatedReplicationServer),
|
|
3440
3440
|
};
|
|
3441
3441
|
};
|
|
3442
3442
|
const deserializeAws_restJson1ReplicationConfigurationTemplates = (output, context) => {
|
|
@@ -3457,7 +3457,7 @@ const deserializeAws_restJson1ReplicationServersSecurityGroupsIDs = (output, con
|
|
|
3457
3457
|
if (entry === null) {
|
|
3458
3458
|
return null;
|
|
3459
3459
|
}
|
|
3460
|
-
return smithy_client_1.expectString(entry);
|
|
3460
|
+
return (0, smithy_client_1.expectString)(entry);
|
|
3461
3461
|
});
|
|
3462
3462
|
return retVal;
|
|
3463
3463
|
};
|
|
@@ -3472,30 +3472,30 @@ const deserializeAws_restJson1SourceProperties = (output, context) => {
|
|
|
3472
3472
|
identificationHints: output.identificationHints !== undefined && output.identificationHints !== null
|
|
3473
3473
|
? deserializeAws_restJson1IdentificationHints(output.identificationHints, context)
|
|
3474
3474
|
: undefined,
|
|
3475
|
-
lastUpdatedDateTime: smithy_client_1.expectString(output.lastUpdatedDateTime),
|
|
3475
|
+
lastUpdatedDateTime: (0, smithy_client_1.expectString)(output.lastUpdatedDateTime),
|
|
3476
3476
|
networkInterfaces: output.networkInterfaces !== undefined && output.networkInterfaces !== null
|
|
3477
3477
|
? deserializeAws_restJson1NetworkInterfaces(output.networkInterfaces, context)
|
|
3478
3478
|
: undefined,
|
|
3479
3479
|
os: output.os !== undefined && output.os !== null ? deserializeAws_restJson1OS(output.os, context) : undefined,
|
|
3480
|
-
ramBytes: smithy_client_1.expectLong(output.ramBytes),
|
|
3481
|
-
recommendedInstanceType: smithy_client_1.expectString(output.recommendedInstanceType),
|
|
3480
|
+
ramBytes: (0, smithy_client_1.expectLong)(output.ramBytes),
|
|
3481
|
+
recommendedInstanceType: (0, smithy_client_1.expectString)(output.recommendedInstanceType),
|
|
3482
3482
|
};
|
|
3483
3483
|
};
|
|
3484
3484
|
const deserializeAws_restJson1SourceServer = (output, context) => {
|
|
3485
3485
|
return {
|
|
3486
|
-
arn: smithy_client_1.expectString(output.arn),
|
|
3486
|
+
arn: (0, smithy_client_1.expectString)(output.arn),
|
|
3487
3487
|
dataReplicationInfo: output.dataReplicationInfo !== undefined && output.dataReplicationInfo !== null
|
|
3488
3488
|
? deserializeAws_restJson1DataReplicationInfo(output.dataReplicationInfo, context)
|
|
3489
3489
|
: undefined,
|
|
3490
|
-
lastLaunchResult: smithy_client_1.expectString(output.lastLaunchResult),
|
|
3490
|
+
lastLaunchResult: (0, smithy_client_1.expectString)(output.lastLaunchResult),
|
|
3491
3491
|
lifeCycle: output.lifeCycle !== undefined && output.lifeCycle !== null
|
|
3492
3492
|
? deserializeAws_restJson1LifeCycle(output.lifeCycle, context)
|
|
3493
3493
|
: undefined,
|
|
3494
|
-
recoveryInstanceId: smithy_client_1.expectString(output.recoveryInstanceId),
|
|
3494
|
+
recoveryInstanceId: (0, smithy_client_1.expectString)(output.recoveryInstanceId),
|
|
3495
3495
|
sourceProperties: output.sourceProperties !== undefined && output.sourceProperties !== null
|
|
3496
3496
|
? deserializeAws_restJson1SourceProperties(output.sourceProperties, context)
|
|
3497
3497
|
: undefined,
|
|
3498
|
-
sourceServerID: smithy_client_1.expectString(output.sourceServerID),
|
|
3498
|
+
sourceServerID: (0, smithy_client_1.expectString)(output.sourceServerID),
|
|
3499
3499
|
tags: output.tags !== undefined && output.tags !== null
|
|
3500
3500
|
? deserializeAws_restJson1TagsMap(output.tags, context)
|
|
3501
3501
|
: undefined,
|
|
@@ -3519,14 +3519,14 @@ const deserializeAws_restJson1TagsMap = (output, context) => {
|
|
|
3519
3519
|
}
|
|
3520
3520
|
return {
|
|
3521
3521
|
...acc,
|
|
3522
|
-
[key]: smithy_client_1.expectString(value),
|
|
3522
|
+
[key]: (0, smithy_client_1.expectString)(value),
|
|
3523
3523
|
};
|
|
3524
3524
|
}, {});
|
|
3525
3525
|
};
|
|
3526
3526
|
const deserializeAws_restJson1ValidationExceptionField = (output, context) => {
|
|
3527
3527
|
return {
|
|
3528
|
-
message: smithy_client_1.expectString(output.message),
|
|
3529
|
-
name: smithy_client_1.expectString(output.name),
|
|
3528
|
+
message: (0, smithy_client_1.expectString)(output.message),
|
|
3529
|
+
name: (0, smithy_client_1.expectString)(output.name),
|
|
3530
3530
|
};
|
|
3531
3531
|
};
|
|
3532
3532
|
const deserializeAws_restJson1ValidationExceptionFieldList = (output, context) => {
|