@aws-sdk/client-cloudcontrol 3.121.0 → 3.130.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +27 -0
- package/dist-cjs/protocols/Aws_json1_0.js +43 -57
- package/dist-es/protocols/Aws_json1_0.js +23 -37
- package/package.json +27 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [3.130.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.129.0...v3.130.0) (2022-07-14)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **codegen:** fix error code parsing when it's a number ([#3371](https://github.com/aws/aws-sdk-js-v3/issues/3371)) ([c2d8522](https://github.com/aws/aws-sdk-js-v3/commit/c2d852279a3d23958521a6ceb4f4c642b0cb1848))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
# [3.128.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.127.0...v3.128.0) (2022-07-12)
|
|
18
|
+
|
|
19
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudcontrol
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
# [3.127.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.126.0...v3.127.0) (2022-07-11)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @aws-sdk/client-cloudcontrol
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
# [3.121.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.120.0...v3.121.0) (2022-06-30)
|
|
7
34
|
|
|
8
35
|
|
|
@@ -831,60 +831,59 @@ const deserializeAws_json1_0UnsupportedActionExceptionResponse = async (parsedOu
|
|
|
831
831
|
};
|
|
832
832
|
const serializeAws_json1_0CancelResourceRequestInput = (input, context) => {
|
|
833
833
|
return {
|
|
834
|
-
...(input.RequestToken
|
|
834
|
+
...(input.RequestToken != null && { RequestToken: input.RequestToken }),
|
|
835
835
|
};
|
|
836
836
|
};
|
|
837
837
|
const serializeAws_json1_0CreateResourceInput = (input, context) => {
|
|
838
838
|
var _a;
|
|
839
839
|
return {
|
|
840
840
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
841
|
-
...(input.DesiredState
|
|
842
|
-
...(input.RoleArn
|
|
843
|
-
...(input.TypeName
|
|
844
|
-
...(input.TypeVersionId
|
|
841
|
+
...(input.DesiredState != null && { DesiredState: input.DesiredState }),
|
|
842
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
843
|
+
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
844
|
+
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
845
845
|
};
|
|
846
846
|
};
|
|
847
847
|
const serializeAws_json1_0DeleteResourceInput = (input, context) => {
|
|
848
848
|
var _a;
|
|
849
849
|
return {
|
|
850
850
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
851
|
-
...(input.Identifier
|
|
852
|
-
...(input.RoleArn
|
|
853
|
-
...(input.TypeName
|
|
854
|
-
...(input.TypeVersionId
|
|
851
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
852
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
853
|
+
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
854
|
+
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
855
855
|
};
|
|
856
856
|
};
|
|
857
857
|
const serializeAws_json1_0GetResourceInput = (input, context) => {
|
|
858
858
|
return {
|
|
859
|
-
...(input.Identifier
|
|
860
|
-
...(input.RoleArn
|
|
861
|
-
...(input.TypeName
|
|
862
|
-
...(input.TypeVersionId
|
|
859
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
860
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
861
|
+
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
862
|
+
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
863
863
|
};
|
|
864
864
|
};
|
|
865
865
|
const serializeAws_json1_0GetResourceRequestStatusInput = (input, context) => {
|
|
866
866
|
return {
|
|
867
|
-
...(input.RequestToken
|
|
867
|
+
...(input.RequestToken != null && { RequestToken: input.RequestToken }),
|
|
868
868
|
};
|
|
869
869
|
};
|
|
870
870
|
const serializeAws_json1_0ListResourceRequestsInput = (input, context) => {
|
|
871
871
|
return {
|
|
872
|
-
...(input.MaxResults
|
|
873
|
-
...(input.NextToken
|
|
874
|
-
...(input.ResourceRequestStatusFilter
|
|
875
|
-
input.ResourceRequestStatusFilter !== null && {
|
|
872
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
873
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
874
|
+
...(input.ResourceRequestStatusFilter != null && {
|
|
876
875
|
ResourceRequestStatusFilter: serializeAws_json1_0ResourceRequestStatusFilter(input.ResourceRequestStatusFilter, context),
|
|
877
876
|
}),
|
|
878
877
|
};
|
|
879
878
|
};
|
|
880
879
|
const serializeAws_json1_0ListResourcesInput = (input, context) => {
|
|
881
880
|
return {
|
|
882
|
-
...(input.MaxResults
|
|
883
|
-
...(input.NextToken
|
|
884
|
-
...(input.ResourceModel
|
|
885
|
-
...(input.RoleArn
|
|
886
|
-
...(input.TypeName
|
|
887
|
-
...(input.TypeVersionId
|
|
881
|
+
...(input.MaxResults != null && { MaxResults: input.MaxResults }),
|
|
882
|
+
...(input.NextToken != null && { NextToken: input.NextToken }),
|
|
883
|
+
...(input.ResourceModel != null && { ResourceModel: input.ResourceModel }),
|
|
884
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
885
|
+
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
886
|
+
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
888
887
|
};
|
|
889
888
|
};
|
|
890
889
|
const serializeAws_json1_0Operations = (input, context) => {
|
|
@@ -909,23 +908,21 @@ const serializeAws_json1_0OperationStatuses = (input, context) => {
|
|
|
909
908
|
};
|
|
910
909
|
const serializeAws_json1_0ResourceRequestStatusFilter = (input, context) => {
|
|
911
910
|
return {
|
|
912
|
-
...(input.OperationStatuses
|
|
913
|
-
input.OperationStatuses !== null && {
|
|
911
|
+
...(input.OperationStatuses != null && {
|
|
914
912
|
OperationStatuses: serializeAws_json1_0OperationStatuses(input.OperationStatuses, context),
|
|
915
913
|
}),
|
|
916
|
-
...(input.Operations
|
|
917
|
-
input.Operations !== null && { Operations: serializeAws_json1_0Operations(input.Operations, context) }),
|
|
914
|
+
...(input.Operations != null && { Operations: serializeAws_json1_0Operations(input.Operations, context) }),
|
|
918
915
|
};
|
|
919
916
|
};
|
|
920
917
|
const serializeAws_json1_0UpdateResourceInput = (input, context) => {
|
|
921
918
|
var _a;
|
|
922
919
|
return {
|
|
923
920
|
ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : (0, uuid_1.v4)(),
|
|
924
|
-
...(input.Identifier
|
|
925
|
-
...(input.PatchDocument
|
|
926
|
-
...(input.RoleArn
|
|
927
|
-
...(input.TypeName
|
|
928
|
-
...(input.TypeVersionId
|
|
921
|
+
...(input.Identifier != null && { Identifier: input.Identifier }),
|
|
922
|
+
...(input.PatchDocument != null && { PatchDocument: input.PatchDocument }),
|
|
923
|
+
...(input.RoleArn != null && { RoleArn: input.RoleArn }),
|
|
924
|
+
...(input.TypeName != null && { TypeName: input.TypeName }),
|
|
925
|
+
...(input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }),
|
|
929
926
|
};
|
|
930
927
|
};
|
|
931
928
|
const deserializeAws_json1_0AlreadyExistsException = (output, context) => {
|
|
@@ -935,9 +932,7 @@ const deserializeAws_json1_0AlreadyExistsException = (output, context) => {
|
|
|
935
932
|
};
|
|
936
933
|
const deserializeAws_json1_0CancelResourceRequestOutput = (output, context) => {
|
|
937
934
|
return {
|
|
938
|
-
ProgressEvent: output.ProgressEvent
|
|
939
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
940
|
-
: undefined,
|
|
935
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
941
936
|
};
|
|
942
937
|
};
|
|
943
938
|
const deserializeAws_json1_0ClientTokenConflictException = (output, context) => {
|
|
@@ -957,16 +952,12 @@ const deserializeAws_json1_0ConcurrentOperationException = (output, context) =>
|
|
|
957
952
|
};
|
|
958
953
|
const deserializeAws_json1_0CreateResourceOutput = (output, context) => {
|
|
959
954
|
return {
|
|
960
|
-
ProgressEvent: output.ProgressEvent
|
|
961
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
962
|
-
: undefined,
|
|
955
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
963
956
|
};
|
|
964
957
|
};
|
|
965
958
|
const deserializeAws_json1_0DeleteResourceOutput = (output, context) => {
|
|
966
959
|
return {
|
|
967
|
-
ProgressEvent: output.ProgressEvent
|
|
968
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
969
|
-
: undefined,
|
|
960
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
970
961
|
};
|
|
971
962
|
};
|
|
972
963
|
const deserializeAws_json1_0GeneralServiceException = (output, context) => {
|
|
@@ -976,7 +967,7 @@ const deserializeAws_json1_0GeneralServiceException = (output, context) => {
|
|
|
976
967
|
};
|
|
977
968
|
const deserializeAws_json1_0GetResourceOutput = (output, context) => {
|
|
978
969
|
return {
|
|
979
|
-
ResourceDescription: output.ResourceDescription
|
|
970
|
+
ResourceDescription: output.ResourceDescription != null
|
|
980
971
|
? deserializeAws_json1_0ResourceDescription(output.ResourceDescription, context)
|
|
981
972
|
: undefined,
|
|
982
973
|
TypeName: (0, smithy_client_1.expectString)(output.TypeName),
|
|
@@ -984,9 +975,7 @@ const deserializeAws_json1_0GetResourceOutput = (output, context) => {
|
|
|
984
975
|
};
|
|
985
976
|
const deserializeAws_json1_0GetResourceRequestStatusOutput = (output, context) => {
|
|
986
977
|
return {
|
|
987
|
-
ProgressEvent: output.ProgressEvent
|
|
988
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
989
|
-
: undefined,
|
|
978
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
990
979
|
};
|
|
991
980
|
};
|
|
992
981
|
const deserializeAws_json1_0HandlerFailureException = (output, context) => {
|
|
@@ -1012,7 +1001,7 @@ const deserializeAws_json1_0InvalidRequestException = (output, context) => {
|
|
|
1012
1001
|
const deserializeAws_json1_0ListResourceRequestsOutput = (output, context) => {
|
|
1013
1002
|
return {
|
|
1014
1003
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1015
|
-
ResourceRequestStatusSummaries: output.ResourceRequestStatusSummaries
|
|
1004
|
+
ResourceRequestStatusSummaries: output.ResourceRequestStatusSummaries != null
|
|
1016
1005
|
? deserializeAws_json1_0ResourceRequestStatusSummaries(output.ResourceRequestStatusSummaries, context)
|
|
1017
1006
|
: undefined,
|
|
1018
1007
|
};
|
|
@@ -1020,7 +1009,7 @@ const deserializeAws_json1_0ListResourceRequestsOutput = (output, context) => {
|
|
|
1020
1009
|
const deserializeAws_json1_0ListResourcesOutput = (output, context) => {
|
|
1021
1010
|
return {
|
|
1022
1011
|
NextToken: (0, smithy_client_1.expectString)(output.NextToken),
|
|
1023
|
-
ResourceDescriptions: output.ResourceDescriptions
|
|
1012
|
+
ResourceDescriptions: output.ResourceDescriptions != null
|
|
1024
1013
|
? deserializeAws_json1_0ResourceDescriptions(output.ResourceDescriptions, context)
|
|
1025
1014
|
: undefined,
|
|
1026
1015
|
TypeName: (0, smithy_client_1.expectString)(output.TypeName),
|
|
@@ -1049,17 +1038,13 @@ const deserializeAws_json1_0PrivateTypeException = (output, context) => {
|
|
|
1049
1038
|
const deserializeAws_json1_0ProgressEvent = (output, context) => {
|
|
1050
1039
|
return {
|
|
1051
1040
|
ErrorCode: (0, smithy_client_1.expectString)(output.ErrorCode),
|
|
1052
|
-
EventTime: output.EventTime
|
|
1053
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime)))
|
|
1054
|
-
: undefined,
|
|
1041
|
+
EventTime: output.EventTime != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.EventTime))) : undefined,
|
|
1055
1042
|
Identifier: (0, smithy_client_1.expectString)(output.Identifier),
|
|
1056
1043
|
Operation: (0, smithy_client_1.expectString)(output.Operation),
|
|
1057
1044
|
OperationStatus: (0, smithy_client_1.expectString)(output.OperationStatus),
|
|
1058
1045
|
RequestToken: (0, smithy_client_1.expectString)(output.RequestToken),
|
|
1059
1046
|
ResourceModel: (0, smithy_client_1.expectString)(output.ResourceModel),
|
|
1060
|
-
RetryAfter: output.RetryAfter
|
|
1061
|
-
? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RetryAfter)))
|
|
1062
|
-
: undefined,
|
|
1047
|
+
RetryAfter: output.RetryAfter != null ? (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(output.RetryAfter))) : undefined,
|
|
1063
1048
|
StatusMessage: (0, smithy_client_1.expectString)(output.StatusMessage),
|
|
1064
1049
|
TypeName: (0, smithy_client_1.expectString)(output.TypeName),
|
|
1065
1050
|
};
|
|
@@ -1134,9 +1119,7 @@ const deserializeAws_json1_0UnsupportedActionException = (output, context) => {
|
|
|
1134
1119
|
};
|
|
1135
1120
|
const deserializeAws_json1_0UpdateResourceOutput = (output, context) => {
|
|
1136
1121
|
return {
|
|
1137
|
-
ProgressEvent: output.ProgressEvent
|
|
1138
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
1139
|
-
: undefined,
|
|
1122
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
1140
1123
|
};
|
|
1141
1124
|
};
|
|
1142
1125
|
const deserializeMetadata = (output) => {
|
|
@@ -1183,6 +1166,9 @@ const loadRestJsonErrorCode = (output, data) => {
|
|
|
1183
1166
|
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1184
1167
|
const sanitizeErrorCode = (rawValue) => {
|
|
1185
1168
|
let cleanValue = rawValue;
|
|
1169
|
+
if (typeof cleanValue === "number") {
|
|
1170
|
+
cleanValue = cleanValue.toString();
|
|
1171
|
+
}
|
|
1186
1172
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1187
1173
|
cleanValue = cleanValue.split(":")[0];
|
|
1188
1174
|
}
|
|
@@ -1033,30 +1033,29 @@ var deserializeAws_json1_0UnsupportedActionExceptionResponse = function (parsedO
|
|
|
1033
1033
|
});
|
|
1034
1034
|
}); };
|
|
1035
1035
|
var serializeAws_json1_0CancelResourceRequestInput = function (input, context) {
|
|
1036
|
-
return __assign({}, (input.RequestToken
|
|
1036
|
+
return __assign({}, (input.RequestToken != null && { RequestToken: input.RequestToken }));
|
|
1037
1037
|
};
|
|
1038
1038
|
var serializeAws_json1_0CreateResourceInput = function (input, context) {
|
|
1039
1039
|
var _a;
|
|
1040
|
-
return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DesiredState
|
|
1040
|
+
return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.DesiredState != null && { DesiredState: input.DesiredState })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.TypeName != null && { TypeName: input.TypeName })), (input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }));
|
|
1041
1041
|
};
|
|
1042
1042
|
var serializeAws_json1_0DeleteResourceInput = function (input, context) {
|
|
1043
1043
|
var _a;
|
|
1044
|
-
return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Identifier
|
|
1044
|
+
return __assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Identifier != null && { Identifier: input.Identifier })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.TypeName != null && { TypeName: input.TypeName })), (input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }));
|
|
1045
1045
|
};
|
|
1046
1046
|
var serializeAws_json1_0GetResourceInput = function (input, context) {
|
|
1047
|
-
return __assign(__assign(__assign(__assign({}, (input.Identifier
|
|
1047
|
+
return __assign(__assign(__assign(__assign({}, (input.Identifier != null && { Identifier: input.Identifier })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.TypeName != null && { TypeName: input.TypeName })), (input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }));
|
|
1048
1048
|
};
|
|
1049
1049
|
var serializeAws_json1_0GetResourceRequestStatusInput = function (input, context) {
|
|
1050
|
-
return __assign({}, (input.RequestToken
|
|
1050
|
+
return __assign({}, (input.RequestToken != null && { RequestToken: input.RequestToken }));
|
|
1051
1051
|
};
|
|
1052
1052
|
var serializeAws_json1_0ListResourceRequestsInput = function (input, context) {
|
|
1053
|
-
return __assign(__assign(__assign({}, (input.MaxResults
|
|
1054
|
-
input.ResourceRequestStatusFilter !== null && {
|
|
1053
|
+
return __assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceRequestStatusFilter != null && {
|
|
1055
1054
|
ResourceRequestStatusFilter: serializeAws_json1_0ResourceRequestStatusFilter(input.ResourceRequestStatusFilter, context),
|
|
1056
1055
|
}));
|
|
1057
1056
|
};
|
|
1058
1057
|
var serializeAws_json1_0ListResourcesInput = function (input, context) {
|
|
1059
|
-
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults
|
|
1058
|
+
return __assign(__assign(__assign(__assign(__assign(__assign({}, (input.MaxResults != null && { MaxResults: input.MaxResults })), (input.NextToken != null && { NextToken: input.NextToken })), (input.ResourceModel != null && { ResourceModel: input.ResourceModel })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.TypeName != null && { TypeName: input.TypeName })), (input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }));
|
|
1060
1059
|
};
|
|
1061
1060
|
var serializeAws_json1_0Operations = function (input, context) {
|
|
1062
1061
|
return input
|
|
@@ -1079,15 +1078,13 @@ var serializeAws_json1_0OperationStatuses = function (input, context) {
|
|
|
1079
1078
|
});
|
|
1080
1079
|
};
|
|
1081
1080
|
var serializeAws_json1_0ResourceRequestStatusFilter = function (input, context) {
|
|
1082
|
-
return __assign(__assign({}, (input.OperationStatuses
|
|
1083
|
-
input.OperationStatuses !== null && {
|
|
1081
|
+
return __assign(__assign({}, (input.OperationStatuses != null && {
|
|
1084
1082
|
OperationStatuses: serializeAws_json1_0OperationStatuses(input.OperationStatuses, context),
|
|
1085
|
-
})), (input.Operations
|
|
1086
|
-
input.Operations !== null && { Operations: serializeAws_json1_0Operations(input.Operations, context) }));
|
|
1083
|
+
})), (input.Operations != null && { Operations: serializeAws_json1_0Operations(input.Operations, context) }));
|
|
1087
1084
|
};
|
|
1088
1085
|
var serializeAws_json1_0UpdateResourceInput = function (input, context) {
|
|
1089
1086
|
var _a;
|
|
1090
|
-
return __assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Identifier
|
|
1087
|
+
return __assign(__assign(__assign(__assign(__assign({ ClientToken: (_a = input.ClientToken) !== null && _a !== void 0 ? _a : generateIdempotencyToken() }, (input.Identifier != null && { Identifier: input.Identifier })), (input.PatchDocument != null && { PatchDocument: input.PatchDocument })), (input.RoleArn != null && { RoleArn: input.RoleArn })), (input.TypeName != null && { TypeName: input.TypeName })), (input.TypeVersionId != null && { TypeVersionId: input.TypeVersionId }));
|
|
1091
1088
|
};
|
|
1092
1089
|
var deserializeAws_json1_0AlreadyExistsException = function (output, context) {
|
|
1093
1090
|
return {
|
|
@@ -1096,9 +1093,7 @@ var deserializeAws_json1_0AlreadyExistsException = function (output, context) {
|
|
|
1096
1093
|
};
|
|
1097
1094
|
var deserializeAws_json1_0CancelResourceRequestOutput = function (output, context) {
|
|
1098
1095
|
return {
|
|
1099
|
-
ProgressEvent: output.ProgressEvent
|
|
1100
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
1101
|
-
: undefined,
|
|
1096
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
1102
1097
|
};
|
|
1103
1098
|
};
|
|
1104
1099
|
var deserializeAws_json1_0ClientTokenConflictException = function (output, context) {
|
|
@@ -1118,16 +1113,12 @@ var deserializeAws_json1_0ConcurrentOperationException = function (output, conte
|
|
|
1118
1113
|
};
|
|
1119
1114
|
var deserializeAws_json1_0CreateResourceOutput = function (output, context) {
|
|
1120
1115
|
return {
|
|
1121
|
-
ProgressEvent: output.ProgressEvent
|
|
1122
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
1123
|
-
: undefined,
|
|
1116
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
1124
1117
|
};
|
|
1125
1118
|
};
|
|
1126
1119
|
var deserializeAws_json1_0DeleteResourceOutput = function (output, context) {
|
|
1127
1120
|
return {
|
|
1128
|
-
ProgressEvent: output.ProgressEvent
|
|
1129
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
1130
|
-
: undefined,
|
|
1121
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
1131
1122
|
};
|
|
1132
1123
|
};
|
|
1133
1124
|
var deserializeAws_json1_0GeneralServiceException = function (output, context) {
|
|
@@ -1137,7 +1128,7 @@ var deserializeAws_json1_0GeneralServiceException = function (output, context) {
|
|
|
1137
1128
|
};
|
|
1138
1129
|
var deserializeAws_json1_0GetResourceOutput = function (output, context) {
|
|
1139
1130
|
return {
|
|
1140
|
-
ResourceDescription: output.ResourceDescription
|
|
1131
|
+
ResourceDescription: output.ResourceDescription != null
|
|
1141
1132
|
? deserializeAws_json1_0ResourceDescription(output.ResourceDescription, context)
|
|
1142
1133
|
: undefined,
|
|
1143
1134
|
TypeName: __expectString(output.TypeName),
|
|
@@ -1145,9 +1136,7 @@ var deserializeAws_json1_0GetResourceOutput = function (output, context) {
|
|
|
1145
1136
|
};
|
|
1146
1137
|
var deserializeAws_json1_0GetResourceRequestStatusOutput = function (output, context) {
|
|
1147
1138
|
return {
|
|
1148
|
-
ProgressEvent: output.ProgressEvent
|
|
1149
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
1150
|
-
: undefined,
|
|
1139
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
1151
1140
|
};
|
|
1152
1141
|
};
|
|
1153
1142
|
var deserializeAws_json1_0HandlerFailureException = function (output, context) {
|
|
@@ -1173,7 +1162,7 @@ var deserializeAws_json1_0InvalidRequestException = function (output, context) {
|
|
|
1173
1162
|
var deserializeAws_json1_0ListResourceRequestsOutput = function (output, context) {
|
|
1174
1163
|
return {
|
|
1175
1164
|
NextToken: __expectString(output.NextToken),
|
|
1176
|
-
ResourceRequestStatusSummaries: output.ResourceRequestStatusSummaries
|
|
1165
|
+
ResourceRequestStatusSummaries: output.ResourceRequestStatusSummaries != null
|
|
1177
1166
|
? deserializeAws_json1_0ResourceRequestStatusSummaries(output.ResourceRequestStatusSummaries, context)
|
|
1178
1167
|
: undefined,
|
|
1179
1168
|
};
|
|
@@ -1181,7 +1170,7 @@ var deserializeAws_json1_0ListResourceRequestsOutput = function (output, context
|
|
|
1181
1170
|
var deserializeAws_json1_0ListResourcesOutput = function (output, context) {
|
|
1182
1171
|
return {
|
|
1183
1172
|
NextToken: __expectString(output.NextToken),
|
|
1184
|
-
ResourceDescriptions: output.ResourceDescriptions
|
|
1173
|
+
ResourceDescriptions: output.ResourceDescriptions != null
|
|
1185
1174
|
? deserializeAws_json1_0ResourceDescriptions(output.ResourceDescriptions, context)
|
|
1186
1175
|
: undefined,
|
|
1187
1176
|
TypeName: __expectString(output.TypeName),
|
|
@@ -1210,17 +1199,13 @@ var deserializeAws_json1_0PrivateTypeException = function (output, context) {
|
|
|
1210
1199
|
var deserializeAws_json1_0ProgressEvent = function (output, context) {
|
|
1211
1200
|
return {
|
|
1212
1201
|
ErrorCode: __expectString(output.ErrorCode),
|
|
1213
|
-
EventTime: output.EventTime
|
|
1214
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventTime)))
|
|
1215
|
-
: undefined,
|
|
1202
|
+
EventTime: output.EventTime != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.EventTime))) : undefined,
|
|
1216
1203
|
Identifier: __expectString(output.Identifier),
|
|
1217
1204
|
Operation: __expectString(output.Operation),
|
|
1218
1205
|
OperationStatus: __expectString(output.OperationStatus),
|
|
1219
1206
|
RequestToken: __expectString(output.RequestToken),
|
|
1220
1207
|
ResourceModel: __expectString(output.ResourceModel),
|
|
1221
|
-
RetryAfter: output.RetryAfter
|
|
1222
|
-
? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RetryAfter)))
|
|
1223
|
-
: undefined,
|
|
1208
|
+
RetryAfter: output.RetryAfter != null ? __expectNonNull(__parseEpochTimestamp(__expectNumber(output.RetryAfter))) : undefined,
|
|
1224
1209
|
StatusMessage: __expectString(output.StatusMessage),
|
|
1225
1210
|
TypeName: __expectString(output.TypeName),
|
|
1226
1211
|
};
|
|
@@ -1295,9 +1280,7 @@ var deserializeAws_json1_0UnsupportedActionException = function (output, context
|
|
|
1295
1280
|
};
|
|
1296
1281
|
var deserializeAws_json1_0UpdateResourceOutput = function (output, context) {
|
|
1297
1282
|
return {
|
|
1298
|
-
ProgressEvent: output.ProgressEvent
|
|
1299
|
-
? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context)
|
|
1300
|
-
: undefined,
|
|
1283
|
+
ProgressEvent: output.ProgressEvent != null ? deserializeAws_json1_0ProgressEvent(output.ProgressEvent, context) : undefined,
|
|
1301
1284
|
};
|
|
1302
1285
|
};
|
|
1303
1286
|
var deserializeMetadata = function (output) {
|
|
@@ -1356,6 +1339,9 @@ var loadRestJsonErrorCode = function (output, data) {
|
|
|
1356
1339
|
var findKey = function (object, key) { return Object.keys(object).find(function (k) { return k.toLowerCase() === key.toLowerCase(); }); };
|
|
1357
1340
|
var sanitizeErrorCode = function (rawValue) {
|
|
1358
1341
|
var cleanValue = rawValue;
|
|
1342
|
+
if (typeof cleanValue === "number") {
|
|
1343
|
+
cleanValue = cleanValue.toString();
|
|
1344
|
+
}
|
|
1359
1345
|
if (cleanValue.indexOf(":") >= 0) {
|
|
1360
1346
|
cleanValue = cleanValue.split(":")[0];
|
|
1361
1347
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-cloudcontrol",
|
|
3
3
|
"description": "AWS SDK for JavaScript Cloudcontrol Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.130.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "tsc -p tsconfig.cjs.json",
|
|
@@ -18,38 +18,38 @@
|
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@aws-crypto/sha256-browser": "2.0.0",
|
|
20
20
|
"@aws-crypto/sha256-js": "2.0.0",
|
|
21
|
-
"@aws-sdk/client-sts": "3.
|
|
22
|
-
"@aws-sdk/config-resolver": "3.
|
|
23
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
24
|
-
"@aws-sdk/fetch-http-handler": "3.
|
|
25
|
-
"@aws-sdk/hash-node": "3.
|
|
26
|
-
"@aws-sdk/invalid-dependency": "3.
|
|
27
|
-
"@aws-sdk/middleware-content-length": "3.
|
|
28
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
29
|
-
"@aws-sdk/middleware-logger": "3.
|
|
30
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
31
|
-
"@aws-sdk/middleware-retry": "3.
|
|
32
|
-
"@aws-sdk/middleware-serde": "3.
|
|
33
|
-
"@aws-sdk/middleware-signing": "3.
|
|
34
|
-
"@aws-sdk/middleware-stack": "3.
|
|
35
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
36
|
-
"@aws-sdk/node-config-provider": "3.
|
|
37
|
-
"@aws-sdk/node-http-handler": "3.
|
|
38
|
-
"@aws-sdk/protocol-http": "3.
|
|
39
|
-
"@aws-sdk/smithy-client": "3.
|
|
40
|
-
"@aws-sdk/types": "3.
|
|
41
|
-
"@aws-sdk/url-parser": "3.
|
|
21
|
+
"@aws-sdk/client-sts": "3.130.0",
|
|
22
|
+
"@aws-sdk/config-resolver": "3.130.0",
|
|
23
|
+
"@aws-sdk/credential-provider-node": "3.130.0",
|
|
24
|
+
"@aws-sdk/fetch-http-handler": "3.127.0",
|
|
25
|
+
"@aws-sdk/hash-node": "3.127.0",
|
|
26
|
+
"@aws-sdk/invalid-dependency": "3.127.0",
|
|
27
|
+
"@aws-sdk/middleware-content-length": "3.127.0",
|
|
28
|
+
"@aws-sdk/middleware-host-header": "3.127.0",
|
|
29
|
+
"@aws-sdk/middleware-logger": "3.127.0",
|
|
30
|
+
"@aws-sdk/middleware-recursion-detection": "3.127.0",
|
|
31
|
+
"@aws-sdk/middleware-retry": "3.127.0",
|
|
32
|
+
"@aws-sdk/middleware-serde": "3.127.0",
|
|
33
|
+
"@aws-sdk/middleware-signing": "3.130.0",
|
|
34
|
+
"@aws-sdk/middleware-stack": "3.127.0",
|
|
35
|
+
"@aws-sdk/middleware-user-agent": "3.127.0",
|
|
36
|
+
"@aws-sdk/node-config-provider": "3.127.0",
|
|
37
|
+
"@aws-sdk/node-http-handler": "3.127.0",
|
|
38
|
+
"@aws-sdk/protocol-http": "3.127.0",
|
|
39
|
+
"@aws-sdk/smithy-client": "3.127.0",
|
|
40
|
+
"@aws-sdk/types": "3.127.0",
|
|
41
|
+
"@aws-sdk/url-parser": "3.127.0",
|
|
42
42
|
"@aws-sdk/util-base64-browser": "3.109.0",
|
|
43
43
|
"@aws-sdk/util-base64-node": "3.55.0",
|
|
44
44
|
"@aws-sdk/util-body-length-browser": "3.55.0",
|
|
45
45
|
"@aws-sdk/util-body-length-node": "3.55.0",
|
|
46
|
-
"@aws-sdk/util-defaults-mode-browser": "3.
|
|
47
|
-
"@aws-sdk/util-defaults-mode-node": "3.
|
|
48
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
49
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
46
|
+
"@aws-sdk/util-defaults-mode-browser": "3.127.0",
|
|
47
|
+
"@aws-sdk/util-defaults-mode-node": "3.130.0",
|
|
48
|
+
"@aws-sdk/util-user-agent-browser": "3.127.0",
|
|
49
|
+
"@aws-sdk/util-user-agent-node": "3.127.0",
|
|
50
50
|
"@aws-sdk/util-utf8-browser": "3.109.0",
|
|
51
51
|
"@aws-sdk/util-utf8-node": "3.109.0",
|
|
52
|
-
"@aws-sdk/util-waiter": "3.
|
|
52
|
+
"@aws-sdk/util-waiter": "3.127.0",
|
|
53
53
|
"tslib": "^2.3.1",
|
|
54
54
|
"uuid": "^8.3.2"
|
|
55
55
|
},
|