@aws-sdk/client-opensearchserverless 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 +40 -80
- package/dist-es/protocols/Aws_json1_0.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/OpenSearchServerless.js +0 -1
- package/dist-cjs/OpenSearchServerlessClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/BatchGetCollectionCommand.js +0 -1
- package/dist-cjs/commands/BatchGetEffectiveLifecyclePolicyCommand.js +0 -1
- package/dist-cjs/commands/BatchGetLifecyclePolicyCommand.js +0 -1
- package/dist-cjs/commands/BatchGetVpcEndpointCommand.js +0 -1
- package/dist-cjs/commands/CreateAccessPolicyCommand.js +0 -1
- package/dist-cjs/commands/CreateCollectionCommand.js +0 -1
- package/dist-cjs/commands/CreateLifecyclePolicyCommand.js +0 -1
- package/dist-cjs/commands/CreateSecurityConfigCommand.js +0 -1
- package/dist-cjs/commands/CreateSecurityPolicyCommand.js +0 -1
- package/dist-cjs/commands/CreateVpcEndpointCommand.js +0 -1
- package/dist-cjs/commands/DeleteAccessPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteCollectionCommand.js +0 -1
- package/dist-cjs/commands/DeleteLifecyclePolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteSecurityConfigCommand.js +0 -1
- package/dist-cjs/commands/DeleteSecurityPolicyCommand.js +0 -1
- package/dist-cjs/commands/DeleteVpcEndpointCommand.js +0 -1
- package/dist-cjs/commands/GetAccessPolicyCommand.js +0 -1
- package/dist-cjs/commands/GetAccountSettingsCommand.js +0 -1
- package/dist-cjs/commands/GetPoliciesStatsCommand.js +0 -1
- package/dist-cjs/commands/GetSecurityConfigCommand.js +0 -1
- package/dist-cjs/commands/GetSecurityPolicyCommand.js +0 -1
- package/dist-cjs/commands/ListAccessPoliciesCommand.js +0 -1
- package/dist-cjs/commands/ListCollectionsCommand.js +0 -1
- package/dist-cjs/commands/ListLifecyclePoliciesCommand.js +0 -1
- package/dist-cjs/commands/ListSecurityConfigsCommand.js +0 -1
- package/dist-cjs/commands/ListSecurityPoliciesCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListVpcEndpointsCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateAccessPolicyCommand.js +0 -1
- package/dist-cjs/commands/UpdateAccountSettingsCommand.js +0 -1
- package/dist-cjs/commands/UpdateCollectionCommand.js +0 -1
- package/dist-cjs/commands/UpdateLifecyclePolicyCommand.js +0 -1
- package/dist-cjs/commands/UpdateSecurityConfigCommand.js +0 -1
- package/dist-cjs/commands/UpdateSecurityPolicyCommand.js +0 -1
- package/dist-cjs/commands/UpdateVpcEndpointCommand.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/OpenSearchServerlessServiceException.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/ListAccessPoliciesPaginator.js +0 -1
- package/dist-cjs/pagination/ListCollectionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListLifecyclePoliciesPaginator.js +0 -1
- package/dist-cjs/pagination/ListSecurityConfigsPaginator.js +0 -1
- package/dist-cjs/pagination/ListSecurityPoliciesPaginator.js +0 -1
- package/dist-cjs/pagination/ListVpcEndpointsPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_0.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -239,6 +239,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
239
239
|
var import_types = require("@smithy/types");
|
|
240
240
|
|
|
241
241
|
// src/protocols/Aws_json1_0.ts
|
|
242
|
+
var import_core2 = require("@aws-sdk/core");
|
|
242
243
|
|
|
243
244
|
|
|
244
245
|
var import_uuid = require("uuid");
|
|
@@ -686,7 +687,7 @@ var de_BatchGetCollectionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
686
687
|
if (output.statusCode >= 300) {
|
|
687
688
|
return de_CommandError(output, context);
|
|
688
689
|
}
|
|
689
|
-
const data = await
|
|
690
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
690
691
|
let contents = {};
|
|
691
692
|
contents = (0, import_smithy_client._json)(data);
|
|
692
693
|
const response = {
|
|
@@ -699,7 +700,7 @@ var de_BatchGetEffectiveLifecyclePolicyCommand = /* @__PURE__ */ __name(async (o
|
|
|
699
700
|
if (output.statusCode >= 300) {
|
|
700
701
|
return de_CommandError(output, context);
|
|
701
702
|
}
|
|
702
|
-
const data = await
|
|
703
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
703
704
|
let contents = {};
|
|
704
705
|
contents = (0, import_smithy_client._json)(data);
|
|
705
706
|
const response = {
|
|
@@ -712,7 +713,7 @@ var de_BatchGetLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
712
713
|
if (output.statusCode >= 300) {
|
|
713
714
|
return de_CommandError(output, context);
|
|
714
715
|
}
|
|
715
|
-
const data = await
|
|
716
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
716
717
|
let contents = {};
|
|
717
718
|
contents = de_BatchGetLifecyclePolicyResponse(data, context);
|
|
718
719
|
const response = {
|
|
@@ -725,7 +726,7 @@ var de_BatchGetVpcEndpointCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
725
726
|
if (output.statusCode >= 300) {
|
|
726
727
|
return de_CommandError(output, context);
|
|
727
728
|
}
|
|
728
|
-
const data = await
|
|
729
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
729
730
|
let contents = {};
|
|
730
731
|
contents = (0, import_smithy_client._json)(data);
|
|
731
732
|
const response = {
|
|
@@ -738,7 +739,7 @@ var de_CreateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
738
739
|
if (output.statusCode >= 300) {
|
|
739
740
|
return de_CommandError(output, context);
|
|
740
741
|
}
|
|
741
|
-
const data = await
|
|
742
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
742
743
|
let contents = {};
|
|
743
744
|
contents = de_CreateAccessPolicyResponse(data, context);
|
|
744
745
|
const response = {
|
|
@@ -751,7 +752,7 @@ var de_CreateCollectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
751
752
|
if (output.statusCode >= 300) {
|
|
752
753
|
return de_CommandError(output, context);
|
|
753
754
|
}
|
|
754
|
-
const data = await
|
|
755
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
755
756
|
let contents = {};
|
|
756
757
|
contents = (0, import_smithy_client._json)(data);
|
|
757
758
|
const response = {
|
|
@@ -764,7 +765,7 @@ var de_CreateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
764
765
|
if (output.statusCode >= 300) {
|
|
765
766
|
return de_CommandError(output, context);
|
|
766
767
|
}
|
|
767
|
-
const data = await
|
|
768
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
768
769
|
let contents = {};
|
|
769
770
|
contents = de_CreateLifecyclePolicyResponse(data, context);
|
|
770
771
|
const response = {
|
|
@@ -777,7 +778,7 @@ var de_CreateSecurityConfigCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
777
778
|
if (output.statusCode >= 300) {
|
|
778
779
|
return de_CommandError(output, context);
|
|
779
780
|
}
|
|
780
|
-
const data = await
|
|
781
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
781
782
|
let contents = {};
|
|
782
783
|
contents = (0, import_smithy_client._json)(data);
|
|
783
784
|
const response = {
|
|
@@ -790,7 +791,7 @@ var de_CreateSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
790
791
|
if (output.statusCode >= 300) {
|
|
791
792
|
return de_CommandError(output, context);
|
|
792
793
|
}
|
|
793
|
-
const data = await
|
|
794
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
794
795
|
let contents = {};
|
|
795
796
|
contents = de_CreateSecurityPolicyResponse(data, context);
|
|
796
797
|
const response = {
|
|
@@ -803,7 +804,7 @@ var de_CreateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
803
804
|
if (output.statusCode >= 300) {
|
|
804
805
|
return de_CommandError(output, context);
|
|
805
806
|
}
|
|
806
|
-
const data = await
|
|
807
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
807
808
|
let contents = {};
|
|
808
809
|
contents = (0, import_smithy_client._json)(data);
|
|
809
810
|
const response = {
|
|
@@ -816,7 +817,7 @@ var de_DeleteAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
816
817
|
if (output.statusCode >= 300) {
|
|
817
818
|
return de_CommandError(output, context);
|
|
818
819
|
}
|
|
819
|
-
const data = await
|
|
820
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
820
821
|
let contents = {};
|
|
821
822
|
contents = (0, import_smithy_client._json)(data);
|
|
822
823
|
const response = {
|
|
@@ -829,7 +830,7 @@ var de_DeleteCollectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
829
830
|
if (output.statusCode >= 300) {
|
|
830
831
|
return de_CommandError(output, context);
|
|
831
832
|
}
|
|
832
|
-
const data = await
|
|
833
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
833
834
|
let contents = {};
|
|
834
835
|
contents = (0, import_smithy_client._json)(data);
|
|
835
836
|
const response = {
|
|
@@ -842,7 +843,7 @@ var de_DeleteLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
842
843
|
if (output.statusCode >= 300) {
|
|
843
844
|
return de_CommandError(output, context);
|
|
844
845
|
}
|
|
845
|
-
const data = await
|
|
846
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
846
847
|
let contents = {};
|
|
847
848
|
contents = (0, import_smithy_client._json)(data);
|
|
848
849
|
const response = {
|
|
@@ -855,7 +856,7 @@ var de_DeleteSecurityConfigCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
855
856
|
if (output.statusCode >= 300) {
|
|
856
857
|
return de_CommandError(output, context);
|
|
857
858
|
}
|
|
858
|
-
const data = await
|
|
859
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
859
860
|
let contents = {};
|
|
860
861
|
contents = (0, import_smithy_client._json)(data);
|
|
861
862
|
const response = {
|
|
@@ -868,7 +869,7 @@ var de_DeleteSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
868
869
|
if (output.statusCode >= 300) {
|
|
869
870
|
return de_CommandError(output, context);
|
|
870
871
|
}
|
|
871
|
-
const data = await
|
|
872
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
872
873
|
let contents = {};
|
|
873
874
|
contents = (0, import_smithy_client._json)(data);
|
|
874
875
|
const response = {
|
|
@@ -881,7 +882,7 @@ var de_DeleteVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
881
882
|
if (output.statusCode >= 300) {
|
|
882
883
|
return de_CommandError(output, context);
|
|
883
884
|
}
|
|
884
|
-
const data = await
|
|
885
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
885
886
|
let contents = {};
|
|
886
887
|
contents = (0, import_smithy_client._json)(data);
|
|
887
888
|
const response = {
|
|
@@ -894,7 +895,7 @@ var de_GetAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
894
895
|
if (output.statusCode >= 300) {
|
|
895
896
|
return de_CommandError(output, context);
|
|
896
897
|
}
|
|
897
|
-
const data = await
|
|
898
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
898
899
|
let contents = {};
|
|
899
900
|
contents = de_GetAccessPolicyResponse(data, context);
|
|
900
901
|
const response = {
|
|
@@ -907,7 +908,7 @@ var de_GetAccountSettingsCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
907
908
|
if (output.statusCode >= 300) {
|
|
908
909
|
return de_CommandError(output, context);
|
|
909
910
|
}
|
|
910
|
-
const data = await
|
|
911
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
911
912
|
let contents = {};
|
|
912
913
|
contents = (0, import_smithy_client._json)(data);
|
|
913
914
|
const response = {
|
|
@@ -920,7 +921,7 @@ var de_GetPoliciesStatsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
920
921
|
if (output.statusCode >= 300) {
|
|
921
922
|
return de_CommandError(output, context);
|
|
922
923
|
}
|
|
923
|
-
const data = await
|
|
924
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
924
925
|
let contents = {};
|
|
925
926
|
contents = (0, import_smithy_client._json)(data);
|
|
926
927
|
const response = {
|
|
@@ -933,7 +934,7 @@ var de_GetSecurityConfigCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
933
934
|
if (output.statusCode >= 300) {
|
|
934
935
|
return de_CommandError(output, context);
|
|
935
936
|
}
|
|
936
|
-
const data = await
|
|
937
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
937
938
|
let contents = {};
|
|
938
939
|
contents = (0, import_smithy_client._json)(data);
|
|
939
940
|
const response = {
|
|
@@ -946,7 +947,7 @@ var de_GetSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
946
947
|
if (output.statusCode >= 300) {
|
|
947
948
|
return de_CommandError(output, context);
|
|
948
949
|
}
|
|
949
|
-
const data = await
|
|
950
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
950
951
|
let contents = {};
|
|
951
952
|
contents = de_GetSecurityPolicyResponse(data, context);
|
|
952
953
|
const response = {
|
|
@@ -959,7 +960,7 @@ var de_ListAccessPoliciesCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
959
960
|
if (output.statusCode >= 300) {
|
|
960
961
|
return de_CommandError(output, context);
|
|
961
962
|
}
|
|
962
|
-
const data = await
|
|
963
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
963
964
|
let contents = {};
|
|
964
965
|
contents = (0, import_smithy_client._json)(data);
|
|
965
966
|
const response = {
|
|
@@ -972,7 +973,7 @@ var de_ListCollectionsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
972
973
|
if (output.statusCode >= 300) {
|
|
973
974
|
return de_CommandError(output, context);
|
|
974
975
|
}
|
|
975
|
-
const data = await
|
|
976
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
976
977
|
let contents = {};
|
|
977
978
|
contents = (0, import_smithy_client._json)(data);
|
|
978
979
|
const response = {
|
|
@@ -985,7 +986,7 @@ var de_ListLifecyclePoliciesCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
985
986
|
if (output.statusCode >= 300) {
|
|
986
987
|
return de_CommandError(output, context);
|
|
987
988
|
}
|
|
988
|
-
const data = await
|
|
989
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
989
990
|
let contents = {};
|
|
990
991
|
contents = (0, import_smithy_client._json)(data);
|
|
991
992
|
const response = {
|
|
@@ -998,7 +999,7 @@ var de_ListSecurityConfigsCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
998
999
|
if (output.statusCode >= 300) {
|
|
999
1000
|
return de_CommandError(output, context);
|
|
1000
1001
|
}
|
|
1001
|
-
const data = await
|
|
1002
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1002
1003
|
let contents = {};
|
|
1003
1004
|
contents = (0, import_smithy_client._json)(data);
|
|
1004
1005
|
const response = {
|
|
@@ -1011,7 +1012,7 @@ var de_ListSecurityPoliciesCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1011
1012
|
if (output.statusCode >= 300) {
|
|
1012
1013
|
return de_CommandError(output, context);
|
|
1013
1014
|
}
|
|
1014
|
-
const data = await
|
|
1015
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1015
1016
|
let contents = {};
|
|
1016
1017
|
contents = (0, import_smithy_client._json)(data);
|
|
1017
1018
|
const response = {
|
|
@@ -1024,7 +1025,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1024
1025
|
if (output.statusCode >= 300) {
|
|
1025
1026
|
return de_CommandError(output, context);
|
|
1026
1027
|
}
|
|
1027
|
-
const data = await
|
|
1028
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1028
1029
|
let contents = {};
|
|
1029
1030
|
contents = (0, import_smithy_client._json)(data);
|
|
1030
1031
|
const response = {
|
|
@@ -1037,7 +1038,7 @@ var de_ListVpcEndpointsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1037
1038
|
if (output.statusCode >= 300) {
|
|
1038
1039
|
return de_CommandError(output, context);
|
|
1039
1040
|
}
|
|
1040
|
-
const data = await
|
|
1041
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1041
1042
|
let contents = {};
|
|
1042
1043
|
contents = (0, import_smithy_client._json)(data);
|
|
1043
1044
|
const response = {
|
|
@@ -1050,7 +1051,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1050
1051
|
if (output.statusCode >= 300) {
|
|
1051
1052
|
return de_CommandError(output, context);
|
|
1052
1053
|
}
|
|
1053
|
-
const data = await
|
|
1054
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1054
1055
|
let contents = {};
|
|
1055
1056
|
contents = (0, import_smithy_client._json)(data);
|
|
1056
1057
|
const response = {
|
|
@@ -1063,7 +1064,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1063
1064
|
if (output.statusCode >= 300) {
|
|
1064
1065
|
return de_CommandError(output, context);
|
|
1065
1066
|
}
|
|
1066
|
-
const data = await
|
|
1067
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1067
1068
|
let contents = {};
|
|
1068
1069
|
contents = (0, import_smithy_client._json)(data);
|
|
1069
1070
|
const response = {
|
|
@@ -1076,7 +1077,7 @@ var de_UpdateAccessPolicyCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1076
1077
|
if (output.statusCode >= 300) {
|
|
1077
1078
|
return de_CommandError(output, context);
|
|
1078
1079
|
}
|
|
1079
|
-
const data = await
|
|
1080
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1080
1081
|
let contents = {};
|
|
1081
1082
|
contents = de_UpdateAccessPolicyResponse(data, context);
|
|
1082
1083
|
const response = {
|
|
@@ -1089,7 +1090,7 @@ var de_UpdateAccountSettingsCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1089
1090
|
if (output.statusCode >= 300) {
|
|
1090
1091
|
return de_CommandError(output, context);
|
|
1091
1092
|
}
|
|
1092
|
-
const data = await
|
|
1093
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1093
1094
|
let contents = {};
|
|
1094
1095
|
contents = (0, import_smithy_client._json)(data);
|
|
1095
1096
|
const response = {
|
|
@@ -1102,7 +1103,7 @@ var de_UpdateCollectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1102
1103
|
if (output.statusCode >= 300) {
|
|
1103
1104
|
return de_CommandError(output, context);
|
|
1104
1105
|
}
|
|
1105
|
-
const data = await
|
|
1106
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1106
1107
|
let contents = {};
|
|
1107
1108
|
contents = (0, import_smithy_client._json)(data);
|
|
1108
1109
|
const response = {
|
|
@@ -1115,7 +1116,7 @@ var de_UpdateLifecyclePolicyCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1115
1116
|
if (output.statusCode >= 300) {
|
|
1116
1117
|
return de_CommandError(output, context);
|
|
1117
1118
|
}
|
|
1118
|
-
const data = await
|
|
1119
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1119
1120
|
let contents = {};
|
|
1120
1121
|
contents = de_UpdateLifecyclePolicyResponse(data, context);
|
|
1121
1122
|
const response = {
|
|
@@ -1128,7 +1129,7 @@ var de_UpdateSecurityConfigCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1128
1129
|
if (output.statusCode >= 300) {
|
|
1129
1130
|
return de_CommandError(output, context);
|
|
1130
1131
|
}
|
|
1131
|
-
const data = await
|
|
1132
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1132
1133
|
let contents = {};
|
|
1133
1134
|
contents = (0, import_smithy_client._json)(data);
|
|
1134
1135
|
const response = {
|
|
@@ -1141,7 +1142,7 @@ var de_UpdateSecurityPolicyCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1141
1142
|
if (output.statusCode >= 300) {
|
|
1142
1143
|
return de_CommandError(output, context);
|
|
1143
1144
|
}
|
|
1144
|
-
const data = await
|
|
1145
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1145
1146
|
let contents = {};
|
|
1146
1147
|
contents = de_UpdateSecurityPolicyResponse(data, context);
|
|
1147
1148
|
const response = {
|
|
@@ -1154,7 +1155,7 @@ var de_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1154
1155
|
if (output.statusCode >= 300) {
|
|
1155
1156
|
return de_CommandError(output, context);
|
|
1156
1157
|
}
|
|
1157
|
-
const data = await
|
|
1158
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1158
1159
|
let contents = {};
|
|
1159
1160
|
contents = (0, import_smithy_client._json)(data);
|
|
1160
1161
|
const response = {
|
|
@@ -1166,9 +1167,9 @@ var de_UpdateVpcEndpointCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
1166
1167
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1167
1168
|
const parsedOutput = {
|
|
1168
1169
|
...output,
|
|
1169
|
-
body: await
|
|
1170
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1170
1171
|
};
|
|
1171
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1172
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1172
1173
|
switch (errorCode) {
|
|
1173
1174
|
case "InternalServerException":
|
|
1174
1175
|
case "com.amazonaws.opensearchserverless#InternalServerException":
|
|
@@ -1495,7 +1496,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1495
1496
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1496
1497
|
cfId: output.headers["x-amz-cf-id"]
|
|
1497
1498
|
}), "deserializeMetadata");
|
|
1498
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1499
1499
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(OpenSearchServerlessServiceException);
|
|
1500
1500
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1501
1501
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1522,46 +1522,6 @@ function sharedHeaders(operation) {
|
|
|
1522
1522
|
};
|
|
1523
1523
|
}
|
|
1524
1524
|
__name(sharedHeaders, "sharedHeaders");
|
|
1525
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1526
|
-
if (encoded.length) {
|
|
1527
|
-
return JSON.parse(encoded);
|
|
1528
|
-
}
|
|
1529
|
-
return {};
|
|
1530
|
-
}), "parseBody");
|
|
1531
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1532
|
-
const value = await parseBody(errorBody, context);
|
|
1533
|
-
value.message = value.message ?? value.Message;
|
|
1534
|
-
return value;
|
|
1535
|
-
}, "parseErrorBody");
|
|
1536
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1537
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1538
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1539
|
-
let cleanValue = rawValue;
|
|
1540
|
-
if (typeof cleanValue === "number") {
|
|
1541
|
-
cleanValue = cleanValue.toString();
|
|
1542
|
-
}
|
|
1543
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1544
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1545
|
-
}
|
|
1546
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1547
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1548
|
-
}
|
|
1549
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1550
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1551
|
-
}
|
|
1552
|
-
return cleanValue;
|
|
1553
|
-
}, "sanitizeErrorCode");
|
|
1554
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1555
|
-
if (headerKey !== void 0) {
|
|
1556
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1557
|
-
}
|
|
1558
|
-
if (data.code !== void 0) {
|
|
1559
|
-
return sanitizeErrorCode(data.code);
|
|
1560
|
-
}
|
|
1561
|
-
if (data["__type"] !== void 0) {
|
|
1562
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1563
|
-
}
|
|
1564
|
-
}, "loadRestJsonErrorCode");
|
|
1565
1525
|
|
|
1566
1526
|
// src/commands/BatchGetCollectionCommand.ts
|
|
1567
1527
|
var _BatchGetCollectionCommand = class _BatchGetCollectionCommand 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 { HttpRequest as __HttpRequest } from "@smithy/protocol-http";
|
|
2
3
|
import { _json, collectBody, decorateServiceException as __decorateServiceException, expectLong as __expectLong, expectString as __expectString, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -1066,43 +1067,3 @@ function sharedHeaders(operation) {
|
|
|
1066
1067
|
"x-amz-target": `OpenSearchServerless.${operation}`,
|
|
1067
1068
|
};
|
|
1068
1069
|
}
|
|
1069
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1070
|
-
if (encoded.length) {
|
|
1071
|
-
return JSON.parse(encoded);
|
|
1072
|
-
}
|
|
1073
|
-
return {};
|
|
1074
|
-
});
|
|
1075
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1076
|
-
const value = await parseBody(errorBody, context);
|
|
1077
|
-
value.message = value.message ?? value.Message;
|
|
1078
|
-
return value;
|
|
1079
|
-
};
|
|
1080
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1081
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1082
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1083
|
-
let cleanValue = rawValue;
|
|
1084
|
-
if (typeof cleanValue === "number") {
|
|
1085
|
-
cleanValue = cleanValue.toString();
|
|
1086
|
-
}
|
|
1087
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1088
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1089
|
-
}
|
|
1090
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1091
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1092
|
-
}
|
|
1093
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1094
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1095
|
-
}
|
|
1096
|
-
return cleanValue;
|
|
1097
|
-
};
|
|
1098
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1099
|
-
if (headerKey !== undefined) {
|
|
1100
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1101
|
-
}
|
|
1102
|
-
if (data.code !== undefined) {
|
|
1103
|
-
return sanitizeErrorCode(data.code);
|
|
1104
|
-
}
|
|
1105
|
-
if (data["__type"] !== undefined) {
|
|
1106
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1107
|
-
}
|
|
1108
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-opensearchserverless",
|
|
3
3
|
"description": "AWS SDK for JavaScript Opensearchserverless 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-opensearchserverless",
|
|
@@ -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");
|
|
@@ -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");
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|