@aws-sdk/client-kms
Advanced tools
Comparing version 3.555.0 to 3.556.0
@@ -174,4 +174,16 @@ import { Command as $Command } from "@smithy/smithy-client"; | ||
* | ||
* @example To enable automatic rotation of key material | ||
* ```javascript | ||
* // The following example enables automatic rotation with a rotation period of 365 days for the specified KMS key. | ||
* const input = { | ||
* "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", | ||
* "RotationPeriodInDays": 365 | ||
* }; | ||
* const command = new EnableKeyRotationCommand(input); | ||
* await client.send(command); | ||
* // example id: to-enable-automatic-rotation-of-key-material-1712499675853 | ||
* ``` | ||
* | ||
*/ | ||
export declare class EnableKeyRotationCommand extends EnableKeyRotationCommand_base { | ||
} |
@@ -184,4 +184,24 @@ import { Command as $Command } from "@smithy/smithy-client"; | ||
* | ||
* @example To retrieve the rotation status for a KMS key | ||
* ```javascript | ||
* // 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. | ||
* const input = { | ||
* "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" | ||
* }; | ||
* const command = new GetKeyRotationStatusCommand(input); | ||
* const response = await client.send(command); | ||
* /* response == | ||
* { | ||
* "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", | ||
* "KeyRotationEnabled": true, | ||
* "NextRotationDate": "2024-04-05T15:14:47.757000+00:00", | ||
* "OnDemandRotationStartDate": "2024-03-02T10:11:36.564000+00:00", | ||
* "RotationPeriodInDays": 365 | ||
* } | ||
* *\/ | ||
* // example id: to-retrieve-the-rotation-status-for-a-kms-key-1712500357701 | ||
* ``` | ||
* | ||
*/ | ||
export declare class GetKeyRotationStatusCommand extends GetKeyRotationStatusCommand_base { | ||
} |
@@ -144,4 +144,32 @@ import { Command as $Command } from "@smithy/smithy-client"; | ||
* @public | ||
* @example To retrieve information about all completed key material rotations | ||
* ```javascript | ||
* // The following example returns information about all completed key material rotations for the specified KMS key. | ||
* const input = { | ||
* "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" | ||
* }; | ||
* const command = new ListKeyRotationsCommand(input); | ||
* const response = await client.send(command); | ||
* /* response == | ||
* { | ||
* "Rotations": [ | ||
* { | ||
* "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", | ||
* "RotationDate": "2024-03-02T10:11:36.564000+00:00", | ||
* "RotationType": "AUTOMATIC" | ||
* }, | ||
* { | ||
* "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab", | ||
* "RotationDate": "2024-04-05T15:14:47.757000+00:00", | ||
* "RotationType": "ON_DEMAND" | ||
* } | ||
* ], | ||
* "Truncated": false | ||
* } | ||
* *\/ | ||
* // example id: to-retrieve-information-about-all-completed-key-material-rotations-1712585167775 | ||
* ``` | ||
* | ||
*/ | ||
export declare class ListKeyRotationsCommand extends ListKeyRotationsCommand_base { | ||
} |
@@ -168,4 +168,20 @@ import { Command as $Command } from "@smithy/smithy-client"; | ||
* @public | ||
* @example To perform on-demand rotation of key material | ||
* ```javascript | ||
* // The following example immediately initiates rotation of the key material for the specified KMS key. | ||
* const input = { | ||
* "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" | ||
* }; | ||
* const command = new RotateKeyOnDemandCommand(input); | ||
* const response = await client.send(command); | ||
* /* response == | ||
* { | ||
* "KeyId": "1234abcd-12ab-34cd-56ef-1234567890ab" | ||
* } | ||
* *\/ | ||
* // example id: to-perform-on-demand-rotation-of-key-material-1712499025700 | ||
* ``` | ||
* | ||
*/ | ||
export declare class RotateKeyOnDemandCommand extends RotateKeyOnDemandCommand_base { | ||
} |
{ | ||
"name": "@aws-sdk/client-kms", | ||
"description": "AWS SDK for JavaScript Kms Client for Node.js, Browser and React Native", | ||
"version": "3.555.0", | ||
"version": "3.556.0", | ||
"scripts": { | ||
@@ -23,5 +23,5 @@ "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", | ||
"@aws-crypto/sha256-js": "3.0.0", | ||
"@aws-sdk/client-sts": "3.554.0", | ||
"@aws-sdk/core": "3.554.0", | ||
"@aws-sdk/credential-provider-node": "3.554.0", | ||
"@aws-sdk/client-sts": "3.556.0", | ||
"@aws-sdk/core": "3.556.0", | ||
"@aws-sdk/credential-provider-node": "3.556.0", | ||
"@aws-sdk/middleware-host-header": "3.535.0", | ||
@@ -28,0 +28,0 @@ "@aws-sdk/middleware-logger": "3.535.0", |
1618331
33521
+ Added@aws-sdk/client-sso@3.556.0(transitive)
+ Added@aws-sdk/client-sso-oidc@3.556.0(transitive)
+ Added@aws-sdk/client-sts@3.556.0(transitive)
+ Added@aws-sdk/core@3.556.0(transitive)
+ Added@aws-sdk/credential-provider-ini@3.556.0(transitive)
+ Added@aws-sdk/credential-provider-node@3.556.0(transitive)
+ Added@aws-sdk/credential-provider-sso@3.556.0(transitive)
+ Added@aws-sdk/credential-provider-web-identity@3.556.0(transitive)
+ Added@aws-sdk/token-providers@3.556.0(transitive)
- Removed@aws-sdk/client-sso@3.554.0(transitive)
- Removed@aws-sdk/client-sso-oidc@3.554.0(transitive)
- Removed@aws-sdk/client-sts@3.554.0(transitive)
- Removed@aws-sdk/core@3.554.0(transitive)
- Removed@aws-sdk/credential-provider-ini@3.554.0(transitive)
- Removed@aws-sdk/credential-provider-node@3.554.0(transitive)
- Removed@aws-sdk/credential-provider-sso@3.554.0(transitive)
- Removed@aws-sdk/credential-provider-web-identity@3.554.0(transitive)
- Removed@aws-sdk/token-providers@3.554.0(transitive)
Updated@aws-sdk/client-sts@3.556.0
Updated@aws-sdk/core@3.556.0