@aws-sdk/client-kms 3.555.0 → 3.563.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.
@@ -171,6 +171,18 @@ declare const EnableKeyRotationCommand_base: {
171
171
  * // example id: to-enable-automatic-rotation-of-key-material-1478629109677
172
172
  * ```
173
173
  *
174
+ * @example To enable automatic rotation of key material
175
+ * ```javascript
176
+ * // The following example enables automatic rotation with a rotation period of 365 days for the specified KMS key.
177
+ * const input = {
178
+ * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab",
179
+ * "RotationPeriodInDays": 365
180
+ * };
181
+ * const command = new EnableKeyRotationCommand(input);
182
+ * await client.send(command);
183
+ * // example id: to-enable-automatic-rotation-of-key-material-1712499675853
184
+ * ```
185
+ *
174
186
  */
175
187
  export declare class EnableKeyRotationCommand extends EnableKeyRotationCommand_base {
176
188
  }
@@ -181,6 +181,26 @@ declare const GetKeyRotationStatusCommand_base: {
181
181
  * // example id: to-retrieve-the-rotation-status-for-a-cmk-1479172287408
182
182
  * ```
183
183
  *
184
+ * @example To retrieve the rotation status for a KMS key
185
+ * ```javascript
186
+ * // The following example retrieves detailed information about the rotation status for a KMS key, including whether automatic key rotation is enabled for the specified KMS key, the rotation period, and the next scheduled rotation date.
187
+ * const input = {
188
+ * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab"
189
+ * };
190
+ * const command = new GetKeyRotationStatusCommand(input);
191
+ * const response = await client.send(command);
192
+ * /* response ==
193
+ * {
194
+ * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab",
195
+ * "KeyRotationEnabled": true,
196
+ * "NextRotationDate": "2024-04-05T15:14:47.757000+00:00",
197
+ * "OnDemandRotationStartDate": "2024-03-02T10:11:36.564000+00:00",
198
+ * "RotationPeriodInDays": 365
199
+ * }
200
+ * *\/
201
+ * // example id: to-retrieve-the-rotation-status-for-a-kms-key-1712500357701
202
+ * ```
203
+ *
184
204
  */
185
205
  export declare class GetKeyRotationStatusCommand extends GetKeyRotationStatusCommand_base {
186
206
  }
@@ -141,6 +141,34 @@ declare const ListKeyRotationsCommand_base: {
141
141
  * <p>Base exception class for all service exceptions from KMS service.</p>
142
142
  *
143
143
  * @public
144
+ * @example To retrieve information about all completed key material rotations
145
+ * ```javascript
146
+ * // The following example returns information about all completed key material rotations for the specified KMS key.
147
+ * const input = {
148
+ * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab"
149
+ * };
150
+ * const command = new ListKeyRotationsCommand(input);
151
+ * const response = await client.send(command);
152
+ * /* response ==
153
+ * {
154
+ * "Rotations": [
155
+ * {
156
+ * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab",
157
+ * "RotationDate": "2024-03-02T10:11:36.564000+00:00",
158
+ * "RotationType": "AUTOMATIC"
159
+ * },
160
+ * {
161
+ * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab",
162
+ * "RotationDate": "2024-04-05T15:14:47.757000+00:00",
163
+ * "RotationType": "ON_DEMAND"
164
+ * }
165
+ * ],
166
+ * "Truncated": false
167
+ * }
168
+ * *\/
169
+ * // example id: to-retrieve-information-about-all-completed-key-material-rotations-1712585167775
170
+ * ```
171
+ *
144
172
  */
145
173
  export declare class ListKeyRotationsCommand extends ListKeyRotationsCommand_base {
146
174
  }
@@ -165,6 +165,22 @@ declare const RotateKeyOnDemandCommand_base: {
165
165
  * <p>Base exception class for all service exceptions from KMS service.</p>
166
166
  *
167
167
  * @public
168
+ * @example To perform on-demand rotation of key material
169
+ * ```javascript
170
+ * // The following example immediately initiates rotation of the key material for the specified KMS key.
171
+ * const input = {
172
+ * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab"
173
+ * };
174
+ * const command = new RotateKeyOnDemandCommand(input);
175
+ * const response = await client.send(command);
176
+ * /* response ==
177
+ * {
178
+ * "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab"
179
+ * }
180
+ * *\/
181
+ * // example id: to-perform-on-demand-rotation-of-key-material-1712499025700
182
+ * ```
183
+ *
168
184
  */
169
185
  export declare class RotateKeyOnDemandCommand extends RotateKeyOnDemandCommand_base {
170
186
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kms",
3
3
  "description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native",
4
- "version": "3.555.0",
4
+ "version": "3.563.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-kms",
@@ -20,9 +20,9 @@
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.554.0",
24
- "@aws-sdk/core": "3.554.0",
25
- "@aws-sdk/credential-provider-node": "3.554.0",
23
+ "@aws-sdk/client-sts": "3.556.0",
24
+ "@aws-sdk/core": "3.556.0",
25
+ "@aws-sdk/credential-provider-node": "3.563.0",
26
26
  "@aws-sdk/middleware-host-header": "3.535.0",
27
27
  "@aws-sdk/middleware-logger": "3.535.0",
28
28
  "@aws-sdk/middleware-recursion-detection": "3.535.0",