@aws-sdk/client-backup-gateway 3.53.0 → 3.55.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +24 -0
- package/dist-cjs/BackupGatewayClient.js +13 -13
- package/dist-cjs/commands/AssociateGatewayToServerCommand.js +3 -3
- package/dist-cjs/commands/CreateGatewayCommand.js +3 -3
- package/dist-cjs/commands/DeleteGatewayCommand.js +3 -3
- package/dist-cjs/commands/DeleteHypervisorCommand.js +3 -3
- package/dist-cjs/commands/DisassociateGatewayFromServerCommand.js +3 -3
- package/dist-cjs/commands/ImportHypervisorConfigurationCommand.js +3 -3
- package/dist-cjs/commands/ListGatewaysCommand.js +3 -3
- package/dist-cjs/commands/ListHypervisorsCommand.js +3 -3
- package/dist-cjs/commands/ListTagsForResourceCommand.js +3 -3
- package/dist-cjs/commands/ListVirtualMachinesCommand.js +3 -3
- package/dist-cjs/commands/PutMaintenanceStartTimeCommand.js +3 -3
- package/dist-cjs/commands/TagResourceCommand.js +3 -3
- package/dist-cjs/commands/TestHypervisorConfigurationCommand.js +3 -3
- package/dist-cjs/commands/UntagResourceCommand.js +3 -3
- package/dist-cjs/commands/UpdateGatewayInformationCommand.js +3 -3
- package/dist-cjs/commands/UpdateHypervisorCommand.js +3 -3
- package/dist-cjs/endpoints.js +1 -1
- package/dist-cjs/protocols/Aws_json1_0.js +64 -64
- 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/BackupGateway.js +16 -16
- package/dist-es/pagination/ListGatewaysPaginator.js +4 -4
- package/dist-es/pagination/ListHypervisorsPaginator.js +4 -4
- package/dist-es/pagination/ListVirtualMachinesPaginator.js +4 -4
- package/dist-types/BackupGatewayClient.d.ts +2 -2
- package/dist-types/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/runtimeConfig.d.ts +1 -1
- package/dist-types/runtimeConfig.native.d.ts +3 -3
- package/dist-types/ts3.4/BackupGatewayClient.d.ts +2 -2
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +1 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
- package/package.json +34 -34
|
@@ -204,7 +204,7 @@ const deserializeAws_json1_0AssociateGatewayToServerCommandError = async (output
|
|
|
204
204
|
$fault: "client",
|
|
205
205
|
$metadata: deserializeMetadata(output),
|
|
206
206
|
});
|
|
207
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
207
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
208
208
|
}
|
|
209
209
|
};
|
|
210
210
|
const deserializeAws_json1_0CreateGatewayCommand = async (output, context) => {
|
|
@@ -243,7 +243,7 @@ const deserializeAws_json1_0CreateGatewayCommandError = async (output, context)
|
|
|
243
243
|
$fault: "client",
|
|
244
244
|
$metadata: deserializeMetadata(output),
|
|
245
245
|
});
|
|
246
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
246
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
247
247
|
}
|
|
248
248
|
};
|
|
249
249
|
const deserializeAws_json1_0DeleteGatewayCommand = async (output, context) => {
|
|
@@ -285,7 +285,7 @@ const deserializeAws_json1_0DeleteGatewayCommandError = async (output, context)
|
|
|
285
285
|
$fault: "client",
|
|
286
286
|
$metadata: deserializeMetadata(output),
|
|
287
287
|
});
|
|
288
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
288
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
289
289
|
}
|
|
290
290
|
};
|
|
291
291
|
const deserializeAws_json1_0DeleteHypervisorCommand = async (output, context) => {
|
|
@@ -330,7 +330,7 @@ const deserializeAws_json1_0DeleteHypervisorCommandError = async (output, contex
|
|
|
330
330
|
$fault: "client",
|
|
331
331
|
$metadata: deserializeMetadata(output),
|
|
332
332
|
});
|
|
333
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
333
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
334
334
|
}
|
|
335
335
|
};
|
|
336
336
|
const deserializeAws_json1_0DisassociateGatewayFromServerCommand = async (output, context) => {
|
|
@@ -375,7 +375,7 @@ const deserializeAws_json1_0DisassociateGatewayFromServerCommandError = async (o
|
|
|
375
375
|
$fault: "client",
|
|
376
376
|
$metadata: deserializeMetadata(output),
|
|
377
377
|
});
|
|
378
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
378
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
379
379
|
}
|
|
380
380
|
};
|
|
381
381
|
const deserializeAws_json1_0ImportHypervisorConfigurationCommand = async (output, context) => {
|
|
@@ -417,7 +417,7 @@ const deserializeAws_json1_0ImportHypervisorConfigurationCommandError = async (o
|
|
|
417
417
|
$fault: "client",
|
|
418
418
|
$metadata: deserializeMetadata(output),
|
|
419
419
|
});
|
|
420
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
420
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
421
421
|
}
|
|
422
422
|
};
|
|
423
423
|
const deserializeAws_json1_0ListGatewaysCommand = async (output, context) => {
|
|
@@ -456,7 +456,7 @@ const deserializeAws_json1_0ListGatewaysCommandError = async (output, context) =
|
|
|
456
456
|
$fault: "client",
|
|
457
457
|
$metadata: deserializeMetadata(output),
|
|
458
458
|
});
|
|
459
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
459
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
460
460
|
}
|
|
461
461
|
};
|
|
462
462
|
const deserializeAws_json1_0ListHypervisorsCommand = async (output, context) => {
|
|
@@ -495,7 +495,7 @@ const deserializeAws_json1_0ListHypervisorsCommandError = async (output, context
|
|
|
495
495
|
$fault: "client",
|
|
496
496
|
$metadata: deserializeMetadata(output),
|
|
497
497
|
});
|
|
498
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
498
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
499
499
|
}
|
|
500
500
|
};
|
|
501
501
|
const deserializeAws_json1_0ListTagsForResourceCommand = async (output, context) => {
|
|
@@ -537,7 +537,7 @@ const deserializeAws_json1_0ListTagsForResourceCommandError = async (output, con
|
|
|
537
537
|
$fault: "client",
|
|
538
538
|
$metadata: deserializeMetadata(output),
|
|
539
539
|
});
|
|
540
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
540
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
541
541
|
}
|
|
542
542
|
};
|
|
543
543
|
const deserializeAws_json1_0ListVirtualMachinesCommand = async (output, context) => {
|
|
@@ -576,7 +576,7 @@ const deserializeAws_json1_0ListVirtualMachinesCommandError = async (output, con
|
|
|
576
576
|
$fault: "client",
|
|
577
577
|
$metadata: deserializeMetadata(output),
|
|
578
578
|
});
|
|
579
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
579
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
580
580
|
}
|
|
581
581
|
};
|
|
582
582
|
const deserializeAws_json1_0PutMaintenanceStartTimeCommand = async (output, context) => {
|
|
@@ -621,7 +621,7 @@ const deserializeAws_json1_0PutMaintenanceStartTimeCommandError = async (output,
|
|
|
621
621
|
$fault: "client",
|
|
622
622
|
$metadata: deserializeMetadata(output),
|
|
623
623
|
});
|
|
624
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
624
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
625
625
|
}
|
|
626
626
|
};
|
|
627
627
|
const deserializeAws_json1_0TagResourceCommand = async (output, context) => {
|
|
@@ -663,7 +663,7 @@ const deserializeAws_json1_0TagResourceCommandError = async (output, context) =>
|
|
|
663
663
|
$fault: "client",
|
|
664
664
|
$metadata: deserializeMetadata(output),
|
|
665
665
|
});
|
|
666
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
666
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
667
667
|
}
|
|
668
668
|
};
|
|
669
669
|
const deserializeAws_json1_0TestHypervisorConfigurationCommand = async (output, context) => {
|
|
@@ -708,7 +708,7 @@ const deserializeAws_json1_0TestHypervisorConfigurationCommandError = async (out
|
|
|
708
708
|
$fault: "client",
|
|
709
709
|
$metadata: deserializeMetadata(output),
|
|
710
710
|
});
|
|
711
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
711
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
712
712
|
}
|
|
713
713
|
};
|
|
714
714
|
const deserializeAws_json1_0UntagResourceCommand = async (output, context) => {
|
|
@@ -750,7 +750,7 @@ const deserializeAws_json1_0UntagResourceCommandError = async (output, context)
|
|
|
750
750
|
$fault: "client",
|
|
751
751
|
$metadata: deserializeMetadata(output),
|
|
752
752
|
});
|
|
753
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
753
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
754
754
|
}
|
|
755
755
|
};
|
|
756
756
|
const deserializeAws_json1_0UpdateGatewayInformationCommand = async (output, context) => {
|
|
@@ -795,7 +795,7 @@ const deserializeAws_json1_0UpdateGatewayInformationCommandError = async (output
|
|
|
795
795
|
$fault: "client",
|
|
796
796
|
$metadata: deserializeMetadata(output),
|
|
797
797
|
});
|
|
798
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
798
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
799
799
|
}
|
|
800
800
|
};
|
|
801
801
|
const deserializeAws_json1_0UpdateHypervisorCommand = async (output, context) => {
|
|
@@ -840,7 +840,7 @@ const deserializeAws_json1_0UpdateHypervisorCommandError = async (output, contex
|
|
|
840
840
|
$fault: "client",
|
|
841
841
|
$metadata: deserializeMetadata(output),
|
|
842
842
|
});
|
|
843
|
-
throw smithy_client_1.decorateServiceException(response, parsedBody);
|
|
843
|
+
throw (0, smithy_client_1.decorateServiceException)(response, parsedBody);
|
|
844
844
|
}
|
|
845
845
|
};
|
|
846
846
|
const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput, context) => {
|
|
@@ -850,7 +850,7 @@ const deserializeAws_json1_0AccessDeniedExceptionResponse = async (parsedOutput,
|
|
|
850
850
|
$metadata: deserializeMetadata(parsedOutput),
|
|
851
851
|
...deserialized,
|
|
852
852
|
});
|
|
853
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
853
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
854
854
|
};
|
|
855
855
|
const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, context) => {
|
|
856
856
|
const body = parsedOutput.body;
|
|
@@ -859,7 +859,7 @@ const deserializeAws_json1_0ConflictExceptionResponse = async (parsedOutput, con
|
|
|
859
859
|
$metadata: deserializeMetadata(parsedOutput),
|
|
860
860
|
...deserialized,
|
|
861
861
|
});
|
|
862
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
862
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
863
863
|
};
|
|
864
864
|
const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutput, context) => {
|
|
865
865
|
const body = parsedOutput.body;
|
|
@@ -868,7 +868,7 @@ const deserializeAws_json1_0InternalServerExceptionResponse = async (parsedOutpu
|
|
|
868
868
|
$metadata: deserializeMetadata(parsedOutput),
|
|
869
869
|
...deserialized,
|
|
870
870
|
});
|
|
871
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
871
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
872
872
|
};
|
|
873
873
|
const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOutput, context) => {
|
|
874
874
|
const body = parsedOutput.body;
|
|
@@ -877,7 +877,7 @@ const deserializeAws_json1_0ResourceNotFoundExceptionResponse = async (parsedOut
|
|
|
877
877
|
$metadata: deserializeMetadata(parsedOutput),
|
|
878
878
|
...deserialized,
|
|
879
879
|
});
|
|
880
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
880
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
881
881
|
};
|
|
882
882
|
const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, context) => {
|
|
883
883
|
const body = parsedOutput.body;
|
|
@@ -886,7 +886,7 @@ const deserializeAws_json1_0ValidationExceptionResponse = async (parsedOutput, c
|
|
|
886
886
|
$metadata: deserializeMetadata(parsedOutput),
|
|
887
887
|
...deserialized,
|
|
888
888
|
});
|
|
889
|
-
return smithy_client_1.decorateServiceException(exception, body);
|
|
889
|
+
return (0, smithy_client_1.decorateServiceException)(exception, body);
|
|
890
890
|
};
|
|
891
891
|
const serializeAws_json1_0AssociateGatewayToServerInput = (input, context) => {
|
|
892
892
|
return {
|
|
@@ -1024,49 +1024,49 @@ const serializeAws_json1_0UpdateHypervisorInput = (input, context) => {
|
|
|
1024
1024
|
};
|
|
1025
1025
|
const deserializeAws_json1_0AccessDeniedException = (output, context) => {
|
|
1026
1026
|
return {
|
|
1027
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1028
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1027
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1028
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1029
1029
|
};
|
|
1030
1030
|
};
|
|
1031
1031
|
const deserializeAws_json1_0AssociateGatewayToServerOutput = (output, context) => {
|
|
1032
1032
|
return {
|
|
1033
|
-
GatewayArn: smithy_client_1.expectString(output.GatewayArn),
|
|
1033
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1034
1034
|
};
|
|
1035
1035
|
};
|
|
1036
1036
|
const deserializeAws_json1_0ConflictException = (output, context) => {
|
|
1037
1037
|
return {
|
|
1038
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1039
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1038
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1039
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1040
1040
|
};
|
|
1041
1041
|
};
|
|
1042
1042
|
const deserializeAws_json1_0CreateGatewayOutput = (output, context) => {
|
|
1043
1043
|
return {
|
|
1044
|
-
GatewayArn: smithy_client_1.expectString(output.GatewayArn),
|
|
1044
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1045
1045
|
};
|
|
1046
1046
|
};
|
|
1047
1047
|
const deserializeAws_json1_0DeleteGatewayOutput = (output, context) => {
|
|
1048
1048
|
return {
|
|
1049
|
-
GatewayArn: smithy_client_1.expectString(output.GatewayArn),
|
|
1049
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1050
1050
|
};
|
|
1051
1051
|
};
|
|
1052
1052
|
const deserializeAws_json1_0DeleteHypervisorOutput = (output, context) => {
|
|
1053
1053
|
return {
|
|
1054
|
-
HypervisorArn: smithy_client_1.expectString(output.HypervisorArn),
|
|
1054
|
+
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1055
1055
|
};
|
|
1056
1056
|
};
|
|
1057
1057
|
const deserializeAws_json1_0DisassociateGatewayFromServerOutput = (output, context) => {
|
|
1058
1058
|
return {
|
|
1059
|
-
GatewayArn: smithy_client_1.expectString(output.GatewayArn),
|
|
1059
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1060
1060
|
};
|
|
1061
1061
|
};
|
|
1062
1062
|
const deserializeAws_json1_0Gateway = (output, context) => {
|
|
1063
1063
|
return {
|
|
1064
|
-
GatewayArn: smithy_client_1.expectString(output.GatewayArn),
|
|
1065
|
-
GatewayDisplayName: smithy_client_1.expectString(output.GatewayDisplayName),
|
|
1066
|
-
GatewayType: smithy_client_1.expectString(output.GatewayType),
|
|
1067
|
-
HypervisorId: smithy_client_1.expectString(output.HypervisorId),
|
|
1064
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1065
|
+
GatewayDisplayName: (0, smithy_client_1.expectString)(output.GatewayDisplayName),
|
|
1066
|
+
GatewayType: (0, smithy_client_1.expectString)(output.GatewayType),
|
|
1067
|
+
HypervisorId: (0, smithy_client_1.expectString)(output.HypervisorId),
|
|
1068
1068
|
LastSeenTime: output.LastSeenTime !== undefined && output.LastSeenTime !== null
|
|
1069
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastSeenTime)))
|
|
1069
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastSeenTime)))
|
|
1070
1070
|
: undefined,
|
|
1071
1071
|
};
|
|
1072
1072
|
};
|
|
@@ -1083,11 +1083,11 @@ const deserializeAws_json1_0Gateways = (output, context) => {
|
|
|
1083
1083
|
};
|
|
1084
1084
|
const deserializeAws_json1_0Hypervisor = (output, context) => {
|
|
1085
1085
|
return {
|
|
1086
|
-
Host: smithy_client_1.expectString(output.Host),
|
|
1087
|
-
HypervisorArn: smithy_client_1.expectString(output.HypervisorArn),
|
|
1088
|
-
KmsKeyArn: smithy_client_1.expectString(output.KmsKeyArn),
|
|
1089
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1090
|
-
State: smithy_client_1.expectString(output.State),
|
|
1086
|
+
Host: (0, smithy_client_1.expectString)(output.Host),
|
|
1087
|
+
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1088
|
+
KmsKeyArn: (0, smithy_client_1.expectString)(output.KmsKeyArn),
|
|
1089
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1090
|
+
State: (0, smithy_client_1.expectString)(output.State),
|
|
1091
1091
|
};
|
|
1092
1092
|
};
|
|
1093
1093
|
const deserializeAws_json1_0Hypervisors = (output, context) => {
|
|
@@ -1103,13 +1103,13 @@ const deserializeAws_json1_0Hypervisors = (output, context) => {
|
|
|
1103
1103
|
};
|
|
1104
1104
|
const deserializeAws_json1_0ImportHypervisorConfigurationOutput = (output, context) => {
|
|
1105
1105
|
return {
|
|
1106
|
-
HypervisorArn: smithy_client_1.expectString(output.HypervisorArn),
|
|
1106
|
+
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1107
1107
|
};
|
|
1108
1108
|
};
|
|
1109
1109
|
const deserializeAws_json1_0InternalServerException = (output, context) => {
|
|
1110
1110
|
return {
|
|
1111
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1112
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1111
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1112
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1113
1113
|
};
|
|
1114
1114
|
};
|
|
1115
1115
|
const deserializeAws_json1_0ListGatewaysOutput = (output, context) => {
|
|
@@ -1117,7 +1117,7 @@ const deserializeAws_json1_0ListGatewaysOutput = (output, context) => {
|
|
|
1117
1117
|
Gateways: output.Gateways !== undefined && output.Gateways !== null
|
|
1118
1118
|
? deserializeAws_json1_0Gateways(output.Gateways, context)
|
|
1119
1119
|
: undefined,
|
|
1120
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1120
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1121
1121
|
};
|
|
1122
1122
|
};
|
|
1123
1123
|
const deserializeAws_json1_0ListHypervisorsOutput = (output, context) => {
|
|
@@ -1125,18 +1125,18 @@ const deserializeAws_json1_0ListHypervisorsOutput = (output, context) => {
|
|
|
1125
1125
|
Hypervisors: output.Hypervisors !== undefined && output.Hypervisors !== null
|
|
1126
1126
|
? deserializeAws_json1_0Hypervisors(output.Hypervisors, context)
|
|
1127
1127
|
: undefined,
|
|
1128
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1128
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1129
1129
|
};
|
|
1130
1130
|
};
|
|
1131
1131
|
const deserializeAws_json1_0ListTagsForResourceOutput = (output, context) => {
|
|
1132
1132
|
return {
|
|
1133
|
-
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
1133
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1134
1134
|
Tags: output.Tags !== undefined && output.Tags !== null ? deserializeAws_json1_0Tags(output.Tags, context) : undefined,
|
|
1135
1135
|
};
|
|
1136
1136
|
};
|
|
1137
1137
|
const deserializeAws_json1_0ListVirtualMachinesOutput = (output, context) => {
|
|
1138
1138
|
return {
|
|
1139
|
-
NextToken: smithy_client_1.expectString(output.NextToken),
|
|
1139
|
+
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1140
1140
|
VirtualMachines: output.VirtualMachines !== undefined && output.VirtualMachines !== null
|
|
1141
1141
|
? deserializeAws_json1_0VirtualMachines(output.VirtualMachines, context)
|
|
1142
1142
|
: undefined,
|
|
@@ -1144,24 +1144,24 @@ const deserializeAws_json1_0ListVirtualMachinesOutput = (output, context) => {
|
|
|
1144
1144
|
};
|
|
1145
1145
|
const deserializeAws_json1_0PutMaintenanceStartTimeOutput = (output, context) => {
|
|
1146
1146
|
return {
|
|
1147
|
-
GatewayArn: smithy_client_1.expectString(output.GatewayArn),
|
|
1147
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1148
1148
|
};
|
|
1149
1149
|
};
|
|
1150
1150
|
const deserializeAws_json1_0ResourceNotFoundException = (output, context) => {
|
|
1151
1151
|
return {
|
|
1152
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1153
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1152
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1153
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1154
1154
|
};
|
|
1155
1155
|
};
|
|
1156
1156
|
const deserializeAws_json1_0Tag = (output, context) => {
|
|
1157
1157
|
return {
|
|
1158
|
-
Key: smithy_client_1.expectString(output.Key),
|
|
1159
|
-
Value: smithy_client_1.expectString(output.Value),
|
|
1158
|
+
Key: (0, smithy_client_1.expectString)(output.Key),
|
|
1159
|
+
Value: (0, smithy_client_1.expectString)(output.Value),
|
|
1160
1160
|
};
|
|
1161
1161
|
};
|
|
1162
1162
|
const deserializeAws_json1_0TagResourceOutput = (output, context) => {
|
|
1163
1163
|
return {
|
|
1164
|
-
ResourceARN: smithy_client_1.expectString(output.ResourceARN),
|
|
1164
|
+
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
1165
1165
|
};
|
|
1166
1166
|
};
|
|
1167
1167
|
const deserializeAws_json1_0Tags = (output, context) => {
|
|
@@ -1180,35 +1180,35 @@ const deserializeAws_json1_0TestHypervisorConfigurationOutput = (output, context
|
|
|
1180
1180
|
};
|
|
1181
1181
|
const deserializeAws_json1_0UntagResourceOutput = (output, context) => {
|
|
1182
1182
|
return {
|
|
1183
|
-
ResourceARN: smithy_client_1.expectString(output.ResourceARN),
|
|
1183
|
+
ResourceARN: (0, smithy_client_1.expectString)(output.ResourceARN),
|
|
1184
1184
|
};
|
|
1185
1185
|
};
|
|
1186
1186
|
const deserializeAws_json1_0UpdateGatewayInformationOutput = (output, context) => {
|
|
1187
1187
|
return {
|
|
1188
|
-
GatewayArn: smithy_client_1.expectString(output.GatewayArn),
|
|
1188
|
+
GatewayArn: (0, smithy_client_1.expectString)(output.GatewayArn),
|
|
1189
1189
|
};
|
|
1190
1190
|
};
|
|
1191
1191
|
const deserializeAws_json1_0UpdateHypervisorOutput = (output, context) => {
|
|
1192
1192
|
return {
|
|
1193
|
-
HypervisorArn: smithy_client_1.expectString(output.HypervisorArn),
|
|
1193
|
+
HypervisorArn: (0, smithy_client_1.expectString)(output.HypervisorArn),
|
|
1194
1194
|
};
|
|
1195
1195
|
};
|
|
1196
1196
|
const deserializeAws_json1_0ValidationException = (output, context) => {
|
|
1197
1197
|
return {
|
|
1198
|
-
ErrorCode: smithy_client_1.expectString(output.ErrorCode),
|
|
1199
|
-
Message: smithy_client_1.expectString(output.Message),
|
|
1198
|
+
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1199
|
+
Message: (0, smithy_client_1.expectString)(output.Message),
|
|
1200
1200
|
};
|
|
1201
1201
|
};
|
|
1202
1202
|
const deserializeAws_json1_0VirtualMachine = (output, context) => {
|
|
1203
1203
|
return {
|
|
1204
|
-
HostName: smithy_client_1.expectString(output.HostName),
|
|
1205
|
-
HypervisorId: smithy_client_1.expectString(output.HypervisorId),
|
|
1204
|
+
HostName: (0, smithy_client_1.expectString)(output.HostName),
|
|
1205
|
+
HypervisorId: (0, smithy_client_1.expectString)(output.HypervisorId),
|
|
1206
1206
|
LastBackupDate: output.LastBackupDate !== undefined && output.LastBackupDate !== null
|
|
1207
|
-
? smithy_client_1.expectNonNull(smithy_client_1.parseEpochTimestamp(smithy_client_1.expectNumber(output.LastBackupDate)))
|
|
1207
|
+
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.LastBackupDate)))
|
|
1208
1208
|
: undefined,
|
|
1209
|
-
Name: smithy_client_1.expectString(output.Name),
|
|
1210
|
-
Path: smithy_client_1.expectString(output.Path),
|
|
1211
|
-
ResourceArn: smithy_client_1.expectString(output.ResourceArn),
|
|
1209
|
+
Name: (0, smithy_client_1.expectString)(output.Name),
|
|
1210
|
+
Path: (0, smithy_client_1.expectString)(output.Path),
|
|
1211
|
+
ResourceArn: (0, smithy_client_1.expectString)(output.ResourceArn),
|
|
1212
1212
|
};
|
|
1213
1213
|
};
|
|
1214
1214
|
const deserializeAws_json1_0VirtualMachines = (output, context) => {
|
|
@@ -17,9 +17,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
17
17
|
const util_defaults_mode_browser_1 = require("@aws-sdk/util-defaults-mode-browser");
|
|
18
18
|
const getRuntimeConfig = (config) => {
|
|
19
19
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
20
|
-
const defaultsMode = util_defaults_mode_browser_1.resolveDefaultsModeConfig(config);
|
|
20
|
+
const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
|
|
21
21
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
22
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
22
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
23
23
|
return {
|
|
24
24
|
...clientSharedValues,
|
|
25
25
|
...config,
|
|
@@ -29,9 +29,9 @@ const getRuntimeConfig = (config) => {
|
|
|
29
29
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_browser_1.toBase64,
|
|
30
30
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_browser_1.calculateBodyLength,
|
|
31
31
|
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
32
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_browser_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
32
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
33
33
|
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : middleware_retry_1.DEFAULT_MAX_ATTEMPTS,
|
|
34
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : invalid_dependency_1.invalidProvider("Region is missing"),
|
|
34
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, invalid_dependency_1.invalidProvider)("Region is missing"),
|
|
35
35
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider),
|
|
36
36
|
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE),
|
|
37
37
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : sha256_browser_1.Sha256,
|
|
@@ -19,9 +19,9 @@ const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
|
19
19
|
const util_defaults_mode_node_1 = require("@aws-sdk/util-defaults-mode-node");
|
|
20
20
|
const getRuntimeConfig = (config) => {
|
|
21
21
|
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
|
|
22
|
-
const defaultsMode = util_defaults_mode_node_1.resolveDefaultsModeConfig(config);
|
|
22
|
+
const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
|
|
23
23
|
const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
|
|
24
|
-
const clientSharedValues = runtimeConfig_shared_1.getRuntimeConfig(config);
|
|
24
|
+
const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
|
|
25
25
|
return {
|
|
26
26
|
...clientSharedValues,
|
|
27
27
|
...config,
|
|
@@ -30,19 +30,19 @@ const getRuntimeConfig = (config) => {
|
|
|
30
30
|
base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_node_1.fromBase64,
|
|
31
31
|
base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_node_1.toBase64,
|
|
32
32
|
bodyLengthChecker: (_c = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _c !== void 0 ? _c : util_body_length_node_1.calculateBodyLength,
|
|
33
|
-
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : client_sts_1.decorateDefaultCredentialProvider(credential_provider_node_1.defaultProvider),
|
|
34
|
-
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : util_user_agent_node_1.defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
-
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : node_config_provider_1.loadConfig(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
-
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : node_config_provider_1.loadConfig(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
33
|
+
credentialDefaultProvider: (_d = config === null || config === void 0 ? void 0 : config.credentialDefaultProvider) !== null && _d !== void 0 ? _d : (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider),
|
|
34
|
+
defaultUserAgentProvider: (_e = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _e !== void 0 ? _e : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }),
|
|
35
|
+
maxAttempts: (_f = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
36
|
+
region: (_g = config === null || config === void 0 ? void 0 : config.region) !== null && _g !== void 0 ? _g : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
37
37
|
requestHandler: (_h = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _h !== void 0 ? _h : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider),
|
|
38
|
-
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : node_config_provider_1.loadConfig({
|
|
38
|
+
retryMode: (_j = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)({
|
|
39
39
|
...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
40
40
|
default: async () => (await defaultConfigProvider()).retryMode || middleware_retry_1.DEFAULT_RETRY_MODE,
|
|
41
41
|
}),
|
|
42
42
|
sha256: (_k = config === null || config === void 0 ? void 0 : config.sha256) !== null && _k !== void 0 ? _k : hash_node_1.Hash.bind(null, "sha256"),
|
|
43
43
|
streamCollector: (_l = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _l !== void 0 ? _l : node_http_handler_1.streamCollector,
|
|
44
|
-
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
-
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : node_config_provider_1.loadConfig(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
44
|
+
useDualstackEndpoint: (_m = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _m !== void 0 ? _m : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
45
|
+
useFipsEndpoint: (_o = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _o !== void 0 ? _o : (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
46
46
|
utf8Decoder: (_p = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _p !== void 0 ? _p : util_utf8_node_1.fromUtf8,
|
|
47
47
|
utf8Encoder: (_q = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _q !== void 0 ? _q : util_utf8_node_1.toUtf8,
|
|
48
48
|
};
|
|
@@ -5,7 +5,7 @@ const sha256_js_1 = require("@aws-crypto/sha256-js");
|
|
|
5
5
|
const runtimeConfig_browser_1 = require("./runtimeConfig.browser");
|
|
6
6
|
const getRuntimeConfig = (config) => {
|
|
7
7
|
var _a;
|
|
8
|
-
const browserDefaults = runtimeConfig_browser_1.getRuntimeConfig(config);
|
|
8
|
+
const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config);
|
|
9
9
|
return {
|
|
10
10
|
...browserDefaults,
|
|
11
11
|
...config,
|
package/dist-es/BackupGateway.js
CHANGED
|
@@ -28,7 +28,7 @@ var BackupGateway = (function (_super) {
|
|
|
28
28
|
}
|
|
29
29
|
else if (typeof cb === "function") {
|
|
30
30
|
if (typeof optionsOrCb !== "object")
|
|
31
|
-
throw new Error("Expect http options but get "
|
|
31
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
32
32
|
this.send(command, optionsOrCb || {}, cb);
|
|
33
33
|
}
|
|
34
34
|
else {
|
|
@@ -42,7 +42,7 @@ var BackupGateway = (function (_super) {
|
|
|
42
42
|
}
|
|
43
43
|
else if (typeof cb === "function") {
|
|
44
44
|
if (typeof optionsOrCb !== "object")
|
|
45
|
-
throw new Error("Expect http options but get "
|
|
45
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
46
46
|
this.send(command, optionsOrCb || {}, cb);
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
@@ -56,7 +56,7 @@ var BackupGateway = (function (_super) {
|
|
|
56
56
|
}
|
|
57
57
|
else if (typeof cb === "function") {
|
|
58
58
|
if (typeof optionsOrCb !== "object")
|
|
59
|
-
throw new Error("Expect http options but get "
|
|
59
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
60
60
|
this.send(command, optionsOrCb || {}, cb);
|
|
61
61
|
}
|
|
62
62
|
else {
|
|
@@ -70,7 +70,7 @@ var BackupGateway = (function (_super) {
|
|
|
70
70
|
}
|
|
71
71
|
else if (typeof cb === "function") {
|
|
72
72
|
if (typeof optionsOrCb !== "object")
|
|
73
|
-
throw new Error("Expect http options but get "
|
|
73
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
74
74
|
this.send(command, optionsOrCb || {}, cb);
|
|
75
75
|
}
|
|
76
76
|
else {
|
|
@@ -84,7 +84,7 @@ var BackupGateway = (function (_super) {
|
|
|
84
84
|
}
|
|
85
85
|
else if (typeof cb === "function") {
|
|
86
86
|
if (typeof optionsOrCb !== "object")
|
|
87
|
-
throw new Error("Expect http options but get "
|
|
87
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
88
88
|
this.send(command, optionsOrCb || {}, cb);
|
|
89
89
|
}
|
|
90
90
|
else {
|
|
@@ -98,7 +98,7 @@ var BackupGateway = (function (_super) {
|
|
|
98
98
|
}
|
|
99
99
|
else if (typeof cb === "function") {
|
|
100
100
|
if (typeof optionsOrCb !== "object")
|
|
101
|
-
throw new Error("Expect http options but get "
|
|
101
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
102
102
|
this.send(command, optionsOrCb || {}, cb);
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
@@ -112,7 +112,7 @@ var BackupGateway = (function (_super) {
|
|
|
112
112
|
}
|
|
113
113
|
else if (typeof cb === "function") {
|
|
114
114
|
if (typeof optionsOrCb !== "object")
|
|
115
|
-
throw new Error("Expect http options but get "
|
|
115
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
116
116
|
this.send(command, optionsOrCb || {}, cb);
|
|
117
117
|
}
|
|
118
118
|
else {
|
|
@@ -126,7 +126,7 @@ var BackupGateway = (function (_super) {
|
|
|
126
126
|
}
|
|
127
127
|
else if (typeof cb === "function") {
|
|
128
128
|
if (typeof optionsOrCb !== "object")
|
|
129
|
-
throw new Error("Expect http options but get "
|
|
129
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
130
130
|
this.send(command, optionsOrCb || {}, cb);
|
|
131
131
|
}
|
|
132
132
|
else {
|
|
@@ -140,7 +140,7 @@ var BackupGateway = (function (_super) {
|
|
|
140
140
|
}
|
|
141
141
|
else if (typeof cb === "function") {
|
|
142
142
|
if (typeof optionsOrCb !== "object")
|
|
143
|
-
throw new Error("Expect http options but get "
|
|
143
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
144
144
|
this.send(command, optionsOrCb || {}, cb);
|
|
145
145
|
}
|
|
146
146
|
else {
|
|
@@ -154,7 +154,7 @@ var BackupGateway = (function (_super) {
|
|
|
154
154
|
}
|
|
155
155
|
else if (typeof cb === "function") {
|
|
156
156
|
if (typeof optionsOrCb !== "object")
|
|
157
|
-
throw new Error("Expect http options but get "
|
|
157
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
158
158
|
this.send(command, optionsOrCb || {}, cb);
|
|
159
159
|
}
|
|
160
160
|
else {
|
|
@@ -168,7 +168,7 @@ var BackupGateway = (function (_super) {
|
|
|
168
168
|
}
|
|
169
169
|
else if (typeof cb === "function") {
|
|
170
170
|
if (typeof optionsOrCb !== "object")
|
|
171
|
-
throw new Error("Expect http options but get "
|
|
171
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
172
172
|
this.send(command, optionsOrCb || {}, cb);
|
|
173
173
|
}
|
|
174
174
|
else {
|
|
@@ -182,7 +182,7 @@ var BackupGateway = (function (_super) {
|
|
|
182
182
|
}
|
|
183
183
|
else if (typeof cb === "function") {
|
|
184
184
|
if (typeof optionsOrCb !== "object")
|
|
185
|
-
throw new Error("Expect http options but get "
|
|
185
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
186
186
|
this.send(command, optionsOrCb || {}, cb);
|
|
187
187
|
}
|
|
188
188
|
else {
|
|
@@ -196,7 +196,7 @@ var BackupGateway = (function (_super) {
|
|
|
196
196
|
}
|
|
197
197
|
else if (typeof cb === "function") {
|
|
198
198
|
if (typeof optionsOrCb !== "object")
|
|
199
|
-
throw new Error("Expect http options but get "
|
|
199
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
200
200
|
this.send(command, optionsOrCb || {}, cb);
|
|
201
201
|
}
|
|
202
202
|
else {
|
|
@@ -210,7 +210,7 @@ var BackupGateway = (function (_super) {
|
|
|
210
210
|
}
|
|
211
211
|
else if (typeof cb === "function") {
|
|
212
212
|
if (typeof optionsOrCb !== "object")
|
|
213
|
-
throw new Error("Expect http options but get "
|
|
213
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
214
214
|
this.send(command, optionsOrCb || {}, cb);
|
|
215
215
|
}
|
|
216
216
|
else {
|
|
@@ -224,7 +224,7 @@ var BackupGateway = (function (_super) {
|
|
|
224
224
|
}
|
|
225
225
|
else if (typeof cb === "function") {
|
|
226
226
|
if (typeof optionsOrCb !== "object")
|
|
227
|
-
throw new Error("Expect http options but get "
|
|
227
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
228
228
|
this.send(command, optionsOrCb || {}, cb);
|
|
229
229
|
}
|
|
230
230
|
else {
|
|
@@ -238,7 +238,7 @@ var BackupGateway = (function (_super) {
|
|
|
238
238
|
}
|
|
239
239
|
else if (typeof cb === "function") {
|
|
240
240
|
if (typeof optionsOrCb !== "object")
|
|
241
|
-
throw new Error("Expect http options but get "
|
|
241
|
+
throw new Error("Expect http options but get ".concat(typeof optionsOrCb));
|
|
242
242
|
this.send(command, optionsOrCb || {}, cb);
|
|
243
243
|
}
|
|
244
244
|
else {
|
|
@@ -10,7 +10,7 @@ var makePagedClientRequest = function (client, input) {
|
|
|
10
10
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
11
11
|
return __generator(this, function (_a) {
|
|
12
12
|
switch (_a.label) {
|
|
13
|
-
case 0: return [4, client.send.apply(client, __spreadArray([new ListGatewaysCommand(input)], __read(args)))];
|
|
13
|
+
case 0: return [4, client.send.apply(client, __spreadArray([new ListGatewaysCommand(input)], __read(args), false))];
|
|
14
14
|
case 1: return [2, _a.sent()];
|
|
15
15
|
}
|
|
16
16
|
});
|
|
@@ -24,7 +24,7 @@ var makePagedRequest = function (client, input) {
|
|
|
24
24
|
return __awaiter(void 0, void 0, void 0, function () {
|
|
25
25
|
return __generator(this, function (_a) {
|
|
26
26
|
switch (_a.label) {
|
|
27
|
-
case 0: return [4, client.listGateways.apply(client, __spreadArray([input], __read(args)))];
|
|
27
|
+
case 0: return [4, client.listGateways.apply(client, __spreadArray([input], __read(args), false))];
|
|
28
28
|
case 1: return [2, _a.sent()];
|
|
29
29
|
}
|
|
30
30
|
});
|
|
@@ -48,13 +48,13 @@ export function paginateListGateways(config, input) {
|
|
|
48
48
|
input.NextToken = token;
|
|
49
49
|
input["MaxResults"] = config.pageSize;
|
|
50
50
|
if (!(config.client instanceof BackupGateway)) return [3, 3];
|
|
51
|
-
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
51
|
+
return [4, __await(makePagedRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
52
52
|
case 2:
|
|
53
53
|
page = _a.sent();
|
|
54
54
|
return [3, 6];
|
|
55
55
|
case 3:
|
|
56
56
|
if (!(config.client instanceof BackupGatewayClient)) return [3, 5];
|
|
57
|
-
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments))))];
|
|
57
|
+
return [4, __await(makePagedClientRequest.apply(void 0, __spreadArray([config.client, input], __read(additionalArguments), false)))];
|
|
58
58
|
case 4:
|
|
59
59
|
page = _a.sent();
|
|
60
60
|
return [3, 6];
|