@aws-sdk/client-shield 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 +39 -79
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/Shield.js +0 -1
- package/dist-cjs/ShieldClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/AssociateDRTLogBucketCommand.js +0 -1
- package/dist-cjs/commands/AssociateDRTRoleCommand.js +0 -1
- package/dist-cjs/commands/AssociateHealthCheckCommand.js +0 -1
- package/dist-cjs/commands/AssociateProactiveEngagementDetailsCommand.js +0 -1
- package/dist-cjs/commands/CreateProtectionCommand.js +0 -1
- package/dist-cjs/commands/CreateProtectionGroupCommand.js +0 -1
- package/dist-cjs/commands/CreateSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/DeleteProtectionCommand.js +0 -1
- package/dist-cjs/commands/DeleteProtectionGroupCommand.js +0 -1
- package/dist-cjs/commands/DeleteSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/DescribeAttackCommand.js +0 -1
- package/dist-cjs/commands/DescribeAttackStatisticsCommand.js +0 -1
- package/dist-cjs/commands/DescribeDRTAccessCommand.js +0 -1
- package/dist-cjs/commands/DescribeEmergencyContactSettingsCommand.js +0 -1
- package/dist-cjs/commands/DescribeProtectionCommand.js +0 -1
- package/dist-cjs/commands/DescribeProtectionGroupCommand.js +0 -1
- package/dist-cjs/commands/DescribeSubscriptionCommand.js +0 -1
- package/dist-cjs/commands/DisableApplicationLayerAutomaticResponseCommand.js +0 -1
- package/dist-cjs/commands/DisableProactiveEngagementCommand.js +0 -1
- package/dist-cjs/commands/DisassociateDRTLogBucketCommand.js +0 -1
- package/dist-cjs/commands/DisassociateDRTRoleCommand.js +0 -1
- package/dist-cjs/commands/DisassociateHealthCheckCommand.js +0 -1
- package/dist-cjs/commands/EnableApplicationLayerAutomaticResponseCommand.js +0 -1
- package/dist-cjs/commands/EnableProactiveEngagementCommand.js +0 -1
- package/dist-cjs/commands/GetSubscriptionStateCommand.js +0 -1
- package/dist-cjs/commands/ListAttacksCommand.js +0 -1
- package/dist-cjs/commands/ListProtectionGroupsCommand.js +0 -1
- package/dist-cjs/commands/ListProtectionsCommand.js +0 -1
- package/dist-cjs/commands/ListResourcesInProtectionGroupCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateApplicationLayerAutomaticResponseCommand.js +0 -1
- package/dist-cjs/commands/UpdateEmergencyContactSettingsCommand.js +0 -1
- package/dist-cjs/commands/UpdateProtectionGroupCommand.js +0 -1
- package/dist-cjs/commands/UpdateSubscriptionCommand.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/ShieldServiceException.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/ListAttacksPaginator.js +0 -1
- package/dist-cjs/pagination/ListProtectionGroupsPaginator.js +0 -1
- package/dist-cjs/pagination/ListProtectionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListResourcesInProtectionGroupPaginator.js +0 -1
- package/dist-cjs/pagination/index.js +0 -1
- package/dist-cjs/protocols/Aws_json1_1.js +0 -1
- package/dist-cjs/runtimeExtensions.js +0 -1
package/dist-cjs/index.js
CHANGED
|
@@ -246,6 +246,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
246
246
|
var import_types = require("@smithy/types");
|
|
247
247
|
|
|
248
248
|
// src/protocols/Aws_json1_1.ts
|
|
249
|
+
var import_core2 = require("@aws-sdk/core");
|
|
249
250
|
|
|
250
251
|
|
|
251
252
|
|
|
@@ -776,7 +777,7 @@ var de_AssociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
776
777
|
if (output.statusCode >= 300) {
|
|
777
778
|
return de_CommandError(output, context);
|
|
778
779
|
}
|
|
779
|
-
const data = await
|
|
780
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
780
781
|
let contents = {};
|
|
781
782
|
contents = (0, import_smithy_client._json)(data);
|
|
782
783
|
const response = {
|
|
@@ -789,7 +790,7 @@ var de_AssociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
789
790
|
if (output.statusCode >= 300) {
|
|
790
791
|
return de_CommandError(output, context);
|
|
791
792
|
}
|
|
792
|
-
const data = await
|
|
793
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
793
794
|
let contents = {};
|
|
794
795
|
contents = (0, import_smithy_client._json)(data);
|
|
795
796
|
const response = {
|
|
@@ -802,7 +803,7 @@ var de_AssociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
802
803
|
if (output.statusCode >= 300) {
|
|
803
804
|
return de_CommandError(output, context);
|
|
804
805
|
}
|
|
805
|
-
const data = await
|
|
806
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
806
807
|
let contents = {};
|
|
807
808
|
contents = (0, import_smithy_client._json)(data);
|
|
808
809
|
const response = {
|
|
@@ -815,7 +816,7 @@ var de_AssociateProactiveEngagementDetailsCommand = /* @__PURE__ */ __name(async
|
|
|
815
816
|
if (output.statusCode >= 300) {
|
|
816
817
|
return de_CommandError(output, context);
|
|
817
818
|
}
|
|
818
|
-
const data = await
|
|
819
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
819
820
|
let contents = {};
|
|
820
821
|
contents = (0, import_smithy_client._json)(data);
|
|
821
822
|
const response = {
|
|
@@ -828,7 +829,7 @@ var de_CreateProtectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
828
829
|
if (output.statusCode >= 300) {
|
|
829
830
|
return de_CommandError(output, context);
|
|
830
831
|
}
|
|
831
|
-
const data = await
|
|
832
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
832
833
|
let contents = {};
|
|
833
834
|
contents = (0, import_smithy_client._json)(data);
|
|
834
835
|
const response = {
|
|
@@ -841,7 +842,7 @@ var de_CreateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
841
842
|
if (output.statusCode >= 300) {
|
|
842
843
|
return de_CommandError(output, context);
|
|
843
844
|
}
|
|
844
|
-
const data = await
|
|
845
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
845
846
|
let contents = {};
|
|
846
847
|
contents = (0, import_smithy_client._json)(data);
|
|
847
848
|
const response = {
|
|
@@ -854,7 +855,7 @@ var de_CreateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
854
855
|
if (output.statusCode >= 300) {
|
|
855
856
|
return de_CommandError(output, context);
|
|
856
857
|
}
|
|
857
|
-
const data = await
|
|
858
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
858
859
|
let contents = {};
|
|
859
860
|
contents = (0, import_smithy_client._json)(data);
|
|
860
861
|
const response = {
|
|
@@ -867,7 +868,7 @@ var de_DeleteProtectionCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
867
868
|
if (output.statusCode >= 300) {
|
|
868
869
|
return de_CommandError(output, context);
|
|
869
870
|
}
|
|
870
|
-
const data = await
|
|
871
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
871
872
|
let contents = {};
|
|
872
873
|
contents = (0, import_smithy_client._json)(data);
|
|
873
874
|
const response = {
|
|
@@ -880,7 +881,7 @@ var de_DeleteProtectionGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
880
881
|
if (output.statusCode >= 300) {
|
|
881
882
|
return de_CommandError(output, context);
|
|
882
883
|
}
|
|
883
|
-
const data = await
|
|
884
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
884
885
|
let contents = {};
|
|
885
886
|
contents = (0, import_smithy_client._json)(data);
|
|
886
887
|
const response = {
|
|
@@ -893,7 +894,7 @@ var de_DeleteSubscriptionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
893
894
|
if (output.statusCode >= 300) {
|
|
894
895
|
return de_CommandError(output, context);
|
|
895
896
|
}
|
|
896
|
-
const data = await
|
|
897
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
897
898
|
let contents = {};
|
|
898
899
|
contents = (0, import_smithy_client._json)(data);
|
|
899
900
|
const response = {
|
|
@@ -906,7 +907,7 @@ var de_DescribeAttackCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
906
907
|
if (output.statusCode >= 300) {
|
|
907
908
|
return de_CommandError(output, context);
|
|
908
909
|
}
|
|
909
|
-
const data = await
|
|
910
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
910
911
|
let contents = {};
|
|
911
912
|
contents = de_DescribeAttackResponse(data, context);
|
|
912
913
|
const response = {
|
|
@@ -919,7 +920,7 @@ var de_DescribeAttackStatisticsCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
919
920
|
if (output.statusCode >= 300) {
|
|
920
921
|
return de_CommandError(output, context);
|
|
921
922
|
}
|
|
922
|
-
const data = await
|
|
923
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
923
924
|
let contents = {};
|
|
924
925
|
contents = de_DescribeAttackStatisticsResponse(data, context);
|
|
925
926
|
const response = {
|
|
@@ -932,7 +933,7 @@ var de_DescribeDRTAccessCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
932
933
|
if (output.statusCode >= 300) {
|
|
933
934
|
return de_CommandError(output, context);
|
|
934
935
|
}
|
|
935
|
-
const data = await
|
|
936
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
936
937
|
let contents = {};
|
|
937
938
|
contents = (0, import_smithy_client._json)(data);
|
|
938
939
|
const response = {
|
|
@@ -945,7 +946,7 @@ var de_DescribeEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (o
|
|
|
945
946
|
if (output.statusCode >= 300) {
|
|
946
947
|
return de_CommandError(output, context);
|
|
947
948
|
}
|
|
948
|
-
const data = await
|
|
949
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
949
950
|
let contents = {};
|
|
950
951
|
contents = (0, import_smithy_client._json)(data);
|
|
951
952
|
const response = {
|
|
@@ -958,7 +959,7 @@ var de_DescribeProtectionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
958
959
|
if (output.statusCode >= 300) {
|
|
959
960
|
return de_CommandError(output, context);
|
|
960
961
|
}
|
|
961
|
-
const data = await
|
|
962
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
962
963
|
let contents = {};
|
|
963
964
|
contents = (0, import_smithy_client._json)(data);
|
|
964
965
|
const response = {
|
|
@@ -971,7 +972,7 @@ var de_DescribeProtectionGroupCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
971
972
|
if (output.statusCode >= 300) {
|
|
972
973
|
return de_CommandError(output, context);
|
|
973
974
|
}
|
|
974
|
-
const data = await
|
|
975
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
975
976
|
let contents = {};
|
|
976
977
|
contents = (0, import_smithy_client._json)(data);
|
|
977
978
|
const response = {
|
|
@@ -984,7 +985,7 @@ var de_DescribeSubscriptionCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
984
985
|
if (output.statusCode >= 300) {
|
|
985
986
|
return de_CommandError(output, context);
|
|
986
987
|
}
|
|
987
|
-
const data = await
|
|
988
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
988
989
|
let contents = {};
|
|
989
990
|
contents = de_DescribeSubscriptionResponse(data, context);
|
|
990
991
|
const response = {
|
|
@@ -997,7 +998,7 @@ var de_DisableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(
|
|
|
997
998
|
if (output.statusCode >= 300) {
|
|
998
999
|
return de_CommandError(output, context);
|
|
999
1000
|
}
|
|
1000
|
-
const data = await
|
|
1001
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1001
1002
|
let contents = {};
|
|
1002
1003
|
contents = (0, import_smithy_client._json)(data);
|
|
1003
1004
|
const response = {
|
|
@@ -1010,7 +1011,7 @@ var de_DisableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1010
1011
|
if (output.statusCode >= 300) {
|
|
1011
1012
|
return de_CommandError(output, context);
|
|
1012
1013
|
}
|
|
1013
|
-
const data = await
|
|
1014
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1014
1015
|
let contents = {};
|
|
1015
1016
|
contents = (0, import_smithy_client._json)(data);
|
|
1016
1017
|
const response = {
|
|
@@ -1023,7 +1024,7 @@ var de_DisassociateDRTLogBucketCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
1023
1024
|
if (output.statusCode >= 300) {
|
|
1024
1025
|
return de_CommandError(output, context);
|
|
1025
1026
|
}
|
|
1026
|
-
const data = await
|
|
1027
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1027
1028
|
let contents = {};
|
|
1028
1029
|
contents = (0, import_smithy_client._json)(data);
|
|
1029
1030
|
const response = {
|
|
@@ -1036,7 +1037,7 @@ var de_DisassociateDRTRoleCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1036
1037
|
if (output.statusCode >= 300) {
|
|
1037
1038
|
return de_CommandError(output, context);
|
|
1038
1039
|
}
|
|
1039
|
-
const data = await
|
|
1040
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1040
1041
|
let contents = {};
|
|
1041
1042
|
contents = (0, import_smithy_client._json)(data);
|
|
1042
1043
|
const response = {
|
|
@@ -1049,7 +1050,7 @@ var de_DisassociateHealthCheckCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
1049
1050
|
if (output.statusCode >= 300) {
|
|
1050
1051
|
return de_CommandError(output, context);
|
|
1051
1052
|
}
|
|
1052
|
-
const data = await
|
|
1053
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1053
1054
|
let contents = {};
|
|
1054
1055
|
contents = (0, import_smithy_client._json)(data);
|
|
1055
1056
|
const response = {
|
|
@@ -1062,7 +1063,7 @@ var de_EnableApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(a
|
|
|
1062
1063
|
if (output.statusCode >= 300) {
|
|
1063
1064
|
return de_CommandError(output, context);
|
|
1064
1065
|
}
|
|
1065
|
-
const data = await
|
|
1066
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1066
1067
|
let contents = {};
|
|
1067
1068
|
contents = (0, import_smithy_client._json)(data);
|
|
1068
1069
|
const response = {
|
|
@@ -1075,7 +1076,7 @@ var de_EnableProactiveEngagementCommand = /* @__PURE__ */ __name(async (output,
|
|
|
1075
1076
|
if (output.statusCode >= 300) {
|
|
1076
1077
|
return de_CommandError(output, context);
|
|
1077
1078
|
}
|
|
1078
|
-
const data = await
|
|
1079
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1079
1080
|
let contents = {};
|
|
1080
1081
|
contents = (0, import_smithy_client._json)(data);
|
|
1081
1082
|
const response = {
|
|
@@ -1088,7 +1089,7 @@ var de_GetSubscriptionStateCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1088
1089
|
if (output.statusCode >= 300) {
|
|
1089
1090
|
return de_CommandError(output, context);
|
|
1090
1091
|
}
|
|
1091
|
-
const data = await
|
|
1092
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1092
1093
|
let contents = {};
|
|
1093
1094
|
contents = (0, import_smithy_client._json)(data);
|
|
1094
1095
|
const response = {
|
|
@@ -1101,7 +1102,7 @@ var de_ListAttacksCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1101
1102
|
if (output.statusCode >= 300) {
|
|
1102
1103
|
return de_CommandError(output, context);
|
|
1103
1104
|
}
|
|
1104
|
-
const data = await
|
|
1105
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1105
1106
|
let contents = {};
|
|
1106
1107
|
contents = de_ListAttacksResponse(data, context);
|
|
1107
1108
|
const response = {
|
|
@@ -1114,7 +1115,7 @@ var de_ListProtectionGroupsCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
1114
1115
|
if (output.statusCode >= 300) {
|
|
1115
1116
|
return de_CommandError(output, context);
|
|
1116
1117
|
}
|
|
1117
|
-
const data = await
|
|
1118
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1118
1119
|
let contents = {};
|
|
1119
1120
|
contents = (0, import_smithy_client._json)(data);
|
|
1120
1121
|
const response = {
|
|
@@ -1127,7 +1128,7 @@ var de_ListProtectionsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
1127
1128
|
if (output.statusCode >= 300) {
|
|
1128
1129
|
return de_CommandError(output, context);
|
|
1129
1130
|
}
|
|
1130
|
-
const data = await
|
|
1131
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1131
1132
|
let contents = {};
|
|
1132
1133
|
contents = (0, import_smithy_client._json)(data);
|
|
1133
1134
|
const response = {
|
|
@@ -1140,7 +1141,7 @@ var de_ListResourcesInProtectionGroupCommand = /* @__PURE__ */ __name(async (out
|
|
|
1140
1141
|
if (output.statusCode >= 300) {
|
|
1141
1142
|
return de_CommandError(output, context);
|
|
1142
1143
|
}
|
|
1143
|
-
const data = await
|
|
1144
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1144
1145
|
let contents = {};
|
|
1145
1146
|
contents = (0, import_smithy_client._json)(data);
|
|
1146
1147
|
const response = {
|
|
@@ -1153,7 +1154,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
1153
1154
|
if (output.statusCode >= 300) {
|
|
1154
1155
|
return de_CommandError(output, context);
|
|
1155
1156
|
}
|
|
1156
|
-
const data = await
|
|
1157
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1157
1158
|
let contents = {};
|
|
1158
1159
|
contents = (0, import_smithy_client._json)(data);
|
|
1159
1160
|
const response = {
|
|
@@ -1166,7 +1167,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
1166
1167
|
if (output.statusCode >= 300) {
|
|
1167
1168
|
return de_CommandError(output, context);
|
|
1168
1169
|
}
|
|
1169
|
-
const data = await
|
|
1170
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1170
1171
|
let contents = {};
|
|
1171
1172
|
contents = (0, import_smithy_client._json)(data);
|
|
1172
1173
|
const response = {
|
|
@@ -1179,7 +1180,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
1179
1180
|
if (output.statusCode >= 300) {
|
|
1180
1181
|
return de_CommandError(output, context);
|
|
1181
1182
|
}
|
|
1182
|
-
const data = await
|
|
1183
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1183
1184
|
let contents = {};
|
|
1184
1185
|
contents = (0, import_smithy_client._json)(data);
|
|
1185
1186
|
const response = {
|
|
@@ -1192,7 +1193,7 @@ var de_UpdateApplicationLayerAutomaticResponseCommand = /* @__PURE__ */ __name(a
|
|
|
1192
1193
|
if (output.statusCode >= 300) {
|
|
1193
1194
|
return de_CommandError(output, context);
|
|
1194
1195
|
}
|
|
1195
|
-
const data = await
|
|
1196
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1196
1197
|
let contents = {};
|
|
1197
1198
|
contents = (0, import_smithy_client._json)(data);
|
|
1198
1199
|
const response = {
|
|
@@ -1205,7 +1206,7 @@ var de_UpdateEmergencyContactSettingsCommand = /* @__PURE__ */ __name(async (out
|
|
|
1205
1206
|
if (output.statusCode >= 300) {
|
|
1206
1207
|
return de_CommandError(output, context);
|
|
1207
1208
|
}
|
|
1208
|
-
const data = await
|
|
1209
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1209
1210
|
let contents = {};
|
|
1210
1211
|
contents = (0, import_smithy_client._json)(data);
|
|
1211
1212
|
const response = {
|
|
@@ -1218,7 +1219,7 @@ var de_UpdateProtectionGroupCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
1218
1219
|
if (output.statusCode >= 300) {
|
|
1219
1220
|
return de_CommandError(output, context);
|
|
1220
1221
|
}
|
|
1221
|
-
const data = await
|
|
1222
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1222
1223
|
let contents = {};
|
|
1223
1224
|
contents = (0, import_smithy_client._json)(data);
|
|
1224
1225
|
const response = {
|
|
@@ -1231,7 +1232,7 @@ var de_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1231
1232
|
if (output.statusCode >= 300) {
|
|
1232
1233
|
return de_CommandError(output, context);
|
|
1233
1234
|
}
|
|
1234
|
-
const data = await
|
|
1235
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
1235
1236
|
let contents = {};
|
|
1236
1237
|
contents = (0, import_smithy_client._json)(data);
|
|
1237
1238
|
const response = {
|
|
@@ -1243,9 +1244,9 @@ var de_UpdateSubscriptionCommand = /* @__PURE__ */ __name(async (output, context
|
|
|
1243
1244
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
1244
1245
|
const parsedOutput = {
|
|
1245
1246
|
...output,
|
|
1246
|
-
body: await
|
|
1247
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
1247
1248
|
};
|
|
1248
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
1249
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
1249
1250
|
switch (errorCode) {
|
|
1250
1251
|
case "AccessDeniedForDependencyException":
|
|
1251
1252
|
case "com.amazonaws.shield#AccessDeniedForDependencyException":
|
|
@@ -1566,7 +1567,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1566
1567
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1567
1568
|
cfId: output.headers["x-amz-cf-id"]
|
|
1568
1569
|
}), "deserializeMetadata");
|
|
1569
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1570
1570
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(ShieldServiceException);
|
|
1571
1571
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1572
1572
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1593,46 +1593,6 @@ function sharedHeaders(operation) {
|
|
|
1593
1593
|
};
|
|
1594
1594
|
}
|
|
1595
1595
|
__name(sharedHeaders, "sharedHeaders");
|
|
1596
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1597
|
-
if (encoded.length) {
|
|
1598
|
-
return JSON.parse(encoded);
|
|
1599
|
-
}
|
|
1600
|
-
return {};
|
|
1601
|
-
}), "parseBody");
|
|
1602
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1603
|
-
const value = await parseBody(errorBody, context);
|
|
1604
|
-
value.message = value.message ?? value.Message;
|
|
1605
|
-
return value;
|
|
1606
|
-
}, "parseErrorBody");
|
|
1607
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1608
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1609
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1610
|
-
let cleanValue = rawValue;
|
|
1611
|
-
if (typeof cleanValue === "number") {
|
|
1612
|
-
cleanValue = cleanValue.toString();
|
|
1613
|
-
}
|
|
1614
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1615
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1616
|
-
}
|
|
1617
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1618
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1619
|
-
}
|
|
1620
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1621
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1622
|
-
}
|
|
1623
|
-
return cleanValue;
|
|
1624
|
-
}, "sanitizeErrorCode");
|
|
1625
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1626
|
-
if (headerKey !== void 0) {
|
|
1627
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1628
|
-
}
|
|
1629
|
-
if (data.code !== void 0) {
|
|
1630
|
-
return sanitizeErrorCode(data.code);
|
|
1631
|
-
}
|
|
1632
|
-
if (data["__type"] !== void 0) {
|
|
1633
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1634
|
-
}
|
|
1635
|
-
}, "loadRestJsonErrorCode");
|
|
1636
1596
|
|
|
1637
1597
|
// src/commands/AssociateDRTLogBucketCommand.ts
|
|
1638
1598
|
var _AssociateDRTLogBucketCommand = class _AssociateDRTLogBucketCommand 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, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, limitedParseDouble as __limitedParseDouble, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { AccessDeniedException, AccessDeniedForDependencyException, InternalErrorException, InvalidOperationException, InvalidPaginationTokenException, InvalidParameterException, InvalidResourceException, LimitsExceededException, LockedSubscriptionException, NoAssociatedRoleException, OptimisticLockException, ResourceAlreadyExistsException, ResourceNotFoundException, } from "../models/models_0";
|
|
@@ -1048,43 +1049,3 @@ function sharedHeaders(operation) {
|
|
|
1048
1049
|
"x-amz-target": `AWSShield_20160616.${operation}`,
|
|
1049
1050
|
};
|
|
1050
1051
|
}
|
|
1051
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1052
|
-
if (encoded.length) {
|
|
1053
|
-
return JSON.parse(encoded);
|
|
1054
|
-
}
|
|
1055
|
-
return {};
|
|
1056
|
-
});
|
|
1057
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
1058
|
-
const value = await parseBody(errorBody, context);
|
|
1059
|
-
value.message = value.message ?? value.Message;
|
|
1060
|
-
return value;
|
|
1061
|
-
};
|
|
1062
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
1063
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
1064
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
1065
|
-
let cleanValue = rawValue;
|
|
1066
|
-
if (typeof cleanValue === "number") {
|
|
1067
|
-
cleanValue = cleanValue.toString();
|
|
1068
|
-
}
|
|
1069
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1070
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1071
|
-
}
|
|
1072
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1073
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1074
|
-
}
|
|
1075
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1076
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1077
|
-
}
|
|
1078
|
-
return cleanValue;
|
|
1079
|
-
};
|
|
1080
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1081
|
-
if (headerKey !== undefined) {
|
|
1082
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1083
|
-
}
|
|
1084
|
-
if (data.code !== undefined) {
|
|
1085
|
-
return sanitizeErrorCode(data.code);
|
|
1086
|
-
}
|
|
1087
|
-
if (data["__type"] !== undefined) {
|
|
1088
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1089
|
-
}
|
|
1090
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-shield",
|
|
3
3
|
"description": "AWS SDK for JavaScript Shield 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-shield",
|
|
@@ -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",
|
package/dist-cjs/Shield.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
package/dist-cjs/ShieldClient.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");
|
|
@@ -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");
|