@aws-sdk/client-dsql 3.705.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +201 -0
- package/README.md +294 -0
- package/dist-cjs/DSQL.js +31 -0
- package/dist-cjs/DSQLClient.js +50 -0
- package/dist-cjs/auth/httpAuthExtensionConfiguration.js +43 -0
- package/dist-cjs/auth/httpAuthSchemeProvider.js +47 -0
- package/dist-cjs/commands/CreateClusterCommand.js +26 -0
- package/dist-cjs/commands/CreateMultiRegionClustersCommand.js +26 -0
- package/dist-cjs/commands/DeleteClusterCommand.js +26 -0
- package/dist-cjs/commands/DeleteMultiRegionClustersCommand.js +26 -0
- package/dist-cjs/commands/GetClusterCommand.js +26 -0
- package/dist-cjs/commands/ListClustersCommand.js +26 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +26 -0
- package/dist-cjs/commands/TagResourceCommand.js +26 -0
- package/dist-cjs/commands/UntagResourceCommand.js +26 -0
- package/dist-cjs/commands/UpdateClusterCommand.js +26 -0
- package/dist-cjs/commands/index.js +13 -0
- package/dist-cjs/endpoint/EndpointParameters.js +16 -0
- package/dist-cjs/endpoint/endpointResolver.js +18 -0
- package/dist-cjs/endpoint/ruleset.js +7 -0
- package/dist-cjs/extensionConfiguration.js +2 -0
- package/dist-cjs/index.js +12 -0
- package/dist-cjs/models/DSQLServiceException.js +12 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +128 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListClustersPaginator.js +7 -0
- package/dist-cjs/pagination/index.js +5 -0
- package/dist-cjs/protocols/Aws_restJson1.js +467 -0
- package/dist-cjs/runtimeConfig.browser.js +39 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +34 -0
- package/dist-cjs/runtimeExtensions.js +25 -0
- package/dist-cjs/waiters/index.js +5 -0
- package/dist-cjs/waiters/waitForClusterActive.js +36 -0
- package/dist-cjs/waiters/waitForClusterNotExists.js +30 -0
- package/dist-es/DSQL.js +27 -0
- package/dist-es/DSQLClient.js +46 -0
- package/dist-es/auth/httpAuthExtensionConfiguration.js +38 -0
- package/dist-es/auth/httpAuthSchemeProvider.js +41 -0
- package/dist-es/commands/CreateClusterCommand.js +22 -0
- package/dist-es/commands/CreateMultiRegionClustersCommand.js +22 -0
- package/dist-es/commands/DeleteClusterCommand.js +22 -0
- package/dist-es/commands/DeleteMultiRegionClustersCommand.js +22 -0
- package/dist-es/commands/GetClusterCommand.js +22 -0
- package/dist-es/commands/ListClustersCommand.js +22 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +22 -0
- package/dist-es/commands/TagResourceCommand.js +22 -0
- package/dist-es/commands/UntagResourceCommand.js +22 -0
- package/dist-es/commands/UpdateClusterCommand.js +22 -0
- package/dist-es/commands/index.js +10 -0
- package/dist-es/endpoint/EndpointParameters.js +12 -0
- package/dist-es/endpoint/endpointResolver.js +14 -0
- package/dist-es/endpoint/ruleset.js +4 -0
- package/dist-es/extensionConfiguration.js +1 -0
- package/dist-es/index.js +7 -0
- package/dist-es/models/DSQLServiceException.js +8 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +118 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListClustersPaginator.js +4 -0
- package/dist-es/pagination/index.js +2 -0
- package/dist-es/protocols/Aws_restJson1.js +444 -0
- package/dist-es/runtimeConfig.browser.js +34 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +30 -0
- package/dist-es/runtimeExtensions.js +21 -0
- package/dist-es/waiters/index.js +2 -0
- package/dist-es/waiters/waitForClusterActive.js +31 -0
- package/dist-es/waiters/waitForClusterNotExists.js +25 -0
- package/dist-types/DSQL.d.ts +91 -0
- package/dist-types/DSQLClient.d.ts +188 -0
- package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +29 -0
- package/dist-types/auth/httpAuthSchemeProvider.d.ts +61 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +98 -0
- package/dist-types/commands/CreateMultiRegionClustersCommand.d.ts +107 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +95 -0
- package/dist-types/commands/DeleteMultiRegionClustersCommand.d.ts +91 -0
- package/dist-types/commands/GetClusterCommand.d.ts +95 -0
- package/dist-types/commands/ListClustersCommand.d.ts +94 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +89 -0
- package/dist-types/commands/TagResourceCommand.d.ts +91 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +88 -0
- package/dist-types/commands/UpdateClusterCommand.d.ts +100 -0
- package/dist-types/commands/index.d.ts +10 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +34 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/extensionConfiguration.d.ts +9 -0
- package/dist-types/index.d.ts +24 -0
- package/dist-types/models/DSQLServiceException.d.ts +14 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +624 -0
- package/dist-types/pagination/Interfaces.d.ts +8 -0
- package/dist-types/pagination/ListClustersPaginator.d.ts +7 -0
- package/dist-types/pagination/index.d.ts +2 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +92 -0
- package/dist-types/runtimeConfig.browser.d.ts +48 -0
- package/dist-types/runtimeConfig.d.ts +48 -0
- package/dist-types/runtimeConfig.native.d.ts +47 -0
- package/dist-types/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/runtimeExtensions.d.ts +17 -0
- package/dist-types/ts3.4/DSQL.d.ts +177 -0
- package/dist-types/ts3.4/DSQLClient.d.ts +178 -0
- package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +32 -0
- package/dist-types/ts3.4/auth/httpAuthSchemeProvider.d.ts +43 -0
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/CreateMultiRegionClustersCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/DeleteMultiRegionClustersCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +51 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +45 -0
- package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +47 -0
- package/dist-types/ts3.4/commands/index.d.ts +10 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +45 -0
- package/dist-types/ts3.4/endpoint/endpointResolver.d.ts +8 -0
- package/dist-types/ts3.4/endpoint/ruleset.d.ts +2 -0
- package/dist-types/ts3.4/extensionConfiguration.d.ts +9 -0
- package/dist-types/ts3.4/index.d.ts +10 -0
- package/dist-types/ts3.4/models/DSQLServiceException.d.ts +9 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +181 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +5 -0
- package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +2 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +125 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +93 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +94 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +87 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +21 -0
- package/dist-types/ts3.4/runtimeExtensions.d.ts +11 -0
- package/dist-types/ts3.4/waiters/index.d.ts +2 -0
- package/dist-types/ts3.4/waiters/waitForClusterActive.d.ts +11 -0
- package/dist-types/ts3.4/waiters/waitForClusterNotExists.d.ts +11 -0
- package/dist-types/waiters/index.d.ts +2 -0
- package/dist-types/waiters/waitForClusterActive.d.ts +14 -0
- package/dist-types/waiters/waitForClusterNotExists.d.ts +14 -0
- package/package.json +104 -0
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { Command as $Command } from "@smithy/smithy-client";
|
|
2
|
+
import { MetadataBearer as __MetadataBearer } from "@smithy/types";
|
|
3
|
+
import { DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DSQLClient";
|
|
4
|
+
import { UpdateClusterInput, UpdateClusterOutput } from "../models/models_0";
|
|
5
|
+
/**
|
|
6
|
+
* @public
|
|
7
|
+
*/
|
|
8
|
+
export type { __MetadataBearer };
|
|
9
|
+
export { $Command };
|
|
10
|
+
/**
|
|
11
|
+
* @public
|
|
12
|
+
*
|
|
13
|
+
* The input for {@link UpdateClusterCommand}.
|
|
14
|
+
*/
|
|
15
|
+
export interface UpdateClusterCommandInput extends UpdateClusterInput {
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @public
|
|
19
|
+
*
|
|
20
|
+
* The output of {@link UpdateClusterCommand}.
|
|
21
|
+
*/
|
|
22
|
+
export interface UpdateClusterCommandOutput extends UpdateClusterOutput, __MetadataBearer {
|
|
23
|
+
}
|
|
24
|
+
declare const UpdateClusterCommand_base: {
|
|
25
|
+
new (input: UpdateClusterCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateClusterCommandInput, UpdateClusterCommandOutput, DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
26
|
+
new (__0_0: UpdateClusterCommandInput): import("@smithy/smithy-client").CommandImpl<UpdateClusterCommandInput, UpdateClusterCommandOutput, DSQLClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
|
|
27
|
+
getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* <p>Updates a cluster.</p>
|
|
31
|
+
* @example
|
|
32
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
33
|
+
* ```javascript
|
|
34
|
+
* import { DSQLClient, UpdateClusterCommand } from "@aws-sdk/client-dsql"; // ES Modules import
|
|
35
|
+
* // const { DSQLClient, UpdateClusterCommand } = require("@aws-sdk/client-dsql"); // CommonJS import
|
|
36
|
+
* const client = new DSQLClient(config);
|
|
37
|
+
* const input = { // UpdateClusterInput
|
|
38
|
+
* identifier: "STRING_VALUE", // required
|
|
39
|
+
* deletionProtectionEnabled: true || false,
|
|
40
|
+
* clientToken: "STRING_VALUE",
|
|
41
|
+
* };
|
|
42
|
+
* const command = new UpdateClusterCommand(input);
|
|
43
|
+
* const response = await client.send(command);
|
|
44
|
+
* // { // UpdateClusterOutput
|
|
45
|
+
* // identifier: "STRING_VALUE", // required
|
|
46
|
+
* // arn: "STRING_VALUE", // required
|
|
47
|
+
* // status: "CREATING" || "ACTIVE" || "UPDATING" || "DELETING" || "DELETED" || "FAILED", // required
|
|
48
|
+
* // creationTime: new Date("TIMESTAMP"), // required
|
|
49
|
+
* // deletionProtectionEnabled: true || false, // required
|
|
50
|
+
* // witnessRegion: "STRING_VALUE",
|
|
51
|
+
* // linkedClusterArns: [ // ClusterArnList
|
|
52
|
+
* // "STRING_VALUE",
|
|
53
|
+
* // ],
|
|
54
|
+
* // };
|
|
55
|
+
*
|
|
56
|
+
* ```
|
|
57
|
+
*
|
|
58
|
+
* @param UpdateClusterCommandInput - {@link UpdateClusterCommandInput}
|
|
59
|
+
* @returns {@link UpdateClusterCommandOutput}
|
|
60
|
+
* @see {@link UpdateClusterCommandInput} for command's `input` shape.
|
|
61
|
+
* @see {@link UpdateClusterCommandOutput} for command's `response` shape.
|
|
62
|
+
* @see {@link DSQLClientResolvedConfig | config} for DSQLClient's `config` shape.
|
|
63
|
+
*
|
|
64
|
+
* @throws {@link ConflictException} (client fault)
|
|
65
|
+
* <p>The submitted action has conflicts.</p>
|
|
66
|
+
*
|
|
67
|
+
* @throws {@link ResourceNotFoundException} (client fault)
|
|
68
|
+
* <p>The resource could not be found.</p>
|
|
69
|
+
*
|
|
70
|
+
* @throws {@link AccessDeniedException} (client fault)
|
|
71
|
+
* <p>You do not have sufficient access to perform this action.</p>
|
|
72
|
+
*
|
|
73
|
+
* @throws {@link InternalServerException} (server fault)
|
|
74
|
+
* <p>The request processing has failed because of an unknown error,
|
|
75
|
+
* exception or failure.</p>
|
|
76
|
+
*
|
|
77
|
+
* @throws {@link ThrottlingException} (client fault)
|
|
78
|
+
* <p>The request was denied due to request throttling.</p>
|
|
79
|
+
*
|
|
80
|
+
* @throws {@link ValidationException} (client fault)
|
|
81
|
+
* <p>The input failed to satisfy the constraints specified by an Amazon Web Services service.</p>
|
|
82
|
+
*
|
|
83
|
+
* @throws {@link DSQLServiceException}
|
|
84
|
+
* <p>Base exception class for all service exceptions from DSQL service.</p>
|
|
85
|
+
*
|
|
86
|
+
* @public
|
|
87
|
+
*/
|
|
88
|
+
export declare class UpdateClusterCommand extends UpdateClusterCommand_base {
|
|
89
|
+
/** @internal type navigation helper, not in runtime. */
|
|
90
|
+
protected static __types: {
|
|
91
|
+
api: {
|
|
92
|
+
input: UpdateClusterInput;
|
|
93
|
+
output: UpdateClusterOutput;
|
|
94
|
+
};
|
|
95
|
+
sdk: {
|
|
96
|
+
input: UpdateClusterCommandInput;
|
|
97
|
+
output: UpdateClusterCommandOutput;
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from "./CreateClusterCommand";
|
|
2
|
+
export * from "./CreateMultiRegionClustersCommand";
|
|
3
|
+
export * from "./DeleteClusterCommand";
|
|
4
|
+
export * from "./DeleteMultiRegionClustersCommand";
|
|
5
|
+
export * from "./GetClusterCommand";
|
|
6
|
+
export * from "./ListClustersCommand";
|
|
7
|
+
export * from "./ListTagsForResourceCommand";
|
|
8
|
+
export * from "./TagResourceCommand";
|
|
9
|
+
export * from "./UntagResourceCommand";
|
|
10
|
+
export * from "./UpdateClusterCommand";
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
|
|
2
|
+
/**
|
|
3
|
+
* @public
|
|
4
|
+
*/
|
|
5
|
+
export interface ClientInputEndpointParameters {
|
|
6
|
+
useFipsEndpoint?: boolean | Provider<boolean>;
|
|
7
|
+
endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
|
|
8
|
+
region?: string | Provider<string>;
|
|
9
|
+
}
|
|
10
|
+
export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & {
|
|
11
|
+
defaultSigningName: string;
|
|
12
|
+
};
|
|
13
|
+
export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & {
|
|
14
|
+
defaultSigningName: string;
|
|
15
|
+
};
|
|
16
|
+
export declare const commonParams: {
|
|
17
|
+
readonly UseFIPS: {
|
|
18
|
+
readonly type: "builtInParams";
|
|
19
|
+
readonly name: "useFipsEndpoint";
|
|
20
|
+
};
|
|
21
|
+
readonly Endpoint: {
|
|
22
|
+
readonly type: "builtInParams";
|
|
23
|
+
readonly name: "endpoint";
|
|
24
|
+
};
|
|
25
|
+
readonly Region: {
|
|
26
|
+
readonly type: "builtInParams";
|
|
27
|
+
readonly name: "region";
|
|
28
|
+
};
|
|
29
|
+
};
|
|
30
|
+
export interface EndpointParameters extends __EndpointParameters {
|
|
31
|
+
UseFIPS?: boolean;
|
|
32
|
+
Endpoint?: string;
|
|
33
|
+
Region?: string;
|
|
34
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
|
|
2
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
3
|
+
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
4
|
+
import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
|
|
5
|
+
/**
|
|
6
|
+
* @internal
|
|
7
|
+
*/
|
|
8
|
+
export interface DSQLExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration, HttpAuthExtensionConfiguration {
|
|
9
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* <p>This is an interface reference for Amazon Aurora DSQL.
|
|
3
|
+
* It contains documentation for one of the programming or
|
|
4
|
+
* command line interfaces you can use to manage Amazon Aurora DSQL.</p>
|
|
5
|
+
* <p>Amazon Aurora DSQL is a serverless, distributed SQL
|
|
6
|
+
* database suitable for workloads of any size. Aurora DSQL
|
|
7
|
+
* is available in both single-Region and multi-Region configurations,
|
|
8
|
+
* so your clusters and databases are always available even if an
|
|
9
|
+
* Availability Zone or an Amazon Web Services Region are unavailable. Aurora DSQL
|
|
10
|
+
* lets you focus on using your data to acquire new insights for your
|
|
11
|
+
* business and customers.</p>
|
|
12
|
+
*
|
|
13
|
+
* @packageDocumentation
|
|
14
|
+
*/
|
|
15
|
+
export * from "./DSQLClient";
|
|
16
|
+
export * from "./DSQL";
|
|
17
|
+
export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
|
|
18
|
+
export type { RuntimeExtension } from "./runtimeExtensions";
|
|
19
|
+
export type { DSQLExtensionConfiguration } from "./extensionConfiguration";
|
|
20
|
+
export * from "./commands";
|
|
21
|
+
export * from "./pagination";
|
|
22
|
+
export * from "./waiters";
|
|
23
|
+
export * from "./models";
|
|
24
|
+
export { DSQLServiceException } from "./models/DSQLServiceException";
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
|
|
2
|
+
export type { __ServiceExceptionOptions };
|
|
3
|
+
export { __ServiceException };
|
|
4
|
+
/**
|
|
5
|
+
* @public
|
|
6
|
+
*
|
|
7
|
+
* Base exception class for all service exceptions from DSQL service.
|
|
8
|
+
*/
|
|
9
|
+
export declare class DSQLServiceException extends __ServiceException {
|
|
10
|
+
/**
|
|
11
|
+
* @internal
|
|
12
|
+
*/
|
|
13
|
+
constructor(options: __ServiceExceptionOptions);
|
|
14
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./models_0";
|