@aws-sdk/client-fis 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 +25 -65
- package/dist-es/protocols/Aws_restJson1.js +1 -40
- package/package.json +17 -17
- package/dist-cjs/Fis.js +0 -1
- package/dist-cjs/FisClient.js +0 -1
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
- package/dist-cjs/commands/CreateExperimentTemplateCommand.js +0 -1
- package/dist-cjs/commands/CreateTargetAccountConfigurationCommand.js +0 -1
- package/dist-cjs/commands/DeleteExperimentTemplateCommand.js +0 -1
- package/dist-cjs/commands/DeleteTargetAccountConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetActionCommand.js +0 -1
- package/dist-cjs/commands/GetExperimentCommand.js +0 -1
- package/dist-cjs/commands/GetExperimentTargetAccountConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetExperimentTemplateCommand.js +0 -1
- package/dist-cjs/commands/GetTargetAccountConfigurationCommand.js +0 -1
- package/dist-cjs/commands/GetTargetResourceTypeCommand.js +0 -1
- package/dist-cjs/commands/ListActionsCommand.js +0 -1
- package/dist-cjs/commands/ListExperimentResolvedTargetsCommand.js +0 -1
- package/dist-cjs/commands/ListExperimentTargetAccountConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListExperimentTemplatesCommand.js +0 -1
- package/dist-cjs/commands/ListExperimentsCommand.js +0 -1
- package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
- package/dist-cjs/commands/ListTargetAccountConfigurationsCommand.js +0 -1
- package/dist-cjs/commands/ListTargetResourceTypesCommand.js +0 -1
- package/dist-cjs/commands/StartExperimentCommand.js +0 -1
- package/dist-cjs/commands/StopExperimentCommand.js +0 -1
- package/dist-cjs/commands/TagResourceCommand.js +0 -1
- package/dist-cjs/commands/UntagResourceCommand.js +0 -1
- package/dist-cjs/commands/UpdateExperimentTemplateCommand.js +0 -1
- package/dist-cjs/commands/UpdateTargetAccountConfigurationCommand.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/FisServiceException.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/ListActionsPaginator.js +0 -1
- package/dist-cjs/pagination/ListExperimentResolvedTargetsPaginator.js +0 -1
- package/dist-cjs/pagination/ListExperimentTemplatesPaginator.js +0 -1
- package/dist-cjs/pagination/ListExperimentsPaginator.js +0 -1
- package/dist-cjs/pagination/ListTargetAccountConfigurationsPaginator.js +0 -1
- package/dist-cjs/pagination/ListTargetResourceTypesPaginator.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
|
@@ -219,6 +219,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
219
219
|
var import_types = require("@smithy/types");
|
|
220
220
|
|
|
221
221
|
// src/protocols/Aws_restJson1.ts
|
|
222
|
+
var import_core2 = require("@aws-sdk/core");
|
|
222
223
|
|
|
223
224
|
|
|
224
225
|
var import_uuid = require("uuid");
|
|
@@ -650,7 +651,7 @@ var de_CreateExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
650
651
|
const contents = (0, import_smithy_client.map)({
|
|
651
652
|
$metadata: deserializeMetadata(output)
|
|
652
653
|
});
|
|
653
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
654
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
654
655
|
const doc = (0, import_smithy_client.take)(data, {
|
|
655
656
|
experimentTemplate: (_) => de_ExperimentTemplate(_, context)
|
|
656
657
|
});
|
|
@@ -664,7 +665,7 @@ var de_CreateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
664
665
|
const contents = (0, import_smithy_client.map)({
|
|
665
666
|
$metadata: deserializeMetadata(output)
|
|
666
667
|
});
|
|
667
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
668
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
668
669
|
const doc = (0, import_smithy_client.take)(data, {
|
|
669
670
|
targetAccountConfiguration: import_smithy_client._json
|
|
670
671
|
});
|
|
@@ -678,7 +679,7 @@ var de_DeleteExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
678
679
|
const contents = (0, import_smithy_client.map)({
|
|
679
680
|
$metadata: deserializeMetadata(output)
|
|
680
681
|
});
|
|
681
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
682
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
682
683
|
const doc = (0, import_smithy_client.take)(data, {
|
|
683
684
|
experimentTemplate: (_) => de_ExperimentTemplate(_, context)
|
|
684
685
|
});
|
|
@@ -692,7 +693,7 @@ var de_DeleteTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
692
693
|
const contents = (0, import_smithy_client.map)({
|
|
693
694
|
$metadata: deserializeMetadata(output)
|
|
694
695
|
});
|
|
695
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
696
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
696
697
|
const doc = (0, import_smithy_client.take)(data, {
|
|
697
698
|
targetAccountConfiguration: import_smithy_client._json
|
|
698
699
|
});
|
|
@@ -706,7 +707,7 @@ var de_GetActionCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
706
707
|
const contents = (0, import_smithy_client.map)({
|
|
707
708
|
$metadata: deserializeMetadata(output)
|
|
708
709
|
});
|
|
709
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
710
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
710
711
|
const doc = (0, import_smithy_client.take)(data, {
|
|
711
712
|
action: import_smithy_client._json
|
|
712
713
|
});
|
|
@@ -720,7 +721,7 @@ var de_GetExperimentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
720
721
|
const contents = (0, import_smithy_client.map)({
|
|
721
722
|
$metadata: deserializeMetadata(output)
|
|
722
723
|
});
|
|
723
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
724
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
724
725
|
const doc = (0, import_smithy_client.take)(data, {
|
|
725
726
|
experiment: (_) => de_Experiment(_, context)
|
|
726
727
|
});
|
|
@@ -734,7 +735,7 @@ var de_GetExperimentTargetAccountConfigurationCommand = /* @__PURE__ */ __name(a
|
|
|
734
735
|
const contents = (0, import_smithy_client.map)({
|
|
735
736
|
$metadata: deserializeMetadata(output)
|
|
736
737
|
});
|
|
737
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
738
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
738
739
|
const doc = (0, import_smithy_client.take)(data, {
|
|
739
740
|
targetAccountConfiguration: import_smithy_client._json
|
|
740
741
|
});
|
|
@@ -748,7 +749,7 @@ var de_GetExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
748
749
|
const contents = (0, import_smithy_client.map)({
|
|
749
750
|
$metadata: deserializeMetadata(output)
|
|
750
751
|
});
|
|
751
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
752
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
752
753
|
const doc = (0, import_smithy_client.take)(data, {
|
|
753
754
|
experimentTemplate: (_) => de_ExperimentTemplate(_, context)
|
|
754
755
|
});
|
|
@@ -762,7 +763,7 @@ var de_GetTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (outp
|
|
|
762
763
|
const contents = (0, import_smithy_client.map)({
|
|
763
764
|
$metadata: deserializeMetadata(output)
|
|
764
765
|
});
|
|
765
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
766
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
766
767
|
const doc = (0, import_smithy_client.take)(data, {
|
|
767
768
|
targetAccountConfiguration: import_smithy_client._json
|
|
768
769
|
});
|
|
@@ -776,7 +777,7 @@ var de_GetTargetResourceTypeCommand = /* @__PURE__ */ __name(async (output, cont
|
|
|
776
777
|
const contents = (0, import_smithy_client.map)({
|
|
777
778
|
$metadata: deserializeMetadata(output)
|
|
778
779
|
});
|
|
779
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
780
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
780
781
|
const doc = (0, import_smithy_client.take)(data, {
|
|
781
782
|
targetResourceType: import_smithy_client._json
|
|
782
783
|
});
|
|
@@ -790,7 +791,7 @@ var de_ListActionsCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
790
791
|
const contents = (0, import_smithy_client.map)({
|
|
791
792
|
$metadata: deserializeMetadata(output)
|
|
792
793
|
});
|
|
793
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
794
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
794
795
|
const doc = (0, import_smithy_client.take)(data, {
|
|
795
796
|
actions: import_smithy_client._json,
|
|
796
797
|
nextToken: import_smithy_client.expectString
|
|
@@ -805,7 +806,7 @@ var de_ListExperimentResolvedTargetsCommand = /* @__PURE__ */ __name(async (outp
|
|
|
805
806
|
const contents = (0, import_smithy_client.map)({
|
|
806
807
|
$metadata: deserializeMetadata(output)
|
|
807
808
|
});
|
|
808
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
809
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
809
810
|
const doc = (0, import_smithy_client.take)(data, {
|
|
810
811
|
nextToken: import_smithy_client.expectString,
|
|
811
812
|
resolvedTargets: import_smithy_client._json
|
|
@@ -820,7 +821,7 @@ var de_ListExperimentsCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
820
821
|
const contents = (0, import_smithy_client.map)({
|
|
821
822
|
$metadata: deserializeMetadata(output)
|
|
822
823
|
});
|
|
823
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
824
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
824
825
|
const doc = (0, import_smithy_client.take)(data, {
|
|
825
826
|
experiments: (_) => de_ExperimentSummaryList(_, context),
|
|
826
827
|
nextToken: import_smithy_client.expectString
|
|
@@ -835,7 +836,7 @@ var de_ListExperimentTargetAccountConfigurationsCommand = /* @__PURE__ */ __name
|
|
|
835
836
|
const contents = (0, import_smithy_client.map)({
|
|
836
837
|
$metadata: deserializeMetadata(output)
|
|
837
838
|
});
|
|
838
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
839
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
839
840
|
const doc = (0, import_smithy_client.take)(data, {
|
|
840
841
|
nextToken: import_smithy_client.expectString,
|
|
841
842
|
targetAccountConfigurations: import_smithy_client._json
|
|
@@ -850,7 +851,7 @@ var de_ListExperimentTemplatesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
850
851
|
const contents = (0, import_smithy_client.map)({
|
|
851
852
|
$metadata: deserializeMetadata(output)
|
|
852
853
|
});
|
|
853
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
854
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
854
855
|
const doc = (0, import_smithy_client.take)(data, {
|
|
855
856
|
experimentTemplates: (_) => de_ExperimentTemplateSummaryList(_, context),
|
|
856
857
|
nextToken: import_smithy_client.expectString
|
|
@@ -865,7 +866,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
865
866
|
const contents = (0, import_smithy_client.map)({
|
|
866
867
|
$metadata: deserializeMetadata(output)
|
|
867
868
|
});
|
|
868
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
869
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
869
870
|
const doc = (0, import_smithy_client.take)(data, {
|
|
870
871
|
tags: import_smithy_client._json
|
|
871
872
|
});
|
|
@@ -879,7 +880,7 @@ var de_ListTargetAccountConfigurationsCommand = /* @__PURE__ */ __name(async (ou
|
|
|
879
880
|
const contents = (0, import_smithy_client.map)({
|
|
880
881
|
$metadata: deserializeMetadata(output)
|
|
881
882
|
});
|
|
882
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
883
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
883
884
|
const doc = (0, import_smithy_client.take)(data, {
|
|
884
885
|
nextToken: import_smithy_client.expectString,
|
|
885
886
|
targetAccountConfigurations: import_smithy_client._json
|
|
@@ -894,7 +895,7 @@ var de_ListTargetResourceTypesCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
894
895
|
const contents = (0, import_smithy_client.map)({
|
|
895
896
|
$metadata: deserializeMetadata(output)
|
|
896
897
|
});
|
|
897
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
898
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
898
899
|
const doc = (0, import_smithy_client.take)(data, {
|
|
899
900
|
nextToken: import_smithy_client.expectString,
|
|
900
901
|
targetResourceTypes: import_smithy_client._json
|
|
@@ -909,7 +910,7 @@ var de_StartExperimentCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
909
910
|
const contents = (0, import_smithy_client.map)({
|
|
910
911
|
$metadata: deserializeMetadata(output)
|
|
911
912
|
});
|
|
912
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
913
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
913
914
|
const doc = (0, import_smithy_client.take)(data, {
|
|
914
915
|
experiment: (_) => de_Experiment(_, context)
|
|
915
916
|
});
|
|
@@ -923,7 +924,7 @@ var de_StopExperimentCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
923
924
|
const contents = (0, import_smithy_client.map)({
|
|
924
925
|
$metadata: deserializeMetadata(output)
|
|
925
926
|
});
|
|
926
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
927
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
927
928
|
const doc = (0, import_smithy_client.take)(data, {
|
|
928
929
|
experiment: (_) => de_Experiment(_, context)
|
|
929
930
|
});
|
|
@@ -957,7 +958,7 @@ var de_UpdateExperimentTemplateCommand = /* @__PURE__ */ __name(async (output, c
|
|
|
957
958
|
const contents = (0, import_smithy_client.map)({
|
|
958
959
|
$metadata: deserializeMetadata(output)
|
|
959
960
|
});
|
|
960
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
961
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
961
962
|
const doc = (0, import_smithy_client.take)(data, {
|
|
962
963
|
experimentTemplate: (_) => de_ExperimentTemplate(_, context)
|
|
963
964
|
});
|
|
@@ -971,7 +972,7 @@ var de_UpdateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
971
972
|
const contents = (0, import_smithy_client.map)({
|
|
972
973
|
$metadata: deserializeMetadata(output)
|
|
973
974
|
});
|
|
974
|
-
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await
|
|
975
|
+
const data = (0, import_smithy_client.expectNonNull)((0, import_smithy_client.expectObject)(await (0, import_core2.parseJsonBody)(output.body, context)), "body");
|
|
975
976
|
const doc = (0, import_smithy_client.take)(data, {
|
|
976
977
|
targetAccountConfiguration: import_smithy_client._json
|
|
977
978
|
});
|
|
@@ -981,9 +982,9 @@ var de_UpdateTargetAccountConfigurationCommand = /* @__PURE__ */ __name(async (o
|
|
|
981
982
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
982
983
|
const parsedOutput = {
|
|
983
984
|
...output,
|
|
984
|
-
body: await
|
|
985
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
985
986
|
};
|
|
986
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
987
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
987
988
|
switch (errorCode) {
|
|
988
989
|
case "ConflictException":
|
|
989
990
|
case "com.amazonaws.fis#ConflictException":
|
|
@@ -1150,51 +1151,10 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1150
1151
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1151
1152
|
cfId: output.headers["x-amz-cf-id"]
|
|
1152
1153
|
}), "deserializeMetadata");
|
|
1153
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1154
1154
|
var _mR = "maxResults";
|
|
1155
1155
|
var _nT = "nextToken";
|
|
1156
1156
|
var _tK = "tagKeys";
|
|
1157
1157
|
var _tN = "targetName";
|
|
1158
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1159
|
-
if (encoded.length) {
|
|
1160
|
-
return JSON.parse(encoded);
|
|
1161
|
-
}
|
|
1162
|
-
return {};
|
|
1163
|
-
}), "parseBody");
|
|
1164
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1165
|
-
const value = await parseBody(errorBody, context);
|
|
1166
|
-
value.message = value.message ?? value.Message;
|
|
1167
|
-
return value;
|
|
1168
|
-
}, "parseErrorBody");
|
|
1169
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1170
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1171
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1172
|
-
let cleanValue = rawValue;
|
|
1173
|
-
if (typeof cleanValue === "number") {
|
|
1174
|
-
cleanValue = cleanValue.toString();
|
|
1175
|
-
}
|
|
1176
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1177
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1178
|
-
}
|
|
1179
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1180
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1181
|
-
}
|
|
1182
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1183
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1184
|
-
}
|
|
1185
|
-
return cleanValue;
|
|
1186
|
-
}, "sanitizeErrorCode");
|
|
1187
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1188
|
-
if (headerKey !== void 0) {
|
|
1189
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1190
|
-
}
|
|
1191
|
-
if (data.code !== void 0) {
|
|
1192
|
-
return sanitizeErrorCode(data.code);
|
|
1193
|
-
}
|
|
1194
|
-
if (data["__type"] !== void 0) {
|
|
1195
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1196
|
-
}
|
|
1197
|
-
}, "loadRestJsonErrorCode");
|
|
1198
1158
|
|
|
1199
1159
|
// src/commands/CreateExperimentTemplateCommand.ts
|
|
1200
1160
|
var _CreateExperimentTemplateCommand = class _CreateExperimentTemplateCommand 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, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectObject as __expectObject, expectString as __expectString, map, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { v4 as generateIdempotencyToken } from "uuid";
|
|
@@ -819,43 +820,3 @@ const _mR = "maxResults";
|
|
|
819
820
|
const _nT = "nextToken";
|
|
820
821
|
const _tK = "tagKeys";
|
|
821
822
|
const _tN = "targetName";
|
|
822
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
823
|
-
if (encoded.length) {
|
|
824
|
-
return JSON.parse(encoded);
|
|
825
|
-
}
|
|
826
|
-
return {};
|
|
827
|
-
});
|
|
828
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
829
|
-
const value = await parseBody(errorBody, context);
|
|
830
|
-
value.message = value.message ?? value.Message;
|
|
831
|
-
return value;
|
|
832
|
-
};
|
|
833
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
834
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
835
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
836
|
-
let cleanValue = rawValue;
|
|
837
|
-
if (typeof cleanValue === "number") {
|
|
838
|
-
cleanValue = cleanValue.toString();
|
|
839
|
-
}
|
|
840
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
841
|
-
cleanValue = cleanValue.split(",")[0];
|
|
842
|
-
}
|
|
843
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
844
|
-
cleanValue = cleanValue.split(":")[0];
|
|
845
|
-
}
|
|
846
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
847
|
-
cleanValue = cleanValue.split("#")[1];
|
|
848
|
-
}
|
|
849
|
-
return cleanValue;
|
|
850
|
-
};
|
|
851
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
852
|
-
if (headerKey !== undefined) {
|
|
853
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
854
|
-
}
|
|
855
|
-
if (data.code !== undefined) {
|
|
856
|
-
return sanitizeErrorCode(data.code);
|
|
857
|
-
}
|
|
858
|
-
if (data["__type"] !== undefined) {
|
|
859
|
-
return sanitizeErrorCode(data["__type"]);
|
|
860
|
-
}
|
|
861
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-fis",
|
|
3
3
|
"description": "AWS SDK for JavaScript Fis 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-fis",
|
|
@@ -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/Fis.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require("./index.js");
|
package/dist-cjs/FisClient.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");
|
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");
|