@aws-sdk/client-dsql 3.1045.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
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListStreams$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListStreamsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("DSQL", "ListStreams", {})
13
+ .n("DSQLClient", "ListStreamsCommand")
14
+ .sc(ListStreams$)
15
+ .build() {
16
+ }
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { ListTagsForResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { PutClusterPolicy$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { TagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { UntagResource$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -1,5 +1,5 @@
1
- import { getEndpointPlugin } from "@smithy/middleware-endpoint";
2
- import { Command as $Command } from "@smithy/smithy-client";
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
3
  import { commonParams } from "../endpoint/EndpointParameters";
4
4
  import { UpdateCluster$ } from "../schemas/schemas_0";
5
5
  export { $Command };
@@ -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,4 +1,4 @@
1
- import { BinaryDecisionDiagram } from "@smithy/util-endpoints";
1
+ import { BinaryDecisionDiagram } from "@smithy/core/endpoints";
2
2
  const a = "isSet", b = { "ref": "Endpoint" }, c = [{ "ref": "Region" }];
3
3
  const _data = {
4
4
  conditions: [
@@ -1,5 +1,5 @@
1
1
  import { awsEndpointFunctions } from "@aws-sdk/util-endpoints";
2
- import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/util-endpoints";
2
+ import { customEndpointFunctions, decideEndpoint, EndpointCache } from "@smithy/core/endpoints";
3
3
  import { bdd } from "./bdd";
4
4
  const cache = new EndpointCache({
5
5
  size: 50,
@@ -1,4 +1,4 @@
1
- import { ServiceException as __ServiceException, } from "@smithy/smithy-client";
1
+ import { ServiceException as __ServiceException, } from "@smithy/core/client";
2
2
  export { __ServiceException };
3
3
  export class DSQLServiceException extends __ServiceException {
4
4
  constructor(options) {
@@ -27,3 +27,27 @@ export const ValidationExceptionReason = {
27
27
  OTHER: "other",
28
28
  UNKNOWN_OPERATION: "unknownOperation",
29
29
  };
30
+ export const StreamFormat = {
31
+ JSON: "JSON",
32
+ };
33
+ export const StreamOrdering = {
34
+ UNORDERED: "UNORDERED",
35
+ };
36
+ export const StreamStatus = {
37
+ ACTIVE: "ACTIVE",
38
+ CREATING: "CREATING",
39
+ DELETED: "DELETED",
40
+ DELETING: "DELETING",
41
+ FAILED: "FAILED",
42
+ IMPAIRED: "IMPAIRED",
43
+ };
44
+ export const StreamFailureErrorCode = {
45
+ CLUSTER_CMK_INACCESSIBLE: "CLUSTER_CMK_INACCESSIBLE",
46
+ INTERNAL_ERROR: "INTERNAL_ERROR",
47
+ KINESIS_ACCESS_DENIED: "KINESIS_ACCESS_DENIED",
48
+ KINESIS_KMS_ACCESS_DENIED: "KINESIS_KMS_ACCESS_DENIED",
49
+ KINESIS_OVERSIZE_RECORD: "KINESIS_OVERSIZE_RECORD",
50
+ KINESIS_STREAM_NOT_FOUND: "KINESIS_STREAM_NOT_FOUND",
51
+ KINESIS_THROUGHPUT_EXCEEDED: "KINESIS_THROUGHPUT_EXCEEDED",
52
+ ROLE_ACCESS_DENIED: "ROLE_ACCESS_DENIED",
53
+ };
@@ -0,0 +1,4 @@
1
+ import { createPaginator } from "@smithy/core";
2
+ import { ListStreamsCommand } from "../commands/ListStreamsCommand";
3
+ import { DSQLClient } from "../DSQLClient";
4
+ export const paginateListStreams = createPaginator(DSQLClient, ListStreamsCommand, "nextToken", "nextToken", "maxResults");
@@ -1,2 +1,3 @@
1
1
  export * from "./Interfaces";
2
2
  export * from "./ListClustersPaginator";
3
+ export * from "./ListStreamsPaginator";
@@ -1,13 +1,11 @@
1
1
  import packageInfo from "../package.json";
2
2
  import { Sha256 } from "@aws-crypto/sha256-browser";
3
3
  import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser";
4
- import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
4
+ import { invalidProvider, loadConfigsForDefaultMode } from "@smithy/core/client";
5
+ import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT, resolveDefaultsModeConfig, } from "@smithy/core/config";
6
+ import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/core/retry";
7
+ import { calculateBodyLength } from "@smithy/core/serde";
5
8
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
- import { invalidProvider } from "@smithy/invalid-dependency";
7
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
8
- import { calculateBodyLength } from "@smithy/util-body-length-browser";
9
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
10
- import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
11
9
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
12
10
  export const getRuntimeConfig = (config) => {
13
11
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -3,15 +3,11 @@ import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/cor
3
3
  import { NODE_AUTH_SCHEME_PREFERENCE_OPTIONS } from "@aws-sdk/core/httpAuthSchemes";
4
4
  import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
5
5
  import { createDefaultUserAgentProvider, NODE_APP_ID_CONFIG_OPTIONS } from "@aws-sdk/util-user-agent-node";
6
- import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver";
7
- import { Hash } from "@smithy/hash-node";
8
- import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
9
- import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
6
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/core/client";
7
+ import { loadConfig as loadNodeConfig, NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, resolveDefaultsModeConfig, } from "@smithy/core/config";
8
+ import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@smithy/core/retry";
9
+ import { calculateBodyLength, Hash } from "@smithy/core/serde";
10
10
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
11
- import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
12
- import { calculateBodyLength } from "@smithy/util-body-length-node";
13
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
14
- import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
15
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
16
12
  export const getRuntimeConfig = (config) => {
17
13
  emitWarningIfUnsupportedVersion(process.version);
@@ -1,9 +1,8 @@
1
1
  import { AwsSdkSigV4Signer } from "@aws-sdk/core/httpAuthSchemes";
2
2
  import { AwsRestJsonProtocol } from "@aws-sdk/core/protocols";
3
- import { NoOpLogger } from "@smithy/smithy-client";
4
- import { parseUrl } from "@smithy/url-parser";
5
- import { fromBase64, toBase64 } from "@smithy/util-base64";
6
- import { fromUtf8, toUtf8 } from "@smithy/util-utf8";
3
+ import { NoOpLogger } from "@smithy/core/client";
4
+ import { parseUrl } from "@smithy/core/protocols";
5
+ import { fromBase64, fromUtf8, toBase64, toUtf8 } from "@smithy/core/serde";
7
6
  import { defaultDSQLHttpAuthSchemeProvider } from "./auth/httpAuthSchemeProvider";
8
7
  import { defaultEndpointResolver } from "./endpoint/endpointResolver";
9
8
  import { errorTypeRegistries } from "./schemas/schemas_0";
@@ -1,6 +1,6 @@
1
1
  import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver";
2
- import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
3
- import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
2
+ import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/core/client";
3
+ import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/core/protocols";
4
4
  import { getHttpAuthExtensionConfiguration, resolveHttpAuthRuntimeConfig } from "./auth/httpAuthExtensionConfiguration";
5
5
  export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
6
6
  const extensionConfiguration = Object.assign(getAwsRegionExtensionConfiguration(runtimeConfig), getDefaultExtensionConfiguration(runtimeConfig), getHttpHandlerExtensionConfiguration(runtimeConfig), getHttpAuthExtensionConfiguration(runtimeConfig));
@@ -5,12 +5,18 @@ const _CCO = "CreateClusterOutput";
5
5
  const _CE = "ConflictException";
6
6
  const _CL = "ClusterList";
7
7
  const _CS = "ClusterSummary";
8
+ const _CSI = "CreateStreamInput";
9
+ const _CSO = "CreateStreamOutput";
10
+ const _CSr = "CreateStream";
8
11
  const _DC = "DeleteCluster";
9
12
  const _DCI = "DeleteClusterInput";
10
13
  const _DCO = "DeleteClusterOutput";
11
14
  const _DCP = "DeleteClusterPolicy";
12
15
  const _DCPI = "DeleteClusterPolicyInput";
13
16
  const _DCPO = "DeleteClusterPolicyOutput";
17
+ const _DS = "DeleteStream";
18
+ const _DSI = "DeleteStreamInput";
19
+ const _DSO = "DeleteStreamOutput";
14
20
  const _ED = "EncryptionDetails";
15
21
  const _GC = "GetCluster";
16
22
  const _GCI = "GetClusterInput";
@@ -18,13 +24,20 @@ const _GCO = "GetClusterOutput";
18
24
  const _GCP = "GetClusterPolicy";
19
25
  const _GCPI = "GetClusterPolicyInput";
20
26
  const _GCPO = "GetClusterPolicyOutput";
27
+ const _GS = "GetStream";
28
+ const _GSI = "GetStreamInput";
29
+ const _GSO = "GetStreamOutput";
21
30
  const _GVESN = "GetVpcEndpointServiceName";
22
31
  const _GVESNI = "GetVpcEndpointServiceNameInput";
23
32
  const _GVESNO = "GetVpcEndpointServiceNameOutput";
24
33
  const _ISE = "InternalServerException";
34
+ const _KTD = "KinesisTargetDefinition";
25
35
  const _LC = "ListClusters";
26
36
  const _LCI = "ListClustersInput";
27
37
  const _LCO = "ListClustersOutput";
38
+ const _LS = "ListStreams";
39
+ const _LSI = "ListStreamsInput";
40
+ const _LSO = "ListStreamsOutput";
28
41
  const _LTFR = "ListTagsForResource";
29
42
  const _LTFRI = "ListTagsForResourceInput";
30
43
  const _LTFRO = "ListTagsForResourceOutput";
@@ -34,7 +47,11 @@ const _PCPI = "PutClusterPolicyInput";
34
47
  const _PCPO = "PutClusterPolicyOutput";
35
48
  const _RA = "Retry-After";
36
49
  const _RNFE = "ResourceNotFoundException";
50
+ const _SL = "StreamList";
37
51
  const _SQEE = "ServiceQuotaExceededException";
52
+ const _SR = "StatusReason";
53
+ const _SS = "StreamSummary";
54
+ const _TD = "TargetDefinition";
38
55
  const _TE = "ThrottlingException";
39
56
  const _TR = "TagResource";
40
57
  const _TRI = "TagResourceInput";
@@ -49,6 +66,7 @@ const _VEFL = "ValidationExceptionFieldList";
49
66
  const _a = "arn";
50
67
  const _bPLSC = "bypassPolicyLockoutSafetyCheck";
51
68
  const _c = "client";
69
+ const _cI = "clusterIdentifier";
52
70
  const _cT = "clientToken";
53
71
  const _cTr = "creationTime";
54
72
  const _cVE = "clusterVpcEndpoint";
@@ -62,6 +80,7 @@ const _eS = "encryptionStatus";
62
80
  const _eT = "encryptionType";
63
81
  const _en = "endpoint";
64
82
  const _epv = "expected-policy-version";
83
+ const _f = "format";
65
84
  const _fL = "fieldList";
66
85
  const _h = "http";
67
86
  const _hE = "httpError";
@@ -69,6 +88,7 @@ const _hH = "httpHeader";
69
88
  const _hQ = "httpQuery";
70
89
  const _i = "identifier";
71
90
  const _iT = "idempotencyToken";
91
+ const _k = "kinesis";
72
92
  const _kEK = "kmsEncryptionKey";
73
93
  const _kKA = "kmsKeyArn";
74
94
  const _m = "message";
@@ -78,21 +98,29 @@ const _mr = "max-results";
78
98
  const _n = "name";
79
99
  const _nT = "nextToken";
80
100
  const _nt = "next-token";
101
+ const _o = "ordering";
81
102
  const _p = "policy";
82
103
  const _pV = "policyVersion";
83
104
  const _qC = "quotaCode";
84
105
  const _r = "reason";
85
- const _rA = "resourceArn";
106
+ const _rA = "roleArn";
86
107
  const _rAS = "retryAfterSeconds";
108
+ const _rAe = "resourceArn";
87
109
  const _rI = "resourceId";
88
110
  const _rT = "resourceType";
89
111
  const _s = "smithy.ts.sdk.synthetic.com.amazonaws.dsql";
112
+ const _sA = "streamArn";
90
113
  const _sC = "serviceCode";
114
+ const _sI = "streamIdentifier";
91
115
  const _sN = "serviceName";
116
+ const _sR = "statusReason";
92
117
  const _se = "server";
93
118
  const _st = "status";
119
+ const _str = "streams";
94
120
  const _t = "tags";
121
+ const _tD = "targetDefinition";
95
122
  const _tK = "tagKeys";
123
+ const _uA = "updatedAt";
96
124
  const _wR = "witnessRegion";
97
125
  const n0 = "com.amazonaws.dsql";
98
126
  import { TypeRegistry } from "@smithy/core/schema";
@@ -163,6 +191,16 @@ export var CreateClusterOutput$ = [3, n0, _CCO,
163
191
  [_i, _a, _st, _cTr, _dPE, _mRP, _eD, _en],
164
192
  [0, 0, 0, 4, 2, () => MultiRegionProperties$, () => EncryptionDetails$, 0], 5
165
193
  ];
194
+ export var CreateStreamInput$ = [3, n0, _CSI,
195
+ 0,
196
+ [_cI, _tD, _o, _f, _t, _cT],
197
+ [[0, 1], () => TargetDefinition$, 0, 0, 128 | 0, [0, 4]], 4
198
+ ];
199
+ export var CreateStreamOutput$ = [3, n0, _CSO,
200
+ 0,
201
+ [_cI, _sI, _a, _st, _cTr, _o, _f],
202
+ [0, 0, 0, 0, 4, 0, 0], 7
203
+ ];
166
204
  export var DeleteClusterInput$ = [3, n0, _DCI,
167
205
  0,
168
206
  [_i, _cT],
@@ -183,6 +221,16 @@ export var DeleteClusterPolicyOutput$ = [3, n0, _DCPO,
183
221
  [_pV],
184
222
  [0], 1
185
223
  ];
224
+ export var DeleteStreamInput$ = [3, n0, _DSI,
225
+ 0,
226
+ [_cI, _sI, _cT],
227
+ [[0, 1], [0, 1], [0, { [_hQ]: _ct, [_iT]: 1 }]], 2
228
+ ];
229
+ export var DeleteStreamOutput$ = [3, n0, _DSO,
230
+ 0,
231
+ [_cI, _sI, _a, _st, _cTr],
232
+ [0, 0, 0, 0, 4], 5
233
+ ];
186
234
  export var EncryptionDetails$ = [3, n0, _ED,
187
235
  0,
188
236
  [_eT, _eS, _kKA],
@@ -208,6 +256,16 @@ export var GetClusterPolicyOutput$ = [3, n0, _GCPO,
208
256
  [_p, _pV],
209
257
  [0, 0], 2
210
258
  ];
259
+ export var GetStreamInput$ = [3, n0, _GSI,
260
+ 0,
261
+ [_cI, _sI],
262
+ [[0, 1], [0, 1]], 2
263
+ ];
264
+ export var GetStreamOutput$ = [3, n0, _GSO,
265
+ 0,
266
+ [_cI, _sI, _a, _st, _cTr, _o, _f, _tD, _sR, _t],
267
+ [0, 0, 0, 0, 4, 0, 0, () => TargetDefinition$, () => StatusReason$, 128 | 0], 7
268
+ ];
211
269
  export var GetVpcEndpointServiceNameInput$ = [3, n0, _GVESNI,
212
270
  0,
213
271
  [_i],
@@ -218,6 +276,11 @@ export var GetVpcEndpointServiceNameOutput$ = [3, n0, _GVESNO,
218
276
  [_sN, _cVE],
219
277
  [0, 0], 1
220
278
  ];
279
+ export var KinesisTargetDefinition$ = [3, n0, _KTD,
280
+ 0,
281
+ [_sA, _rA],
282
+ [0, 0], 2
283
+ ];
221
284
  export var ListClustersInput$ = [3, n0, _LCI,
222
285
  0,
223
286
  [_mR, _nT],
@@ -228,9 +291,19 @@ export var ListClustersOutput$ = [3, n0, _LCO,
228
291
  [_cl, _nT],
229
292
  [() => ClusterList, 0], 1
230
293
  ];
294
+ export var ListStreamsInput$ = [3, n0, _LSI,
295
+ 0,
296
+ [_cI, _mR, _nT],
297
+ [[0, 1], [1, { [_hQ]: _mr }], [0, { [_hQ]: _nt }]], 1
298
+ ];
299
+ export var ListStreamsOutput$ = [3, n0, _LSO,
300
+ 0,
301
+ [_str, _nT],
302
+ [() => StreamList, 0], 1
303
+ ];
231
304
  export var ListTagsForResourceInput$ = [3, n0, _LTFRI,
232
305
  0,
233
- [_rA],
306
+ [_rAe],
234
307
  [[0, 1]], 1
235
308
  ];
236
309
  export var ListTagsForResourceOutput$ = [3, n0, _LTFRO,
@@ -253,14 +326,24 @@ export var PutClusterPolicyOutput$ = [3, n0, _PCPO,
253
326
  [_pV],
254
327
  [0], 1
255
328
  ];
329
+ export var StatusReason$ = [3, n0, _SR,
330
+ 0,
331
+ [_e, _uA],
332
+ [0, 4], 2
333
+ ];
334
+ export var StreamSummary$ = [3, n0, _SS,
335
+ 0,
336
+ [_cI, _sI, _a, _cTr, _st],
337
+ [0, 0, 0, 4, 0], 5
338
+ ];
256
339
  export var TagResourceInput$ = [3, n0, _TRI,
257
340
  0,
258
- [_rA, _t],
341
+ [_rAe, _t],
259
342
  [[0, 1], 128 | 0], 2
260
343
  ];
261
344
  export var UntagResourceInput$ = [3, n0, _URI,
262
345
  0,
263
- [_rA, _tK],
346
+ [_rAe, _tK],
264
347
  [[0, 1], [64 | 0, { [_hQ]: _tK }]], 2
265
348
  ];
266
349
  export var UpdateClusterInput$ = [3, n0, _UCI,
@@ -283,32 +366,52 @@ var ClusterArnList = 64 | 0;
283
366
  var ClusterList = [1, n0, _CL,
284
367
  0, () => ClusterSummary$
285
368
  ];
369
+ var StreamList = [1, n0, _SL,
370
+ 0, () => StreamSummary$
371
+ ];
286
372
  var TagKeyList = 64 | 0;
287
373
  var ValidationExceptionFieldList = [1, n0, _VEFL,
288
374
  0, () => ValidationExceptionField$
289
375
  ];
290
376
  var TagMap = 128 | 0;
377
+ export var TargetDefinition$ = [4, n0, _TD,
378
+ 0,
379
+ [_k],
380
+ [() => KinesisTargetDefinition$]
381
+ ];
291
382
  export var CreateCluster$ = [9, n0, _CC,
292
383
  { [_h]: ["POST", "/cluster", 200] }, () => CreateClusterInput$, () => CreateClusterOutput$
293
384
  ];
385
+ export var CreateStream$ = [9, n0, _CSr,
386
+ { [_h]: ["POST", "/stream/{clusterIdentifier}", 200] }, () => CreateStreamInput$, () => CreateStreamOutput$
387
+ ];
294
388
  export var DeleteCluster$ = [9, n0, _DC,
295
389
  { [_h]: ["DELETE", "/cluster/{identifier}", 200] }, () => DeleteClusterInput$, () => DeleteClusterOutput$
296
390
  ];
297
391
  export var DeleteClusterPolicy$ = [9, n0, _DCP,
298
392
  { [_h]: ["DELETE", "/cluster/{identifier}/policy", 200] }, () => DeleteClusterPolicyInput$, () => DeleteClusterPolicyOutput$
299
393
  ];
394
+ export var DeleteStream$ = [9, n0, _DS,
395
+ { [_h]: ["DELETE", "/stream/{clusterIdentifier}/{streamIdentifier}", 200] }, () => DeleteStreamInput$, () => DeleteStreamOutput$
396
+ ];
300
397
  export var GetCluster$ = [9, n0, _GC,
301
398
  { [_h]: ["GET", "/cluster/{identifier}", 200] }, () => GetClusterInput$, () => GetClusterOutput$
302
399
  ];
303
400
  export var GetClusterPolicy$ = [9, n0, _GCP,
304
401
  { [_h]: ["GET", "/cluster/{identifier}/policy", 200] }, () => GetClusterPolicyInput$, () => GetClusterPolicyOutput$
305
402
  ];
403
+ export var GetStream$ = [9, n0, _GS,
404
+ { [_h]: ["GET", "/stream/{clusterIdentifier}/{streamIdentifier}", 200] }, () => GetStreamInput$, () => GetStreamOutput$
405
+ ];
306
406
  export var GetVpcEndpointServiceName$ = [9, n0, _GVESN,
307
407
  { [_h]: ["GET", "/clusters/{identifier}/vpc-endpoint-service-name", 200] }, () => GetVpcEndpointServiceNameInput$, () => GetVpcEndpointServiceNameOutput$
308
408
  ];
309
409
  export var ListClusters$ = [9, n0, _LC,
310
410
  { [_h]: ["GET", "/cluster", 200] }, () => ListClustersInput$, () => ListClustersOutput$
311
411
  ];
412
+ export var ListStreams$ = [9, n0, _LS,
413
+ { [_h]: ["GET", "/stream/{clusterIdentifier}", 200] }, () => ListStreamsInput$, () => ListStreamsOutput$
414
+ ];
312
415
  export var ListTagsForResource$ = [9, n0, _LTFR,
313
416
  { [_h]: ["GET", "/tags/{resourceArn}", 200] }, () => ListTagsForResourceInput$, () => ListTagsForResourceOutput$
314
417
  ];
@@ -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 { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
2
  import { GetClusterCommand, } from "../commands/GetClusterCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
@@ -1,4 +1,4 @@
1
- import { checkExceptions, createWaiter, WaiterState, } from "@smithy/util-waiter";
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
2
  import { GetClusterCommand, } from "../commands/GetClusterCommand";
3
3
  const checkState = async (client, input) => {
4
4
  let reason;
@@ -0,0 +1,31 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { GetStreamCommand, } from "../commands/GetStreamCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetStreamCommand(input));
7
+ reason = result;
8
+ try {
9
+ const returnComparator = () => {
10
+ return result.status;
11
+ };
12
+ if (returnComparator() === "ACTIVE") {
13
+ return { state: WaiterState.SUCCESS, reason };
14
+ }
15
+ }
16
+ catch (e) { }
17
+ }
18
+ catch (exception) {
19
+ reason = exception;
20
+ }
21
+ return { state: WaiterState.RETRY, reason };
22
+ };
23
+ export const waitForStreamActive = async (params, input) => {
24
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
25
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
26
+ };
27
+ export const waitUntilStreamActive = async (params, input) => {
28
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
29
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
30
+ return checkExceptions(result);
31
+ };
@@ -0,0 +1,25 @@
1
+ import { checkExceptions, createWaiter, WaiterState, } from "@smithy/core/client";
2
+ import { GetStreamCommand, } from "../commands/GetStreamCommand";
3
+ const checkState = async (client, input) => {
4
+ let reason;
5
+ try {
6
+ let result = await client.send(new GetStreamCommand(input));
7
+ reason = result;
8
+ }
9
+ catch (exception) {
10
+ reason = exception;
11
+ if (exception.name === "ResourceNotFoundException") {
12
+ return { state: WaiterState.SUCCESS, reason };
13
+ }
14
+ }
15
+ return { state: WaiterState.RETRY, reason };
16
+ };
17
+ export const waitForStreamNotExists = async (params, input) => {
18
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
19
+ return createWaiter({ ...serviceDefaults, ...params }, input, checkState);
20
+ };
21
+ export const waitUntilStreamNotExists = async (params, input) => {
22
+ const serviceDefaults = { minDelay: 2, maxDelay: 120 };
23
+ const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState);
24
+ return checkExceptions(result);
25
+ };