@aws-sdk/client-docdb-elastic 3.523.0 → 3.525.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 +194 -29
  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 +90 -3
  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
@@ -0,0 +1,101 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
4
+ import { StartClusterInput, StartClusterOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link StartClusterCommand}.
13
+ */
14
+ export interface StartClusterCommandInput extends StartClusterInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link StartClusterCommand}.
20
+ */
21
+ export interface StartClusterCommandOutput extends StartClusterOutput, __MetadataBearer {
22
+ }
23
+ declare const StartClusterCommand_base: {
24
+ new (input: StartClusterCommandInput): import("@smithy/smithy-client").CommandImpl<StartClusterCommandInput, StartClusterCommandOutput, DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>Restarts the stopped elastic cluster that is specified by <code>clusterARN</code>.</p>
30
+ * @example
31
+ * Use a bare-bones client and the command you need to make an API call.
32
+ * ```javascript
33
+ * import { DocDBElasticClient, StartClusterCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
34
+ * // const { DocDBElasticClient, StartClusterCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
35
+ * const client = new DocDBElasticClient(config);
36
+ * const input = { // StartClusterInput
37
+ * clusterArn: "STRING_VALUE", // required
38
+ * };
39
+ * const command = new StartClusterCommand(input);
40
+ * const response = await client.send(command);
41
+ * // { // StartClusterOutput
42
+ * // cluster: { // Cluster
43
+ * // clusterName: "STRING_VALUE", // required
44
+ * // clusterArn: "STRING_VALUE", // required
45
+ * // status: "STRING_VALUE", // required
46
+ * // clusterEndpoint: "STRING_VALUE", // required
47
+ * // createTime: "STRING_VALUE", // required
48
+ * // adminUserName: "STRING_VALUE", // required
49
+ * // authType: "STRING_VALUE", // required
50
+ * // shardCapacity: Number("int"), // required
51
+ * // shardCount: Number("int"), // required
52
+ * // vpcSecurityGroupIds: [ // StringList // required
53
+ * // "STRING_VALUE",
54
+ * // ],
55
+ * // subnetIds: [ // required
56
+ * // "STRING_VALUE",
57
+ * // ],
58
+ * // preferredMaintenanceWindow: "STRING_VALUE", // required
59
+ * // kmsKeyId: "STRING_VALUE", // required
60
+ * // shards: [ // ShardList
61
+ * // { // Shard
62
+ * // shardId: "STRING_VALUE", // required
63
+ * // createTime: "STRING_VALUE", // required
64
+ * // status: "STRING_VALUE", // required
65
+ * // },
66
+ * // ],
67
+ * // backupRetentionPeriod: Number("int"),
68
+ * // preferredBackupWindow: "STRING_VALUE",
69
+ * // shardInstanceCount: Number("int"),
70
+ * // },
71
+ * // };
72
+ *
73
+ * ```
74
+ *
75
+ * @param StartClusterCommandInput - {@link StartClusterCommandInput}
76
+ * @returns {@link StartClusterCommandOutput}
77
+ * @see {@link StartClusterCommandInput} for command's `input` shape.
78
+ * @see {@link StartClusterCommandOutput} for command's `response` shape.
79
+ * @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
80
+ *
81
+ * @throws {@link AccessDeniedException} (client fault)
82
+ * <p>An exception that occurs when there are not sufficient permissions to perform an action.</p>
83
+ *
84
+ * @throws {@link InternalServerException} (server fault)
85
+ * <p>There was an internal server error.</p>
86
+ *
87
+ * @throws {@link ResourceNotFoundException} (client fault)
88
+ * <p>The specified resource could not be located.</p>
89
+ *
90
+ * @throws {@link ThrottlingException} (client fault)
91
+ * <p>ThrottlingException will be thrown when request was denied due to request throttling.</p>
92
+ *
93
+ * @throws {@link ValidationException} (client fault)
94
+ * <p>A structure defining a validation exception.</p>
95
+ *
96
+ * @throws {@link DocDBElasticServiceException}
97
+ * <p>Base exception class for all service exceptions from DocDBElastic service.</p>
98
+ *
99
+ */
100
+ export declare class StartClusterCommand extends StartClusterCommand_base {
101
+ }
@@ -0,0 +1,102 @@
1
+ import { Command as $Command } from "@smithy/smithy-client";
2
+ import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import { DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../DocDBElasticClient";
4
+ import { StopClusterInput, StopClusterOutput } from "../models/models_0";
5
+ /**
6
+ * @public
7
+ */
8
+ export { __MetadataBearer, $Command };
9
+ /**
10
+ * @public
11
+ *
12
+ * The input for {@link StopClusterCommand}.
13
+ */
14
+ export interface StopClusterCommandInput extends StopClusterInput {
15
+ }
16
+ /**
17
+ * @public
18
+ *
19
+ * The output of {@link StopClusterCommand}.
20
+ */
21
+ export interface StopClusterCommandOutput extends StopClusterOutput, __MetadataBearer {
22
+ }
23
+ declare const StopClusterCommand_base: {
24
+ new (input: StopClusterCommandInput): import("@smithy/smithy-client").CommandImpl<StopClusterCommandInput, StopClusterCommandOutput, DocDBElasticClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
25
+ getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions;
26
+ };
27
+ /**
28
+ * @public
29
+ * <p>Stops the running elastic cluster that is specified by <code>clusterArn</code>.
30
+ * The elastic cluster must be in the <i>available</i> state. </p>
31
+ * @example
32
+ * Use a bare-bones client and the command you need to make an API call.
33
+ * ```javascript
34
+ * import { DocDBElasticClient, StopClusterCommand } from "@aws-sdk/client-docdb-elastic"; // ES Modules import
35
+ * // const { DocDBElasticClient, StopClusterCommand } = require("@aws-sdk/client-docdb-elastic"); // CommonJS import
36
+ * const client = new DocDBElasticClient(config);
37
+ * const input = { // StopClusterInput
38
+ * clusterArn: "STRING_VALUE", // required
39
+ * };
40
+ * const command = new StopClusterCommand(input);
41
+ * const response = await client.send(command);
42
+ * // { // StopClusterOutput
43
+ * // cluster: { // Cluster
44
+ * // clusterName: "STRING_VALUE", // required
45
+ * // clusterArn: "STRING_VALUE", // required
46
+ * // status: "STRING_VALUE", // required
47
+ * // clusterEndpoint: "STRING_VALUE", // required
48
+ * // createTime: "STRING_VALUE", // required
49
+ * // adminUserName: "STRING_VALUE", // required
50
+ * // authType: "STRING_VALUE", // required
51
+ * // shardCapacity: Number("int"), // required
52
+ * // shardCount: Number("int"), // required
53
+ * // vpcSecurityGroupIds: [ // StringList // required
54
+ * // "STRING_VALUE",
55
+ * // ],
56
+ * // subnetIds: [ // required
57
+ * // "STRING_VALUE",
58
+ * // ],
59
+ * // preferredMaintenanceWindow: "STRING_VALUE", // required
60
+ * // kmsKeyId: "STRING_VALUE", // required
61
+ * // shards: [ // ShardList
62
+ * // { // Shard
63
+ * // shardId: "STRING_VALUE", // required
64
+ * // createTime: "STRING_VALUE", // required
65
+ * // status: "STRING_VALUE", // required
66
+ * // },
67
+ * // ],
68
+ * // backupRetentionPeriod: Number("int"),
69
+ * // preferredBackupWindow: "STRING_VALUE",
70
+ * // shardInstanceCount: Number("int"),
71
+ * // },
72
+ * // };
73
+ *
74
+ * ```
75
+ *
76
+ * @param StopClusterCommandInput - {@link StopClusterCommandInput}
77
+ * @returns {@link StopClusterCommandOutput}
78
+ * @see {@link StopClusterCommandInput} for command's `input` shape.
79
+ * @see {@link StopClusterCommandOutput} for command's `response` shape.
80
+ * @see {@link DocDBElasticClientResolvedConfig | config} for DocDBElasticClient's `config` shape.
81
+ *
82
+ * @throws {@link AccessDeniedException} (client fault)
83
+ * <p>An exception that occurs when there are not sufficient permissions to perform an action.</p>
84
+ *
85
+ * @throws {@link InternalServerException} (server fault)
86
+ * <p>There was an internal server error.</p>
87
+ *
88
+ * @throws {@link ResourceNotFoundException} (client fault)
89
+ * <p>The specified resource could not be located.</p>
90
+ *
91
+ * @throws {@link ThrottlingException} (client fault)
92
+ * <p>ThrottlingException will be thrown when request was denied due to request throttling.</p>
93
+ *
94
+ * @throws {@link ValidationException} (client fault)
95
+ * <p>A structure defining a validation exception.</p>
96
+ *
97
+ * @throws {@link DocDBElasticServiceException}
98
+ * <p>Base exception class for all service exceptions from DocDBElastic service.</p>
99
+ *
100
+ */
101
+ export declare class StopClusterCommand extends StopClusterCommand_base {
102
+ }
@@ -26,7 +26,7 @@ declare const TagResourceCommand_base: {
26
26
  };
27
27
  /**
28
28
  * @public
29
- * <p>Adds metadata tags to a Elastic DocumentDB resource</p>
29
+ * <p>Adds metadata tags to an elastic cluster resource</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
32
32
  * ```javascript
@@ -26,7 +26,7 @@ declare const UntagResourceCommand_base: {
26
26
  };
27
27
  /**
28
28
  * @public
29
- * <p>Removes metadata tags to a Elastic DocumentDB resource</p>
29
+ * <p>Removes metadata tags from an elastic cluster resource</p>
30
30
  * @example
31
31
  * Use a bare-bones client and the command you need to make an API call.
32
32
  * ```javascript
@@ -26,8 +26,8 @@ declare const UpdateClusterCommand_base: {
26
26
  };
27
27
  /**
28
28
  * @public
29
- * <p>Modifies a Elastic DocumentDB cluster. This includes updating admin-username/password,
30
- * upgrading API version setting up a backup window and maintenance window</p>
29
+ * <p>Modifies an elastic cluster. This includes updating admin-username/password,
30
+ * upgrading the API version, and setting up a backup window and maintenance window</p>
31
31
  * @example
32
32
  * Use a bare-bones client and the command you need to make an API call.
33
33
  * ```javascript
@@ -48,6 +48,9 @@ declare const UpdateClusterCommand_base: {
48
48
  * adminUserPassword: "STRING_VALUE",
49
49
  * clientToken: "STRING_VALUE",
50
50
  * preferredMaintenanceWindow: "STRING_VALUE",
51
+ * backupRetentionPeriod: Number("int"),
52
+ * preferredBackupWindow: "STRING_VALUE",
53
+ * shardInstanceCount: Number("int"),
51
54
  * };
52
55
  * const command = new UpdateClusterCommand(input);
53
56
  * const response = await client.send(command);
@@ -70,6 +73,16 @@ declare const UpdateClusterCommand_base: {
70
73
  * // ],
71
74
  * // preferredMaintenanceWindow: "STRING_VALUE", // required
72
75
  * // kmsKeyId: "STRING_VALUE", // required
76
+ * // shards: [ // ShardList
77
+ * // { // Shard
78
+ * // shardId: "STRING_VALUE", // required
79
+ * // createTime: "STRING_VALUE", // required
80
+ * // status: "STRING_VALUE", // required
81
+ * // },
82
+ * // ],
83
+ * // backupRetentionPeriod: Number("int"),
84
+ * // preferredBackupWindow: "STRING_VALUE",
85
+ * // shardInstanceCount: Number("int"),
73
86
  * // },
74
87
  * // };
75
88
  *
@@ -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";
@@ -1,5 +1,19 @@
1
1
  /**
2
- * <p>The new Amazon Elastic DocumentDB service endpoint.</p>
2
+ * <fullname>Amazon DocumentDB elastic clusters</fullname>
3
+ * <p>Amazon DocumentDB elastic-clusters support workloads with millions of reads/writes per second and petabytes of storage capacity.
4
+ * Amazon DocumentDB elastic clusters also simplify how developers interact with Amazon DocumentDB elastic-clusters by eliminating the need to choose, manage or upgrade instances.</p>
5
+ * <p>Amazon DocumentDB elastic-clusters were created to:</p>
6
+ * <ul>
7
+ * <li>
8
+ * <p>provide a solution for customers looking for a database that provides virtually limitless scale with rich query capabilities and MongoDB API compatibility.</p>
9
+ * </li>
10
+ * <li>
11
+ * <p>give customers higher connection limits, and to reduce downtime from patching.</p>
12
+ * </li>
13
+ * <li>
14
+ * <p>continue investing in a cloud-native, elastic, and class leading architecture for JSON workloads.</p>
15
+ * </li>
16
+ * </ul>
3
17
  *
4
18
  * @packageDocumentation
5
19
  */