@aws-sdk/client-docdb-elastic 3.523.0 → 3.529.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 (68) hide show
  1. package/README.md +40 -1
  2. package/dist-cjs/index.js +208 -83
  3. package/dist-es/DocDBElastic.js +6 -0
  4. package/dist-es/commands/CopyClusterSnapshotCommand.js +24 -0
  5. package/dist-es/commands/StartClusterCommand.js +24 -0
  6. package/dist-es/commands/StopClusterCommand.js +24 -0
  7. package/dist-es/commands/index.js +3 -0
  8. package/dist-es/models/models_0.js +28 -14
  9. package/dist-es/protocols/Aws_restJson1.js +91 -43
  10. package/dist-types/DocDBElastic.d.ts +36 -1
  11. package/dist-types/DocDBElasticClient.d.ts +20 -3
  12. package/dist-types/commands/CopyClusterSnapshotCommand.d.ts +101 -0
  13. package/dist-types/commands/CreateClusterCommand.d.ts +14 -1
  14. package/dist-types/commands/CreateClusterSnapshotCommand.d.ts +2 -1
  15. package/dist-types/commands/DeleteClusterCommand.d.ts +11 -1
  16. package/dist-types/commands/DeleteClusterSnapshotCommand.d.ts +2 -1
  17. package/dist-types/commands/GetClusterCommand.d.ts +11 -1
  18. package/dist-types/commands/GetClusterSnapshotCommand.d.ts +2 -1
  19. package/dist-types/commands/ListClusterSnapshotsCommand.d.ts +2 -1
  20. package/dist-types/commands/ListClustersCommand.d.ts +1 -1
  21. package/dist-types/commands/ListTagsForResourceCommand.d.ts +1 -1
  22. package/dist-types/commands/RestoreClusterFromSnapshotCommand.d.ts +13 -1
  23. package/dist-types/commands/StartClusterCommand.d.ts +101 -0
  24. package/dist-types/commands/StopClusterCommand.d.ts +102 -0
  25. package/dist-types/commands/TagResourceCommand.d.ts +1 -1
  26. package/dist-types/commands/UntagResourceCommand.d.ts +1 -1
  27. package/dist-types/commands/UpdateClusterCommand.d.ts +15 -2
  28. package/dist-types/commands/index.d.ts +3 -0
  29. package/dist-types/index.d.ts +15 -1
  30. package/dist-types/models/models_0.d.ts +478 -232
  31. package/dist-types/protocols/Aws_restJson1.d.ts +27 -0
  32. package/dist-types/ts3.4/DocDBElastic.d.ts +51 -0
  33. package/dist-types/ts3.4/DocDBElasticClient.d.ts +18 -0
  34. package/dist-types/ts3.4/commands/CopyClusterSnapshotCommand.d.ts +30 -0
  35. package/dist-types/ts3.4/commands/StartClusterCommand.d.ts +26 -0
  36. package/dist-types/ts3.4/commands/StopClusterCommand.d.ts +26 -0
  37. package/dist-types/ts3.4/commands/index.d.ts +3 -0
  38. package/dist-types/ts3.4/models/models_0.d.ts +98 -42
  39. package/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +36 -0
  40. package/package.json +17 -17
  41. package/dist-cjs/DocDBElastic.js +0 -1
  42. package/dist-cjs/DocDBElasticClient.js +0 -1
  43. package/dist-cjs/auth/httpAuthExtensionConfiguration.js +0 -1
  44. package/dist-cjs/commands/CreateClusterCommand.js +0 -1
  45. package/dist-cjs/commands/CreateClusterSnapshotCommand.js +0 -1
  46. package/dist-cjs/commands/DeleteClusterCommand.js +0 -1
  47. package/dist-cjs/commands/DeleteClusterSnapshotCommand.js +0 -1
  48. package/dist-cjs/commands/GetClusterCommand.js +0 -1
  49. package/dist-cjs/commands/GetClusterSnapshotCommand.js +0 -1
  50. package/dist-cjs/commands/ListClusterSnapshotsCommand.js +0 -1
  51. package/dist-cjs/commands/ListClustersCommand.js +0 -1
  52. package/dist-cjs/commands/ListTagsForResourceCommand.js +0 -1
  53. package/dist-cjs/commands/RestoreClusterFromSnapshotCommand.js +0 -1
  54. package/dist-cjs/commands/TagResourceCommand.js +0 -1
  55. package/dist-cjs/commands/UntagResourceCommand.js +0 -1
  56. package/dist-cjs/commands/UpdateClusterCommand.js +0 -1
  57. package/dist-cjs/commands/index.js +0 -1
  58. package/dist-cjs/endpoint/EndpointParameters.js +0 -1
  59. package/dist-cjs/extensionConfiguration.js +0 -1
  60. package/dist-cjs/models/DocDBElasticServiceException.js +0 -1
  61. package/dist-cjs/models/index.js +0 -1
  62. package/dist-cjs/models/models_0.js +0 -1
  63. package/dist-cjs/pagination/Interfaces.js +0 -1
  64. package/dist-cjs/pagination/ListClusterSnapshotsPaginator.js +0 -1
  65. package/dist-cjs/pagination/ListClustersPaginator.js +0 -1
  66. package/dist-cjs/pagination/index.js +0 -1
  67. package/dist-cjs/protocols/Aws_restJson1.js +0 -1
  68. package/dist-cjs/runtimeExtensions.js +0 -1
@@ -1,5 +1,6 @@
1
1
  import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http";
2
2
  import { SerdeContext as __SerdeContext } from "@smithy/types";
3
+ import { CopyClusterSnapshotCommandInput, CopyClusterSnapshotCommandOutput } from "../commands/CopyClusterSnapshotCommand";
3
4
  import { CreateClusterCommandInput, CreateClusterCommandOutput } from "../commands/CreateClusterCommand";
4
5
  import { CreateClusterSnapshotCommandInput, CreateClusterSnapshotCommandOutput } from "../commands/CreateClusterSnapshotCommand";
5
6
  import { DeleteClusterCommandInput, DeleteClusterCommandOutput } from "../commands/DeleteClusterCommand";
@@ -10,9 +11,15 @@ import { ListClustersCommandInput, ListClustersCommandOutput } from "../commands
10
11
  import { ListClusterSnapshotsCommandInput, ListClusterSnapshotsCommandOutput } from "../commands/ListClusterSnapshotsCommand";
11
12
  import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand";
12
13
  import { RestoreClusterFromSnapshotCommandInput, RestoreClusterFromSnapshotCommandOutput } from "../commands/RestoreClusterFromSnapshotCommand";
14
+ import { StartClusterCommandInput, StartClusterCommandOutput } from "../commands/StartClusterCommand";
15
+ import { StopClusterCommandInput, StopClusterCommandOutput } from "../commands/StopClusterCommand";
13
16
  import { TagResourceCommandInput, TagResourceCommandOutput } from "../commands/TagResourceCommand";
14
17
  import { UntagResourceCommandInput, UntagResourceCommandOutput } from "../commands/UntagResourceCommand";
15
18
  import { UpdateClusterCommandInput, UpdateClusterCommandOutput } from "../commands/UpdateClusterCommand";
19
+ /**
20
+ * serializeAws_restJson1CopyClusterSnapshotCommand
21
+ */
22
+ export declare const se_CopyClusterSnapshotCommand: (input: CopyClusterSnapshotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
16
23
  /**
17
24
  * serializeAws_restJson1CreateClusterCommand
18
25
  */
@@ -53,6 +60,14 @@ export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceC
53
60
  * serializeAws_restJson1RestoreClusterFromSnapshotCommand
54
61
  */
55
62
  export declare const se_RestoreClusterFromSnapshotCommand: (input: RestoreClusterFromSnapshotCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
63
+ /**
64
+ * serializeAws_restJson1StartClusterCommand
65
+ */
66
+ export declare const se_StartClusterCommand: (input: StartClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
67
+ /**
68
+ * serializeAws_restJson1StopClusterCommand
69
+ */
70
+ export declare const se_StopClusterCommand: (input: StopClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
56
71
  /**
57
72
  * serializeAws_restJson1TagResourceCommand
58
73
  */
@@ -65,6 +80,10 @@ export declare const se_UntagResourceCommand: (input: UntagResourceCommandInput,
65
80
  * serializeAws_restJson1UpdateClusterCommand
66
81
  */
67
82
  export declare const se_UpdateClusterCommand: (input: UpdateClusterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>;
83
+ /**
84
+ * deserializeAws_restJson1CopyClusterSnapshotCommand
85
+ */
86
+ export declare const de_CopyClusterSnapshotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<CopyClusterSnapshotCommandOutput>;
68
87
  /**
69
88
  * deserializeAws_restJson1CreateClusterCommand
70
89
  */
@@ -105,6 +124,14 @@ export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, con
105
124
  * deserializeAws_restJson1RestoreClusterFromSnapshotCommand
106
125
  */
107
126
  export declare const de_RestoreClusterFromSnapshotCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<RestoreClusterFromSnapshotCommandOutput>;
127
+ /**
128
+ * deserializeAws_restJson1StartClusterCommand
129
+ */
130
+ export declare const de_StartClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StartClusterCommandOutput>;
131
+ /**
132
+ * deserializeAws_restJson1StopClusterCommand
133
+ */
134
+ export declare const de_StopClusterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise<StopClusterCommandOutput>;
108
135
  /**
109
136
  * deserializeAws_restJson1TagResourceCommand
110
137
  */
@@ -1,4 +1,8 @@
1
1
  import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
+ import {
3
+ CopyClusterSnapshotCommandInput,
4
+ CopyClusterSnapshotCommandOutput,
5
+ } from "./commands/CopyClusterSnapshotCommand";
2
6
  import {
3
7
  CreateClusterCommandInput,
4
8
  CreateClusterCommandOutput,
@@ -39,6 +43,14 @@ import {
39
43
  RestoreClusterFromSnapshotCommandInput,
40
44
  RestoreClusterFromSnapshotCommandOutput,
41
45
  } from "./commands/RestoreClusterFromSnapshotCommand";
46
+ import {
47
+ StartClusterCommandInput,
48
+ StartClusterCommandOutput,
49
+ } from "./commands/StartClusterCommand";
50
+ import {
51
+ StopClusterCommandInput,
52
+ StopClusterCommandOutput,
53
+ } from "./commands/StopClusterCommand";
42
54
  import {
43
55
  TagResourceCommandInput,
44
56
  TagResourceCommandOutput,
@@ -53,6 +65,19 @@ import {
53
65
  } from "./commands/UpdateClusterCommand";
54
66
  import { DocDBElasticClient } from "./DocDBElasticClient";
55
67
  export interface DocDBElastic {
68
+ copyClusterSnapshot(
69
+ args: CopyClusterSnapshotCommandInput,
70
+ options?: __HttpHandlerOptions
71
+ ): Promise<CopyClusterSnapshotCommandOutput>;
72
+ copyClusterSnapshot(
73
+ args: CopyClusterSnapshotCommandInput,
74
+ cb: (err: any, data?: CopyClusterSnapshotCommandOutput) => void
75
+ ): void;
76
+ copyClusterSnapshot(
77
+ args: CopyClusterSnapshotCommandInput,
78
+ options: __HttpHandlerOptions,
79
+ cb: (err: any, data?: CopyClusterSnapshotCommandOutput) => void
80
+ ): void;
56
81
  createCluster(
57
82
  args: CreateClusterCommandInput,
58
83
  options?: __HttpHandlerOptions
@@ -183,6 +208,32 @@ export interface DocDBElastic {
183
208
  options: __HttpHandlerOptions,
184
209
  cb: (err: any, data?: RestoreClusterFromSnapshotCommandOutput) => void
185
210
  ): void;
211
+ startCluster(
212
+ args: StartClusterCommandInput,
213
+ options?: __HttpHandlerOptions
214
+ ): Promise<StartClusterCommandOutput>;
215
+ startCluster(
216
+ args: StartClusterCommandInput,
217
+ cb: (err: any, data?: StartClusterCommandOutput) => void
218
+ ): void;
219
+ startCluster(
220
+ args: StartClusterCommandInput,
221
+ options: __HttpHandlerOptions,
222
+ cb: (err: any, data?: StartClusterCommandOutput) => void
223
+ ): void;
224
+ stopCluster(
225
+ args: StopClusterCommandInput,
226
+ options?: __HttpHandlerOptions
227
+ ): Promise<StopClusterCommandOutput>;
228
+ stopCluster(
229
+ args: StopClusterCommandInput,
230
+ cb: (err: any, data?: StopClusterCommandOutput) => void
231
+ ): void;
232
+ stopCluster(
233
+ args: StopClusterCommandInput,
234
+ options: __HttpHandlerOptions,
235
+ cb: (err: any, data?: StopClusterCommandOutput) => void
236
+ ): void;
186
237
  tagResource(
187
238
  args: TagResourceCommandInput,
188
239
  options?: __HttpHandlerOptions
@@ -45,6 +45,10 @@ import {
45
45
  HttpAuthSchemeInputConfig,
46
46
  HttpAuthSchemeResolvedConfig,
47
47
  } from "./auth/httpAuthSchemeProvider";
48
+ import {
49
+ CopyClusterSnapshotCommandInput,
50
+ CopyClusterSnapshotCommandOutput,
51
+ } from "./commands/CopyClusterSnapshotCommand";
48
52
  import {
49
53
  CreateClusterCommandInput,
50
54
  CreateClusterCommandOutput,
@@ -85,6 +89,14 @@ import {
85
89
  RestoreClusterFromSnapshotCommandInput,
86
90
  RestoreClusterFromSnapshotCommandOutput,
87
91
  } from "./commands/RestoreClusterFromSnapshotCommand";
92
+ import {
93
+ StartClusterCommandInput,
94
+ StartClusterCommandOutput,
95
+ } from "./commands/StartClusterCommand";
96
+ import {
97
+ StopClusterCommandInput,
98
+ StopClusterCommandOutput,
99
+ } from "./commands/StopClusterCommand";
88
100
  import {
89
101
  TagResourceCommandInput,
90
102
  TagResourceCommandOutput,
@@ -105,6 +117,7 @@ import {
105
117
  import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
106
118
  export { __Client };
107
119
  export type ServiceInputTypes =
120
+ | CopyClusterSnapshotCommandInput
108
121
  | CreateClusterCommandInput
109
122
  | CreateClusterSnapshotCommandInput
110
123
  | DeleteClusterCommandInput
@@ -115,10 +128,13 @@ export type ServiceInputTypes =
115
128
  | ListClustersCommandInput
116
129
  | ListTagsForResourceCommandInput
117
130
  | RestoreClusterFromSnapshotCommandInput
131
+ | StartClusterCommandInput
132
+ | StopClusterCommandInput
118
133
  | TagResourceCommandInput
119
134
  | UntagResourceCommandInput
120
135
  | UpdateClusterCommandInput;
121
136
  export type ServiceOutputTypes =
137
+ | CopyClusterSnapshotCommandOutput
122
138
  | CreateClusterCommandOutput
123
139
  | CreateClusterSnapshotCommandOutput
124
140
  | DeleteClusterCommandOutput
@@ -129,6 +145,8 @@ export type ServiceOutputTypes =
129
145
  | ListClustersCommandOutput
130
146
  | ListTagsForResourceCommandOutput
131
147
  | RestoreClusterFromSnapshotCommandOutput
148
+ | StartClusterCommandOutput
149
+ | StopClusterCommandOutput
132
150
  | TagResourceCommandOutput
133
151
  | UntagResourceCommandOutput
134
152
  | UpdateClusterCommandOutput;
@@ -0,0 +1,30 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ DocDBElasticClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../DocDBElasticClient";
8
+ import {
9
+ CopyClusterSnapshotInput,
10
+ CopyClusterSnapshotOutput,
11
+ } from "../models/models_0";
12
+ export { __MetadataBearer, $Command };
13
+ export interface CopyClusterSnapshotCommandInput
14
+ extends CopyClusterSnapshotInput {}
15
+ export interface CopyClusterSnapshotCommandOutput
16
+ extends CopyClusterSnapshotOutput,
17
+ __MetadataBearer {}
18
+ declare const CopyClusterSnapshotCommand_base: {
19
+ new (
20
+ input: CopyClusterSnapshotCommandInput
21
+ ): import("@smithy/smithy-client").CommandImpl<
22
+ CopyClusterSnapshotCommandInput,
23
+ CopyClusterSnapshotCommandOutput,
24
+ DocDBElasticClientResolvedConfig,
25
+ ServiceInputTypes,
26
+ ServiceOutputTypes
27
+ >;
28
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
29
+ };
30
+ export declare class CopyClusterSnapshotCommand extends CopyClusterSnapshotCommand_base {}
@@ -0,0 +1,26 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ DocDBElasticClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../DocDBElasticClient";
8
+ import { StartClusterInput, StartClusterOutput } from "../models/models_0";
9
+ export { __MetadataBearer, $Command };
10
+ export interface StartClusterCommandInput extends StartClusterInput {}
11
+ export interface StartClusterCommandOutput
12
+ extends StartClusterOutput,
13
+ __MetadataBearer {}
14
+ declare const StartClusterCommand_base: {
15
+ new (
16
+ input: StartClusterCommandInput
17
+ ): import("@smithy/smithy-client").CommandImpl<
18
+ StartClusterCommandInput,
19
+ StartClusterCommandOutput,
20
+ DocDBElasticClientResolvedConfig,
21
+ ServiceInputTypes,
22
+ ServiceOutputTypes
23
+ >;
24
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ };
26
+ export declare class StartClusterCommand extends StartClusterCommand_base {}
@@ -0,0 +1,26 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import {
4
+ DocDBElasticClientResolvedConfig,
5
+ ServiceInputTypes,
6
+ ServiceOutputTypes,
7
+ } from "../DocDBElasticClient";
8
+ import { StopClusterInput, StopClusterOutput } from "../models/models_0";
9
+ export { __MetadataBearer, $Command };
10
+ export interface StopClusterCommandInput extends StopClusterInput {}
11
+ export interface StopClusterCommandOutput
12
+ extends StopClusterOutput,
13
+ __MetadataBearer {}
14
+ declare const StopClusterCommand_base: {
15
+ new (
16
+ input: StopClusterCommandInput
17
+ ): import("@smithy/smithy-client").CommandImpl<
18
+ StopClusterCommandInput,
19
+ StopClusterCommandOutput,
20
+ DocDBElasticClientResolvedConfig,
21
+ ServiceInputTypes,
22
+ ServiceOutputTypes
23
+ >;
24
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
25
+ };
26
+ export declare class StopClusterCommand extends StopClusterCommand_base {}
@@ -1,3 +1,4 @@
1
+ export * from "./CopyClusterSnapshotCommand";
1
2
  export * from "./CreateClusterCommand";
2
3
  export * from "./CreateClusterSnapshotCommand";
3
4
  export * from "./DeleteClusterCommand";
@@ -8,6 +9,8 @@ export * from "./ListClusterSnapshotsCommand";
8
9
  export * from "./ListClustersCommand";
9
10
  export * from "./ListTagsForResourceCommand";
10
11
  export * from "./RestoreClusterFromSnapshotCommand";
12
+ export * from "./StartClusterCommand";
13
+ export * from "./StopClusterCommand";
11
14
  export * from "./TagResourceCommand";
12
15
  export * from "./UntagResourceCommand";
13
16
  export * from "./UpdateClusterCommand";
@@ -19,49 +19,55 @@ export declare class ConflictException extends __BaseException {
19
19
  resourceType: string | undefined;
20
20
  constructor(opts: __ExceptionOptionType<ConflictException, __BaseException>);
21
21
  }
22
- export interface CreateClusterInput {
23
- clusterName: string | undefined;
24
- authType: Auth | undefined;
25
- adminUserName: string | undefined;
26
- adminUserPassword: string | undefined;
27
- shardCapacity: number | undefined;
28
- shardCount: number | undefined;
29
- vpcSecurityGroupIds?: string[];
30
- subnetIds?: string[];
22
+ export interface CopyClusterSnapshotInput {
23
+ snapshotArn: string | undefined;
24
+ targetSnapshotName: string | undefined;
31
25
  kmsKeyId?: string;
32
- clientToken?: string;
33
- preferredMaintenanceWindow?: string;
26
+ copyTags?: boolean;
34
27
  tags?: Record<string, string>;
35
28
  }
29
+ export declare const SnapshotType: {
30
+ readonly AUTOMATED: "AUTOMATED";
31
+ readonly MANUAL: "MANUAL";
32
+ };
33
+ export type SnapshotType = (typeof SnapshotType)[keyof typeof SnapshotType];
36
34
  export declare const Status: {
37
35
  readonly ACTIVE: "ACTIVE";
36
+ readonly COPYING: "COPYING";
38
37
  readonly CREATING: "CREATING";
39
38
  readonly DELETING: "DELETING";
40
39
  readonly INACCESSIBLE_ENCRYPTION_CREDS: "INACCESSIBLE_ENCRYPTION_CREDS";
40
+ readonly INACCESSIBLE_SECRET_ARN: "INACCESSIBLE_SECRET_ARN";
41
+ readonly INACCESSIBLE_VPC_ENDPOINT: "INACCESSIBLE_VPC_ENDPOINT";
42
+ readonly INCOMPATIBLE_NETWORK: "INCOMPATIBLE_NETWORK";
41
43
  readonly INVALID_SECURITY_GROUP_ID: "INVALID_SECURITY_GROUP_ID";
42
44
  readonly INVALID_SUBNET_ID: "INVALID_SUBNET_ID";
43
45
  readonly IP_ADDRESS_LIMIT_EXCEEDED: "IP_ADDRESS_LIMIT_EXCEEDED";
46
+ readonly MERGING: "MERGING";
47
+ readonly MODIFYING: "MODIFYING";
48
+ readonly SPLITTING: "SPLITTING";
49
+ readonly STARTING: "STARTING";
50
+ readonly STOPPED: "STOPPED";
51
+ readonly STOPPING: "STOPPING";
44
52
  readonly UPDATING: "UPDATING";
45
53
  readonly VPC_ENDPOINT_LIMIT_EXCEEDED: "VPC_ENDPOINT_LIMIT_EXCEEDED";
46
54
  };
47
55
  export type Status = (typeof Status)[keyof typeof Status];
48
- export interface Cluster {
49
- clusterName: string | undefined;
56
+ export interface ClusterSnapshot {
57
+ subnetIds: string[] | undefined;
58
+ snapshotName: string | undefined;
59
+ snapshotArn: string | undefined;
60
+ snapshotCreationTime: string | undefined;
50
61
  clusterArn: string | undefined;
62
+ clusterCreationTime: string | undefined;
51
63
  status: Status | undefined;
52
- clusterEndpoint: string | undefined;
53
- createTime: string | undefined;
54
- adminUserName: string | undefined;
55
- authType: Auth | undefined;
56
- shardCapacity: number | undefined;
57
- shardCount: number | undefined;
58
64
  vpcSecurityGroupIds: string[] | undefined;
59
- subnetIds: string[] | undefined;
60
- preferredMaintenanceWindow: string | undefined;
65
+ adminUserName: string | undefined;
61
66
  kmsKeyId: string | undefined;
67
+ snapshotType?: SnapshotType;
62
68
  }
63
- export interface CreateClusterOutput {
64
- cluster: Cluster | undefined;
69
+ export interface CopyClusterSnapshotOutput {
70
+ snapshot: ClusterSnapshot | undefined;
65
71
  }
66
72
  export declare class InternalServerException extends __BaseException {
67
73
  readonly name: "InternalServerException";
@@ -71,6 +77,15 @@ export declare class InternalServerException extends __BaseException {
71
77
  opts: __ExceptionOptionType<InternalServerException, __BaseException>
72
78
  );
73
79
  }
80
+ export declare class ResourceNotFoundException extends __BaseException {
81
+ readonly name: "ResourceNotFoundException";
82
+ readonly $fault: "client";
83
+ resourceId: string | undefined;
84
+ resourceType: string | undefined;
85
+ constructor(
86
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
87
+ );
88
+ }
74
89
  export declare class ServiceQuotaExceededException extends __BaseException {
75
90
  readonly name: "ServiceQuotaExceededException";
76
91
  readonly $fault: "client";
@@ -108,35 +123,58 @@ export declare class ValidationException extends __BaseException {
108
123
  opts: __ExceptionOptionType<ValidationException, __BaseException>
109
124
  );
110
125
  }
111
- export interface CreateClusterSnapshotInput {
112
- clusterArn: string | undefined;
113
- snapshotName: string | undefined;
126
+ export interface CreateClusterInput {
127
+ clusterName: string | undefined;
128
+ authType: Auth | undefined;
129
+ adminUserName: string | undefined;
130
+ adminUserPassword: string | undefined;
131
+ shardCapacity: number | undefined;
132
+ shardCount: number | undefined;
133
+ vpcSecurityGroupIds?: string[];
134
+ subnetIds?: string[];
135
+ kmsKeyId?: string;
136
+ clientToken?: string;
137
+ preferredMaintenanceWindow?: string;
114
138
  tags?: Record<string, string>;
139
+ backupRetentionPeriod?: number;
140
+ preferredBackupWindow?: string;
141
+ shardInstanceCount?: number;
115
142
  }
116
- export interface ClusterSnapshot {
117
- subnetIds: string[] | undefined;
118
- snapshotName: string | undefined;
119
- snapshotArn: string | undefined;
120
- snapshotCreationTime: string | undefined;
143
+ export interface Shard {
144
+ shardId: string | undefined;
145
+ createTime: string | undefined;
146
+ status: Status | undefined;
147
+ }
148
+ export interface Cluster {
149
+ clusterName: string | undefined;
121
150
  clusterArn: string | undefined;
122
- clusterCreationTime: string | undefined;
123
151
  status: Status | undefined;
124
- vpcSecurityGroupIds: string[] | undefined;
152
+ clusterEndpoint: string | undefined;
153
+ createTime: string | undefined;
125
154
  adminUserName: string | undefined;
155
+ authType: Auth | undefined;
156
+ shardCapacity: number | undefined;
157
+ shardCount: number | undefined;
158
+ vpcSecurityGroupIds: string[] | undefined;
159
+ subnetIds: string[] | undefined;
160
+ preferredMaintenanceWindow: string | undefined;
126
161
  kmsKeyId: string | undefined;
162
+ shards?: Shard[];
163
+ backupRetentionPeriod?: number;
164
+ preferredBackupWindow?: string;
165
+ shardInstanceCount?: number;
166
+ }
167
+ export interface CreateClusterOutput {
168
+ cluster: Cluster | undefined;
169
+ }
170
+ export interface CreateClusterSnapshotInput {
171
+ clusterArn: string | undefined;
172
+ snapshotName: string | undefined;
173
+ tags?: Record<string, string>;
127
174
  }
128
175
  export interface CreateClusterSnapshotOutput {
129
176
  snapshot: ClusterSnapshot | undefined;
130
177
  }
131
- export declare class ResourceNotFoundException extends __BaseException {
132
- readonly name: "ResourceNotFoundException";
133
- readonly $fault: "client";
134
- resourceId: string | undefined;
135
- resourceType: string | undefined;
136
- constructor(
137
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
138
- );
139
- }
140
178
  export interface DeleteClusterInput {
141
179
  clusterArn: string | undefined;
142
180
  }
@@ -178,6 +216,7 @@ export interface ListClusterSnapshotsInput {
178
216
  clusterArn?: string;
179
217
  nextToken?: string;
180
218
  maxResults?: number;
219
+ snapshotType?: string;
181
220
  }
182
221
  export interface ClusterSnapshotInList {
183
222
  snapshotName: string | undefined;
@@ -203,10 +242,24 @@ export interface RestoreClusterFromSnapshotInput {
203
242
  subnetIds?: string[];
204
243
  kmsKeyId?: string;
205
244
  tags?: Record<string, string>;
245
+ shardCapacity?: number;
246
+ shardInstanceCount?: number;
206
247
  }
207
248
  export interface RestoreClusterFromSnapshotOutput {
208
249
  cluster: Cluster | undefined;
209
250
  }
251
+ export interface StartClusterInput {
252
+ clusterArn: string | undefined;
253
+ }
254
+ export interface StartClusterOutput {
255
+ cluster: Cluster | undefined;
256
+ }
257
+ export interface StopClusterInput {
258
+ clusterArn: string | undefined;
259
+ }
260
+ export interface StopClusterOutput {
261
+ cluster: Cluster | undefined;
262
+ }
210
263
  export interface TagResourceRequest {
211
264
  resourceArn: string | undefined;
212
265
  tags: Record<string, string> | undefined;
@@ -227,6 +280,9 @@ export interface UpdateClusterInput {
227
280
  adminUserPassword?: string;
228
281
  clientToken?: string;
229
282
  preferredMaintenanceWindow?: string;
283
+ backupRetentionPeriod?: number;
284
+ preferredBackupWindow?: string;
285
+ shardInstanceCount?: number;
230
286
  }
231
287
  export interface UpdateClusterOutput {
232
288
  cluster: Cluster | undefined;
@@ -3,6 +3,10 @@ import {
3
3
  HttpResponse as __HttpResponse,
4
4
  } from "@smithy/protocol-http";
5
5
  import { SerdeContext as __SerdeContext } from "@smithy/types";
6
+ import {
7
+ CopyClusterSnapshotCommandInput,
8
+ CopyClusterSnapshotCommandOutput,
9
+ } from "../commands/CopyClusterSnapshotCommand";
6
10
  import {
7
11
  CreateClusterCommandInput,
8
12
  CreateClusterCommandOutput,
@@ -43,6 +47,14 @@ import {
43
47
  RestoreClusterFromSnapshotCommandInput,
44
48
  RestoreClusterFromSnapshotCommandOutput,
45
49
  } from "../commands/RestoreClusterFromSnapshotCommand";
50
+ import {
51
+ StartClusterCommandInput,
52
+ StartClusterCommandOutput,
53
+ } from "../commands/StartClusterCommand";
54
+ import {
55
+ StopClusterCommandInput,
56
+ StopClusterCommandOutput,
57
+ } from "../commands/StopClusterCommand";
46
58
  import {
47
59
  TagResourceCommandInput,
48
60
  TagResourceCommandOutput,
@@ -55,6 +67,10 @@ import {
55
67
  UpdateClusterCommandInput,
56
68
  UpdateClusterCommandOutput,
57
69
  } from "../commands/UpdateClusterCommand";
70
+ export declare const se_CopyClusterSnapshotCommand: (
71
+ input: CopyClusterSnapshotCommandInput,
72
+ context: __SerdeContext
73
+ ) => Promise<__HttpRequest>;
58
74
  export declare const se_CreateClusterCommand: (
59
75
  input: CreateClusterCommandInput,
60
76
  context: __SerdeContext
@@ -95,6 +111,14 @@ export declare const se_RestoreClusterFromSnapshotCommand: (
95
111
  input: RestoreClusterFromSnapshotCommandInput,
96
112
  context: __SerdeContext
97
113
  ) => Promise<__HttpRequest>;
114
+ export declare const se_StartClusterCommand: (
115
+ input: StartClusterCommandInput,
116
+ context: __SerdeContext
117
+ ) => Promise<__HttpRequest>;
118
+ export declare const se_StopClusterCommand: (
119
+ input: StopClusterCommandInput,
120
+ context: __SerdeContext
121
+ ) => Promise<__HttpRequest>;
98
122
  export declare const se_TagResourceCommand: (
99
123
  input: TagResourceCommandInput,
100
124
  context: __SerdeContext
@@ -107,6 +131,10 @@ export declare const se_UpdateClusterCommand: (
107
131
  input: UpdateClusterCommandInput,
108
132
  context: __SerdeContext
109
133
  ) => Promise<__HttpRequest>;
134
+ export declare const de_CopyClusterSnapshotCommand: (
135
+ output: __HttpResponse,
136
+ context: __SerdeContext
137
+ ) => Promise<CopyClusterSnapshotCommandOutput>;
110
138
  export declare const de_CreateClusterCommand: (
111
139
  output: __HttpResponse,
112
140
  context: __SerdeContext
@@ -147,6 +175,14 @@ export declare const de_RestoreClusterFromSnapshotCommand: (
147
175
  output: __HttpResponse,
148
176
  context: __SerdeContext
149
177
  ) => Promise<RestoreClusterFromSnapshotCommandOutput>;
178
+ export declare const de_StartClusterCommand: (
179
+ output: __HttpResponse,
180
+ context: __SerdeContext
181
+ ) => Promise<StartClusterCommandOutput>;
182
+ export declare const de_StopClusterCommand: (
183
+ output: __HttpResponse,
184
+ context: __SerdeContext
185
+ ) => Promise<StopClusterCommandOutput>;
150
186
  export declare const de_TagResourceCommand: (
151
187
  output: __HttpResponse,
152
188
  context: __SerdeContext
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-docdb-elastic",
3
3
  "description": "AWS SDK for JavaScript Docdb Elastic Client for Node.js, Browser and React Native",
4
- "version": "3.523.0",
4
+ "version": "3.529.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-docdb-elastic",
@@ -20,40 +20,40 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "3.0.0",
22
22
  "@aws-crypto/sha256-js": "3.0.0",
23
- "@aws-sdk/client-sts": "3.523.0",
24
- "@aws-sdk/core": "3.523.0",
25
- "@aws-sdk/credential-provider-node": "3.523.0",
23
+ "@aws-sdk/client-sts": "3.529.0",
24
+ "@aws-sdk/core": "3.529.0",
25
+ "@aws-sdk/credential-provider-node": "3.529.0",
26
26
  "@aws-sdk/middleware-host-header": "3.523.0",
27
27
  "@aws-sdk/middleware-logger": "3.523.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.523.0",
29
- "@aws-sdk/middleware-user-agent": "3.523.0",
30
- "@aws-sdk/region-config-resolver": "3.523.0",
29
+ "@aws-sdk/middleware-user-agent": "3.525.0",
30
+ "@aws-sdk/region-config-resolver": "3.525.0",
31
31
  "@aws-sdk/types": "3.523.0",
32
- "@aws-sdk/util-endpoints": "3.523.0",
32
+ "@aws-sdk/util-endpoints": "3.525.0",
33
33
  "@aws-sdk/util-user-agent-browser": "3.523.0",
34
- "@aws-sdk/util-user-agent-node": "3.523.0",
35
- "@smithy/config-resolver": "^2.1.3",
36
- "@smithy/core": "^1.3.4",
34
+ "@aws-sdk/util-user-agent-node": "3.525.0",
35
+ "@smithy/config-resolver": "^2.1.4",
36
+ "@smithy/core": "^1.3.5",
37
37
  "@smithy/fetch-http-handler": "^2.4.3",
38
38
  "@smithy/hash-node": "^2.1.3",
39
39
  "@smithy/invalid-dependency": "^2.1.3",
40
40
  "@smithy/middleware-content-length": "^2.1.3",
41
- "@smithy/middleware-endpoint": "^2.4.3",
42
- "@smithy/middleware-retry": "^2.1.3",
41
+ "@smithy/middleware-endpoint": "^2.4.4",
42
+ "@smithy/middleware-retry": "^2.1.4",
43
43
  "@smithy/middleware-serde": "^2.1.3",
44
44
  "@smithy/middleware-stack": "^2.1.3",
45
- "@smithy/node-config-provider": "^2.2.3",
45
+ "@smithy/node-config-provider": "^2.2.4",
46
46
  "@smithy/node-http-handler": "^2.4.1",
47
47
  "@smithy/protocol-http": "^3.2.1",
48
- "@smithy/smithy-client": "^2.4.1",
48
+ "@smithy/smithy-client": "^2.4.2",
49
49
  "@smithy/types": "^2.10.1",
50
50
  "@smithy/url-parser": "^2.1.3",
51
51
  "@smithy/util-base64": "^2.1.1",
52
52
  "@smithy/util-body-length-browser": "^2.1.1",
53
53
  "@smithy/util-body-length-node": "^2.2.1",
54
- "@smithy/util-defaults-mode-browser": "^2.1.3",
55
- "@smithy/util-defaults-mode-node": "^2.2.2",
56
- "@smithy/util-endpoints": "^1.1.3",
54
+ "@smithy/util-defaults-mode-browser": "^2.1.4",
55
+ "@smithy/util-defaults-mode-node": "^2.2.3",
56
+ "@smithy/util-endpoints": "^1.1.4",
57
57
  "@smithy/util-middleware": "^2.1.3",
58
58
  "@smithy/util-retry": "^2.1.3",
59
59
  "@smithy/util-utf8": "^2.1.1",
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("./index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");
@@ -1 +0,0 @@
1
- module.exports = require("../index.js");