@aws-sdk/client-dsql 3.705.0 → 3.706.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.
@@ -82,6 +82,20 @@ declare const CreateClusterCommand_base: {
82
82
  * <p>Base exception class for all service exceptions from DSQL service.</p>
83
83
  *
84
84
  * @public
85
+ * @example Create Cluster
86
+ * ```javascript
87
+ * //
88
+ * const input = {
89
+ * "deletionProtectionEnabled": false,
90
+ * "tags": {
91
+ * "MyKey": "MyValue"
92
+ * }
93
+ * };
94
+ * const command = new CreateClusterCommand(input);
95
+ * await client.send(command);
96
+ * // example id: example-1
97
+ * ```
98
+ *
85
99
  */
86
100
  export declare class CreateClusterCommand extends CreateClusterCommand_base {
87
101
  /** @internal type navigation helper, not in runtime. */
@@ -91,6 +91,29 @@ declare const CreateMultiRegionClustersCommand_base: {
91
91
  * <p>Base exception class for all service exceptions from DSQL service.</p>
92
92
  *
93
93
  * @public
94
+ * @example Create Multi Region Clusters
95
+ * ```javascript
96
+ * //
97
+ * const input = {
98
+ * "linkedRegionList": [
99
+ * "us-east-1",
100
+ * "us-east-2"
101
+ * ],
102
+ * "witnessRegion": "us-west-2"
103
+ * };
104
+ * const command = new CreateMultiRegionClustersCommand(input);
105
+ * const response = await client.send(command);
106
+ * /* response ==
107
+ * {
108
+ * "linkedClusterArns": [
109
+ * "arn:aws:xanadu:us-east-1:111122223333:cluster/abcdefghijklmnopqrst12345",
110
+ * "arn:aws:xanadu:us-east-2:111122223333:cluster/klmnopqrstuvwxyzabcd54321"
111
+ * ]
112
+ * }
113
+ * *\/
114
+ * // example id: example-1
115
+ * ```
116
+ *
94
117
  */
95
118
  export declare class CreateMultiRegionClustersCommand extends CreateMultiRegionClustersCommand_base {
96
119
  /** @internal type navigation helper, not in runtime. */
@@ -79,6 +79,17 @@ declare const DeleteClusterCommand_base: {
79
79
  * <p>Base exception class for all service exceptions from DSQL service.</p>
80
80
  *
81
81
  * @public
82
+ * @example Delete Cluster
83
+ * ```javascript
84
+ * //
85
+ * const input = {
86
+ * "identifier": "kiqenqglxyl2snyvkvnj2c3s2e"
87
+ * };
88
+ * const command = new DeleteClusterCommand(input);
89
+ * await client.send(command);
90
+ * // example id: example-1
91
+ * ```
92
+ *
82
93
  */
83
94
  export declare class DeleteClusterCommand extends DeleteClusterCommand_base {
84
95
  /** @internal type navigation helper, not in runtime. */
@@ -75,6 +75,20 @@ declare const DeleteMultiRegionClustersCommand_base: {
75
75
  * <p>Base exception class for all service exceptions from DSQL service.</p>
76
76
  *
77
77
  * @public
78
+ * @example Delete Multi Region Clusters
79
+ * ```javascript
80
+ * //
81
+ * const input = {
82
+ * "linkedClusterArns": [
83
+ * "arn:aws:xanadu:us-east-1:111122223333:cluster/abcdefghijklmnopqrst12345",
84
+ * "arn:aws:xanadu:us-east-2:111122223333:cluster/klmnopqrstuvwxyzabcd54321"
85
+ * ]
86
+ * };
87
+ * const command = new DeleteMultiRegionClustersCommand(input);
88
+ * await client.send(command);
89
+ * // example id: example-1
90
+ * ```
91
+ *
78
92
  */
79
93
  export declare class DeleteMultiRegionClustersCommand extends DeleteMultiRegionClustersCommand_base {
80
94
  /** @internal type navigation helper, not in runtime. */
@@ -79,6 +79,17 @@ declare const GetClusterCommand_base: {
79
79
  * <p>Base exception class for all service exceptions from DSQL service.</p>
80
80
  *
81
81
  * @public
82
+ * @example Get Cluster
83
+ * ```javascript
84
+ * //
85
+ * const input = {
86
+ * "identifier": "kiqenqglxyl2snyvkvnj2c3s2e"
87
+ * };
88
+ * const command = new GetClusterCommand(input);
89
+ * await client.send(command);
90
+ * // example id: example-1
91
+ * ```
92
+ *
82
93
  */
83
94
  export declare class GetClusterCommand extends GetClusterCommand_base {
84
95
  /** @internal type navigation helper, not in runtime. */
@@ -78,6 +78,17 @@ declare const ListClustersCommand_base: {
78
78
  * <p>Base exception class for all service exceptions from DSQL service.</p>
79
79
  *
80
80
  * @public
81
+ * @example List Clusters
82
+ * ```javascript
83
+ * //
84
+ * const input = {
85
+ * "maxResults": 20
86
+ * };
87
+ * const command = new ListClustersCommand(input);
88
+ * await client.send(command);
89
+ * // example id: example-1
90
+ * ```
91
+ *
81
92
  */
82
93
  export declare class ListClustersCommand extends ListClustersCommand_base {
83
94
  /** @internal type navigation helper, not in runtime. */
@@ -73,6 +73,17 @@ declare const ListTagsForResourceCommand_base: {
73
73
  * <p>Base exception class for all service exceptions from DSQL service.</p>
74
74
  *
75
75
  * @public
76
+ * @example List Tags For Resource
77
+ * ```javascript
78
+ * //
79
+ * const input = {
80
+ * "resourceArn": "arn:aws:dsql:us-east-1:111111222222:cluster/kiqenqglxyl2snyvkvnj2c3s2e"
81
+ * };
82
+ * const command = new ListTagsForResourceCommand(input);
83
+ * await client.send(command);
84
+ * // example id: example-1
85
+ * ```
86
+ *
76
87
  */
77
88
  export declare class ListTagsForResourceCommand extends ListTagsForResourceCommand_base {
78
89
  /** @internal type navigation helper, not in runtime. */
@@ -75,6 +75,20 @@ declare const TagResourceCommand_base: {
75
75
  * <p>Base exception class for all service exceptions from DSQL service.</p>
76
76
  *
77
77
  * @public
78
+ * @example Tag Resource
79
+ * ```javascript
80
+ * //
81
+ * const input = {
82
+ * "resourceArn": "arn:aws:dsql:us-east-1:111111222222:cluster/kiqenqglxyl2snyvkvnj2c3s2e",
83
+ * "tags": {
84
+ * "MyKey": "MyValue"
85
+ * }
86
+ * };
87
+ * const command = new TagResourceCommand(input);
88
+ * await client.send(command);
89
+ * // example id: example-1
90
+ * ```
91
+ *
78
92
  */
79
93
  export declare class TagResourceCommand extends TagResourceCommand_base {
80
94
  /** @internal type navigation helper, not in runtime. */
@@ -72,6 +72,21 @@ declare const UntagResourceCommand_base: {
72
72
  * <p>Base exception class for all service exceptions from DSQL service.</p>
73
73
  *
74
74
  * @public
75
+ * @example Untag Resource
76
+ * ```javascript
77
+ * //
78
+ * const input = {
79
+ * "resourceArn": "arn:aws:dsql:us-east-1:111111222222:cluster/kiqenqglxyl2snyvkvnj2c3s2e",
80
+ * "tagKeys": [
81
+ * "MyKeyA",
82
+ * "MyKeyB"
83
+ * ]
84
+ * };
85
+ * const command = new UntagResourceCommand(input);
86
+ * await client.send(command);
87
+ * // example id: example-1
88
+ * ```
89
+ *
75
90
  */
76
91
  export declare class UntagResourceCommand extends UntagResourceCommand_base {
77
92
  /** @internal type navigation helper, not in runtime. */
@@ -84,6 +84,18 @@ declare const UpdateClusterCommand_base: {
84
84
  * <p>Base exception class for all service exceptions from DSQL service.</p>
85
85
  *
86
86
  * @public
87
+ * @example Update Cluster
88
+ * ```javascript
89
+ * //
90
+ * const input = {
91
+ * "deletionProtectionEnabled": false,
92
+ * "identifier": "kiqenqglxyl2snyvkvnj2c3s2e"
93
+ * };
94
+ * const command = new UpdateClusterCommand(input);
95
+ * await client.send(command);
96
+ * // example id: example-1
97
+ * ```
98
+ *
87
99
  */
88
100
  export declare class UpdateClusterCommand extends UpdateClusterCommand_base {
89
101
  /** @internal type navigation helper, not in runtime. */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-dsql",
3
3
  "description": "AWS SDK for JavaScript Dsql Client for Node.js, Browser and React Native",
4
- "version": "3.705.0",
4
+ "version": "3.706.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",