@aws-sdk/client-service-catalog-appregistry 3.523.0 → 3.529.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/dist-cjs/index.js +24 -64
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/ServiceCatalogAppRegistry.js +0 -1
- package/dist-cjs/ServiceCatalogAppRegistryClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AssociateAttributeGroupCommand.js +0 -1
- package/dist-cjs/commands/AssociateResourceCommand.js +0 -1
- package/dist-cjs/commands/CreateApplicationCommand.js +0 -1
- package/dist-cjs/commands/CreateAttributeGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteApplicationCommand.js +0 -1
- package/dist-cjs/commands/DeleteAttributeGroupCommand.js +0 -1
- package/dist-cjs/commands/DisassociateAttributeGroupCommand.js +0 -1
- package/dist-cjs/commands/DisassociateResourceCommand.js +0 -1
- package/dist-cjs/commands/GetApplicationCommand.js +0 -1
- package/dist-cjs/commands/GetAssociatedResourceCommand.js +0 -1
- package/dist-cjs/commands/GetAttributeGroupCommand.js +0 -1
- package/dist-cjs/commands/GetConfigurationCommand.js +0 -1
- package/dist-cjs/commands/ListApplicationsCommand.js +0 -1
- package/dist-cjs/commands/ListAssociatedAttributeGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListAssociatedResourcesCommand.js +0 -1
- package/dist-cjs/commands/ListAttributeGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListAttributeGroupsForApplicationCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/PutConfigurationCommand.js +0 -1
- package/dist-cjs/commands/SyncResourceCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateApplicationCommand.js +0 -1
- package/dist-cjs/commands/UpdateAttributeGroupCommand.js +0 -1
- package/dist-cjs/commands/index.js +0 -1
- package/dist-cjs/endpoint/EndpointParameters.js +0 -1
- package/dist-cjs/extensionConfiguration.js +0 -1
- package/dist-cjs/models/ServiceCatalogAppRegistryServiceException.js +0 -1
- package/dist-cjs/models/index.js +0 -1
- package/dist-cjs/models/models_0.js +0 -1
- package/dist-cjs/pagination/Interfaces.js +0 -1
- package/dist-cjs/pagination/ListApplicationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAssociatedAttributeGroupsPaginator.js +0 -1
- package/dist-cjs/pagination/ListAssociatedResourcesPaginator.js +0 -1
- package/dist-cjs/pagination/ListAttributeGroupsForApplicationPaginator.js +0 -1
- package/dist-cjs/pagination/ListAttributeGroupsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_restJson1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -222,6 +222,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
222
222
|
var import_types = require("@smithy/types");
|
|
223
223
|
|
|
224
224
|
// src/protocols/Aws_restJson1.ts
|
|
225
|
+
var import_core2 = require("@aws-sdk/core");
|
|
225
226
|
|
|
226
227
|
|
|
227
228
|
var import_uuid = require("uuid");
|
|
@@ -696,7 +697,7 @@ var de_AssociateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
696
697
|
const contents = (0, import_smithy_client.map)({
|
|
697
698
|
$metadata: deserializeMetadata(output)
|
|
698
699
|
});
|
|
699
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
700
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
700
701
|
const doc = (0, import_smithy_client.take)(data, {
|
|
701
702
|
applicationArn: import_smithy_client.expectString,
|
|
702
703
|
attributeGroupArn: import_smithy_client.expectString
|
|
@@ -711,7 +712,7 @@ var de_AssociateResourceCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
711
712
|
const contents = (0, import_smithy_client.map)({
|
|
712
713
|
$metadata: deserializeMetadata(output)
|
|
713
714
|
});
|
|
714
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
715
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
715
716
|
const doc = (0, import_smithy_client.take)(data, {
|
|
716
717
|
applicationArn: import_smithy_client.expectString,
|
|
717
718
|
options: import_smithy_client._json,
|
|
@@ -727,7 +728,7 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
727
728
|
const contents = (0, import_smithy_client.map)({
|
|
728
729
|
$metadata: deserializeMetadata(output)
|
|
729
730
|
});
|
|
730
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
731
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
731
732
|
const doc = (0, import_smithy_client.take)(data, {
|
|
732
733
|
application: (_) => de_Application(_, context)
|
|
733
734
|
});
|
|
@@ -741,7 +742,7 @@ var de_CreateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
741
742
|
const contents = (0, import_smithy_client.map)({
|
|
742
743
|
$metadata: deserializeMetadata(output)
|
|
743
744
|
});
|
|
744
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
745
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
745
746
|
const doc = (0, import_smithy_client.take)(data, {
|
|
746
747
|
attributeGroup: (_) => de_AttributeGroup(_, context)
|
|
747
748
|
});
|
|
@@ -755,7 +756,7 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
755
756
|
const contents = (0, import_smithy_client.map)({
|
|
756
757
|
$metadata: deserializeMetadata(output)
|
|
757
758
|
});
|
|
758
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
759
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
759
760
|
const doc = (0, import_smithy_client.take)(data, {
|
|
760
761
|
application: (_) => de_ApplicationSummary(_, context)
|
|
761
762
|
});
|
|
@@ -769,7 +770,7 @@ var de_DeleteAttributeGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
769
770
|
const contents = (0, import_smithy_client.map)({
|
|
770
771
|
$metadata: deserializeMetadata(output)
|
|
771
772
|
});
|
|
772
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
773
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
773
774
|
const doc = (0, import_smithy_client.take)(data, {
|
|
774
775
|
attributeGroup: (_) => de_AttributeGroupSummary(_, context)
|
|
775
776
|
});
|
|
@@ -783,7 +784,7 @@ var de_DisassociateAttributeGroupCommand = /* @__PURE__ */ __name(async (output,
|
|
|
783
784
|
const contents = (0, import_smithy_client.map)({
|
|
784
785
|
$metadata: deserializeMetadata(output)
|
|
785
786
|
});
|
|
786
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
787
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
787
788
|
const doc = (0, import_smithy_client.take)(data, {
|
|
788
789
|
applicationArn: import_smithy_client.expectString,
|
|
789
790
|
attributeGroupArn: import_smithy_client.expectString
|
|
@@ -798,7 +799,7 @@ var de_DisassociateResourceCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
798
799
|
const contents = (0, import_smithy_client.map)({
|
|
799
800
|
$metadata: deserializeMetadata(output)
|
|
800
801
|
});
|
|
801
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
802
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
802
803
|
const doc = (0, import_smithy_client.take)(data, {
|
|
803
804
|
applicationArn: import_smithy_client.expectString,
|
|
804
805
|
resourceArn: import_smithy_client.expectString
|
|
@@ -813,7 +814,7 @@ var de_GetApplicationCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
813
814
|
const contents = (0, import_smithy_client.map)({
|
|
814
815
|
$metadata: deserializeMetadata(output)
|
|
815
816
|
});
|
|
816
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
817
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
817
818
|
const doc = (0, import_smithy_client.take)(data, {
|
|
818
819
|
applicationTag: import_smithy_client._json,
|
|
819
820
|
arn: import_smithy_client.expectString,
|
|
@@ -836,7 +837,7 @@ var de_GetAssociatedResourceCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
836
837
|
const contents = (0, import_smithy_client.map)({
|
|
837
838
|
$metadata: deserializeMetadata(output)
|
|
838
839
|
});
|
|
839
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
840
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
840
841
|
const doc = (0, import_smithy_client.take)(data, {
|
|
841
842
|
applicationTagResult: import_smithy_client._json,
|
|
842
843
|
options: import_smithy_client._json,
|
|
@@ -852,7 +853,7 @@ var de_GetAttributeGroupCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
852
853
|
const contents = (0, import_smithy_client.map)({
|
|
853
854
|
$metadata: deserializeMetadata(output)
|
|
854
855
|
});
|
|
855
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
856
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
856
857
|
const doc = (0, import_smithy_client.take)(data, {
|
|
857
858
|
arn: import_smithy_client.expectString,
|
|
858
859
|
attributes: import_smithy_client.expectString,
|
|
@@ -874,7 +875,7 @@ var de_GetConfigurationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
874
875
|
const contents = (0, import_smithy_client.map)({
|
|
875
876
|
$metadata: deserializeMetadata(output)
|
|
876
877
|
});
|
|
877
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
878
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
878
879
|
const doc = (0, import_smithy_client.take)(data, {
|
|
879
880
|
configuration: import_smithy_client._json
|
|
880
881
|
});
|
|
@@ -888,7 +889,7 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
888
889
|
const contents = (0, import_smithy_client.map)({
|
|
889
890
|
$metadata: deserializeMetadata(output)
|
|
890
891
|
});
|
|
891
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
892
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
892
893
|
const doc = (0, import_smithy_client.take)(data, {
|
|
893
894
|
applications: (_) => de_ApplicationSummaries(_, context),
|
|
894
895
|
nextToken: import_smithy_client.expectString
|
|
@@ -903,7 +904,7 @@ var de_ListAssociatedAttributeGroupsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
903
904
|
const contents = (0, import_smithy_client.map)({
|
|
904
905
|
$metadata: deserializeMetadata(output)
|
|
905
906
|
});
|
|
906
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
907
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
907
908
|
const doc = (0, import_smithy_client.take)(data, {
|
|
908
909
|
attributeGroups: import_smithy_client._json,
|
|
909
910
|
nextToken: import_smithy_client.expectString
|
|
@@ -918,7 +919,7 @@ var de_ListAssociatedResourcesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
918
919
|
const contents = (0, import_smithy_client.map)({
|
|
919
920
|
$metadata: deserializeMetadata(output)
|
|
920
921
|
});
|
|
921
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
922
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
922
923
|
const doc = (0, import_smithy_client.take)(data, {
|
|
923
924
|
nextToken: import_smithy_client.expectString,
|
|
924
925
|
resources: import_smithy_client._json
|
|
@@ -933,7 +934,7 @@ var de_ListAttributeGroupsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
933
934
|
const contents = (0, import_smithy_client.map)({
|
|
934
935
|
$metadata: deserializeMetadata(output)
|
|
935
936
|
});
|
|
936
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
937
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
937
938
|
const doc = (0, import_smithy_client.take)(data, {
|
|
938
939
|
attributeGroups: (_) => de_AttributeGroupSummaries(_, context),
|
|
939
940
|
nextToken: import_smithy_client.expectString
|
|
@@ -948,7 +949,7 @@ var de_ListAttributeGroupsForApplicationCommand = /* @__PURE__ */ __name(async (
|
|
|
948
949
|
const contents = (0, import_smithy_client.map)({
|
|
949
950
|
$metadata: deserializeMetadata(output)
|
|
950
951
|
});
|
|
951
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
952
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
952
953
|
const doc = (0, import_smithy_client.take)(data, {
|
|
953
954
|
attributeGroupsDetails: import_smithy_client._json,
|
|
954
955
|
nextToken: import_smithy_client.expectString
|
|
@@ -963,7 +964,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
963
964
|
const contents = (0, import_smithy_client.map)({
|
|
964
965
|
$metadata: deserializeMetadata(output)
|
|
965
966
|
});
|
|
966
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
967
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
967
968
|
const doc = (0, import_smithy_client.take)(data, {
|
|
968
969
|
tags: import_smithy_client._json
|
|
969
970
|
});
|
|
@@ -987,7 +988,7 @@ var de_SyncResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
987
988
|
const contents = (0, import_smithy_client.map)({
|
|
988
989
|
$metadata: deserializeMetadata(output)
|
|
989
990
|
});
|
|
990
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
991
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
991
992
|
const doc = (0, import_smithy_client.take)(data, {
|
|
992
993
|
actionTaken: import_smithy_client.expectString,
|
|
993
994
|
applicationArn: import_smithy_client.expectString,
|
|
@@ -1023,7 +1024,7 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1023
1024
|
const contents = (0, import_smithy_client.map)({
|
|
1024
1025
|
$metadata: deserializeMetadata(output)
|
|
1025
1026
|
});
|
|
1026
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1027
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1027
1028
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1028
1029
|
application: (_) => de_Application(_, context)
|
|
1029
1030
|
});
|
|
@@ -1037,7 +1038,7 @@ var de_UpdateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1037
1038
|
const contents = (0, import_smithy_client.map)({
|
|
1038
1039
|
$metadata: deserializeMetadata(output)
|
|
1039
1040
|
});
|
|
1040
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
1041
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
1041
1042
|
const doc = (0, import_smithy_client.take)(data, {
|
|
1042
1043
|
attributeGroup: (_) => de_AttributeGroup(_, context)
|
|
1043
1044
|
});
|
|
@@ -1047,9 +1048,9 @@ var de_UpdateAttributeGroupCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1047
1048
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1048
1049
|
const parsedOutput = {
|
|
1049
1050
|
...output,
|
|
1050
|
-
body: await
|
|
1051
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1051
1052
|
};
|
|
1052
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1053
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1053
1054
|
switch (errorCode) {
|
|
1054
1055
|
case "ConflictException":
|
|
1055
1056
|
case "com.amazonaws.servicecatalogappregistry#ConflictException":
|
|
@@ -1228,51 +1229,10 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1228
1229
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1229
1230
|
cfId: output.headers["x-amz-cf-id"]
|
|
1230
1231
|
}), "deserializeMetadata");
|
|
1231
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1232
1232
|
var _mR = "maxResults";
|
|
1233
1233
|
var _nT = "nextToken";
|
|
1234
1234
|
var _rTS = "resourceTagStatus";
|
|
1235
1235
|
var _tK = "tagKeys";
|
|
1236
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1237
|
-
if (encoded.length) {
|
|
1238
|
-
return JSON.parse(encoded);
|
|
1239
|
-
}
|
|
1240
|
-
return {};
|
|
1241
|
-
}), "parseBody");
|
|
1242
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1243
|
-
const value = await parseBody(errorBody, context);
|
|
1244
|
-
value.message = value.message ?? value.Message;
|
|
1245
|
-
return value;
|
|
1246
|
-
}, "parseErrorBody");
|
|
1247
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1248
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1249
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1250
|
-
let cleanValue = rawValue;
|
|
1251
|
-
if (typeof cleanValue === "number") {
|
|
1252
|
-
cleanValue = cleanValue.toString();
|
|
1253
|
-
}
|
|
1254
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1255
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1256
|
-
}
|
|
1257
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1258
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1259
|
-
}
|
|
1260
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1261
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1262
|
-
}
|
|
1263
|
-
return cleanValue;
|
|
1264
|
-
}, "sanitizeErrorCode");
|
|
1265
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1266
|
-
if (headerKey !== void 0) {
|
|
1267
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1268
|
-
}
|
|
1269
|
-
if (data.code !== void 0) {
|
|
1270
|
-
return sanitizeErrorCode(data.code);
|
|
1271
|
-
}
|
|
1272
|
-
if (data["__type"] !== void 0) {
|
|
1273
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1274
|
-
}
|
|
1275
|
-
}, "loadRestJsonErrorCode");
|
|
1276
1236
|
|
|
1277
1237
|
// src/commands/AssociateAttributeGroupCommand.ts
|
|
1278
1238
|
var _AssociateAttributeGroupCommand = class _AssociateAttributeGroupCommand extends import_smithy_client.Command.classBuilder().ep({
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { loadRestJsonErrorCode, parseJsonBody as parseBody, parseJsonErrorBody as parseErrorBody } from "@aws-sdk/core";
|
|
1
2
|
import { requestBuilder as rb } from "@smithy/core";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -854,43 +855,3 @@ const _mR = "maxResults";
|
|
|
854
855
|
const _nT = "nextToken";
|
|
855
856
|
const _rTS = "resourceTagStatus";
|
|
856
857
|
const _tK = "tagKeys";
|
|
857
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
858
|
-
if (encoded.length) {
|
|
859
|
-
return JSON.parse(encoded);
|
|
860
|
-
}
|
|
861
|
-
return {};
|
|
862
|
-
});
|
|
863
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
864
|
-
const value = await parseBody(errorBody, context);
|
|
865
|
-
value.message = value.message ?? value.Message;
|
|
866
|
-
return value;
|
|
867
|
-
};
|
|
868
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
869
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
870
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
871
|
-
let cleanValue = rawValue;
|
|
872
|
-
if (typeof cleanValue === "number") {
|
|
873
|
-
cleanValue = cleanValue.toString();
|
|
874
|
-
}
|
|
875
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
876
|
-
cleanValue = cleanValue.split(",")[0];
|
|
877
|
-
}
|
|
878
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
879
|
-
cleanValue = cleanValue.split(":")[0];
|
|
880
|
-
}
|
|
881
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
882
|
-
cleanValue = cleanValue.split("#")[1];
|
|
883
|
-
}
|
|
884
|
-
return cleanValue;
|
|
885
|
-
};
|
|
886
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
887
|
-
if (headerKey !== undefined) {
|
|
888
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
889
|
-
}
|
|
890
|
-
if (data.code !== undefined) {
|
|
891
|
-
return sanitizeErrorCode(data.code);
|
|
892
|
-
}
|
|
893
|
-
if (data["__type"] !== undefined) {
|
|
894
|
-
return sanitizeErrorCode(data["__type"]);
|
|
895
|
-
}
|
|
896
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-service-catalog-appregistry",
|
|
3
3
|
"description": "AWS SDK for JavaScript Service Catalog Appregistry Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.529.0",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
|
|
7
7
|
"build:cjs": "node ../../scripts/compilation/inline client-service-catalog-appregistry",
|
|
@@ -20,40 +20,40 @@
|
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@aws-crypto/sha256-browser": "3.0.0",
|
|
22
22
|
"@aws-crypto/sha256-js": "3.0.0",
|
|
23
|
-
"@aws-sdk/client-sts": "3.
|
|
24
|
-
"@aws-sdk/core": "3.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
23
|
+
"@aws-sdk/client-sts": "3.529.0",
|
|
24
|
+
"@aws-sdk/core": "3.529.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.529.0",
|
|
26
26
|
"@aws-sdk/middleware-host-header": "3.523.0",
|
|
27
27
|
"@aws-sdk/middleware-logger": "3.523.0",
|
|
28
28
|
"@aws-sdk/middleware-recursion-detection": "3.523.0",
|
|
29
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
30
|
-
"@aws-sdk/region-config-resolver": "3.
|
|
29
|
+
"@aws-sdk/middleware-user-agent": "3.525.0",
|
|
30
|
+
"@aws-sdk/region-config-resolver": "3.525.0",
|
|
31
31
|
"@aws-sdk/types": "3.523.0",
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.525.0",
|
|
33
33
|
"@aws-sdk/util-user-agent-browser": "3.523.0",
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.1.
|
|
36
|
-
"@smithy/core": "^1.3.
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.525.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.1.4",
|
|
36
|
+
"@smithy/core": "^1.3.5",
|
|
37
37
|
"@smithy/fetch-http-handler": "^2.4.3",
|
|
38
38
|
"@smithy/hash-node": "^2.1.3",
|
|
39
39
|
"@smithy/invalid-dependency": "^2.1.3",
|
|
40
40
|
"@smithy/middleware-content-length": "^2.1.3",
|
|
41
|
-
"@smithy/middleware-endpoint": "^2.4.
|
|
42
|
-
"@smithy/middleware-retry": "^2.1.
|
|
41
|
+
"@smithy/middleware-endpoint": "^2.4.4",
|
|
42
|
+
"@smithy/middleware-retry": "^2.1.4",
|
|
43
43
|
"@smithy/middleware-serde": "^2.1.3",
|
|
44
44
|
"@smithy/middleware-stack": "^2.1.3",
|
|
45
|
-
"@smithy/node-config-provider": "^2.2.
|
|
45
|
+
"@smithy/node-config-provider": "^2.2.4",
|
|
46
46
|
"@smithy/node-http-handler": "^2.4.1",
|
|
47
47
|
"@smithy/protocol-http": "^3.2.1",
|
|
48
|
-
"@smithy/smithy-client": "^2.4.
|
|
48
|
+
"@smithy/smithy-client": "^2.4.2",
|
|
49
49
|
"@smithy/types": "^2.10.1",
|
|
50
50
|
"@smithy/url-parser": "^2.1.3",
|
|
51
51
|
"@smithy/util-base64": "^2.1.1",
|
|
52
52
|
"@smithy/util-body-length-browser": "^2.1.1",
|
|
53
53
|
"@smithy/util-body-length-node": "^2.2.1",
|
|
54
|
-
"@smithy/util-defaults-mode-browser": "^2.1.
|
|
55
|
-
"@smithy/util-defaults-mode-node": "^2.2.
|
|
56
|
-
"@smithy/util-endpoints": "^1.1.
|
|
54
|
+
"@smithy/util-defaults-mode-browser": "^2.1.4",
|
|
55
|
+
"@smithy/util-defaults-mode-node": "^2.2.3",
|
|
56
|
+
"@smithy/util-endpoints": "^1.1.4",
|
|
57
57
|
"@smithy/util-middleware": "^2.1.3",
|
|
58
58
|
"@smithy/util-retry": "^2.1.3",
|
|
59
59
|
"@smithy/util-utf8": "^2.1.1",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
package/dist-cjs/models/index.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("../index.js");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|