@aws-sdk/client-kinesis 3.1075.0 → 3.1077.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.
@@ -1,193 +0,0 @@
1
- const { KinesisServiceException: __BaseException } = require("./KinesisServiceException");
2
- exports.AccessDeniedException = class AccessDeniedException extends __BaseException {
3
- name = "AccessDeniedException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "AccessDeniedException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, AccessDeniedException.prototype);
12
- }
13
- };
14
- exports.InvalidArgumentException = class InvalidArgumentException extends __BaseException {
15
- name = "InvalidArgumentException";
16
- $fault = "client";
17
- constructor(opts) {
18
- super({
19
- name: "InvalidArgumentException",
20
- $fault: "client",
21
- ...opts,
22
- });
23
- Object.setPrototypeOf(this, InvalidArgumentException.prototype);
24
- }
25
- };
26
- exports.LimitExceededException = class LimitExceededException extends __BaseException {
27
- name = "LimitExceededException";
28
- $fault = "client";
29
- constructor(opts) {
30
- super({
31
- name: "LimitExceededException",
32
- $fault: "client",
33
- ...opts,
34
- });
35
- Object.setPrototypeOf(this, LimitExceededException.prototype);
36
- }
37
- };
38
- exports.ResourceInUseException = class ResourceInUseException extends __BaseException {
39
- name = "ResourceInUseException";
40
- $fault = "client";
41
- constructor(opts) {
42
- super({
43
- name: "ResourceInUseException",
44
- $fault: "client",
45
- ...opts,
46
- });
47
- Object.setPrototypeOf(this, ResourceInUseException.prototype);
48
- }
49
- };
50
- exports.ResourceNotFoundException = class ResourceNotFoundException extends __BaseException {
51
- name = "ResourceNotFoundException";
52
- $fault = "client";
53
- constructor(opts) {
54
- super({
55
- name: "ResourceNotFoundException",
56
- $fault: "client",
57
- ...opts,
58
- });
59
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
60
- }
61
- };
62
- exports.ValidationException = class ValidationException extends __BaseException {
63
- name = "ValidationException";
64
- $fault = "client";
65
- constructor(opts) {
66
- super({
67
- name: "ValidationException",
68
- $fault: "client",
69
- ...opts,
70
- });
71
- Object.setPrototypeOf(this, ValidationException.prototype);
72
- }
73
- };
74
- exports.ExpiredIteratorException = class ExpiredIteratorException extends __BaseException {
75
- name = "ExpiredIteratorException";
76
- $fault = "client";
77
- constructor(opts) {
78
- super({
79
- name: "ExpiredIteratorException",
80
- $fault: "client",
81
- ...opts,
82
- });
83
- Object.setPrototypeOf(this, ExpiredIteratorException.prototype);
84
- }
85
- };
86
- exports.ExpiredNextTokenException = class ExpiredNextTokenException extends __BaseException {
87
- name = "ExpiredNextTokenException";
88
- $fault = "client";
89
- constructor(opts) {
90
- super({
91
- name: "ExpiredNextTokenException",
92
- $fault: "client",
93
- ...opts,
94
- });
95
- Object.setPrototypeOf(this, ExpiredNextTokenException.prototype);
96
- }
97
- };
98
- exports.InternalFailureException = class InternalFailureException extends __BaseException {
99
- name = "InternalFailureException";
100
- $fault = "server";
101
- constructor(opts) {
102
- super({
103
- name: "InternalFailureException",
104
- $fault: "server",
105
- ...opts,
106
- });
107
- Object.setPrototypeOf(this, InternalFailureException.prototype);
108
- }
109
- };
110
- exports.KMSAccessDeniedException = class KMSAccessDeniedException extends __BaseException {
111
- name = "KMSAccessDeniedException";
112
- $fault = "client";
113
- constructor(opts) {
114
- super({
115
- name: "KMSAccessDeniedException",
116
- $fault: "client",
117
- ...opts,
118
- });
119
- Object.setPrototypeOf(this, KMSAccessDeniedException.prototype);
120
- }
121
- };
122
- exports.KMSDisabledException = class KMSDisabledException extends __BaseException {
123
- name = "KMSDisabledException";
124
- $fault = "client";
125
- constructor(opts) {
126
- super({
127
- name: "KMSDisabledException",
128
- $fault: "client",
129
- ...opts,
130
- });
131
- Object.setPrototypeOf(this, KMSDisabledException.prototype);
132
- }
133
- };
134
- exports.KMSInvalidStateException = class KMSInvalidStateException extends __BaseException {
135
- name = "KMSInvalidStateException";
136
- $fault = "client";
137
- constructor(opts) {
138
- super({
139
- name: "KMSInvalidStateException",
140
- $fault: "client",
141
- ...opts,
142
- });
143
- Object.setPrototypeOf(this, KMSInvalidStateException.prototype);
144
- }
145
- };
146
- exports.KMSNotFoundException = class KMSNotFoundException extends __BaseException {
147
- name = "KMSNotFoundException";
148
- $fault = "client";
149
- constructor(opts) {
150
- super({
151
- name: "KMSNotFoundException",
152
- $fault: "client",
153
- ...opts,
154
- });
155
- Object.setPrototypeOf(this, KMSNotFoundException.prototype);
156
- }
157
- };
158
- exports.KMSOptInRequired = class KMSOptInRequired extends __BaseException {
159
- name = "KMSOptInRequired";
160
- $fault = "client";
161
- constructor(opts) {
162
- super({
163
- name: "KMSOptInRequired",
164
- $fault: "client",
165
- ...opts,
166
- });
167
- Object.setPrototypeOf(this, KMSOptInRequired.prototype);
168
- }
169
- };
170
- exports.KMSThrottlingException = class KMSThrottlingException extends __BaseException {
171
- name = "KMSThrottlingException";
172
- $fault = "client";
173
- constructor(opts) {
174
- super({
175
- name: "KMSThrottlingException",
176
- $fault: "client",
177
- ...opts,
178
- });
179
- Object.setPrototypeOf(this, KMSThrottlingException.prototype);
180
- }
181
- };
182
- exports.ProvisionedThroughputExceededException = class ProvisionedThroughputExceededException extends __BaseException {
183
- name = "ProvisionedThroughputExceededException";
184
- $fault = "client";
185
- constructor(opts) {
186
- super({
187
- name: "ProvisionedThroughputExceededException",
188
- $fault: "client",
189
- ...opts,
190
- });
191
- Object.setPrototypeOf(this, ProvisionedThroughputExceededException.prototype);
192
- }
193
- };
@@ -1,34 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { Sha256 } = require("@aws-crypto/sha256-browser");
3
- const { createDefaultUserAgentProvider } = require("@aws-sdk/core/client");
4
- const { invalidProvider, loadConfigsForDefaultMode } = require("@smithy/core/client");
5
- const { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig } = require("@smithy/core/config");
6
- const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
7
- const { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } = require("@smithy/core/retry");
8
- const { calculateBodyLength } = require("@smithy/core/serde");
9
- const { FetchHttpHandler: RequestHandler, streamCollector } = require("@smithy/fetch-http-handler");
10
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
11
- const getRuntimeConfig = (config) => {
12
- const defaultsMode = resolveDefaultsModeConfig(config);
13
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
14
- const clientSharedValues = getSharedRuntimeConfig(config);
15
- return {
16
- ...clientSharedValues,
17
- ...config,
18
- runtime: "browser",
19
- defaultsMode,
20
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
21
- credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
22
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
23
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
24
- maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
25
- region: config?.region ?? invalidProvider("Region is missing"),
26
- requestHandler: RequestHandler.create(config?.requestHandler ?? defaultConfigProvider),
27
- retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
28
- sha256: config?.sha256 ?? Sha256,
29
- streamCollector: config?.streamCollector ?? streamCollector,
30
- useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
31
- useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
32
- };
33
- };
34
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,50 +0,0 @@
1
- const packageInfo = require("../package.json");
2
- const { createDefaultUserAgentProvider, emitWarningIfUnsupportedVersion: awsCheckVersion, NODE_APP_ID_CONFIG_OPTIONS } = require("@aws-sdk/core/client");
3
- const { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } = require("@aws-sdk/core/httpAuthSchemes");
4
- const { defaultProvider: credentialDefaultProvider } = require("@aws-sdk/credential-provider-node");
5
- const { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } = require("@smithy/core/client");
6
- const { loadConfig: loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig } = require("@smithy/core/config");
7
- const { eventStreamSerdeProvider } = require("@smithy/core/event-streams");
8
- const { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } = require("@smithy/core/retry");
9
- const { calculateBodyLength, Hash } = require("@smithy/core/serde");
10
- const { NodeHttp2Handler: RequestHandler, streamCollector } = require("@smithy/node-http-handler");
11
- const { getRuntimeConfig: getSharedRuntimeConfig } = require("./runtimeConfig.shared");
12
- const getRuntimeConfig = (config) => {
13
- emitWarningIfUnsupportedVersion(process.version);
14
- const defaultsMode = resolveDefaultsModeConfig(config);
15
- const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
16
- const clientSharedValues = getSharedRuntimeConfig(config);
17
- awsCheckVersion(process.version);
18
- const loaderConfig = {
19
- profile: config?.profile,
20
- logger: clientSharedValues.logger,
21
- };
22
- return {
23
- ...clientSharedValues,
24
- ...config,
25
- runtime: "node",
26
- defaultsMode,
27
- authSchemePreference: config?.authSchemePreference ?? loadNodeConfig(NODE_AUTH_SCHEME_PREFERENCE_OPTIONS, loaderConfig),
28
- bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
29
- credentialDefaultProvider: config?.credentialDefaultProvider ?? credentialDefaultProvider,
30
- defaultUserAgentProvider: config?.defaultUserAgentProvider ?? createDefaultUserAgentProvider({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
31
- eventStreamSerdeProvider: config?.eventStreamSerdeProvider ?? eventStreamSerdeProvider,
32
- maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS, config),
33
- region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, { ...NODE_REGION_CONFIG_FILE_OPTIONS, ...loaderConfig }),
34
- requestHandler: RequestHandler.create(config?.requestHandler ?? (async () => ({
35
- ...await defaultConfigProvider(),
36
- disableConcurrentStreams: true
37
- }))),
38
- retryMode: config?.retryMode ??
39
- loadNodeConfig({
40
- ...NODE_RETRY_MODE_CONFIG_OPTIONS,
41
- default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
42
- }, config),
43
- sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
44
- streamCollector: config?.streamCollector ?? streamCollector,
45
- useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
46
- useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, loaderConfig),
47
- userAgentAppId: config?.userAgentAppId ?? loadNodeConfig(NODE_APP_ID_CONFIG_OPTIONS, loaderConfig),
48
- };
49
- };
50
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,12 +0,0 @@
1
- const { Sha256 } = require("@aws-crypto/sha256-js");
2
- const { getRuntimeConfig: getBrowserRuntimeConfig } = require("./runtimeConfig.browser");
3
- const getRuntimeConfig = (config) => {
4
- const browserDefaults = getBrowserRuntimeConfig(config);
5
- return {
6
- ...browserDefaults,
7
- ...config,
8
- runtime: "react-native",
9
- sha256: config?.sha256 ?? Sha256,
10
- };
11
- };
12
- exports.getRuntimeConfig = getRuntimeConfig;
@@ -1,39 +0,0 @@
1
- const { AwsSdkSigV4Signer } = require("@aws-sdk/core/httpAuthSchemes");
2
- const { AwsJson1_1Protocol } = require("@aws-sdk/core/protocols");
3
- const { NoOpLogger } = require("@smithy/core/client");
4
- const { parseUrl } = require("@smithy/core/protocols");
5
- const { fromBase64, fromUtf8, toBase64, toUtf8 } = require("@smithy/core/serde");
6
- const { defaultKinesisHttpAuthSchemeProvider } = require("./auth/httpAuthSchemeProvider");
7
- const { defaultEndpointResolver } = require("./endpoint/endpointResolver");
8
- const { errorTypeRegistries } = require("./schemas/schemas_0");
9
- exports.getRuntimeConfig = (config) => {
10
- return {
11
- apiVersion: "2013-12-02",
12
- base64Decoder: config?.base64Decoder ?? fromBase64,
13
- base64Encoder: config?.base64Encoder ?? toBase64,
14
- disableHostPrefix: config?.disableHostPrefix ?? false,
15
- endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
16
- extensions: config?.extensions ?? [],
17
- httpAuthSchemeProvider: config?.httpAuthSchemeProvider ?? defaultKinesisHttpAuthSchemeProvider,
18
- httpAuthSchemes: config?.httpAuthSchemes ?? [
19
- {
20
- schemeId: "aws.auth#sigv4",
21
- identityProvider: (ipc) => ipc.getIdentityProvider("aws.auth#sigv4"),
22
- signer: new AwsSdkSigV4Signer(),
23
- },
24
- ],
25
- logger: config?.logger ?? new NoOpLogger(),
26
- protocol: config?.protocol ?? AwsJson1_1Protocol,
27
- protocolSettings: config?.protocolSettings ?? {
28
- defaultNamespace: "com.amazonaws.kinesis",
29
- errorTypeRegistries,
30
- xmlNamespace: "http://kinesis.amazonaws.com/doc/2013-12-02",
31
- version: "2013-12-02",
32
- serviceTarget: "Kinesis_20131202",
33
- },
34
- serviceId: config?.serviceId ?? "Kinesis",
35
- urlParser: config?.urlParser ?? parseUrl,
36
- utf8Decoder: config?.utf8Decoder ?? fromUtf8,
37
- utf8Encoder: config?.utf8Encoder ?? toUtf8,
38
- };
39
- };