@aws-sdk/client-docdb-elastic 3.221.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 +205 -0
- package/dist-cjs/DocDBElastic.js +202 -0
- package/dist-cjs/DocDBElasticClient.js +40 -0
- package/dist-cjs/commands/CreateClusterCommand.js +46 -0
- package/dist-cjs/commands/CreateClusterSnapshotCommand.js +46 -0
- package/dist-cjs/commands/DeleteClusterCommand.js +46 -0
- package/dist-cjs/commands/DeleteClusterSnapshotCommand.js +46 -0
- package/dist-cjs/commands/GetClusterCommand.js +46 -0
- package/dist-cjs/commands/GetClusterSnapshotCommand.js +46 -0
- package/dist-cjs/commands/ListClusterSnapshotsCommand.js +46 -0
- package/dist-cjs/commands/ListClustersCommand.js +46 -0
- package/dist-cjs/commands/ListTagsForResourceCommand.js +46 -0
- package/dist-cjs/commands/RestoreClusterFromSnapshotCommand.js +46 -0
- package/dist-cjs/commands/TagResourceCommand.js +46 -0
- package/dist-cjs/commands/UntagResourceCommand.js +46 -0
- package/dist-cjs/commands/UpdateClusterCommand.js +46 -0
- package/dist-cjs/commands/index.js +16 -0
- package/dist-cjs/endpoint/EndpointParameters.js +12 -0
- package/dist-cjs/endpoint/endpointResolver.js +12 -0
- package/dist-cjs/endpoint/ruleset.js +312 -0
- package/dist-cjs/index.js +11 -0
- package/dist-cjs/models/DocDBElasticServiceException.js +11 -0
- package/dist-cjs/models/index.js +4 -0
- package/dist-cjs/models/models_0.js +255 -0
- package/dist-cjs/pagination/Interfaces.js +2 -0
- package/dist-cjs/pagination/ListClusterSnapshotsPaginator.js +36 -0
- package/dist-cjs/pagination/ListClustersPaginator.js +36 -0
- package/dist-cjs/pagination/index.js +6 -0
- package/dist-cjs/protocols/Aws_restJson1.js +1197 -0
- package/dist-cjs/runtimeConfig.browser.js +42 -0
- package/dist-cjs/runtimeConfig.js +50 -0
- package/dist-cjs/runtimeConfig.native.js +15 -0
- package/dist-cjs/runtimeConfig.shared.js +18 -0
- package/dist-es/DocDBElastic.js +198 -0
- package/dist-es/DocDBElasticClient.js +36 -0
- package/dist-es/commands/CreateClusterCommand.js +42 -0
- package/dist-es/commands/CreateClusterSnapshotCommand.js +42 -0
- package/dist-es/commands/DeleteClusterCommand.js +42 -0
- package/dist-es/commands/DeleteClusterSnapshotCommand.js +42 -0
- package/dist-es/commands/GetClusterCommand.js +42 -0
- package/dist-es/commands/GetClusterSnapshotCommand.js +42 -0
- package/dist-es/commands/ListClusterSnapshotsCommand.js +42 -0
- package/dist-es/commands/ListClustersCommand.js +42 -0
- package/dist-es/commands/ListTagsForResourceCommand.js +42 -0
- package/dist-es/commands/RestoreClusterFromSnapshotCommand.js +42 -0
- package/dist-es/commands/TagResourceCommand.js +42 -0
- package/dist-es/commands/UntagResourceCommand.js +42 -0
- package/dist-es/commands/UpdateClusterCommand.js +42 -0
- package/dist-es/commands/index.js +13 -0
- package/dist-es/endpoint/EndpointParameters.js +8 -0
- package/dist-es/endpoint/endpointResolver.js +8 -0
- package/dist-es/endpoint/ruleset.js +309 -0
- package/dist-es/index.js +6 -0
- package/dist-es/models/DocDBElasticServiceException.js +7 -0
- package/dist-es/models/index.js +1 -0
- package/dist-es/models/models_0.js +214 -0
- package/dist-es/pagination/Interfaces.js +1 -0
- package/dist-es/pagination/ListClusterSnapshotsPaginator.js +32 -0
- package/dist-es/pagination/ListClustersPaginator.js +32 -0
- package/dist-es/pagination/index.js +3 -0
- package/dist-es/protocols/Aws_restJson1.js +1168 -0
- package/dist-es/runtimeConfig.browser.js +37 -0
- package/dist-es/runtimeConfig.js +45 -0
- package/dist-es/runtimeConfig.native.js +11 -0
- package/dist-es/runtimeConfig.shared.js +14 -0
- package/dist-types/DocDBElastic.d.ts +99 -0
- package/dist-types/DocDBElasticClient.d.ts +154 -0
- package/dist-types/commands/CreateClusterCommand.d.ts +37 -0
- package/dist-types/commands/CreateClusterSnapshotCommand.d.ts +37 -0
- package/dist-types/commands/DeleteClusterCommand.d.ts +37 -0
- package/dist-types/commands/DeleteClusterSnapshotCommand.d.ts +37 -0
- package/dist-types/commands/GetClusterCommand.d.ts +37 -0
- package/dist-types/commands/GetClusterSnapshotCommand.d.ts +37 -0
- package/dist-types/commands/ListClusterSnapshotsCommand.d.ts +37 -0
- package/dist-types/commands/ListClustersCommand.d.ts +37 -0
- package/dist-types/commands/ListTagsForResourceCommand.d.ts +37 -0
- package/dist-types/commands/RestoreClusterFromSnapshotCommand.d.ts +37 -0
- package/dist-types/commands/TagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/commands/UpdateClusterCommand.d.ts +38 -0
- package/dist-types/commands/index.d.ts +13 -0
- package/dist-types/endpoint/EndpointParameters.d.ts +19 -0
- package/dist-types/endpoint/endpointResolver.d.ts +5 -0
- package/dist-types/endpoint/ruleset.d.ts +2 -0
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/DocDBElasticServiceException.d.ts +10 -0
- package/dist-types/models/index.d.ts +1 -0
- package/dist-types/models/models_0.d.ts +782 -0
- package/dist-types/pagination/Interfaces.d.ts +6 -0
- package/dist-types/pagination/ListClusterSnapshotsPaginator.d.ts +4 -0
- package/dist-types/pagination/ListClustersPaginator.d.ts +4 -0
- package/dist-types/pagination/index.d.ts +3 -0
- package/dist-types/protocols/Aws_restJson1.d.ts +41 -0
- package/dist-types/runtimeConfig.browser.d.ts +42 -0
- package/dist-types/runtimeConfig.d.ts +42 -0
- package/dist-types/runtimeConfig.native.d.ts +41 -0
- package/dist-types/runtimeConfig.shared.d.ts +16 -0
- package/dist-types/ts3.4/DocDBElastic.d.ts +225 -0
- package/dist-types/ts3.4/DocDBElasticClient.d.ts +190 -0
- package/dist-types/ts3.4/commands/CreateClusterCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/CreateClusterSnapshotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/DeleteClusterCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/DeleteClusterSnapshotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/GetClusterCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/GetClusterSnapshotCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/ListClusterSnapshotsCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/ListClustersCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +38 -0
- package/dist-types/ts3.4/commands/RestoreClusterFromSnapshotCommand.d.ts +41 -0
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +37 -0
- package/dist-types/ts3.4/commands/UpdateClusterCommand.d.ts +34 -0
- package/dist-types/ts3.4/commands/index.d.ts +13 -0
- package/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +34 -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/index.d.ts +6 -0
- package/dist-types/ts3.4/models/DocDBElasticServiceException.d.ts +7 -0
- package/dist-types/ts3.4/models/index.d.ts +1 -0
- package/dist-types/ts3.4/models/models_0.d.ts +320 -0
- package/dist-types/ts3.4/pagination/Interfaces.d.ts +7 -0
- package/dist-types/ts3.4/pagination/ListClusterSnapshotsPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/ListClustersPaginator.d.ts +11 -0
- package/dist-types/ts3.4/pagination/index.d.ts +3 -0
- package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +161 -0
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.d.ts +88 -0
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +77 -0
- package/dist-types/ts3.4/runtimeConfig.shared.d.ts +16 -0
- package/package.json +103 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { Sha256 } from "@aws-crypto/sha256-browser";
|
|
3
|
+
import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { FetchHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/fetch-http-handler";
|
|
5
|
+
import { invalidProvider } from "@aws-sdk/invalid-dependency";
|
|
6
|
+
import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-browser";
|
|
8
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser";
|
|
9
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-browser";
|
|
10
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
11
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
12
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-browser";
|
|
13
|
+
export const getRuntimeConfig = (config) => {
|
|
14
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
15
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
16
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
17
|
+
return {
|
|
18
|
+
...clientSharedValues,
|
|
19
|
+
...config,
|
|
20
|
+
runtime: "browser",
|
|
21
|
+
defaultsMode,
|
|
22
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
23
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))),
|
|
24
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
25
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
26
|
+
maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS,
|
|
27
|
+
region: config?.region ?? invalidProvider("Region is missing"),
|
|
28
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
29
|
+
retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE),
|
|
30
|
+
sha256: config?.sha256 ?? Sha256,
|
|
31
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
32
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)),
|
|
33
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)),
|
|
34
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
35
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import packageInfo from "../package.json";
|
|
2
|
+
import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts";
|
|
3
|
+
import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@aws-sdk/config-resolver";
|
|
4
|
+
import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node";
|
|
5
|
+
import { Hash } from "@aws-sdk/hash-node";
|
|
6
|
+
import { DEFAULT_RETRY_MODE, NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS, } from "@aws-sdk/middleware-retry";
|
|
7
|
+
import { loadConfig as loadNodeConfig } from "@aws-sdk/node-config-provider";
|
|
8
|
+
import { NodeHttpHandler as RequestHandler, streamCollector } from "@aws-sdk/node-http-handler";
|
|
9
|
+
import { calculateBodyLength } from "@aws-sdk/util-body-length-node";
|
|
10
|
+
import { defaultUserAgent } from "@aws-sdk/util-user-agent-node";
|
|
11
|
+
import { fromUtf8, toUtf8 } from "@aws-sdk/util-utf8-node";
|
|
12
|
+
import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
|
|
13
|
+
import { loadConfigsForDefaultMode } from "@aws-sdk/smithy-client";
|
|
14
|
+
import { resolveDefaultsModeConfig } from "@aws-sdk/util-defaults-mode-node";
|
|
15
|
+
import { emitWarningIfUnsupportedVersion } from "@aws-sdk/smithy-client";
|
|
16
|
+
export const getRuntimeConfig = (config) => {
|
|
17
|
+
emitWarningIfUnsupportedVersion(process.version);
|
|
18
|
+
const defaultsMode = resolveDefaultsModeConfig(config);
|
|
19
|
+
const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
|
|
20
|
+
const clientSharedValues = getSharedRuntimeConfig(config);
|
|
21
|
+
return {
|
|
22
|
+
...clientSharedValues,
|
|
23
|
+
...config,
|
|
24
|
+
runtime: "node",
|
|
25
|
+
defaultsMode,
|
|
26
|
+
bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength,
|
|
27
|
+
credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider),
|
|
28
|
+
defaultUserAgentProvider: config?.defaultUserAgentProvider ??
|
|
29
|
+
defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }),
|
|
30
|
+
maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS),
|
|
31
|
+
region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS),
|
|
32
|
+
requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider),
|
|
33
|
+
retryMode: config?.retryMode ??
|
|
34
|
+
loadNodeConfig({
|
|
35
|
+
...NODE_RETRY_MODE_CONFIG_OPTIONS,
|
|
36
|
+
default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE,
|
|
37
|
+
}),
|
|
38
|
+
sha256: config?.sha256 ?? Hash.bind(null, "sha256"),
|
|
39
|
+
streamCollector: config?.streamCollector ?? streamCollector,
|
|
40
|
+
useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS),
|
|
41
|
+
useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS),
|
|
42
|
+
utf8Decoder: config?.utf8Decoder ?? fromUtf8,
|
|
43
|
+
utf8Encoder: config?.utf8Encoder ?? toUtf8,
|
|
44
|
+
};
|
|
45
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Sha256 } from "@aws-crypto/sha256-js";
|
|
2
|
+
import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser";
|
|
3
|
+
export const getRuntimeConfig = (config) => {
|
|
4
|
+
const browserDefaults = getBrowserRuntimeConfig(config);
|
|
5
|
+
return {
|
|
6
|
+
...browserDefaults,
|
|
7
|
+
...config,
|
|
8
|
+
runtime: "react-native",
|
|
9
|
+
sha256: config?.sha256 ?? Sha256,
|
|
10
|
+
};
|
|
11
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { NoOpLogger } from "@aws-sdk/smithy-client";
|
|
2
|
+
import { parseUrl } from "@aws-sdk/url-parser";
|
|
3
|
+
import { fromBase64, toBase64 } from "@aws-sdk/util-base64";
|
|
4
|
+
import { defaultEndpointResolver } from "./endpoint/endpointResolver";
|
|
5
|
+
export const getRuntimeConfig = (config) => ({
|
|
6
|
+
apiVersion: "2022-11-28",
|
|
7
|
+
base64Decoder: config?.base64Decoder ?? fromBase64,
|
|
8
|
+
base64Encoder: config?.base64Encoder ?? toBase64,
|
|
9
|
+
disableHostPrefix: config?.disableHostPrefix ?? false,
|
|
10
|
+
endpointProvider: config?.endpointProvider ?? defaultEndpointResolver,
|
|
11
|
+
logger: config?.logger ?? new NoOpLogger(),
|
|
12
|
+
serviceId: config?.serviceId ?? "DocDB Elastic",
|
|
13
|
+
urlParser: config?.urlParser ?? parseUrl,
|
|
14
|
+
});
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { HttpHandlerOptions as __HttpHandlerOptions } from "@aws-sdk/types";
|
|
2
|
+
import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
|
|
3
|
+
import { CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput } from "./commands/CreateClusterSnapshotCommand";
|
|
4
|
+
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
|
|
5
|
+
import { DeleteClusterSnapshotCommandInput, DeleteClusterSnapshotCommandOutput } from "./commands/DeleteClusterSnapshotCommand";
|
|
6
|
+
import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
|
|
7
|
+
import { GetClusterSnapshotCommandInput, GetClusterSnapshotCommandOutput } from "./commands/GetClusterSnapshotCommand";
|
|
8
|
+
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
9
|
+
import { ListClusterSnapshotsCommandInput, ListClusterSnapshotsCommandOutput } from "./commands/ListClusterSnapshotsCommand";
|
|
10
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
11
|
+
import { RestoreClusterFromSnapshotCommandInput, RestoreClusterFromSnapshotCommandOutput } from "./commands/RestoreClusterFromSnapshotCommand";
|
|
12
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
13
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
14
|
+
import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
|
|
15
|
+
import { DocDBElasticClient } from "./DocDBElasticClient";
|
|
16
|
+
/**
|
|
17
|
+
* <p>The new Amazon Elastic DocumentDB service endpoint.</p>
|
|
18
|
+
*/
|
|
19
|
+
export declare class DocDBElastic extends DocDBElasticClient {
|
|
20
|
+
/**
|
|
21
|
+
* <p>Creates a new Elastic DocumentDB cluster and returns its Cluster structure.</p>
|
|
22
|
+
*/
|
|
23
|
+
createCluster(args: CreateClusterCommandInput, options?: __HttpHandlerOptions): Promise<CreateClusterCommandOutput>;
|
|
24
|
+
createCluster(args: CreateClusterCommandInput, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
|
|
25
|
+
createCluster(args: CreateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateClusterCommandOutput) => void): void;
|
|
26
|
+
/**
|
|
27
|
+
* <p>Creates a snapshot of a cluster.</p>
|
|
28
|
+
*/
|
|
29
|
+
createClusterSnapshot(args: CreateClusterSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<CreateClusterSnapshotCommandOutput>;
|
|
30
|
+
createClusterSnapshot(args: CreateClusterSnapshotCommandInput, cb: (err: any, data?: CreateClusterSnapshotCommandOutput) => void): void;
|
|
31
|
+
createClusterSnapshot(args: CreateClusterSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateClusterSnapshotCommandOutput) => void): void;
|
|
32
|
+
/**
|
|
33
|
+
* <p>Delete a Elastic DocumentDB cluster.</p>
|
|
34
|
+
*/
|
|
35
|
+
deleteCluster(args: DeleteClusterCommandInput, options?: __HttpHandlerOptions): Promise<DeleteClusterCommandOutput>;
|
|
36
|
+
deleteCluster(args: DeleteClusterCommandInput, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
|
|
37
|
+
deleteCluster(args: DeleteClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteClusterCommandOutput) => void): void;
|
|
38
|
+
/**
|
|
39
|
+
* <p>Delete a Elastic DocumentDB snapshot.</p>
|
|
40
|
+
*/
|
|
41
|
+
deleteClusterSnapshot(args: DeleteClusterSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<DeleteClusterSnapshotCommandOutput>;
|
|
42
|
+
deleteClusterSnapshot(args: DeleteClusterSnapshotCommandInput, cb: (err: any, data?: DeleteClusterSnapshotCommandOutput) => void): void;
|
|
43
|
+
deleteClusterSnapshot(args: DeleteClusterSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteClusterSnapshotCommandOutput) => void): void;
|
|
44
|
+
/**
|
|
45
|
+
* <p>Returns information about a specific Elastic DocumentDB cluster.</p>
|
|
46
|
+
*/
|
|
47
|
+
getCluster(args: GetClusterCommandInput, options?: __HttpHandlerOptions): Promise<GetClusterCommandOutput>;
|
|
48
|
+
getCluster(args: GetClusterCommandInput, cb: (err: any, data?: GetClusterCommandOutput) => void): void;
|
|
49
|
+
getCluster(args: GetClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetClusterCommandOutput) => void): void;
|
|
50
|
+
/**
|
|
51
|
+
* <p>Returns information about a specific Elastic DocumentDB snapshot</p>
|
|
52
|
+
*/
|
|
53
|
+
getClusterSnapshot(args: GetClusterSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<GetClusterSnapshotCommandOutput>;
|
|
54
|
+
getClusterSnapshot(args: GetClusterSnapshotCommandInput, cb: (err: any, data?: GetClusterSnapshotCommandOutput) => void): void;
|
|
55
|
+
getClusterSnapshot(args: GetClusterSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetClusterSnapshotCommandOutput) => void): void;
|
|
56
|
+
/**
|
|
57
|
+
* <p>Returns information about provisioned Elastic DocumentDB clusters.</p>
|
|
58
|
+
*/
|
|
59
|
+
listClusters(args: ListClustersCommandInput, options?: __HttpHandlerOptions): Promise<ListClustersCommandOutput>;
|
|
60
|
+
listClusters(args: ListClustersCommandInput, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
|
|
61
|
+
listClusters(args: ListClustersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListClustersCommandOutput) => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* <p>Returns information about Elastic DocumentDB snapshots for a specified cluster.</p>
|
|
64
|
+
*/
|
|
65
|
+
listClusterSnapshots(args: ListClusterSnapshotsCommandInput, options?: __HttpHandlerOptions): Promise<ListClusterSnapshotsCommandOutput>;
|
|
66
|
+
listClusterSnapshots(args: ListClusterSnapshotsCommandInput, cb: (err: any, data?: ListClusterSnapshotsCommandOutput) => void): void;
|
|
67
|
+
listClusterSnapshots(args: ListClusterSnapshotsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListClusterSnapshotsCommandOutput) => void): void;
|
|
68
|
+
/**
|
|
69
|
+
* <p>Lists all tags on a Elastic DocumentDB resource</p>
|
|
70
|
+
*/
|
|
71
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise<ListTagsForResourceCommandOutput>;
|
|
72
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
73
|
+
listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void;
|
|
74
|
+
/**
|
|
75
|
+
* <p>Restores a Elastic DocumentDB cluster from a snapshot.</p>
|
|
76
|
+
*/
|
|
77
|
+
restoreClusterFromSnapshot(args: RestoreClusterFromSnapshotCommandInput, options?: __HttpHandlerOptions): Promise<RestoreClusterFromSnapshotCommandOutput>;
|
|
78
|
+
restoreClusterFromSnapshot(args: RestoreClusterFromSnapshotCommandInput, cb: (err: any, data?: RestoreClusterFromSnapshotCommandOutput) => void): void;
|
|
79
|
+
restoreClusterFromSnapshot(args: RestoreClusterFromSnapshotCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RestoreClusterFromSnapshotCommandOutput) => void): void;
|
|
80
|
+
/**
|
|
81
|
+
* <p>Adds metadata tags to a Elastic DocumentDB resource</p>
|
|
82
|
+
*/
|
|
83
|
+
tagResource(args: TagResourceCommandInput, options?: __HttpHandlerOptions): Promise<TagResourceCommandOutput>;
|
|
84
|
+
tagResource(args: TagResourceCommandInput, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
85
|
+
tagResource(args: TagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TagResourceCommandOutput) => void): void;
|
|
86
|
+
/**
|
|
87
|
+
* <p>Removes metadata tags to a Elastic DocumentDB resource</p>
|
|
88
|
+
*/
|
|
89
|
+
untagResource(args: UntagResourceCommandInput, options?: __HttpHandlerOptions): Promise<UntagResourceCommandOutput>;
|
|
90
|
+
untagResource(args: UntagResourceCommandInput, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
91
|
+
untagResource(args: UntagResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UntagResourceCommandOutput) => void): void;
|
|
92
|
+
/**
|
|
93
|
+
* <p>Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password,
|
|
94
|
+
* upgrading API version setting up a backup window and maintenance window</p>
|
|
95
|
+
*/
|
|
96
|
+
updateCluster(args: UpdateClusterCommandInput, options?: __HttpHandlerOptions): Promise<UpdateClusterCommandOutput>;
|
|
97
|
+
updateCluster(args: UpdateClusterCommandInput, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
|
|
98
|
+
updateCluster(args: UpdateClusterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateClusterCommandOutput) => void): void;
|
|
99
|
+
}
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
import { RegionInputConfig, RegionResolvedConfig } from "@aws-sdk/config-resolver";
|
|
2
|
+
import { EndpointInputConfig, EndpointResolvedConfig } from "@aws-sdk/middleware-endpoint";
|
|
3
|
+
import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
|
|
4
|
+
import { RetryInputConfig, RetryResolvedConfig } from "@aws-sdk/middleware-retry";
|
|
5
|
+
import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing";
|
|
6
|
+
import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
|
|
7
|
+
import { HttpHandler as __HttpHandler } from "@aws-sdk/protocol-http";
|
|
8
|
+
import { Client as __Client, DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@aws-sdk/smithy-client";
|
|
9
|
+
import { BodyLengthCalculator as __BodyLengthCalculator, Credentials as __Credentials, 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 "@aws-sdk/types";
|
|
10
|
+
import { CreateClusterCommandInput, CreateClusterCommandOutput } from "./commands/CreateClusterCommand";
|
|
11
|
+
import { CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput } from "./commands/CreateClusterSnapshotCommand";
|
|
12
|
+
import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "./commands/DeleteClusterCommand";
|
|
13
|
+
import { DeleteClusterSnapshotCommandInput, DeleteClusterSnapshotCommandOutput } from "./commands/DeleteClusterSnapshotCommand";
|
|
14
|
+
import { GetClusterCommandInput, GetClusterCommandOutput } from "./commands/GetClusterCommand";
|
|
15
|
+
import { GetClusterSnapshotCommandInput, GetClusterSnapshotCommandOutput } from "./commands/GetClusterSnapshotCommand";
|
|
16
|
+
import { ListClustersCommandInput, ListClustersCommandOutput } from "./commands/ListClustersCommand";
|
|
17
|
+
import { ListClusterSnapshotsCommandInput, ListClusterSnapshotsCommandOutput } from "./commands/ListClusterSnapshotsCommand";
|
|
18
|
+
import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand";
|
|
19
|
+
import { RestoreClusterFromSnapshotCommandInput, RestoreClusterFromSnapshotCommandOutput } from "./commands/RestoreClusterFromSnapshotCommand";
|
|
20
|
+
import { TagResourceCommandInput, TagResourceCommandOutput } from "./commands/TagResourceCommand";
|
|
21
|
+
import { UntagResourceCommandInput, UntagResourceCommandOutput } from "./commands/UntagResourceCommand";
|
|
22
|
+
import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "./commands/UpdateClusterCommand";
|
|
23
|
+
import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
|
|
24
|
+
export declare type ServiceInputTypes = CreateClusterCommandInput | CreateClusterSnapshotCommandInput | DeleteClusterCommandInput | DeleteClusterSnapshotCommandInput | GetClusterCommandInput | GetClusterSnapshotCommandInput | ListClusterSnapshotsCommandInput | ListClustersCommandInput | ListTagsForResourceCommandInput | RestoreClusterFromSnapshotCommandInput | TagResourceCommandInput | UntagResourceCommandInput | UpdateClusterCommandInput;
|
|
25
|
+
export declare type ServiceOutputTypes = CreateClusterCommandOutput | CreateClusterSnapshotCommandOutput | DeleteClusterCommandOutput | DeleteClusterSnapshotCommandOutput | GetClusterCommandOutput | GetClusterSnapshotCommandOutput | ListClusterSnapshotsCommandOutput | ListClustersCommandOutput | ListTagsForResourceCommandOutput | RestoreClusterFromSnapshotCommandOutput | TagResourceCommandOutput | UntagResourceCommandOutput | UpdateClusterCommandOutput;
|
|
26
|
+
export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> {
|
|
27
|
+
/**
|
|
28
|
+
* The HTTP handler to use. Fetch in browser and Https in Nodejs.
|
|
29
|
+
*/
|
|
30
|
+
requestHandler?: __HttpHandler;
|
|
31
|
+
/**
|
|
32
|
+
* A constructor for a class implementing the {@link __Hash} interface
|
|
33
|
+
* that computes the SHA-256 HMAC or checksum of a string or binary buffer.
|
|
34
|
+
* @internal
|
|
35
|
+
*/
|
|
36
|
+
sha256?: __HashConstructor;
|
|
37
|
+
/**
|
|
38
|
+
* The function that will be used to convert strings into HTTP endpoints.
|
|
39
|
+
* @internal
|
|
40
|
+
*/
|
|
41
|
+
urlParser?: __UrlParser;
|
|
42
|
+
/**
|
|
43
|
+
* A function that can calculate the length of a request body.
|
|
44
|
+
* @internal
|
|
45
|
+
*/
|
|
46
|
+
bodyLengthChecker?: __BodyLengthCalculator;
|
|
47
|
+
/**
|
|
48
|
+
* A function that converts a stream into an array of bytes.
|
|
49
|
+
* @internal
|
|
50
|
+
*/
|
|
51
|
+
streamCollector?: __StreamCollector;
|
|
52
|
+
/**
|
|
53
|
+
* The function that will be used to convert a base64-encoded string to a byte array.
|
|
54
|
+
* @internal
|
|
55
|
+
*/
|
|
56
|
+
base64Decoder?: __Decoder;
|
|
57
|
+
/**
|
|
58
|
+
* The function that will be used to convert binary data to a base64-encoded string.
|
|
59
|
+
* @internal
|
|
60
|
+
*/
|
|
61
|
+
base64Encoder?: __Encoder;
|
|
62
|
+
/**
|
|
63
|
+
* The function that will be used to convert a UTF8-encoded string to a byte array.
|
|
64
|
+
* @internal
|
|
65
|
+
*/
|
|
66
|
+
utf8Decoder?: __Decoder;
|
|
67
|
+
/**
|
|
68
|
+
* The function that will be used to convert binary data to a UTF-8 encoded string.
|
|
69
|
+
* @internal
|
|
70
|
+
*/
|
|
71
|
+
utf8Encoder?: __Encoder;
|
|
72
|
+
/**
|
|
73
|
+
* The runtime environment.
|
|
74
|
+
* @internal
|
|
75
|
+
*/
|
|
76
|
+
runtime?: string;
|
|
77
|
+
/**
|
|
78
|
+
* Disable dyanamically changing the endpoint of the client based on the hostPrefix
|
|
79
|
+
* trait of an operation.
|
|
80
|
+
*/
|
|
81
|
+
disableHostPrefix?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* Value for how many times a request will be made at most in case of retry.
|
|
84
|
+
*/
|
|
85
|
+
maxAttempts?: number | __Provider<number>;
|
|
86
|
+
/**
|
|
87
|
+
* Specifies which retry algorithm to use.
|
|
88
|
+
*/
|
|
89
|
+
retryMode?: string | __Provider<string>;
|
|
90
|
+
/**
|
|
91
|
+
* Optional logger for logging debug/info/warn/error.
|
|
92
|
+
*/
|
|
93
|
+
logger?: __Logger;
|
|
94
|
+
/**
|
|
95
|
+
* Enables IPv6/IPv4 dualstack endpoint.
|
|
96
|
+
*/
|
|
97
|
+
useDualstackEndpoint?: boolean | __Provider<boolean>;
|
|
98
|
+
/**
|
|
99
|
+
* Enables FIPS compatible endpoints.
|
|
100
|
+
*/
|
|
101
|
+
useFipsEndpoint?: boolean | __Provider<boolean>;
|
|
102
|
+
/**
|
|
103
|
+
* Unique service identifier.
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
serviceId?: string;
|
|
107
|
+
/**
|
|
108
|
+
* The AWS region to which this client will send requests
|
|
109
|
+
*/
|
|
110
|
+
region?: string | __Provider<string>;
|
|
111
|
+
/**
|
|
112
|
+
* Default credentials provider; Not available in browser runtime.
|
|
113
|
+
* @internal
|
|
114
|
+
*/
|
|
115
|
+
credentialDefaultProvider?: (input: any) => __Provider<__Credentials>;
|
|
116
|
+
/**
|
|
117
|
+
* The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header
|
|
118
|
+
* @internal
|
|
119
|
+
*/
|
|
120
|
+
defaultUserAgentProvider?: Provider<__UserAgent>;
|
|
121
|
+
/**
|
|
122
|
+
* The {@link DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK.
|
|
123
|
+
*/
|
|
124
|
+
defaultsMode?: DefaultsMode | Provider<DefaultsMode>;
|
|
125
|
+
}
|
|
126
|
+
declare type DocDBElasticClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig<EndpointParameters> & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters;
|
|
127
|
+
/**
|
|
128
|
+
* The configuration interface of DocDBElasticClient class constructor that set the region, credentials and other options.
|
|
129
|
+
*/
|
|
130
|
+
export interface DocDBElasticClientConfig extends DocDBElasticClientConfigType {
|
|
131
|
+
}
|
|
132
|
+
declare type DocDBElasticClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required<ClientDefaults> & RegionResolvedConfig & EndpointResolvedConfig<EndpointParameters> & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters;
|
|
133
|
+
/**
|
|
134
|
+
* The resolved configuration interface of DocDBElasticClient class. This is resolved and normalized from the {@link DocDBElasticClientConfig | constructor configuration interface}.
|
|
135
|
+
*/
|
|
136
|
+
export interface DocDBElasticClientResolvedConfig extends DocDBElasticClientResolvedConfigType {
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* <p>The new Amazon Elastic DocumentDB service endpoint.</p>
|
|
140
|
+
*/
|
|
141
|
+
export declare class DocDBElasticClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, DocDBElasticClientResolvedConfig> {
|
|
142
|
+
/**
|
|
143
|
+
* The resolved configuration of DocDBElasticClient class. This is resolved and normalized from the {@link DocDBElasticClientConfig | constructor configuration interface}.
|
|
144
|
+
*/
|
|
145
|
+
readonly config: DocDBElasticClientResolvedConfig;
|
|
146
|
+
constructor(configuration: DocDBElasticClientConfig);
|
|
147
|
+
/**
|
|
148
|
+
* Destroy underlying resources, like sockets. It's usually not necessary to do this.
|
|
149
|
+
* However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed.
|
|
150
|
+
* Otherwise, sockets might stay open for quite a long time before the server terminates them.
|
|
151
|
+
*/
|
|
152
|
+
destroy(): void;
|
|
153
|
+
}
|
|
154
|
+
export {};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
|
|
5
|
+
import { CreateClusterInput, CreateClusterOutput } from "../models/models_0";
|
|
6
|
+
export interface CreateClusterCommandInput extends CreateClusterInput {
|
|
7
|
+
}
|
|
8
|
+
export interface CreateClusterCommandOutput extends CreateClusterOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Creates a new Elastic DocumentDB cluster and returns its Cluster structure.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { DocDBElasticClient, CreateClusterCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
|
|
16
|
+
* // const { DocDBElasticClient, CreateClusterCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
|
|
17
|
+
* const client = new DocDBElasticClient(config);
|
|
18
|
+
* const command = new CreateClusterCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link CreateClusterCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link CreateClusterCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class CreateClusterCommand extends $Command<CreateClusterCommandInput, CreateClusterCommandOutput, DocDBElasticClientResolvedConfig> {
|
|
28
|
+
readonly input: CreateClusterCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: CreateClusterCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DocDBElasticClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateClusterCommandInput, CreateClusterCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
|
|
5
|
+
import { CreateClusterSnapshotInput, CreateClusterSnapshotOutput } from "../models/models_0";
|
|
6
|
+
export interface CreateClusterSnapshotCommandInput extends CreateClusterSnapshotInput {
|
|
7
|
+
}
|
|
8
|
+
export interface CreateClusterSnapshotCommandOutput extends CreateClusterSnapshotOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Creates a snapshot of a cluster.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { DocDBElasticClient, CreateClusterSnapshotCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
|
|
16
|
+
* // const { DocDBElasticClient, CreateClusterSnapshotCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
|
|
17
|
+
* const client = new DocDBElasticClient(config);
|
|
18
|
+
* const command = new CreateClusterSnapshotCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link CreateClusterSnapshotCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link CreateClusterSnapshotCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class CreateClusterSnapshotCommand extends $Command<CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput, DocDBElasticClientResolvedConfig> {
|
|
28
|
+
readonly input: CreateClusterSnapshotCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: CreateClusterSnapshotCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DocDBElasticClientResolvedConfig, options?: __HttpHandlerOptions): Handler<CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
|
|
5
|
+
import { DeleteClusterInput, DeleteClusterOutput } from "../models/models_0";
|
|
6
|
+
export interface DeleteClusterCommandInput extends DeleteClusterInput {
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteClusterCommandOutput extends DeleteClusterOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Delete a Elastic DocumentDB cluster.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { DocDBElasticClient, DeleteClusterCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
|
|
16
|
+
* // const { DocDBElasticClient, DeleteClusterCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
|
|
17
|
+
* const client = new DocDBElasticClient(config);
|
|
18
|
+
* const command = new DeleteClusterCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link DeleteClusterCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link DeleteClusterCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class DeleteClusterCommand extends $Command<DeleteClusterCommandInput, DeleteClusterCommandOutput, DocDBElasticClientResolvedConfig> {
|
|
28
|
+
readonly input: DeleteClusterCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: DeleteClusterCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DocDBElasticClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteClusterCommandInput, DeleteClusterCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
|
|
5
|
+
import { DeleteClusterSnapshotInput, DeleteClusterSnapshotOutput } from "../models/models_0";
|
|
6
|
+
export interface DeleteClusterSnapshotCommandInput extends DeleteClusterSnapshotInput {
|
|
7
|
+
}
|
|
8
|
+
export interface DeleteClusterSnapshotCommandOutput extends DeleteClusterSnapshotOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Delete a Elastic DocumentDB snapshot.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { DocDBElasticClient, DeleteClusterSnapshotCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
|
|
16
|
+
* // const { DocDBElasticClient, DeleteClusterSnapshotCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
|
|
17
|
+
* const client = new DocDBElasticClient(config);
|
|
18
|
+
* const command = new DeleteClusterSnapshotCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link DeleteClusterSnapshotCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link DeleteClusterSnapshotCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class DeleteClusterSnapshotCommand extends $Command<DeleteClusterSnapshotCommandInput, DeleteClusterSnapshotCommandOutput, DocDBElasticClientResolvedConfig> {
|
|
28
|
+
readonly input: DeleteClusterSnapshotCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: DeleteClusterSnapshotCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DocDBElasticClientResolvedConfig, options?: __HttpHandlerOptions): Handler<DeleteClusterSnapshotCommandInput, DeleteClusterSnapshotCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
|
|
5
|
+
import { GetClusterInput, GetClusterOutput } from "../models/models_0";
|
|
6
|
+
export interface GetClusterCommandInput extends GetClusterInput {
|
|
7
|
+
}
|
|
8
|
+
export interface GetClusterCommandOutput extends GetClusterOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Returns information about a specific Elastic DocumentDB cluster.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { DocDBElasticClient, GetClusterCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
|
|
16
|
+
* // const { DocDBElasticClient, GetClusterCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
|
|
17
|
+
* const client = new DocDBElasticClient(config);
|
|
18
|
+
* const command = new GetClusterCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link GetClusterCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link GetClusterCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class GetClusterCommand extends $Command<GetClusterCommandInput, GetClusterCommandOutput, DocDBElasticClientResolvedConfig> {
|
|
28
|
+
readonly input: GetClusterCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: GetClusterCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DocDBElasticClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetClusterCommandInput, GetClusterCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
|
|
5
|
+
import { GetClusterSnapshotInput, GetClusterSnapshotOutput } from "../models/models_0";
|
|
6
|
+
export interface GetClusterSnapshotCommandInput extends GetClusterSnapshotInput {
|
|
7
|
+
}
|
|
8
|
+
export interface GetClusterSnapshotCommandOutput extends GetClusterSnapshotOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Returns information about a specific Elastic DocumentDB snapshot</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { DocDBElasticClient, GetClusterSnapshotCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
|
|
16
|
+
* // const { DocDBElasticClient, GetClusterSnapshotCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
|
|
17
|
+
* const client = new DocDBElasticClient(config);
|
|
18
|
+
* const command = new GetClusterSnapshotCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link GetClusterSnapshotCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link GetClusterSnapshotCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class GetClusterSnapshotCommand extends $Command<GetClusterSnapshotCommandInput, GetClusterSnapshotCommandOutput, DocDBElasticClientResolvedConfig> {
|
|
28
|
+
readonly input: GetClusterSnapshotCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: GetClusterSnapshotCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DocDBElasticClientResolvedConfig, options?: __HttpHandlerOptions): Handler<GetClusterSnapshotCommandInput, GetClusterSnapshotCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EndpointParameterInstructions } from "@aws-sdk/middleware-endpoint";
|
|
2
|
+
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
3
|
+
import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@aws-sdk/types";
|
|
4
|
+
import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
|
|
5
|
+
import { ListClusterSnapshotsInput, ListClusterSnapshotsOutput } from "../models/models_0";
|
|
6
|
+
export interface ListClusterSnapshotsCommandInput extends ListClusterSnapshotsInput {
|
|
7
|
+
}
|
|
8
|
+
export interface ListClusterSnapshotsCommandOutput extends ListClusterSnapshotsOutput, __MetadataBearer {
|
|
9
|
+
}
|
|
10
|
+
/**
|
|
11
|
+
* <p>Returns information about Elastic DocumentDB snapshots for a specified cluster.</p>
|
|
12
|
+
* @example
|
|
13
|
+
* Use a bare-bones client and the command you need to make an API call.
|
|
14
|
+
* ```javascript
|
|
15
|
+
* import { DocDBElasticClient, ListClusterSnapshotsCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
|
|
16
|
+
* // const { DocDBElasticClient, ListClusterSnapshotsCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
|
|
17
|
+
* const client = new DocDBElasticClient(config);
|
|
18
|
+
* const command = new ListClusterSnapshotsCommand(input);
|
|
19
|
+
* const response = await client.send(command);
|
|
20
|
+
* ```
|
|
21
|
+
*
|
|
22
|
+
* @see {@link ListClusterSnapshotsCommandInput} for command's `input` shape.
|
|
23
|
+
* @see {@link ListClusterSnapshotsCommandOutput} for command's `response` shape.
|
|
24
|
+
* @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export declare class ListClusterSnapshotsCommand extends $Command<ListClusterSnapshotsCommandInput, ListClusterSnapshotsCommandOutput, DocDBElasticClientResolvedConfig> {
|
|
28
|
+
readonly input: ListClusterSnapshotsCommandInput;
|
|
29
|
+
static getEndpointParameterInstructions(): EndpointParameterInstructions;
|
|
30
|
+
constructor(input: ListClusterSnapshotsCommandInput);
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
resolveMiddleware(clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>, configuration: DocDBElasticClientResolvedConfig, options?: __HttpHandlerOptions): Handler<ListClusterSnapshotsCommandInput, ListClusterSnapshotsCommandOutput>;
|
|
35
|
+
private serialize;
|
|
36
|
+
private deserialize;
|
|
37
|
+
}
|