@aws-sdk/client-kinesis-analytics 3.525.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 +23 -63
- package/dist-es/protocols/Aws_json1_1.js +1 -40
- package/package.json +4 -4
package/dist-cjs/index.js
CHANGED
|
@@ -216,6 +216,7 @@ var import_middleware_serde = require("@smithy/middleware-serde");
|
|
|
216
216
|
var import_types = require("@smithy/types");
|
|
217
217
|
|
|
218
218
|
// src/protocols/Aws_json1_1.ts
|
|
219
|
+
var import_core2 = require("@aws-sdk/core");
|
|
219
220
|
|
|
220
221
|
|
|
221
222
|
|
|
@@ -583,7 +584,7 @@ var de_AddApplicationCloudWatchLoggingOptionCommand = /* @__PURE__ */ __name(asy
|
|
|
583
584
|
if (output.statusCode >= 300) {
|
|
584
585
|
return de_CommandError(output, context);
|
|
585
586
|
}
|
|
586
|
-
const data = await
|
|
587
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
587
588
|
let contents = {};
|
|
588
589
|
contents = (0, import_smithy_client._json)(data);
|
|
589
590
|
const response = {
|
|
@@ -596,7 +597,7 @@ var de_AddApplicationInputCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
596
597
|
if (output.statusCode >= 300) {
|
|
597
598
|
return de_CommandError(output, context);
|
|
598
599
|
}
|
|
599
|
-
const data = await
|
|
600
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
600
601
|
let contents = {};
|
|
601
602
|
contents = (0, import_smithy_client._json)(data);
|
|
602
603
|
const response = {
|
|
@@ -609,7 +610,7 @@ var de_AddApplicationInputProcessingConfigurationCommand = /* @__PURE__ */ __nam
|
|
|
609
610
|
if (output.statusCode >= 300) {
|
|
610
611
|
return de_CommandError(output, context);
|
|
611
612
|
}
|
|
612
|
-
const data = await
|
|
613
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
613
614
|
let contents = {};
|
|
614
615
|
contents = (0, import_smithy_client._json)(data);
|
|
615
616
|
const response = {
|
|
@@ -622,7 +623,7 @@ var de_AddApplicationOutputCommand = /* @__PURE__ */ __name(async (output, conte
|
|
|
622
623
|
if (output.statusCode >= 300) {
|
|
623
624
|
return de_CommandError(output, context);
|
|
624
625
|
}
|
|
625
|
-
const data = await
|
|
626
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
626
627
|
let contents = {};
|
|
627
628
|
contents = (0, import_smithy_client._json)(data);
|
|
628
629
|
const response = {
|
|
@@ -635,7 +636,7 @@ var de_AddApplicationReferenceDataSourceCommand = /* @__PURE__ */ __name(async (
|
|
|
635
636
|
if (output.statusCode >= 300) {
|
|
636
637
|
return de_CommandError(output, context);
|
|
637
638
|
}
|
|
638
|
-
const data = await
|
|
639
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
639
640
|
let contents = {};
|
|
640
641
|
contents = (0, import_smithy_client._json)(data);
|
|
641
642
|
const response = {
|
|
@@ -648,7 +649,7 @@ var de_CreateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
648
649
|
if (output.statusCode >= 300) {
|
|
649
650
|
return de_CommandError(output, context);
|
|
650
651
|
}
|
|
651
|
-
const data = await
|
|
652
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
652
653
|
let contents = {};
|
|
653
654
|
contents = (0, import_smithy_client._json)(data);
|
|
654
655
|
const response = {
|
|
@@ -661,7 +662,7 @@ var de_DeleteApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
661
662
|
if (output.statusCode >= 300) {
|
|
662
663
|
return de_CommandError(output, context);
|
|
663
664
|
}
|
|
664
|
-
const data = await
|
|
665
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
665
666
|
let contents = {};
|
|
666
667
|
contents = (0, import_smithy_client._json)(data);
|
|
667
668
|
const response = {
|
|
@@ -674,7 +675,7 @@ var de_DeleteApplicationCloudWatchLoggingOptionCommand = /* @__PURE__ */ __name(
|
|
|
674
675
|
if (output.statusCode >= 300) {
|
|
675
676
|
return de_CommandError(output, context);
|
|
676
677
|
}
|
|
677
|
-
const data = await
|
|
678
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
678
679
|
let contents = {};
|
|
679
680
|
contents = (0, import_smithy_client._json)(data);
|
|
680
681
|
const response = {
|
|
@@ -687,7 +688,7 @@ var de_DeleteApplicationInputProcessingConfigurationCommand = /* @__PURE__ */ __
|
|
|
687
688
|
if (output.statusCode >= 300) {
|
|
688
689
|
return de_CommandError(output, context);
|
|
689
690
|
}
|
|
690
|
-
const data = await
|
|
691
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
691
692
|
let contents = {};
|
|
692
693
|
contents = (0, import_smithy_client._json)(data);
|
|
693
694
|
const response = {
|
|
@@ -700,7 +701,7 @@ var de_DeleteApplicationOutputCommand = /* @__PURE__ */ __name(async (output, co
|
|
|
700
701
|
if (output.statusCode >= 300) {
|
|
701
702
|
return de_CommandError(output, context);
|
|
702
703
|
}
|
|
703
|
-
const data = await
|
|
704
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
704
705
|
let contents = {};
|
|
705
706
|
contents = (0, import_smithy_client._json)(data);
|
|
706
707
|
const response = {
|
|
@@ -713,7 +714,7 @@ var de_DeleteApplicationReferenceDataSourceCommand = /* @__PURE__ */ __name(asyn
|
|
|
713
714
|
if (output.statusCode >= 300) {
|
|
714
715
|
return de_CommandError(output, context);
|
|
715
716
|
}
|
|
716
|
-
const data = await
|
|
717
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
717
718
|
let contents = {};
|
|
718
719
|
contents = (0, import_smithy_client._json)(data);
|
|
719
720
|
const response = {
|
|
@@ -726,7 +727,7 @@ var de_DescribeApplicationCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
726
727
|
if (output.statusCode >= 300) {
|
|
727
728
|
return de_CommandError(output, context);
|
|
728
729
|
}
|
|
729
|
-
const data = await
|
|
730
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
730
731
|
let contents = {};
|
|
731
732
|
contents = de_DescribeApplicationResponse(data, context);
|
|
732
733
|
const response = {
|
|
@@ -739,7 +740,7 @@ var de_DiscoverInputSchemaCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
739
740
|
if (output.statusCode >= 300) {
|
|
740
741
|
return de_CommandError(output, context);
|
|
741
742
|
}
|
|
742
|
-
const data = await
|
|
743
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
743
744
|
let contents = {};
|
|
744
745
|
contents = (0, import_smithy_client._json)(data);
|
|
745
746
|
const response = {
|
|
@@ -752,7 +753,7 @@ var de_ListApplicationsCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
752
753
|
if (output.statusCode >= 300) {
|
|
753
754
|
return de_CommandError(output, context);
|
|
754
755
|
}
|
|
755
|
-
const data = await
|
|
756
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
756
757
|
let contents = {};
|
|
757
758
|
contents = (0, import_smithy_client._json)(data);
|
|
758
759
|
const response = {
|
|
@@ -765,7 +766,7 @@ var de_ListTagsForResourceCommand = /* @__PURE__ */ __name(async (output, contex
|
|
|
765
766
|
if (output.statusCode >= 300) {
|
|
766
767
|
return de_CommandError(output, context);
|
|
767
768
|
}
|
|
768
|
-
const data = await
|
|
769
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
769
770
|
let contents = {};
|
|
770
771
|
contents = (0, import_smithy_client._json)(data);
|
|
771
772
|
const response = {
|
|
@@ -778,7 +779,7 @@ var de_StartApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
778
779
|
if (output.statusCode >= 300) {
|
|
779
780
|
return de_CommandError(output, context);
|
|
780
781
|
}
|
|
781
|
-
const data = await
|
|
782
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
782
783
|
let contents = {};
|
|
783
784
|
contents = (0, import_smithy_client._json)(data);
|
|
784
785
|
const response = {
|
|
@@ -791,7 +792,7 @@ var de_StopApplicationCommand = /* @__PURE__ */ __name(async (output, context) =
|
|
|
791
792
|
if (output.statusCode >= 300) {
|
|
792
793
|
return de_CommandError(output, context);
|
|
793
794
|
}
|
|
794
|
-
const data = await
|
|
795
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
795
796
|
let contents = {};
|
|
796
797
|
contents = (0, import_smithy_client._json)(data);
|
|
797
798
|
const response = {
|
|
@@ -804,7 +805,7 @@ var de_TagResourceCommand = /* @__PURE__ */ __name(async (output, context) => {
|
|
|
804
805
|
if (output.statusCode >= 300) {
|
|
805
806
|
return de_CommandError(output, context);
|
|
806
807
|
}
|
|
807
|
-
const data = await
|
|
808
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
808
809
|
let contents = {};
|
|
809
810
|
contents = (0, import_smithy_client._json)(data);
|
|
810
811
|
const response = {
|
|
@@ -817,7 +818,7 @@ var de_UntagResourceCommand = /* @__PURE__ */ __name(async (output, context) =>
|
|
|
817
818
|
if (output.statusCode >= 300) {
|
|
818
819
|
return de_CommandError(output, context);
|
|
819
820
|
}
|
|
820
|
-
const data = await
|
|
821
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
821
822
|
let contents = {};
|
|
822
823
|
contents = (0, import_smithy_client._json)(data);
|
|
823
824
|
const response = {
|
|
@@ -830,7 +831,7 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
830
831
|
if (output.statusCode >= 300) {
|
|
831
832
|
return de_CommandError(output, context);
|
|
832
833
|
}
|
|
833
|
-
const data = await
|
|
834
|
+
const data = await (0, import_core2.parseJsonBody)(output.body, context);
|
|
834
835
|
let contents = {};
|
|
835
836
|
contents = (0, import_smithy_client._json)(data);
|
|
836
837
|
const response = {
|
|
@@ -842,9 +843,9 @@ var de_UpdateApplicationCommand = /* @__PURE__ */ __name(async (output, context)
|
|
|
842
843
|
var de_CommandError = /* @__PURE__ */ __name(async (output, context) => {
|
|
843
844
|
const parsedOutput = {
|
|
844
845
|
...output,
|
|
845
|
-
body: await
|
|
846
|
+
body: await (0, import_core2.parseJsonErrorBody)(output.body, context)
|
|
846
847
|
};
|
|
847
|
-
const errorCode = loadRestJsonErrorCode(output, parsedOutput.body);
|
|
848
|
+
const errorCode = (0, import_core2.loadRestJsonErrorCode)(output, parsedOutput.body);
|
|
848
849
|
switch (errorCode) {
|
|
849
850
|
case "ConcurrentModificationException":
|
|
850
851
|
case "com.amazonaws.kinesisanalytics#ConcurrentModificationException":
|
|
@@ -1032,7 +1033,6 @@ var deserializeMetadata = /* @__PURE__ */ __name((output) => ({
|
|
|
1032
1033
|
extendedRequestId: output.headers["x-amz-id-2"],
|
|
1033
1034
|
cfId: output.headers["x-amz-cf-id"]
|
|
1034
1035
|
}), "deserializeMetadata");
|
|
1035
|
-
var collectBodyString = /* @__PURE__ */ __name((streamBody, context) => (0, import_smithy_client.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)), "collectBodyString");
|
|
1036
1036
|
var throwDefaultError = (0, import_smithy_client.withBaseException)(KinesisAnalyticsServiceException);
|
|
1037
1037
|
var buildHttpRpcRequest = /* @__PURE__ */ __name(async (context, headers, path, resolvedHostname, body) => {
|
|
1038
1038
|
const { hostname, protocol = "https", port, path: basePath } = await context.endpoint();
|
|
@@ -1059,46 +1059,6 @@ function sharedHeaders(operation) {
|
|
|
1059
1059
|
};
|
|
1060
1060
|
}
|
|
1061
1061
|
__name(sharedHeaders, "sharedHeaders");
|
|
1062
|
-
var parseBody = /* @__PURE__ */ __name((streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
1063
|
-
if (encoded.length) {
|
|
1064
|
-
return JSON.parse(encoded);
|
|
1065
|
-
}
|
|
1066
|
-
return {};
|
|
1067
|
-
}), "parseBody");
|
|
1068
|
-
var parseErrorBody = /* @__PURE__ */ __name(async (errorBody, context) => {
|
|
1069
|
-
const value = await parseBody(errorBody, context);
|
|
1070
|
-
value.message = value.message ?? value.Message;
|
|
1071
|
-
return value;
|
|
1072
|
-
}, "parseErrorBody");
|
|
1073
|
-
var loadRestJsonErrorCode = /* @__PURE__ */ __name((output, data) => {
|
|
1074
|
-
const findKey = /* @__PURE__ */ __name((object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()), "findKey");
|
|
1075
|
-
const sanitizeErrorCode = /* @__PURE__ */ __name((rawValue) => {
|
|
1076
|
-
let cleanValue = rawValue;
|
|
1077
|
-
if (typeof cleanValue === "number") {
|
|
1078
|
-
cleanValue = cleanValue.toString();
|
|
1079
|
-
}
|
|
1080
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
1081
|
-
cleanValue = cleanValue.split(",")[0];
|
|
1082
|
-
}
|
|
1083
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
1084
|
-
cleanValue = cleanValue.split(":")[0];
|
|
1085
|
-
}
|
|
1086
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
1087
|
-
cleanValue = cleanValue.split("#")[1];
|
|
1088
|
-
}
|
|
1089
|
-
return cleanValue;
|
|
1090
|
-
}, "sanitizeErrorCode");
|
|
1091
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
1092
|
-
if (headerKey !== void 0) {
|
|
1093
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
1094
|
-
}
|
|
1095
|
-
if (data.code !== void 0) {
|
|
1096
|
-
return sanitizeErrorCode(data.code);
|
|
1097
|
-
}
|
|
1098
|
-
if (data["__type"] !== void 0) {
|
|
1099
|
-
return sanitizeErrorCode(data["__type"]);
|
|
1100
|
-
}
|
|
1101
|
-
}, "loadRestJsonErrorCode");
|
|
1102
1062
|
|
|
1103
1063
|
// src/commands/AddApplicationCloudWatchLoggingOptionCommand.ts
|
|
1104
1064
|
var _AddApplicationCloudWatchLoggingOptionCommand = class _AddApplicationCloudWatchLoggingOptionCommand 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, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client";
|
|
3
4
|
import { KinesisAnalyticsServiceException as __BaseException } from "../models/KinesisAnalyticsServiceException";
|
|
@@ -601,43 +602,3 @@ function sharedHeaders(operation) {
|
|
|
601
602
|
"x-amz-target": `KinesisAnalytics_20150814.${operation}`,
|
|
602
603
|
};
|
|
603
604
|
}
|
|
604
|
-
const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => {
|
|
605
|
-
if (encoded.length) {
|
|
606
|
-
return JSON.parse(encoded);
|
|
607
|
-
}
|
|
608
|
-
return {};
|
|
609
|
-
});
|
|
610
|
-
const parseErrorBody = async (errorBody, context) => {
|
|
611
|
-
const value = await parseBody(errorBody, context);
|
|
612
|
-
value.message = value.message ?? value.Message;
|
|
613
|
-
return value;
|
|
614
|
-
};
|
|
615
|
-
const loadRestJsonErrorCode = (output, data) => {
|
|
616
|
-
const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase());
|
|
617
|
-
const sanitizeErrorCode = (rawValue) => {
|
|
618
|
-
let cleanValue = rawValue;
|
|
619
|
-
if (typeof cleanValue === "number") {
|
|
620
|
-
cleanValue = cleanValue.toString();
|
|
621
|
-
}
|
|
622
|
-
if (cleanValue.indexOf(",") >= 0) {
|
|
623
|
-
cleanValue = cleanValue.split(",")[0];
|
|
624
|
-
}
|
|
625
|
-
if (cleanValue.indexOf(":") >= 0) {
|
|
626
|
-
cleanValue = cleanValue.split(":")[0];
|
|
627
|
-
}
|
|
628
|
-
if (cleanValue.indexOf("#") >= 0) {
|
|
629
|
-
cleanValue = cleanValue.split("#")[1];
|
|
630
|
-
}
|
|
631
|
-
return cleanValue;
|
|
632
|
-
};
|
|
633
|
-
const headerKey = findKey(output.headers, "x-amzn-errortype");
|
|
634
|
-
if (headerKey !== undefined) {
|
|
635
|
-
return sanitizeErrorCode(output.headers[headerKey]);
|
|
636
|
-
}
|
|
637
|
-
if (data.code !== undefined) {
|
|
638
|
-
return sanitizeErrorCode(data.code);
|
|
639
|
-
}
|
|
640
|
-
if (data["__type"] !== undefined) {
|
|
641
|
-
return sanitizeErrorCode(data["__type"]);
|
|
642
|
-
}
|
|
643
|
-
};
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-kinesis-analytics",
|
|
3
3
|
"description": "AWS SDK for JavaScript Kinesis Analytics 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-kinesis-analytics",
|
|
@@ -20,9 +20,9 @@
|
|
|
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",
|