@aws-sdk/client-keyspacesstreams 3.838.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.
Files changed (111) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +237 -0
  3. package/dist-cjs/KeyspacesStreams.js +19 -0
  4. package/dist-cjs/KeyspacesStreamsClient.js +52 -0
  5. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
  6. package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
  7. package/dist-cjs/commands/GetRecordsCommand.js +26 -0
  8. package/dist-cjs/commands/GetShardIteratorCommand.js +26 -0
  9. package/dist-cjs/commands/GetStreamCommand.js +26 -0
  10. package/dist-cjs/commands/ListStreamsCommand.js +26 -0
  11. package/dist-cjs/commands/index.js +7 -0
  12. package/dist-cjs/endpoint/EndpointParameters.js +15 -0
  13. package/dist-cjs/endpoint/endpointResolver.js +18 -0
  14. package/dist-cjs/endpoint/ruleset.js +7 -0
  15. package/dist-cjs/extensionConfiguration.js +2 -0
  16. package/dist-cjs/index.js +11 -0
  17. package/dist-cjs/models/KeyspacesStreamsServiceException.js +12 -0
  18. package/dist-cjs/models/index.js +4 -0
  19. package/dist-cjs/models/models_0.js +159 -0
  20. package/dist-cjs/pagination/GetStreamPaginator.js +7 -0
  21. package/dist-cjs/pagination/Interfaces.js +2 -0
  22. package/dist-cjs/pagination/ListStreamsPaginator.js +7 -0
  23. package/dist-cjs/pagination/index.js +6 -0
  24. package/dist-cjs/protocols/Aws_json1_0.js +392 -0
  25. package/dist-cjs/runtimeConfig.browser.js +39 -0
  26. package/dist-cjs/runtimeConfig.js +56 -0
  27. package/dist-cjs/runtimeConfig.native.js +15 -0
  28. package/dist-cjs/runtimeConfig.shared.js +34 -0
  29. package/dist-cjs/runtimeExtensions.js +13 -0
  30. package/dist-es/KeyspacesStreams.js +15 -0
  31. package/dist-es/KeyspacesStreamsClient.js +48 -0
  32. package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
  33. package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
  34. package/dist-es/commands/GetRecordsCommand.js +22 -0
  35. package/dist-es/commands/GetShardIteratorCommand.js +22 -0
  36. package/dist-es/commands/GetStreamCommand.js +22 -0
  37. package/dist-es/commands/ListStreamsCommand.js +22 -0
  38. package/dist-es/commands/index.js +4 -0
  39. package/dist-es/endpoint/EndpointParameters.js +11 -0
  40. package/dist-es/endpoint/endpointResolver.js +14 -0
  41. package/dist-es/endpoint/ruleset.js +4 -0
  42. package/dist-es/extensionConfiguration.js +1 -0
  43. package/dist-es/index.js +6 -0
  44. package/dist-es/models/KeyspacesStreamsServiceException.js +8 -0
  45. package/dist-es/models/index.js +1 -0
  46. package/dist-es/models/models_0.js +151 -0
  47. package/dist-es/pagination/GetStreamPaginator.js +4 -0
  48. package/dist-es/pagination/Interfaces.js +1 -0
  49. package/dist-es/pagination/ListStreamsPaginator.js +4 -0
  50. package/dist-es/pagination/index.js +3 -0
  51. package/dist-es/protocols/Aws_json1_0.js +381 -0
  52. package/dist-es/runtimeConfig.browser.js +34 -0
  53. package/dist-es/runtimeConfig.js +51 -0
  54. package/dist-es/runtimeConfig.native.js +11 -0
  55. package/dist-es/runtimeConfig.shared.js +30 -0
  56. package/dist-es/runtimeExtensions.js +9 -0
  57. package/dist-types/KeyspacesStreams.d.ts +39 -0
  58. package/dist-types/KeyspacesStreamsClient.d.ts +191 -0
  59. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
  60. package/dist-types/auth/httpAuthSchemeProvider.d.ts +75 -0
  61. package/dist-types/commands/GetRecordsCommand.d.ts +228 -0
  62. package/dist-types/commands/GetShardIteratorCommand.d.ts +90 -0
  63. package/dist-types/commands/GetStreamCommand.d.ts +112 -0
  64. package/dist-types/commands/ListStreamsCommand.d.ts +98 -0
  65. package/dist-types/commands/index.d.ts +4 -0
  66. package/dist-types/endpoint/EndpointParameters.d.ts +32 -0
  67. package/dist-types/endpoint/endpointResolver.d.ts +5 -0
  68. package/dist-types/endpoint/ruleset.d.ts +2 -0
  69. package/dist-types/extensionConfiguration.d.ts +9 -0
  70. package/dist-types/index.d.ts +14 -0
  71. package/dist-types/models/KeyspacesStreamsServiceException.d.ts +14 -0
  72. package/dist-types/models/index.d.ts +1 -0
  73. package/dist-types/models/models_0.d.ts +1396 -0
  74. package/dist-types/pagination/GetStreamPaginator.d.ts +7 -0
  75. package/dist-types/pagination/Interfaces.d.ts +8 -0
  76. package/dist-types/pagination/ListStreamsPaginator.d.ts +7 -0
  77. package/dist-types/pagination/index.d.ts +3 -0
  78. package/dist-types/protocols/Aws_json1_0.d.ts +38 -0
  79. package/dist-types/runtimeConfig.browser.d.ts +50 -0
  80. package/dist-types/runtimeConfig.d.ts +50 -0
  81. package/dist-types/runtimeConfig.native.d.ts +49 -0
  82. package/dist-types/runtimeConfig.shared.d.ts +21 -0
  83. package/dist-types/runtimeExtensions.d.ts +17 -0
  84. package/dist-types/ts3.4/KeyspacesStreams.d.ts +76 -0
  85. package/dist-types/ts3.4/KeyspacesStreamsClient.d.ts +146 -0
  86. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
  87. package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +47 -0
  88. package/dist-types/ts3.4/commands/GetRecordsCommand.d.ts +47 -0
  89. package/dist-types/ts3.4/commands/GetShardIteratorCommand.d.ts +50 -0
  90. package/dist-types/ts3.4/commands/GetStreamCommand.d.ts +47 -0
  91. package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +47 -0
  92. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  93. package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
  94. package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
  95. package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
  96. package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
  97. package/dist-types/ts3.4/index.d.ts +9 -0
  98. package/dist-types/ts3.4/models/KeyspacesStreamsServiceException.d.ts +9 -0
  99. package/dist-types/ts3.4/models/index.d.ts +1 -0
  100. package/dist-types/ts3.4/models/models_0.d.ts +957 -0
  101. package/dist-types/ts3.4/pagination/GetStreamPaginator.d.ts +11 -0
  102. package/dist-types/ts3.4/pagination/Interfaces.d.ts +6 -0
  103. package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +11 -0
  104. package/dist-types/ts3.4/pagination/index.d.ts +3 -0
  105. package/dist-types/ts3.4/protocols/Aws_json1_0.d.ts +53 -0
  106. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
  107. package/dist-types/ts3.4/runtimeConfig.d.ts +91 -0
  108. package/dist-types/ts3.4/runtimeConfig.native.d.ts +97 -0
  109. package/dist-types/ts3.4/runtimeConfig.shared.d.ts +23 -0
  110. package/dist-types/ts3.4/runtimeExtensions.d.ts +13 -0
  111. package/package.json +99 -0
@@ -0,0 +1,191 @@
1
+ import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
+ import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
+ import { GetRecordsCommandInput, GetRecordsCommandOutput } from "./commands/GetRecordsCommand";
11
+ import { GetShardIteratorCommandInput, GetShardIteratorCommandOutput } from "./commands/GetShardIteratorCommand";
12
+ import { GetStreamCommandInput, GetStreamCommandOutput } from "./commands/GetStreamCommand";
13
+ import { ListStreamsCommandInput, ListStreamsCommandOutput } from "./commands/ListStreamsCommand";
14
+ import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
15
+ import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
16
+ export { __Client };
17
+ /**
18
+ * @public
19
+ */
20
+ export type ServiceInputTypes = GetRecordsCommandInput | GetShardIteratorCommandInput | GetStreamCommandInput | ListStreamsCommandInput;
21
+ /**
22
+ * @public
23
+ */
24
+ export type ServiceOutputTypes = GetRecordsCommandOutput | GetShardIteratorCommandOutput | GetStreamCommandOutput | ListStreamsCommandOutput;
25
+ /**
26
+ * @public
27
+ */
28
+ export interface ClientDefaults extends Partial<__SmithyConfiguration<__HttpHandlerOptions>> {
29
+ /**
30
+ * The HTTP handler to use or its constructor options. Fetch in browser and Https in Nodejs.
31
+ */
32
+ requestHandler?: __HttpHandlerUserInput;
33
+ /**
34
+ * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface
35
+ * that computes the SHA-256 HMAC or checksum of a string or binary buffer.
36
+ * @internal
37
+ */
38
+ sha256?: __ChecksumConstructor | __HashConstructor;
39
+ /**
40
+ * The function that will be used to convert strings into HTTP endpoints.
41
+ * @internal
42
+ */
43
+ urlParser?: __UrlParser;
44
+ /**
45
+ * A function that can calculate the length of a request body.
46
+ * @internal
47
+ */
48
+ bodyLengthChecker?: __BodyLengthCalculator;
49
+ /**
50
+ * A function that converts a stream into an array of bytes.
51
+ * @internal
52
+ */
53
+ streamCollector?: __StreamCollector;
54
+ /**
55
+ * The function that will be used to convert a base64-encoded string to a byte array.
56
+ * @internal
57
+ */
58
+ base64Decoder?: __Decoder;
59
+ /**
60
+ * The function that will be used to convert binary data to a base64-encoded string.
61
+ * @internal
62
+ */
63
+ base64Encoder?: __Encoder;
64
+ /**
65
+ * The function that will be used to convert a UTF8-encoded string to a byte array.
66
+ * @internal
67
+ */
68
+ utf8Decoder?: __Decoder;
69
+ /**
70
+ * The function that will be used to convert binary data to a UTF-8 encoded string.
71
+ * @internal
72
+ */
73
+ utf8Encoder?: __Encoder;
74
+ /**
75
+ * The runtime environment.
76
+ * @internal
77
+ */
78
+ runtime?: string;
79
+ /**
80
+ * Disable dynamically changing the endpoint of the client based on the hostPrefix
81
+ * trait of an operation.
82
+ */
83
+ disableHostPrefix?: boolean;
84
+ /**
85
+ * Unique service identifier.
86
+ * @internal
87
+ */
88
+ serviceId?: string;
89
+ /**
90
+ * Enables IPv6/IPv4 dualstack endpoint.
91
+ */
92
+ useDualstackEndpoint?: boolean | __Provider<boolean>;
93
+ /**
94
+ * Enables FIPS compatible endpoints.
95
+ */
96
+ useFipsEndpoint?: boolean | __Provider<boolean>;
97
+ /**
98
+ * The AWS region to which this client will send requests
99
+ */
100
+ region?: string | __Provider<string>;
101
+ /**
102
+ * Setting a client profile is similar to setting a value for the
103
+ * AWS_PROFILE environment variable. Setting a profile on a client
104
+ * in code only affects the single client instance, unlike AWS_PROFILE.
105
+ *
106
+ * When set, and only for environments where an AWS configuration
107
+ * file exists, fields configurable by this file will be retrieved
108
+ * from the specified profile within that file.
109
+ * Conflicting code configuration and environment variables will
110
+ * still have higher priority.
111
+ *
112
+ * For client credential resolution that involves checking the AWS
113
+ * configuration file, the client's profile (this value) will be
114
+ * used unless a different profile is set in the credential
115
+ * provider options.
116
+ *
117
+ */
118
+ profile?: string;
119
+ /**
120
+ * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
121
+ * @internal
122
+ */
123
+ defaultUserAgentProvider?: Provider<__UserAgent>;
124
+ /**
125
+ * Default credentials provider; Not available in browser runtime.
126
+ * @deprecated
127
+ * @internal
128
+ */
129
+ credentialDefaultProvider?: (input: any) => AwsCredentialIdentityProvider;
130
+ /**
131
+ * Value for how many times a request will be made at most in case of retry.
132
+ */
133
+ maxAttempts?: number | __Provider<number>;
134
+ /**
135
+ * Specifies which retry algorithm to use.
136
+ * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/
137
+ *
138
+ */
139
+ retryMode?: string | __Provider<string>;
140
+ /**
141
+ * Optional logger for logging debug/info/warn/error.
142
+ */
143
+ logger?: __Logger;
144
+ /**
145
+ * Optional extensions
146
+ */
147
+ extensions?: RuntimeExtension[];
148
+ /**
149
+ * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
150
+ */
151
+ defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>;
152
+ }
153
+ /**
154
+ * @public
155
+ */
156
+ export type KeyspacesStreamsClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & UserAgentInputConfig & RetryInputConfig & RegionInputConfig & HostHeaderInputConfig & EndpointInputConfig<EndpointParameters> & HttpAuthSchemeInputConfig & ClientInputEndpointParameters;
157
+ /**
158
+ * @public
159
+ *
160
+ * The configuration interface of KeyspacesStreamsClient class constructor that set the region, credentials and other options.
161
+ */
162
+ export interface KeyspacesStreamsClientConfig extends KeyspacesStreamsClientConfigType {
163
+ }
164
+ /**
165
+ * @public
166
+ */
167
+ export type KeyspacesStreamsClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RuntimeExtensionsConfig & UserAgentResolvedConfig & RetryResolvedConfig & RegionResolvedConfig & HostHeaderResolvedConfig & EndpointResolvedConfig<EndpointParameters> & HttpAuthSchemeResolvedConfig & ClientResolvedEndpointParameters;
168
+ /**
169
+ * @public
170
+ *
171
+ * The resolved configuration interface of KeyspacesStreamsClient class. This is resolved and normalized from the {@link KeyspacesStreamsClientConfig | constructor configuration interface}.
172
+ */
173
+ export interface KeyspacesStreamsClientResolvedConfig extends KeyspacesStreamsClientResolvedConfigType {
174
+ }
175
+ /**
176
+ * <p>Amazon Keyspaces (for Apache Cassandra) change data capture (CDC) records change events for Amazon Keyspaces tables. The change events captured in a stream are time-ordered and de-duplicated write operations. Using stream data you can build event driven applications that incorporate near-real time change events from Amazon Keyspaces tables. </p> <p>Amazon Keyspaces CDC is serverless and scales the infrastructure for change events automatically based on the volume of changes on your table. </p> <p> This API reference describes the Amazon Keyspaces CDC stream API in detail. </p> <p>For more information about Amazon Keyspaces CDC, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/cdc.html">Working with change data capture (CDC) streams in Amazon Keyspaces</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p> <p>To learn how Amazon Keyspaces CDC API actions are recorded with CloudTrail, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/logging-using-cloudtrail.html#service-name-info-in-cloudtrail">Amazon Keyspaces information in CloudTrail</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p> <p>To see the metrics Amazon Keyspaces CDC sends to Amazon CloudWatch, see <a href="https://docs.aws.amazon.com/keyspaces/latest/devguide/metrics-dimensions.html#keyspaces-cdc-metrics">Amazon Keyspaces change data capture (CDC) CloudWatch metrics</a> in the <i>Amazon Keyspaces Developer Guide</i>.</p>
177
+ * @public
178
+ */
179
+ export declare class KeyspacesStreamsClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, KeyspacesStreamsClientResolvedConfig> {
180
+ /**
181
+ * The resolved configuration of KeyspacesStreamsClient class. This is resolved and normalized from the {@link KeyspacesStreamsClientConfig | constructor configuration interface}.
182
+ */
183
+ readonly config: KeyspacesStreamsClientResolvedConfig;
184
+ constructor(...[configuration]: __CheckOptionalClientConfig<KeyspacesStreamsClientConfig>);
185
+ /**
186
+ * Destroy underlying resources, like sockets. It's usually not necessary to do this.
187
+ * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
188
+ * Otherwise, sockets might stay open for quite a long time before the server terminates them.
189
+ */
190
+ destroy(): void;
191
+ }
@@ -0,0 +1,29 @@
1
+ import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
+ import { KeyspacesStreamsHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
+ /**
4
+ * @internal
5
+ */
6
+ export interface HttpAuthExtensionConfiguration {
7
+ setHttpAuthScheme(httpAuthScheme: HttpAuthScheme): void;
8
+ httpAuthSchemes(): HttpAuthScheme[];
9
+ setHttpAuthSchemeProvider(httpAuthSchemeProvider: KeyspacesStreamsHttpAuthSchemeProvider): void;
10
+ httpAuthSchemeProvider(): KeyspacesStreamsHttpAuthSchemeProvider;
11
+ setCredentials(credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider): void;
12
+ credentials(): AwsCredentialIdentity | AwsCredentialIdentityProvider | undefined;
13
+ }
14
+ /**
15
+ * @internal
16
+ */
17
+ export type HttpAuthRuntimeConfig = Partial<{
18
+ httpAuthSchemes: HttpAuthScheme[];
19
+ httpAuthSchemeProvider: KeyspacesStreamsHttpAuthSchemeProvider;
20
+ credentials: AwsCredentialIdentity | AwsCredentialIdentityProvider;
21
+ }>;
22
+ /**
23
+ * @internal
24
+ */
25
+ export declare const getHttpAuthExtensionConfiguration: (runtimeConfig: HttpAuthRuntimeConfig) => HttpAuthExtensionConfiguration;
26
+ /**
27
+ * @internal
28
+ */
29
+ export declare const resolveHttpAuthRuntimeConfig: (config: HttpAuthExtensionConfiguration) => HttpAuthRuntimeConfig;
@@ -0,0 +1,75 @@
1
+ import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
+ import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { KeyspacesStreamsClientResolvedConfig } from "../KeyspacesStreamsClient";
4
+ /**
5
+ * @internal
6
+ */
7
+ export interface KeyspacesStreamsHttpAuthSchemeParameters extends HttpAuthSchemeParameters {
8
+ region?: string;
9
+ }
10
+ /**
11
+ * @internal
12
+ */
13
+ export interface KeyspacesStreamsHttpAuthSchemeParametersProvider extends HttpAuthSchemeParametersProvider<KeyspacesStreamsClientResolvedConfig, HandlerExecutionContext, KeyspacesStreamsHttpAuthSchemeParameters, object> {
14
+ }
15
+ /**
16
+ * @internal
17
+ */
18
+ export declare const defaultKeyspacesStreamsHttpAuthSchemeParametersProvider: (config: KeyspacesStreamsClientResolvedConfig, context: HandlerExecutionContext, input: object) => Promise<KeyspacesStreamsHttpAuthSchemeParameters>;
19
+ /**
20
+ * @internal
21
+ */
22
+ export interface KeyspacesStreamsHttpAuthSchemeProvider extends HttpAuthSchemeProvider<KeyspacesStreamsHttpAuthSchemeParameters> {
23
+ }
24
+ /**
25
+ * @internal
26
+ */
27
+ export declare const defaultKeyspacesStreamsHttpAuthSchemeProvider: KeyspacesStreamsHttpAuthSchemeProvider;
28
+ /**
29
+ * @internal
30
+ */
31
+ export interface HttpAuthSchemeInputConfig extends AwsSdkSigV4AuthInputConfig {
32
+ /**
33
+ * A comma-separated list of case-sensitive auth scheme names.
34
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
35
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
36
+ * @public
37
+ */
38
+ authSchemePreference?: string[] | Provider<string[]>;
39
+ /**
40
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
41
+ * @internal
42
+ */
43
+ httpAuthSchemes?: HttpAuthScheme[];
44
+ /**
45
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
46
+ * @internal
47
+ */
48
+ httpAuthSchemeProvider?: KeyspacesStreamsHttpAuthSchemeProvider;
49
+ }
50
+ /**
51
+ * @internal
52
+ */
53
+ export interface HttpAuthSchemeResolvedConfig extends AwsSdkSigV4AuthResolvedConfig {
54
+ /**
55
+ * A comma-separated list of case-sensitive auth scheme names.
56
+ * An auth scheme name is a fully qualified auth scheme ID with the namespace prefix trimmed.
57
+ * For example, the auth scheme with ID aws.auth#sigv4 is named sigv4.
58
+ * @public
59
+ */
60
+ readonly authSchemePreference: Provider<string[]>;
61
+ /**
62
+ * Configuration of HttpAuthSchemes for a client which provides default identity providers and signers per auth scheme.
63
+ * @internal
64
+ */
65
+ readonly httpAuthSchemes: HttpAuthScheme[];
66
+ /**
67
+ * Configuration of an HttpAuthSchemeProvider for a client which resolves which HttpAuthScheme to use.
68
+ * @internal
69
+ */
70
+ readonly httpAuthSchemeProvider: KeyspacesStreamsHttpAuthSchemeProvider;
71
+ }
72
+ /**
73
+ * @internal
74
+ */
75
+ export declare const resolveHttpAuthSchemeConfig: <T>(config: T & HttpAuthSchemeInputConfig & AwsSdkSigV4PreviouslyResolved) => T & HttpAuthSchemeResolvedConfig;
@@ -0,0 +1,228 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { KeyspacesStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KeyspacesStreamsClient";
4
+ import { GetRecordsInput, GetRecordsOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetRecordsCommand}.
14
+ */
15
+ export interface GetRecordsCommandInput extends GetRecordsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetRecordsCommand}.
21
+ */
22
+ export interface GetRecordsCommandOutput extends GetRecordsOutput, __MetadataBearer {
23
+ }
24
+ declare const GetRecordsCommand_base: {
25
+ new (input: GetRecordsCommandInput): import("@smithy/smithy-client").CommandImpl<GetRecordsCommandInput, GetRecordsCommandOutput, KeyspacesStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetRecordsCommandInput): import("@smithy/smithy-client").CommandImpl<GetRecordsCommandInput, GetRecordsCommandOutput, KeyspacesStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Retrieves data records from a specified shard in an Amazon Keyspaces data stream. This operation returns a collection of data records from the shard, including the primary key columns and information about modifications made to the captured table data. Each record represents a single data modification in the Amazon Keyspaces table and includes metadata about when the change occurred.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KeyspacesStreamsClient, GetRecordsCommand } from "@aws-sdk/client-keyspacesstreams"; // ES Modules import
35
+ * // const { KeyspacesStreamsClient, GetRecordsCommand } = require("@aws-sdk/client-keyspacesstreams"); // CommonJS import
36
+ * const client = new KeyspacesStreamsClient(config);
37
+ * const input = { // GetRecordsInput
38
+ * shardIterator: "STRING_VALUE", // required
39
+ * maxResults: Number("int"),
40
+ * };
41
+ * const command = new GetRecordsCommand(input);
42
+ * const response = await client.send(command);
43
+ * // { // GetRecordsOutput
44
+ * // changeRecords: [ // RecordList
45
+ * // { // Record
46
+ * // eventVersion: "STRING_VALUE",
47
+ * // createdAt: new Date("TIMESTAMP"),
48
+ * // origin: "USER" || "REPLICATION" || "TTL",
49
+ * // partitionKeys: { // KeyspacesKeysMap
50
+ * // "<keys>": { // KeyspacesCellValue Union: only one key present
51
+ * // asciiT: "STRING_VALUE",
52
+ * // bigintT: "STRING_VALUE",
53
+ * // blobT: new Uint8Array(),
54
+ * // boolT: true || false,
55
+ * // counterT: "STRING_VALUE",
56
+ * // dateT: "STRING_VALUE",
57
+ * // decimalT: "STRING_VALUE",
58
+ * // doubleT: "STRING_VALUE",
59
+ * // floatT: "STRING_VALUE",
60
+ * // inetT: "STRING_VALUE",
61
+ * // intT: "STRING_VALUE",
62
+ * // listT: [ // KeyspacesCellList
63
+ * // { // KeyspacesCell
64
+ * // value: {// Union: only one key present
65
+ * // asciiT: "STRING_VALUE",
66
+ * // bigintT: "STRING_VALUE",
67
+ * // blobT: new Uint8Array(),
68
+ * // boolT: true || false,
69
+ * // counterT: "STRING_VALUE",
70
+ * // dateT: "STRING_VALUE",
71
+ * // decimalT: "STRING_VALUE",
72
+ * // doubleT: "STRING_VALUE",
73
+ * // floatT: "STRING_VALUE",
74
+ * // inetT: "STRING_VALUE",
75
+ * // intT: "STRING_VALUE",
76
+ * // listT: [
77
+ * // {
78
+ * // value: "<KeyspacesCellValue>",
79
+ * // metadata: { // KeyspacesMetadata
80
+ * // expirationTime: "STRING_VALUE",
81
+ * // writeTime: "STRING_VALUE",
82
+ * // },
83
+ * // },
84
+ * // ],
85
+ * // mapT: [ // KeyspacesCellMap
86
+ * // { // KeyspacesCellMapDefinition
87
+ * // key: "<KeyspacesCellValue>",
88
+ * // value: "<KeyspacesCellValue>",
89
+ * // metadata: {
90
+ * // expirationTime: "STRING_VALUE",
91
+ * // writeTime: "STRING_VALUE",
92
+ * // },
93
+ * // },
94
+ * // ],
95
+ * // setT: [
96
+ * // {
97
+ * // value: "<KeyspacesCellValue>",
98
+ * // metadata: {
99
+ * // expirationTime: "STRING_VALUE",
100
+ * // writeTime: "STRING_VALUE",
101
+ * // },
102
+ * // },
103
+ * // ],
104
+ * // smallintT: "STRING_VALUE",
105
+ * // textT: "STRING_VALUE",
106
+ * // timeT: "STRING_VALUE",
107
+ * // timestampT: "STRING_VALUE",
108
+ * // timeuuidT: "STRING_VALUE",
109
+ * // tinyintT: "STRING_VALUE",
110
+ * // tupleT: [
111
+ * // {
112
+ * // value: "<KeyspacesCellValue>",
113
+ * // metadata: {
114
+ * // expirationTime: "STRING_VALUE",
115
+ * // writeTime: "STRING_VALUE",
116
+ * // },
117
+ * // },
118
+ * // ],
119
+ * // uuidT: "STRING_VALUE",
120
+ * // varcharT: "STRING_VALUE",
121
+ * // varintT: "STRING_VALUE",
122
+ * // udtT: { // KeyspacesUdtMap
123
+ * // "<keys>": {
124
+ * // value: "<KeyspacesCellValue>",
125
+ * // metadata: {
126
+ * // expirationTime: "STRING_VALUE",
127
+ * // writeTime: "STRING_VALUE",
128
+ * // },
129
+ * // },
130
+ * // },
131
+ * // },
132
+ * // metadata: "<KeyspacesMetadata>",
133
+ * // },
134
+ * // ],
135
+ * // mapT: [
136
+ * // {
137
+ * // key: "<KeyspacesCellValue>",
138
+ * // value: "<KeyspacesCellValue>",
139
+ * // metadata: "<KeyspacesMetadata>",
140
+ * // },
141
+ * // ],
142
+ * // setT: [
143
+ * // "<KeyspacesCell>",
144
+ * // ],
145
+ * // smallintT: "STRING_VALUE",
146
+ * // textT: "STRING_VALUE",
147
+ * // timeT: "STRING_VALUE",
148
+ * // timestampT: "STRING_VALUE",
149
+ * // timeuuidT: "STRING_VALUE",
150
+ * // tinyintT: "STRING_VALUE",
151
+ * // tupleT: "<KeyspacesCellList>",
152
+ * // uuidT: "STRING_VALUE",
153
+ * // varcharT: "STRING_VALUE",
154
+ * // varintT: "STRING_VALUE",
155
+ * // udtT: {
156
+ * // "<keys>": "<KeyspacesCell>",
157
+ * // },
158
+ * // },
159
+ * // },
160
+ * // clusteringKeys: {
161
+ * // "<keys>": "<KeyspacesCellValue>",
162
+ * // },
163
+ * // newImage: { // KeyspacesRow
164
+ * // valueCells: { // KeyspacesCells
165
+ * // "<keys>": "<KeyspacesCell>",
166
+ * // },
167
+ * // staticCells: {
168
+ * // "<keys>": "<KeyspacesCell>",
169
+ * // },
170
+ * // rowMetadata: "<KeyspacesMetadata>",
171
+ * // },
172
+ * // oldImage: {
173
+ * // valueCells: {
174
+ * // "<keys>": "<KeyspacesCell>",
175
+ * // },
176
+ * // staticCells: {
177
+ * // "<keys>": "<KeyspacesCell>",
178
+ * // },
179
+ * // rowMetadata: "<KeyspacesMetadata>",
180
+ * // },
181
+ * // sequenceNumber: "STRING_VALUE",
182
+ * // },
183
+ * // ],
184
+ * // nextShardIterator: "STRING_VALUE",
185
+ * // };
186
+ *
187
+ * ```
188
+ *
189
+ * @param GetRecordsCommandInput - {@link GetRecordsCommandInput}
190
+ * @returns {@link GetRecordsCommandOutput}
191
+ * @see {@link GetRecordsCommandInput} for command's `input` shape.
192
+ * @see {@link GetRecordsCommandOutput} for command's `response` shape.
193
+ * @see {@link KeyspacesStreamsClientResolvedConfig | config} for KeyspacesStreamsClient's `config` shape.
194
+ *
195
+ * @throws {@link AccessDeniedException} (client fault)
196
+ * <p>You don't have sufficient access permissions to perform this operation. </p> <p>This exception occurs when your IAM user or role lacks the required permissions to access the Amazon Keyspaces resource or perform the requested action. Check your IAM policies and ensure they grant the necessary permissions.</p>
197
+ *
198
+ * @throws {@link InternalServerException} (server fault)
199
+ * <p>The Amazon Keyspaces service encountered an unexpected error while processing the request. </p> <p>This internal server error is not related to your request parameters. Retry your request after a brief delay. If the issue persists, contact Amazon Web Services Support with details of your request to help identify and resolve the problem.</p>
200
+ *
201
+ * @throws {@link ResourceNotFoundException} (client fault)
202
+ * <p>The requested resource doesn't exist or could not be found. </p> <p>This exception occurs when you attempt to access a keyspace, table, stream, or other Amazon Keyspaces resource that doesn't exist or that has been deleted. Verify that the resource identifier is correct and that the resource exists in your account.</p>
203
+ *
204
+ * @throws {@link ThrottlingException} (client fault)
205
+ * <p>The request rate is too high and exceeds the service's throughput limits. </p> <p>This exception occurs when you send too many requests in a short period of time. Implement exponential backoff in your retry strategy to handle this exception. Reducing your request frequency or distributing requests more evenly can help avoid throughput exceptions.</p>
206
+ *
207
+ * @throws {@link ValidationException} (client fault)
208
+ * <p>The request validation failed because one or more input parameters failed validation. </p> <p>This exception occurs when there are syntax errors in the request, field constraints are violated, or required parameters are missing. To help you fix the issue, the exception message provides details about which parameter failed and why.</p>
209
+ *
210
+ * @throws {@link KeyspacesStreamsServiceException}
211
+ * <p>Base exception class for all service exceptions from KeyspacesStreams service.</p>
212
+ *
213
+ *
214
+ * @public
215
+ */
216
+ export declare class GetRecordsCommand extends GetRecordsCommand_base {
217
+ /** @internal type navigation helper, not in runtime. */
218
+ protected static __types: {
219
+ api: {
220
+ input: GetRecordsInput;
221
+ output: GetRecordsOutput;
222
+ };
223
+ sdk: {
224
+ input: GetRecordsCommandInput;
225
+ output: GetRecordsCommandOutput;
226
+ };
227
+ };
228
+ }
@@ -0,0 +1,90 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { KeyspacesStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../KeyspacesStreamsClient";
4
+ import { GetShardIteratorInput, GetShardIteratorOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link GetShardIteratorCommand}.
14
+ */
15
+ export interface GetShardIteratorCommandInput extends GetShardIteratorInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link GetShardIteratorCommand}.
21
+ */
22
+ export interface GetShardIteratorCommandOutput extends GetShardIteratorOutput, __MetadataBearer {
23
+ }
24
+ declare const GetShardIteratorCommand_base: {
25
+ new (input: GetShardIteratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetShardIteratorCommandInput, GetShardIteratorCommandOutput, KeyspacesStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: GetShardIteratorCommandInput): import("@smithy/smithy-client").CommandImpl<GetShardIteratorCommandInput, GetShardIteratorCommandOutput, KeyspacesStreamsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
28
+ };
29
+ /**
30
+ * <p>Returns a shard iterator that serves as a bookmark for reading data from a specific position in an Amazon Keyspaces data stream's shard. The shard iterator specifies the shard position from which to start reading data records sequentially. You can specify whether to begin reading at the latest record, the oldest record, or at a particular sequence number within the shard.</p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { KeyspacesStreamsClient, GetShardIteratorCommand } from "@aws-sdk/client-keyspacesstreams"; // ES Modules import
35
+ * // const { KeyspacesStreamsClient, GetShardIteratorCommand } = require("@aws-sdk/client-keyspacesstreams"); // CommonJS import
36
+ * const client = new KeyspacesStreamsClient(config);
37
+ * const input = { // GetShardIteratorInput
38
+ * streamArn: "STRING_VALUE", // required
39
+ * shardId: "STRING_VALUE", // required
40
+ * shardIteratorType: "TRIM_HORIZON" || "LATEST" || "AT_SEQUENCE_NUMBER" || "AFTER_SEQUENCE_NUMBER", // required
41
+ * sequenceNumber: "STRING_VALUE",
42
+ * };
43
+ * const command = new GetShardIteratorCommand(input);
44
+ * const response = await client.send(command);
45
+ * // { // GetShardIteratorOutput
46
+ * // shardIterator: "STRING_VALUE",
47
+ * // };
48
+ *
49
+ * ```
50
+ *
51
+ * @param GetShardIteratorCommandInput - {@link GetShardIteratorCommandInput}
52
+ * @returns {@link GetShardIteratorCommandOutput}
53
+ * @see {@link GetShardIteratorCommandInput} for command's `input` shape.
54
+ * @see {@link GetShardIteratorCommandOutput} for command's `response` shape.
55
+ * @see {@link KeyspacesStreamsClientResolvedConfig | config} for KeyspacesStreamsClient's `config` shape.
56
+ *
57
+ * @throws {@link AccessDeniedException} (client fault)
58
+ * <p>You don't have sufficient access permissions to perform this operation. </p> <p>This exception occurs when your IAM user or role lacks the required permissions to access the Amazon Keyspaces resource or perform the requested action. Check your IAM policies and ensure they grant the necessary permissions.</p>
59
+ *
60
+ * @throws {@link InternalServerException} (server fault)
61
+ * <p>The Amazon Keyspaces service encountered an unexpected error while processing the request. </p> <p>This internal server error is not related to your request parameters. Retry your request after a brief delay. If the issue persists, contact Amazon Web Services Support with details of your request to help identify and resolve the problem.</p>
62
+ *
63
+ * @throws {@link ResourceNotFoundException} (client fault)
64
+ * <p>The requested resource doesn't exist or could not be found. </p> <p>This exception occurs when you attempt to access a keyspace, table, stream, or other Amazon Keyspaces resource that doesn't exist or that has been deleted. Verify that the resource identifier is correct and that the resource exists in your account.</p>
65
+ *
66
+ * @throws {@link ThrottlingException} (client fault)
67
+ * <p>The request rate is too high and exceeds the service's throughput limits. </p> <p>This exception occurs when you send too many requests in a short period of time. Implement exponential backoff in your retry strategy to handle this exception. Reducing your request frequency or distributing requests more evenly can help avoid throughput exceptions.</p>
68
+ *
69
+ * @throws {@link ValidationException} (client fault)
70
+ * <p>The request validation failed because one or more input parameters failed validation. </p> <p>This exception occurs when there are syntax errors in the request, field constraints are violated, or required parameters are missing. To help you fix the issue, the exception message provides details about which parameter failed and why.</p>
71
+ *
72
+ * @throws {@link KeyspacesStreamsServiceException}
73
+ * <p>Base exception class for all service exceptions from KeyspacesStreams service.</p>
74
+ *
75
+ *
76
+ * @public
77
+ */
78
+ export declare class GetShardIteratorCommand extends GetShardIteratorCommand_base {
79
+ /** @internal type navigation helper, not in runtime. */
80
+ protected static __types: {
81
+ api: {
82
+ input: GetShardIteratorInput;
83
+ output: GetShardIteratorOutput;
84
+ };
85
+ sdk: {
86
+ input: GetShardIteratorCommandInput;
87
+ output: GetShardIteratorCommandOutput;
88
+ };
89
+ };
90
+ }