@aws-sdk/client-dsql 3.1044.0 → 3.1046.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 (119) hide show
  1. package/README.md +28 -0
  2. package/dist-cjs/auth/httpAuthSchemeProvider.js +4 -4
  3. package/dist-cjs/endpoint/bdd.js +2 -2
  4. package/dist-cjs/endpoint/endpointResolver.js +4 -4
  5. package/dist-cjs/index.js +202 -56
  6. package/dist-cjs/models/DSQLServiceException.js +3 -3
  7. package/dist-cjs/runtimeConfig.browser.js +12 -14
  8. package/dist-cjs/runtimeConfig.js +18 -22
  9. package/dist-cjs/runtimeConfig.shared.js +9 -10
  10. package/dist-cjs/schemas/schemas_0.js +109 -5
  11. package/dist-es/DSQL.js +15 -1
  12. package/dist-es/DSQLClient.js +5 -5
  13. package/dist-es/auth/httpAuthSchemeProvider.js +1 -1
  14. package/dist-es/commands/CreateClusterCommand.js +2 -2
  15. package/dist-es/commands/CreateStreamCommand.js +16 -0
  16. package/dist-es/commands/DeleteClusterCommand.js +2 -2
  17. package/dist-es/commands/DeleteClusterPolicyCommand.js +2 -2
  18. package/dist-es/commands/DeleteStreamCommand.js +16 -0
  19. package/dist-es/commands/GetClusterCommand.js +2 -2
  20. package/dist-es/commands/GetClusterPolicyCommand.js +2 -2
  21. package/dist-es/commands/GetStreamCommand.js +16 -0
  22. package/dist-es/commands/GetVpcEndpointServiceNameCommand.js +2 -2
  23. package/dist-es/commands/ListClustersCommand.js +2 -2
  24. package/dist-es/commands/ListStreamsCommand.js +16 -0
  25. package/dist-es/commands/ListTagsForResourceCommand.js +2 -2
  26. package/dist-es/commands/PutClusterPolicyCommand.js +2 -2
  27. package/dist-es/commands/TagResourceCommand.js +2 -2
  28. package/dist-es/commands/UntagResourceCommand.js +2 -2
  29. package/dist-es/commands/UpdateClusterCommand.js +2 -2
  30. package/dist-es/commands/index.js +4 -0
  31. package/dist-es/endpoint/bdd.js +1 -1
  32. package/dist-es/endpoint/endpointResolver.js +1 -1
  33. package/dist-es/models/DSQLServiceException.js +1 -1
  34. package/dist-es/models/enums.js +24 -0
  35. package/dist-es/pagination/ListStreamsPaginator.js +4 -0
  36. package/dist-es/pagination/index.js +1 -0
  37. package/dist-es/runtimeConfig.browser.js +4 -6
  38. package/dist-es/runtimeConfig.js +4 -8
  39. package/dist-es/runtimeConfig.shared.js +3 -4
  40. package/dist-es/runtimeExtensions.js +2 -2
  41. package/dist-es/schemas/schemas_0.js +107 -4
  42. package/dist-es/waiters/index.js +2 -0
  43. package/dist-es/waiters/waitForClusterActive.js +1 -1
  44. package/dist-es/waiters/waitForClusterNotExists.js +1 -1
  45. package/dist-es/waiters/waitForStreamActive.js +31 -0
  46. package/dist-es/waiters/waitForStreamNotExists.js +25 -0
  47. package/dist-types/DSQL.d.ts +48 -1
  48. package/dist-types/DSQLClient.d.ts +11 -7
  49. package/dist-types/commands/CreateClusterCommand.d.ts +6 -4
  50. package/dist-types/commands/CreateStreamCommand.d.ts +115 -0
  51. package/dist-types/commands/DeleteClusterCommand.d.ts +6 -4
  52. package/dist-types/commands/DeleteClusterPolicyCommand.d.ts +6 -4
  53. package/dist-types/commands/DeleteStreamCommand.d.ts +100 -0
  54. package/dist-types/commands/GetClusterCommand.d.ts +6 -4
  55. package/dist-types/commands/GetClusterPolicyCommand.d.ts +6 -4
  56. package/dist-types/commands/GetStreamCommand.d.ts +111 -0
  57. package/dist-types/commands/GetVpcEndpointServiceNameCommand.d.ts +6 -4
  58. package/dist-types/commands/ListClustersCommand.d.ts +6 -4
  59. package/dist-types/commands/ListStreamsCommand.d.ts +102 -0
  60. package/dist-types/commands/ListTagsForResourceCommand.d.ts +6 -4
  61. package/dist-types/commands/PutClusterPolicyCommand.d.ts +6 -4
  62. package/dist-types/commands/TagResourceCommand.d.ts +6 -4
  63. package/dist-types/commands/UntagResourceCommand.d.ts +6 -4
  64. package/dist-types/commands/UpdateClusterCommand.d.ts +6 -4
  65. package/dist-types/commands/index.d.ts +4 -0
  66. package/dist-types/endpoint/bdd.d.ts +1 -1
  67. package/dist-types/extensionConfiguration.d.ts +1 -1
  68. package/dist-types/models/DSQLServiceException.d.ts +1 -1
  69. package/dist-types/models/enums.d.ts +56 -0
  70. package/dist-types/models/errors.d.ts +1 -1
  71. package/dist-types/models/models_0.d.ts +330 -1
  72. package/dist-types/pagination/ListStreamsPaginator.d.ts +7 -0
  73. package/dist-types/pagination/index.d.ts +1 -0
  74. package/dist-types/runtimeConfig.browser.d.ts +2 -2
  75. package/dist-types/runtimeConfig.d.ts +2 -2
  76. package/dist-types/runtimeConfig.native.d.ts +2 -2
  77. package/dist-types/schemas/schemas_0.d.ts +17 -1
  78. package/dist-types/ts3.4/DSQL.d.ts +94 -1
  79. package/dist-types/ts3.4/DSQLClient.d.ts +32 -14
  80. package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +6 -4
  81. package/dist-types/ts3.4/commands/CreateStreamCommand.d.ts +49 -0
  82. package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +6 -4
  83. package/dist-types/ts3.4/commands/DeleteClusterPolicyCommand.d.ts +6 -4
  84. package/dist-types/ts3.4/commands/DeleteStreamCommand.d.ts +49 -0
  85. package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +6 -4
  86. package/dist-types/ts3.4/commands/GetClusterPolicyCommand.d.ts +6 -4
  87. package/dist-types/ts3.4/commands/GetStreamCommand.d.ts +45 -0
  88. package/dist-types/ts3.4/commands/GetVpcEndpointServiceNameCommand.d.ts +6 -4
  89. package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +6 -4
  90. package/dist-types/ts3.4/commands/ListStreamsCommand.d.ts +49 -0
  91. package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +6 -4
  92. package/dist-types/ts3.4/commands/PutClusterPolicyCommand.d.ts +6 -4
  93. package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +6 -4
  94. package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +6 -4
  95. package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +6 -4
  96. package/dist-types/ts3.4/commands/index.d.ts +4 -0
  97. package/dist-types/ts3.4/endpoint/bdd.d.ts +1 -1
  98. package/dist-types/ts3.4/extensionConfiguration.d.ts +1 -1
  99. package/dist-types/ts3.4/models/DSQLServiceException.d.ts +1 -1
  100. package/dist-types/ts3.4/models/enums.d.ts +30 -0
  101. package/dist-types/ts3.4/models/errors.d.ts +1 -1
  102. package/dist-types/ts3.4/models/models_0.d.ts +95 -1
  103. package/dist-types/ts3.4/pagination/ListStreamsPaginator.d.ts +11 -0
  104. package/dist-types/ts3.4/pagination/index.d.ts +1 -0
  105. package/dist-types/ts3.4/runtimeConfig.browser.d.ts +2 -2
  106. package/dist-types/ts3.4/runtimeConfig.d.ts +2 -2
  107. package/dist-types/ts3.4/runtimeConfig.native.d.ts +3 -3
  108. package/dist-types/ts3.4/schemas/schemas_0.d.ts +17 -0
  109. package/dist-types/ts3.4/waiters/index.d.ts +2 -0
  110. package/dist-types/ts3.4/waiters/waitForClusterActive.d.ts +1 -1
  111. package/dist-types/ts3.4/waiters/waitForClusterNotExists.d.ts +1 -1
  112. package/dist-types/ts3.4/waiters/waitForStreamActive.d.ts +15 -0
  113. package/dist-types/ts3.4/waiters/waitForStreamNotExists.d.ts +16 -0
  114. package/dist-types/waiters/index.d.ts +2 -0
  115. package/dist-types/waiters/waitForClusterActive.d.ts +1 -1
  116. package/dist-types/waiters/waitForClusterNotExists.d.ts +1 -1
  117. package/dist-types/waiters/waitForStreamActive.d.ts +15 -0
  118. package/dist-types/waiters/waitForStreamNotExists.d.ts +16 -0
  119. package/package.json +13 -35
@@ -1,4 +1,4 @@
1
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
2
  import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
3
  import {
4
4
  DSQLClientResolvedConfig,
@@ -15,7 +15,7 @@ export interface UpdateClusterCommandOutput
15
15
  declare const UpdateClusterCommand_base: {
16
16
  new (
17
17
  input: UpdateClusterCommandInput
18
- ): import("@smithy/smithy-client").CommandImpl<
18
+ ): import("@smithy/core/client").CommandImpl<
19
19
  UpdateClusterCommandInput,
20
20
  UpdateClusterCommandOutput,
21
21
  DSQLClientResolvedConfig,
@@ -24,14 +24,16 @@ declare const UpdateClusterCommand_base: {
24
24
  >;
25
25
  new (
26
26
  input: UpdateClusterCommandInput
27
- ): import("@smithy/smithy-client").CommandImpl<
27
+ ): import("@smithy/core/client").CommandImpl<
28
28
  UpdateClusterCommandInput,
29
29
  UpdateClusterCommandOutput,
30
30
  DSQLClientResolvedConfig,
31
31
  ServiceInputTypes,
32
32
  ServiceOutputTypes
33
33
  >;
34
- getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
34
+ getEndpointParameterInstructions(): {
35
+ [x: string]: unknown;
36
+ };
35
37
  };
36
38
  export declare class UpdateClusterCommand extends UpdateClusterCommand_base {
37
39
  protected static __types: {
@@ -1,10 +1,14 @@
1
1
  export * from "./CreateClusterCommand";
2
+ export * from "./CreateStreamCommand";
2
3
  export * from "./DeleteClusterCommand";
3
4
  export * from "./DeleteClusterPolicyCommand";
5
+ export * from "./DeleteStreamCommand";
4
6
  export * from "./GetClusterCommand";
5
7
  export * from "./GetClusterPolicyCommand";
8
+ export * from "./GetStreamCommand";
6
9
  export * from "./GetVpcEndpointServiceNameCommand";
7
10
  export * from "./ListClustersCommand";
11
+ export * from "./ListStreamsCommand";
8
12
  export * from "./ListTagsForResourceCommand";
9
13
  export * from "./PutClusterPolicyCommand";
10
14
  export * from "./TagResourceCommand";
@@ -1,2 +1,2 @@
1
- import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
2
  export declare const bdd: BinaryDecisionDiagram;
@@ -1,5 +1,5 @@
1
1
  import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
- import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
2
+ import { HttpHandlerExtensionConfiguration } from "@smithy/core/protocols";
3
3
  import { DefaultExtensionConfiguration } from "@smithy/types";
4
4
  import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
5
  export interface DSQLExtensionConfiguration
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  ServiceExceptionOptions as __ServiceExceptionOptions,
3
3
  ServiceException as __ServiceException,
4
- } from "@smithy/smithy-client";
4
+ } from "@smithy/core/client";
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
7
7
  export declare class DSQLServiceException extends __ServiceException {
@@ -34,3 +34,33 @@ export declare const ValidationExceptionReason: {
34
34
  };
35
35
  export type ValidationExceptionReason =
36
36
  (typeof ValidationExceptionReason)[keyof typeof ValidationExceptionReason];
37
+ export declare const StreamFormat: {
38
+ readonly JSON: "JSON";
39
+ };
40
+ export type StreamFormat = (typeof StreamFormat)[keyof typeof StreamFormat];
41
+ export declare const StreamOrdering: {
42
+ readonly UNORDERED: "UNORDERED";
43
+ };
44
+ export type StreamOrdering =
45
+ (typeof StreamOrdering)[keyof typeof StreamOrdering];
46
+ export declare const StreamStatus: {
47
+ readonly ACTIVE: "ACTIVE";
48
+ readonly CREATING: "CREATING";
49
+ readonly DELETED: "DELETED";
50
+ readonly DELETING: "DELETING";
51
+ readonly FAILED: "FAILED";
52
+ readonly IMPAIRED: "IMPAIRED";
53
+ };
54
+ export type StreamStatus = (typeof StreamStatus)[keyof typeof StreamStatus];
55
+ export declare const StreamFailureErrorCode: {
56
+ readonly CLUSTER_CMK_INACCESSIBLE: "CLUSTER_CMK_INACCESSIBLE";
57
+ readonly INTERNAL_ERROR: "INTERNAL_ERROR";
58
+ readonly KINESIS_ACCESS_DENIED: "KINESIS_ACCESS_DENIED";
59
+ readonly KINESIS_KMS_ACCESS_DENIED: "KINESIS_KMS_ACCESS_DENIED";
60
+ readonly KINESIS_OVERSIZE_RECORD: "KINESIS_OVERSIZE_RECORD";
61
+ readonly KINESIS_STREAM_NOT_FOUND: "KINESIS_STREAM_NOT_FOUND";
62
+ readonly KINESIS_THROUGHPUT_EXCEEDED: "KINESIS_THROUGHPUT_EXCEEDED";
63
+ readonly ROLE_ACCESS_DENIED: "ROLE_ACCESS_DENIED";
64
+ };
65
+ export type StreamFailureErrorCode =
66
+ (typeof StreamFailureErrorCode)[keyof typeof StreamFailureErrorCode];
@@ -1,4 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/core/client";
2
2
  import { DSQLServiceException as __BaseException } from "./DSQLServiceException";
3
3
  import { ValidationExceptionReason } from "./enums";
4
4
  import { ValidationExceptionField } from "./models_0";
@@ -1,4 +1,12 @@
1
- import { ClusterStatus, EncryptionStatus, EncryptionType } from "./enums";
1
+ import {
2
+ ClusterStatus,
3
+ EncryptionStatus,
4
+ EncryptionType,
5
+ StreamFailureErrorCode,
6
+ StreamFormat,
7
+ StreamOrdering,
8
+ StreamStatus,
9
+ } from "./enums";
2
10
  export interface MultiRegionProperties {
3
11
  witnessRegion?: string | undefined;
4
12
  clusters?: string[] | undefined;
@@ -112,12 +120,98 @@ export interface UpdateClusterOutput {
112
120
  status: ClusterStatus | undefined;
113
121
  creationTime: Date | undefined;
114
122
  }
123
+ export interface KinesisTargetDefinition {
124
+ streamArn: string | undefined;
125
+ roleArn: string | undefined;
126
+ }
127
+ export type TargetDefinition =
128
+ | TargetDefinition.KinesisMember
129
+ | TargetDefinition.$UnknownMember;
130
+ export declare namespace TargetDefinition {
131
+ interface KinesisMember {
132
+ kinesis: KinesisTargetDefinition;
133
+ $unknown?: never;
134
+ }
135
+ interface $UnknownMember {
136
+ kinesis?: never;
137
+ $unknown: [string, any];
138
+ }
139
+ interface Visitor<T> {
140
+ kinesis: (value: KinesisTargetDefinition) => T;
141
+ _: (name: string, value: any) => T;
142
+ }
143
+ }
144
+ export interface CreateStreamInput {
145
+ clusterIdentifier: string | undefined;
146
+ targetDefinition: TargetDefinition | undefined;
147
+ ordering: StreamOrdering | undefined;
148
+ format: StreamFormat | undefined;
149
+ tags?: Record<string, string> | undefined;
150
+ clientToken?: string | undefined;
151
+ }
152
+ export interface CreateStreamOutput {
153
+ clusterIdentifier: string | undefined;
154
+ streamIdentifier: string | undefined;
155
+ arn: string | undefined;
156
+ status: StreamStatus | undefined;
157
+ creationTime: Date | undefined;
158
+ ordering: StreamOrdering | undefined;
159
+ format: StreamFormat | undefined;
160
+ }
161
+ export interface DeleteStreamInput {
162
+ clusterIdentifier: string | undefined;
163
+ streamIdentifier: string | undefined;
164
+ clientToken?: string | undefined;
165
+ }
166
+ export interface DeleteStreamOutput {
167
+ clusterIdentifier: string | undefined;
168
+ streamIdentifier: string | undefined;
169
+ arn: string | undefined;
170
+ status: StreamStatus | undefined;
171
+ creationTime: Date | undefined;
172
+ }
115
173
  export interface ListTagsForResourceInput {
116
174
  resourceArn: string | undefined;
117
175
  }
118
176
  export interface ListTagsForResourceOutput {
119
177
  tags?: Record<string, string> | undefined;
120
178
  }
179
+ export interface GetStreamInput {
180
+ clusterIdentifier: string | undefined;
181
+ streamIdentifier: string | undefined;
182
+ }
183
+ export interface StatusReason {
184
+ error: StreamFailureErrorCode | undefined;
185
+ updatedAt: Date | undefined;
186
+ }
187
+ export interface GetStreamOutput {
188
+ clusterIdentifier: string | undefined;
189
+ streamIdentifier: string | undefined;
190
+ arn: string | undefined;
191
+ status: StreamStatus | undefined;
192
+ creationTime: Date | undefined;
193
+ ordering: StreamOrdering | undefined;
194
+ format: StreamFormat | undefined;
195
+ targetDefinition?: TargetDefinition | undefined;
196
+ statusReason?: StatusReason | undefined;
197
+ tags?: Record<string, string> | undefined;
198
+ }
199
+ export interface ListStreamsInput {
200
+ clusterIdentifier: string | undefined;
201
+ maxResults?: number | undefined;
202
+ nextToken?: string | undefined;
203
+ }
204
+ export interface StreamSummary {
205
+ clusterIdentifier: string | undefined;
206
+ streamIdentifier: string | undefined;
207
+ arn: string | undefined;
208
+ creationTime: Date | undefined;
209
+ status: StreamStatus | undefined;
210
+ }
211
+ export interface ListStreamsOutput {
212
+ nextToken?: string | undefined;
213
+ streams: StreamSummary[] | undefined;
214
+ }
121
215
  export interface TagResourceInput {
122
216
  resourceArn: string | undefined;
123
217
  tags: Record<string, string> | undefined;
@@ -0,0 +1,11 @@
1
+ import { Paginator } from "@smithy/types";
2
+ import {
3
+ ListStreamsCommandInput,
4
+ ListStreamsCommandOutput,
5
+ } from "../commands/ListStreamsCommand";
6
+ import { DSQLPaginationConfiguration } from "./Interfaces";
7
+ export declare const paginateListStreams: (
8
+ config: DSQLPaginationConfiguration,
9
+ input: ListStreamsCommandInput,
10
+ ...rest: any[]
11
+ ) => Paginator<ListStreamsCommandOutput>;
@@ -1,2 +1,3 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListClustersPaginator";
3
+ export * from "./ListStreamsPaginator";
@@ -3,7 +3,7 @@ import { DSQLClientConfig } from "./DSQLClient";
3
3
  export declare const getRuntimeConfig: (config: DSQLClientConfig) => {
4
4
  runtime: string;
5
5
  defaultsMode: import("@smithy/types").Provider<
6
- import("@smithy/smithy-client").ResolvedDefaultsMode
6
+ import("@smithy/core/client").ResolvedDefaultsMode
7
7
  >;
8
8
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
9
9
  credentialDefaultProvider:
@@ -17,7 +17,7 @@ export declare const getRuntimeConfig: (config: DSQLClientConfig) => {
17
17
  maxAttempts: number | import("@smithy/types").Provider<number>;
18
18
  region: string | import("@smithy/types").Provider<any>;
19
19
  requestHandler:
20
- | import("@smithy/protocol-http").HttpHandler<any>
20
+ | import("@smithy/core/protocols").HttpHandler<any>
21
21
  | RequestHandler;
22
22
  retryMode: string | import("@smithy/types").Provider<string>;
23
23
  sha256: import("@smithy/types").HashConstructor;
@@ -3,7 +3,7 @@ import { DSQLClientConfig } from "./DSQLClient";
3
3
  export declare const getRuntimeConfig: (config: DSQLClientConfig) => {
4
4
  runtime: string;
5
5
  defaultsMode: import("@smithy/types").Provider<
6
- import("@smithy/smithy-client").ResolvedDefaultsMode
6
+ import("@smithy/core/client").ResolvedDefaultsMode
7
7
  >;
8
8
  authSchemePreference: string[] | import("@smithy/types").Provider<string[]>;
9
9
  bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
@@ -19,7 +19,7 @@ export declare const getRuntimeConfig: (config: DSQLClientConfig) => {
19
19
  region: string | import("@smithy/types").Provider<string>;
20
20
  requestHandler:
21
21
  | RequestHandler
22
- | import("@smithy/protocol-http").HttpHandler<any>;
22
+ | import("@smithy/core/protocols").HttpHandler<any>;
23
23
  retryMode: string | import("@smithy/types").Provider<string>;
24
24
  sha256: import("@smithy/types").HashConstructor;
25
25
  streamCollector: import("@smithy/types").StreamCollector;
@@ -6,7 +6,7 @@ export declare const getRuntimeConfig: (config: DSQLClientConfig) => {
6
6
  | import("@smithy/types").NodeHttpHandlerOptions
7
7
  | import("@smithy/types").FetchHttpHandlerOptions
8
8
  | Record<string, unknown>
9
- | import("@smithy/protocol-http").HttpHandler<any>
9
+ | import("@smithy/core/protocols").HttpHandler<any>
10
10
  | import("@smithy/fetch-http-handler").FetchHttpHandler;
11
11
  cacheMiddleware?: boolean;
12
12
  protocol:
@@ -46,9 +46,9 @@ export declare const getRuntimeConfig: (config: DSQLClientConfig) => {
46
46
  logger: import("@smithy/types").Logger;
47
47
  extensions: import("./runtimeExtensions").RuntimeExtension[];
48
48
  defaultsMode:
49
- | import("@smithy/smithy-client").DefaultsMode
49
+ | import("@smithy/core/client").DefaultsMode
50
50
  | import("@smithy/types").Provider<
51
- import("@smithy/smithy-client").DefaultsMode
51
+ import("@smithy/core/client").DefaultsMode
52
52
  >;
53
53
  customUserAgent?: string | import("@smithy/types").UserAgent;
54
54
  userAgentAppId?:
@@ -3,6 +3,7 @@ import {
3
3
  StaticErrorSchema,
4
4
  StaticOperationSchema,
5
5
  StaticStructureSchema,
6
+ StaticUnionSchema,
6
7
  } from "@smithy/types";
7
8
  export declare var DSQLServiceException$: StaticErrorSchema;
8
9
  export declare var AccessDeniedException$: StaticErrorSchema;
@@ -16,36 +17,52 @@ export declare const errorTypeRegistries: TypeRegistry[];
16
17
  export declare var ClusterSummary$: StaticStructureSchema;
17
18
  export declare var CreateClusterInput$: StaticStructureSchema;
18
19
  export declare var CreateClusterOutput$: StaticStructureSchema;
20
+ export declare var CreateStreamInput$: StaticStructureSchema;
21
+ export declare var CreateStreamOutput$: StaticStructureSchema;
19
22
  export declare var DeleteClusterInput$: StaticStructureSchema;
20
23
  export declare var DeleteClusterOutput$: StaticStructureSchema;
21
24
  export declare var DeleteClusterPolicyInput$: StaticStructureSchema;
22
25
  export declare var DeleteClusterPolicyOutput$: StaticStructureSchema;
26
+ export declare var DeleteStreamInput$: StaticStructureSchema;
27
+ export declare var DeleteStreamOutput$: StaticStructureSchema;
23
28
  export declare var EncryptionDetails$: StaticStructureSchema;
24
29
  export declare var GetClusterInput$: StaticStructureSchema;
25
30
  export declare var GetClusterOutput$: StaticStructureSchema;
26
31
  export declare var GetClusterPolicyInput$: StaticStructureSchema;
27
32
  export declare var GetClusterPolicyOutput$: StaticStructureSchema;
33
+ export declare var GetStreamInput$: StaticStructureSchema;
34
+ export declare var GetStreamOutput$: StaticStructureSchema;
28
35
  export declare var GetVpcEndpointServiceNameInput$: StaticStructureSchema;
29
36
  export declare var GetVpcEndpointServiceNameOutput$: StaticStructureSchema;
37
+ export declare var KinesisTargetDefinition$: StaticStructureSchema;
30
38
  export declare var ListClustersInput$: StaticStructureSchema;
31
39
  export declare var ListClustersOutput$: StaticStructureSchema;
40
+ export declare var ListStreamsInput$: StaticStructureSchema;
41
+ export declare var ListStreamsOutput$: StaticStructureSchema;
32
42
  export declare var ListTagsForResourceInput$: StaticStructureSchema;
33
43
  export declare var ListTagsForResourceOutput$: StaticStructureSchema;
34
44
  export declare var MultiRegionProperties$: StaticStructureSchema;
35
45
  export declare var PutClusterPolicyInput$: StaticStructureSchema;
36
46
  export declare var PutClusterPolicyOutput$: StaticStructureSchema;
47
+ export declare var StatusReason$: StaticStructureSchema;
48
+ export declare var StreamSummary$: StaticStructureSchema;
37
49
  export declare var TagResourceInput$: StaticStructureSchema;
38
50
  export declare var UntagResourceInput$: StaticStructureSchema;
39
51
  export declare var UpdateClusterInput$: StaticStructureSchema;
40
52
  export declare var UpdateClusterOutput$: StaticStructureSchema;
41
53
  export declare var ValidationExceptionField$: StaticStructureSchema;
54
+ export declare var TargetDefinition$: StaticUnionSchema;
42
55
  export declare var CreateCluster$: StaticOperationSchema;
56
+ export declare var CreateStream$: StaticOperationSchema;
43
57
  export declare var DeleteCluster$: StaticOperationSchema;
44
58
  export declare var DeleteClusterPolicy$: StaticOperationSchema;
59
+ export declare var DeleteStream$: StaticOperationSchema;
45
60
  export declare var GetCluster$: StaticOperationSchema;
46
61
  export declare var GetClusterPolicy$: StaticOperationSchema;
62
+ export declare var GetStream$: StaticOperationSchema;
47
63
  export declare var GetVpcEndpointServiceName$: StaticOperationSchema;
48
64
  export declare var ListClusters$: StaticOperationSchema;
65
+ export declare var ListStreams$: StaticOperationSchema;
49
66
  export declare var ListTagsForResource$: StaticOperationSchema;
50
67
  export declare var PutClusterPolicy$: StaticOperationSchema;
51
68
  export declare var TagResource$: StaticOperationSchema;
@@ -1,2 +1,4 @@
1
1
  export * from "./waitForClusterActive";
2
2
  export * from "./waitForClusterNotExists";
3
+ export * from "./waitForStreamActive";
4
+ export * from "./waitForStreamNotExists";
@@ -1,4 +1,4 @@
1
- import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/core/client";
2
2
  import {
3
3
  GetClusterCommandInput,
4
4
  GetClusterCommandOutput,
@@ -1,4 +1,4 @@
1
- import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter";
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/core/client";
2
2
  import {
3
3
  GetClusterCommandInput,
4
4
  GetClusterCommandOutput,
@@ -0,0 +1,15 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/core/client";
2
+ import {
3
+ GetStreamCommandInput,
4
+ GetStreamCommandOutput,
5
+ } from "../commands/GetStreamCommand";
6
+ import { DSQLClient } from "../DSQLClient";
7
+ import { DSQLServiceException } from "../models/DSQLServiceException";
8
+ export declare const waitForStreamActive: (
9
+ params: WaiterConfiguration<DSQLClient>,
10
+ input: GetStreamCommandInput
11
+ ) => Promise<WaiterResult<GetStreamCommandOutput | DSQLServiceException>>;
12
+ export declare const waitUntilStreamActive: (
13
+ params: WaiterConfiguration<DSQLClient>,
14
+ input: GetStreamCommandInput
15
+ ) => Promise<WaiterResult<GetStreamCommandOutput>>;
@@ -0,0 +1,16 @@
1
+ import { WaiterConfiguration, WaiterResult } from "@smithy/core/client";
2
+ import {
3
+ GetStreamCommandInput,
4
+ GetStreamCommandOutput,
5
+ } from "../commands/GetStreamCommand";
6
+ import { DSQLClient } from "../DSQLClient";
7
+ import { DSQLServiceException } from "../models/DSQLServiceException";
8
+ import { ResourceNotFoundException } from "../models/errors";
9
+ export declare const waitForStreamNotExists: (
10
+ params: WaiterConfiguration<DSQLClient>,
11
+ input: GetStreamCommandInput
12
+ ) => Promise<WaiterResult<GetStreamCommandOutput | DSQLServiceException>>;
13
+ export declare const waitUntilStreamNotExists: (
14
+ params: WaiterConfiguration<DSQLClient>,
15
+ input: GetStreamCommandInput
16
+ ) => Promise<WaiterResult<ResourceNotFoundException>>;
@@ -1,2 +1,4 @@
1
1
  export * from "./waitForClusterActive";
2
2
  export * from "./waitForClusterNotExists";
3
+ export * from "./waitForStreamActive";
4
+ export * from "./waitForStreamNotExists";
@@ -1,4 +1,4 @@
1
- import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
1
+ import { type WaiterConfiguration, type WaiterResult } from "@smithy/core/client";
2
2
  import { type GetClusterCommandInput, type GetClusterCommandOutput } from "../commands/GetClusterCommand";
3
3
  import type { DSQLClient } from "../DSQLClient";
4
4
  import type { DSQLServiceException } from "../models/DSQLServiceException";
@@ -1,4 +1,4 @@
1
- import { type WaiterConfiguration, type WaiterResult } from "@smithy/util-waiter";
1
+ import { type WaiterConfiguration, type WaiterResult } from "@smithy/core/client";
2
2
  import { type GetClusterCommandInput, type GetClusterCommandOutput } from "../commands/GetClusterCommand";
3
3
  import type { DSQLClient } from "../DSQLClient";
4
4
  import type { DSQLServiceException } from "../models/DSQLServiceException";
@@ -0,0 +1,15 @@
1
+ import { type WaiterConfiguration, type WaiterResult } from "@smithy/core/client";
2
+ import { type GetStreamCommandInput, type GetStreamCommandOutput } from "../commands/GetStreamCommand";
3
+ import type { DSQLClient } from "../DSQLClient";
4
+ import type { DSQLServiceException } from "../models/DSQLServiceException";
5
+ /**
6
+ * Wait until a Stream is ACTIVE
7
+ * @deprecated Use waitUntilStreamActive instead. waitForStreamActive does not throw error in non-success cases.
8
+ */
9
+ export declare const waitForStreamActive: (params: WaiterConfiguration<DSQLClient>, input: GetStreamCommandInput) => Promise<WaiterResult<GetStreamCommandOutput | DSQLServiceException>>;
10
+ /**
11
+ * Wait until a Stream is ACTIVE
12
+ * @param params - Waiter configuration options.
13
+ * @param input - The input to GetStreamCommand for polling.
14
+ */
15
+ export declare const waitUntilStreamActive: (params: WaiterConfiguration<DSQLClient>, input: GetStreamCommandInput) => Promise<WaiterResult<GetStreamCommandOutput>>;
@@ -0,0 +1,16 @@
1
+ import { type WaiterConfiguration, type WaiterResult } from "@smithy/core/client";
2
+ import { type GetStreamCommandInput, type GetStreamCommandOutput } from "../commands/GetStreamCommand";
3
+ import type { DSQLClient } from "../DSQLClient";
4
+ import type { DSQLServiceException } from "../models/DSQLServiceException";
5
+ import type { ResourceNotFoundException } from "../models/errors";
6
+ /**
7
+ * Wait until a Stream is gone
8
+ * @deprecated Use waitUntilStreamNotExists instead. waitForStreamNotExists does not throw error in non-success cases.
9
+ */
10
+ export declare const waitForStreamNotExists: (params: WaiterConfiguration<DSQLClient>, input: GetStreamCommandInput) => Promise<WaiterResult<GetStreamCommandOutput | DSQLServiceException>>;
11
+ /**
12
+ * Wait until a Stream is gone
13
+ * @param params - Waiter configuration options.
14
+ * @param input - The input to GetStreamCommand for polling.
15
+ */
16
+ export declare const waitUntilStreamNotExists: (params: WaiterConfiguration<DSQLClient>, input: GetStreamCommandInput) => Promise<WaiterResult<ResourceNotFoundException>>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dsql",
3
3
  "description": "AWS SDK for JavaScript Dsql Client for Node.js, Browser and React Native",
4
- "version": "3.1044.0",
4
+ "version": "3.1046.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:types' 'yarn:build:es' && yarn build:cjs",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-dsql",
@@ -21,43 +21,21 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "5.2.0",
23
23
  "@aws-crypto/sha256-js": "5.2.0",
24
- "@aws-sdk/core": "^3.974.8",
25
- "@aws-sdk/credential-provider-node": "^3.972.39",
26
- "@aws-sdk/middleware-host-header": "^3.972.10",
24
+ "@aws-sdk/core": "^3.974.9",
25
+ "@aws-sdk/credential-provider-node": "^3.972.40",
26
+ "@aws-sdk/middleware-host-header": "^3.972.11",
27
27
  "@aws-sdk/middleware-logger": "^3.972.10",
28
- "@aws-sdk/middleware-recursion-detection": "^3.972.11",
29
- "@aws-sdk/middleware-user-agent": "^3.972.38",
30
- "@aws-sdk/region-config-resolver": "^3.972.13",
28
+ "@aws-sdk/middleware-recursion-detection": "^3.972.12",
29
+ "@aws-sdk/middleware-user-agent": "^3.972.39",
30
+ "@aws-sdk/region-config-resolver": "^3.972.14",
31
31
  "@aws-sdk/types": "^3.973.8",
32
- "@aws-sdk/util-endpoints": "^3.996.8",
33
- "@aws-sdk/util-user-agent-browser": "^3.972.10",
34
- "@aws-sdk/util-user-agent-node": "^3.973.24",
35
- "@smithy/config-resolver": "^4.4.17",
36
- "@smithy/core": "^3.23.17",
37
- "@smithy/fetch-http-handler": "^5.3.17",
38
- "@smithy/hash-node": "^4.2.14",
39
- "@smithy/invalid-dependency": "^4.2.14",
40
- "@smithy/middleware-content-length": "^4.2.14",
41
- "@smithy/middleware-endpoint": "^4.4.32",
42
- "@smithy/middleware-retry": "^4.5.7",
43
- "@smithy/middleware-serde": "^4.2.20",
44
- "@smithy/middleware-stack": "^4.2.14",
45
- "@smithy/node-config-provider": "^4.3.14",
46
- "@smithy/node-http-handler": "^4.6.1",
47
- "@smithy/protocol-http": "^5.3.14",
48
- "@smithy/smithy-client": "^4.12.13",
32
+ "@aws-sdk/util-endpoints": "^3.996.9",
33
+ "@aws-sdk/util-user-agent-browser": "^3.972.11",
34
+ "@aws-sdk/util-user-agent-node": "^3.973.25",
35
+ "@smithy/core": "^3.24.1",
36
+ "@smithy/fetch-http-handler": "^5.4.1",
37
+ "@smithy/node-http-handler": "^4.7.1",
49
38
  "@smithy/types": "^4.14.1",
50
- "@smithy/url-parser": "^4.2.14",
51
- "@smithy/util-base64": "^4.3.2",
52
- "@smithy/util-body-length-browser": "^4.2.2",
53
- "@smithy/util-body-length-node": "^4.2.3",
54
- "@smithy/util-defaults-mode-browser": "^4.3.49",
55
- "@smithy/util-defaults-mode-node": "^4.2.54",
56
- "@smithy/util-endpoints": "^3.4.2",
57
- "@smithy/util-middleware": "^4.2.14",
58
- "@smithy/util-retry": "^4.3.6",
59
- "@smithy/util-utf8": "^4.2.2",
60
- "@smithy/util-waiter": "^4.3.0",
61
39
  "tslib": "^2.6.2"
62
40
  },
63
41
  "devDependencies": {