@aws-sdk/client-secrets-manager 3.316.0 → 3.317.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.
|
@@ -81,6 +81,35 @@ export interface ReplicateSecretToRegionsCommandOutput extends ReplicateSecretTo
|
|
|
81
81
|
* <p>Secrets Manager can't find the resource that you asked for.</p>
|
|
82
82
|
*
|
|
83
83
|
*
|
|
84
|
+
* @example Example
|
|
85
|
+
* ```javascript
|
|
86
|
+
* // The following example replicates a secret to eu-west-3. The replica is encrypted with the AWS managed key aws/secretsmanager.
|
|
87
|
+
* const input = {
|
|
88
|
+
* "AddReplicaRegions": [
|
|
89
|
+
* {
|
|
90
|
+
* "Region": "eu-west-3"
|
|
91
|
+
* }
|
|
92
|
+
* ],
|
|
93
|
+
* "ForceOverwriteReplicaSecret": true,
|
|
94
|
+
* "SecretId": "MyTestSecret"
|
|
95
|
+
* };
|
|
96
|
+
* const command = new ReplicateSecretToRegionsCommand(input);
|
|
97
|
+
* const response = await client.send(command);
|
|
98
|
+
* /* response ==
|
|
99
|
+
* {
|
|
100
|
+
* "ARN": "arn:aws:secretsmanager:us-west-2:123456789012:secret:MyTestSecret-1a2b3c",
|
|
101
|
+
* "ReplicationStatus": [
|
|
102
|
+
* {
|
|
103
|
+
* "KmsKeyId": "alias/aws/secretsmanager",
|
|
104
|
+
* "Region": "eu-west-3",
|
|
105
|
+
* "Status": "InProgress"
|
|
106
|
+
* }
|
|
107
|
+
* ]
|
|
108
|
+
* }
|
|
109
|
+
* *\/
|
|
110
|
+
* // example id: example-1679591984774
|
|
111
|
+
* ```
|
|
112
|
+
*
|
|
84
113
|
*/
|
|
85
114
|
export declare class ReplicateSecretToRegionsCommand extends $Command<ReplicateSecretToRegionsCommandInput, ReplicateSecretToRegionsCommandOutput, SecretsManagerClientResolvedConfig> {
|
|
86
115
|
readonly input: ReplicateSecretToRegionsCommandInput;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-secrets-manager",
|
|
3
3
|
"description": "AWS SDK for JavaScript Secrets Manager Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.317.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",
|