@aws-sdk/client-secrets-manager 3.34.0 → 3.37.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.
- package/CHANGELOG.md +47 -0
- package/{dist/cjs → dist-cjs}/SecretsManager.js +2 -68
- package/dist-cjs/SecretsManagerClient.js +35 -0
- package/dist-cjs/commands/CancelRotateSecretCommand.js +36 -0
- package/dist-cjs/commands/CreateSecretCommand.js +36 -0
- package/dist-cjs/commands/DeleteResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/DeleteSecretCommand.js +36 -0
- package/dist-cjs/commands/DescribeSecretCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/GetRandomPasswordCommand.js +2 -39
- package/dist-cjs/commands/GetResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/GetSecretValueCommand.js +36 -0
- package/dist-cjs/commands/ListSecretVersionIdsCommand.js +36 -0
- package/dist-cjs/commands/ListSecretsCommand.js +36 -0
- package/dist-cjs/commands/PutResourcePolicyCommand.js +36 -0
- package/dist-cjs/commands/PutSecretValueCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/RemoveRegionsFromReplicationCommand.js +2 -27
- package/{dist/cjs → dist-cjs}/commands/ReplicateSecretToRegionsCommand.js +2 -28
- package/dist-cjs/commands/RestoreSecretCommand.js +36 -0
- package/dist-cjs/commands/RotateSecretCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/commands/StopReplicationToReplicaCommand.js +2 -27
- package/dist-cjs/commands/TagResourceCommand.js +36 -0
- package/dist-cjs/commands/UntagResourceCommand.js +36 -0
- package/dist-cjs/commands/UpdateSecretCommand.js +36 -0
- package/dist-cjs/commands/UpdateSecretVersionStageCommand.js +36 -0
- package/dist-cjs/commands/ValidateResourcePolicyCommand.js +36 -0
- package/{dist/cjs → dist-cjs}/endpoints.js +1 -2
- package/{dist/cjs → dist-cjs}/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/index.js +0 -1
- package/{dist/cjs → dist-cjs}/models/models_0.js +0 -187
- package/{dist/cjs → dist-cjs}/pagination/Interfaces.js +0 -1
- package/{dist/cjs → dist-cjs}/pagination/ListSecretVersionIdsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/pagination/ListSecretsPaginator.js +1 -12
- package/{dist/cjs → dist-cjs}/protocols/Aws_json1_1.js +0 -6
- package/{dist/cjs → dist-cjs}/runtimeConfig.browser.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.js +1 -5
- package/{dist/cjs → dist-cjs}/runtimeConfig.native.js +0 -4
- package/{dist/cjs → dist-cjs}/runtimeConfig.shared.js +1 -5
- package/{dist/es → dist-es}/SecretsManager.js +2 -3
- package/{dist/es → dist-es}/SecretsManagerClient.js +1 -2
- package/{dist/es → dist-es}/commands/CancelRotateSecretCommand.js +2 -3
- package/{dist/es → dist-es}/commands/CreateSecretCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteResourcePolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DeleteSecretCommand.js +2 -3
- package/{dist/es → dist-es}/commands/DescribeSecretCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetRandomPasswordCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetResourcePolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/GetSecretValueCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListSecretVersionIdsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ListSecretsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutResourcePolicyCommand.js +2 -3
- package/{dist/es → dist-es}/commands/PutSecretValueCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RemoveRegionsFromReplicationCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ReplicateSecretToRegionsCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RestoreSecretCommand.js +2 -3
- package/{dist/es → dist-es}/commands/RotateSecretCommand.js +2 -3
- package/{dist/es → dist-es}/commands/StopReplicationToReplicaCommand.js +2 -3
- package/{dist/es → dist-es}/commands/TagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UntagResourceCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateSecretCommand.js +2 -3
- package/{dist/es → dist-es}/commands/UpdateSecretVersionStageCommand.js +2 -3
- package/{dist/es → dist-es}/commands/ValidateResourcePolicyCommand.js +2 -3
- package/{dist/es → dist-es}/endpoints.js +1 -2
- package/{dist/types/index.d.ts → dist-es/index.js} +0 -0
- package/{dist/types/models/index.d.ts → dist-es/models/index.js} +0 -0
- package/{dist/es → dist-es}/models/models_0.js +0 -1
- package/dist-es/pagination/Interfaces.js +1 -0
- package/{dist/es → dist-es}/pagination/ListSecretVersionIdsPaginator.js +1 -2
- package/{dist/es → dist-es}/pagination/ListSecretsPaginator.js +1 -2
- package/{dist/es → dist-es}/protocols/Aws_json1_1.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.browser.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.js +1 -2
- package/{dist/es → dist-es}/runtimeConfig.native.js +0 -1
- package/{dist/es → dist-es}/runtimeConfig.shared.js +1 -2
- package/{dist/types → dist-types}/SecretsManager.d.ts +19 -13
- package/{dist/types → dist-types}/SecretsManagerClient.d.ts +9 -9
- package/{dist/types → dist-types}/commands/CancelRotateSecretCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/CreateSecretCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteResourcePolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DeleteSecretCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/DescribeSecretCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetRandomPasswordCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetResourcePolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/GetSecretValueCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListSecretVersionIdsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ListSecretsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/PutResourcePolicyCommand.d.ts +3 -3
- package/{dist/types/ts3.4 → dist-types}/commands/PutSecretValueCommand.d.ts +123 -122
- package/{dist/types → dist-types}/commands/RemoveRegionsFromReplicationCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ReplicateSecretToRegionsCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RestoreSecretCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/RotateSecretCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/StopReplicationToReplicaCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/TagResourceCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/UntagResourceCommand.d.ts +3 -3
- package/{dist/types/ts3.4 → dist-types}/commands/UpdateSecretCommand.d.ts +124 -119
- package/{dist/types → dist-types}/commands/UpdateSecretVersionStageCommand.d.ts +3 -3
- package/{dist/types → dist-types}/commands/ValidateResourcePolicyCommand.d.ts +3 -3
- package/{dist/types → dist-types}/endpoints.d.ts +0 -0
- package/{index.ts → dist-types/index.d.ts} +0 -0
- package/{models/index.ts → dist-types/models/index.d.ts} +0 -0
- package/{dist/types → dist-types}/models/models_0.d.ts +54 -268
- package/{dist/types → dist-types}/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSecretVersionIdsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/pagination/ListSecretsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/protocols/Aws_json1_1.d.ts +3 -3
- package/{dist/types → dist-types}/runtimeConfig.browser.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.d.ts +1 -1
- package/{dist/types → dist-types}/runtimeConfig.native.d.ts +0 -0
- package/{dist/types → dist-types}/runtimeConfig.shared.d.ts +0 -0
- package/dist-types/ts3.4/SecretsManager.d.ts +115 -0
- package/dist-types/ts3.4/SecretsManagerClient.d.ts +89 -0
- package/dist-types/ts3.4/commands/CancelRotateSecretCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/CreateSecretCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DeleteSecretCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/DescribeSecretCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetRandomPasswordCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/GetSecretValueCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ListSecretsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/PutSecretValueCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/RemoveRegionsFromReplicationCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RestoreSecretCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/RotateSecretCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/commands/StopReplicationToReplicaCommand.d.ts +5 -23
- package/dist-types/ts3.4/commands/TagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UntagResourceCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSecretCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +17 -0
- package/dist-types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +17 -0
- package/{dist/types → dist-types}/ts3.4/endpoints.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/index.d.ts +0 -0
- package/{dist/types → dist-types}/ts3.4/models/index.d.ts +0 -0
- package/dist-types/ts3.4/models/models_0.d.ts +791 -0
- package/{dist/types → dist-types}/ts3.4/pagination/Interfaces.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSecretVersionIdsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/pagination/ListSecretsPaginator.d.ts +1 -1
- package/{dist/types → dist-types}/ts3.4/protocols/Aws_json1_1.d.ts +3 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.browser.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.d.ts +2 -4
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.native.d.ts +1 -3
- package/{dist/types → dist-types}/ts3.4/runtimeConfig.shared.d.ts +1 -3
- package/package.json +45 -42
- package/SecretsManager.ts +0 -1642
- package/SecretsManagerClient.ts +0 -384
- package/commands/CancelRotateSecretCommand.ts +0 -146
- package/commands/CreateSecretCommand.ts +0 -181
- package/commands/DeleteResourcePolicyCommand.ts +0 -117
- package/commands/DeleteSecretCommand.ts +0 -139
- package/commands/DescribeSecretCommand.ts +0 -121
- package/commands/GetRandomPasswordCommand.ts +0 -106
- package/commands/GetResourcePolicyCommand.ts +0 -120
- package/commands/GetSecretValueCommand.ts +0 -121
- package/commands/ListSecretVersionIdsCommand.ts +0 -122
- package/commands/ListSecretsCommand.ts +0 -123
- package/commands/PutResourcePolicyCommand.ts +0 -125
- package/commands/PutSecretValueCommand.ts +0 -181
- package/commands/RemoveRegionsFromReplicationCommand.ts +0 -99
- package/commands/ReplicateSecretToRegionsCommand.ts +0 -95
- package/commands/RestoreSecretCommand.ts +0 -112
- package/commands/RotateSecretCommand.ts +0 -155
- package/commands/StopReplicationToReplicaCommand.ts +0 -94
- package/commands/TagResourceCommand.ts +0 -149
- package/commands/UntagResourceCommand.ts +0 -122
- package/commands/UpdateSecretCommand.ts +0 -178
- package/commands/UpdateSecretVersionStageCommand.ts +0 -130
- package/commands/ValidateResourcePolicyCommand.ts +0 -128
- package/dist/cjs/SecretsManager.js.map +0 -1
- package/dist/cjs/SecretsManagerClient.js +0 -106
- package/dist/cjs/SecretsManagerClient.js.map +0 -1
- package/dist/cjs/commands/CancelRotateSecretCommand.js +0 -113
- package/dist/cjs/commands/CancelRotateSecretCommand.js.map +0 -1
- package/dist/cjs/commands/CreateSecretCommand.js +0 -148
- package/dist/cjs/commands/CreateSecretCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js +0 -84
- package/dist/cjs/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/DeleteSecretCommand.js +0 -106
- package/dist/cjs/commands/DeleteSecretCommand.js.map +0 -1
- package/dist/cjs/commands/DescribeSecretCommand.js +0 -88
- package/dist/cjs/commands/DescribeSecretCommand.js.map +0 -1
- package/dist/cjs/commands/GetRandomPasswordCommand.js.map +0 -1
- package/dist/cjs/commands/GetResourcePolicyCommand.js +0 -87
- package/dist/cjs/commands/GetResourcePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/GetSecretValueCommand.js +0 -88
- package/dist/cjs/commands/GetSecretValueCommand.js.map +0 -1
- package/dist/cjs/commands/ListSecretVersionIdsCommand.js +0 -89
- package/dist/cjs/commands/ListSecretVersionIdsCommand.js.map +0 -1
- package/dist/cjs/commands/ListSecretsCommand.js +0 -90
- package/dist/cjs/commands/ListSecretsCommand.js.map +0 -1
- package/dist/cjs/commands/PutResourcePolicyCommand.js +0 -92
- package/dist/cjs/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist/cjs/commands/PutSecretValueCommand.js +0 -148
- package/dist/cjs/commands/PutSecretValueCommand.js.map +0 -1
- package/dist/cjs/commands/RemoveRegionsFromReplicationCommand.js.map +0 -1
- package/dist/cjs/commands/ReplicateSecretToRegionsCommand.js.map +0 -1
- package/dist/cjs/commands/RestoreSecretCommand.js +0 -79
- package/dist/cjs/commands/RestoreSecretCommand.js.map +0 -1
- package/dist/cjs/commands/RotateSecretCommand.js +0 -122
- package/dist/cjs/commands/RotateSecretCommand.js.map +0 -1
- package/dist/cjs/commands/StopReplicationToReplicaCommand.js.map +0 -1
- package/dist/cjs/commands/TagResourceCommand.js +0 -116
- package/dist/cjs/commands/TagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UntagResourceCommand.js +0 -89
- package/dist/cjs/commands/UntagResourceCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateSecretCommand.js +0 -145
- package/dist/cjs/commands/UpdateSecretCommand.js.map +0 -1
- package/dist/cjs/commands/UpdateSecretVersionStageCommand.js +0 -97
- package/dist/cjs/commands/UpdateSecretVersionStageCommand.js.map +0 -1
- package/dist/cjs/commands/ValidateResourcePolicyCommand.js +0 -95
- package/dist/cjs/commands/ValidateResourcePolicyCommand.js.map +0 -1
- package/dist/cjs/endpoints.js.map +0 -1
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/models/index.js.map +0 -1
- package/dist/cjs/models/models_0.js.map +0 -1
- package/dist/cjs/package.json +0 -93
- package/dist/cjs/pagination/Interfaces.js.map +0 -1
- package/dist/cjs/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
- package/dist/cjs/pagination/ListSecretsPaginator.js.map +0 -1
- package/dist/cjs/protocols/Aws_json1_1.js.map +0 -1
- package/dist/cjs/runtimeConfig.browser.js.map +0 -1
- package/dist/cjs/runtimeConfig.js.map +0 -1
- package/dist/cjs/runtimeConfig.native.js.map +0 -1
- package/dist/cjs/runtimeConfig.shared.js.map +0 -1
- package/dist/es/SecretsManager.js.map +0 -1
- package/dist/es/SecretsManagerClient.js.map +0 -1
- package/dist/es/commands/CancelRotateSecretCommand.js.map +0 -1
- package/dist/es/commands/CreateSecretCommand.js.map +0 -1
- package/dist/es/commands/DeleteResourcePolicyCommand.js.map +0 -1
- package/dist/es/commands/DeleteSecretCommand.js.map +0 -1
- package/dist/es/commands/DescribeSecretCommand.js.map +0 -1
- package/dist/es/commands/GetRandomPasswordCommand.js.map +0 -1
- package/dist/es/commands/GetResourcePolicyCommand.js.map +0 -1
- package/dist/es/commands/GetSecretValueCommand.js.map +0 -1
- package/dist/es/commands/ListSecretVersionIdsCommand.js.map +0 -1
- package/dist/es/commands/ListSecretsCommand.js.map +0 -1
- package/dist/es/commands/PutResourcePolicyCommand.js.map +0 -1
- package/dist/es/commands/PutSecretValueCommand.js.map +0 -1
- package/dist/es/commands/RemoveRegionsFromReplicationCommand.js.map +0 -1
- package/dist/es/commands/ReplicateSecretToRegionsCommand.js.map +0 -1
- package/dist/es/commands/RestoreSecretCommand.js.map +0 -1
- package/dist/es/commands/RotateSecretCommand.js.map +0 -1
- package/dist/es/commands/StopReplicationToReplicaCommand.js.map +0 -1
- package/dist/es/commands/TagResourceCommand.js.map +0 -1
- package/dist/es/commands/UntagResourceCommand.js.map +0 -1
- package/dist/es/commands/UpdateSecretCommand.js.map +0 -1
- package/dist/es/commands/UpdateSecretVersionStageCommand.js.map +0 -1
- package/dist/es/commands/ValidateResourcePolicyCommand.js.map +0 -1
- package/dist/es/endpoints.js.map +0 -1
- package/dist/es/index.js +0 -29
- package/dist/es/index.js.map +0 -1
- package/dist/es/models/index.js +0 -2
- package/dist/es/models/index.js.map +0 -1
- package/dist/es/models/models_0.js.map +0 -1
- package/dist/es/package.json +0 -93
- package/dist/es/pagination/Interfaces.js +0 -2
- package/dist/es/pagination/Interfaces.js.map +0 -1
- package/dist/es/pagination/ListSecretVersionIdsPaginator.js.map +0 -1
- package/dist/es/pagination/ListSecretsPaginator.js.map +0 -1
- package/dist/es/protocols/Aws_json1_1.js.map +0 -1
- package/dist/es/runtimeConfig.browser.js.map +0 -1
- package/dist/es/runtimeConfig.js.map +0 -1
- package/dist/es/runtimeConfig.native.js.map +0 -1
- package/dist/es/runtimeConfig.shared.js.map +0 -1
- package/dist/types/commands/PutSecretValueCommand.d.ts +0 -122
- package/dist/types/commands/UpdateSecretCommand.d.ts +0 -119
- package/dist/types/ts3.4/SecretsManager.d.ts +0 -1014
- package/dist/types/ts3.4/SecretsManagerClient.d.ts +0 -216
- package/dist/types/ts3.4/commands/CancelRotateSecretCommand.d.ts +0 -87
- package/dist/types/ts3.4/commands/CreateSecretCommand.d.ts +0 -122
- package/dist/types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +0 -58
- package/dist/types/ts3.4/commands/DeleteSecretCommand.d.ts +0 -80
- package/dist/types/ts3.4/commands/DescribeSecretCommand.d.ts +0 -62
- package/dist/types/ts3.4/commands/GetRandomPasswordCommand.d.ts +0 -47
- package/dist/types/ts3.4/commands/GetResourcePolicyCommand.d.ts +0 -61
- package/dist/types/ts3.4/commands/GetSecretValueCommand.d.ts +0 -62
- package/dist/types/ts3.4/commands/ListSecretVersionIdsCommand.d.ts +0 -63
- package/dist/types/ts3.4/commands/ListSecretsCommand.d.ts +0 -64
- package/dist/types/ts3.4/commands/PutResourcePolicyCommand.d.ts +0 -66
- package/dist/types/ts3.4/commands/ReplicateSecretToRegionsCommand.d.ts +0 -36
- package/dist/types/ts3.4/commands/RestoreSecretCommand.d.ts +0 -53
- package/dist/types/ts3.4/commands/RotateSecretCommand.d.ts +0 -96
- package/dist/types/ts3.4/commands/TagResourceCommand.d.ts +0 -90
- package/dist/types/ts3.4/commands/UntagResourceCommand.d.ts +0 -63
- package/dist/types/ts3.4/commands/UpdateSecretVersionStageCommand.d.ts +0 -71
- package/dist/types/ts3.4/commands/ValidateResourcePolicyCommand.d.ts +0 -69
- package/dist/types/ts3.4/models/models_0.d.ts +0 -2041
- package/endpoints.ts +0 -86
- package/jest.config.js +0 -4
- package/models/models_0.ts +0 -2422
- package/pagination/Interfaces.ts +0 -7
- package/pagination/ListSecretVersionIdsPaginator.ts +0 -58
- package/pagination/ListSecretsPaginator.ts +0 -54
- package/protocols/Aws_json1_1.ts +0 -3421
- package/runtimeConfig.browser.ts +0 -40
- package/runtimeConfig.native.ts +0 -16
- package/runtimeConfig.shared.ts +0 -16
- package/runtimeConfig.ts +0 -45
- package/tsconfig.es.json +0 -10
- package/tsconfig.json +0 -31
- package/tsconfig.types.json +0 -8
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { StopReplicationToReplicaRequest, StopReplicationToReplicaResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1StopReplicationToReplicaCommand,
|
|
5
|
-
serializeAws_json1_1StopReplicationToReplicaCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface StopReplicationToReplicaCommandInput extends StopReplicationToReplicaRequest {}
|
|
21
|
-
export interface StopReplicationToReplicaCommandOutput extends StopReplicationToReplicaResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Removes the secret from replication and promotes the secret to a regional secret in the replica Region.</p>
|
|
25
|
-
* @example
|
|
26
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
27
|
-
* ```javascript
|
|
28
|
-
* import { SecretsManagerClient, StopReplicationToReplicaCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
29
|
-
* // const { SecretsManagerClient, StopReplicationToReplicaCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
30
|
-
* const client = new SecretsManagerClient(config);
|
|
31
|
-
* const command = new StopReplicationToReplicaCommand(input);
|
|
32
|
-
* const response = await client.send(command);
|
|
33
|
-
* ```
|
|
34
|
-
*
|
|
35
|
-
* @see {@link StopReplicationToReplicaCommandInput} for command's `input` shape.
|
|
36
|
-
* @see {@link StopReplicationToReplicaCommandOutput} for command's `response` shape.
|
|
37
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
38
|
-
*
|
|
39
|
-
*/
|
|
40
|
-
export class StopReplicationToReplicaCommand extends $Command<
|
|
41
|
-
StopReplicationToReplicaCommandInput,
|
|
42
|
-
StopReplicationToReplicaCommandOutput,
|
|
43
|
-
SecretsManagerClientResolvedConfig
|
|
44
|
-
> {
|
|
45
|
-
// Start section: command_properties
|
|
46
|
-
// End section: command_properties
|
|
47
|
-
|
|
48
|
-
constructor(readonly input: StopReplicationToReplicaCommandInput) {
|
|
49
|
-
// Start section: command_constructor
|
|
50
|
-
super();
|
|
51
|
-
// End section: command_constructor
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
* @internal
|
|
56
|
-
*/
|
|
57
|
-
resolveMiddleware(
|
|
58
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
59
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
60
|
-
options?: __HttpHandlerOptions
|
|
61
|
-
): Handler<StopReplicationToReplicaCommandInput, StopReplicationToReplicaCommandOutput> {
|
|
62
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
63
|
-
|
|
64
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
65
|
-
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "SecretsManagerClient";
|
|
68
|
-
const commandName = "StopReplicationToReplicaCommand";
|
|
69
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: StopReplicationToReplicaRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: StopReplicationToReplicaResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve(
|
|
78
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
79
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
80
|
-
handlerExecutionContext
|
|
81
|
-
);
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
private serialize(input: StopReplicationToReplicaCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
85
|
-
return serializeAws_json1_1StopReplicationToReplicaCommand(input, context);
|
|
86
|
-
}
|
|
87
|
-
|
|
88
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<StopReplicationToReplicaCommandOutput> {
|
|
89
|
-
return deserializeAws_json1_1StopReplicationToReplicaCommand(output, context);
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
// Start section: command_body_extra
|
|
93
|
-
// End section: command_body_extra
|
|
94
|
-
}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { TagResourceRequest } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1TagResourceCommand,
|
|
5
|
-
serializeAws_json1_1TagResourceCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface TagResourceCommandInput extends TagResourceRequest {}
|
|
21
|
-
export interface TagResourceCommandOutput extends __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Attaches one or more tags, each consisting of a key name and a value, to the specified
|
|
25
|
-
* secret. Tags are part of the secret's overall metadata, and are not associated with any
|
|
26
|
-
* specific version of the secret. This operation only appends tags to the existing list of tags.
|
|
27
|
-
* To remove tags, you must use <a>UntagResource</a>.</p>
|
|
28
|
-
* <p>The following basic restrictions apply to tags:</p>
|
|
29
|
-
* <ul>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>Maximum number of tags per secret—50</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>Maximum key length—127 Unicode characters in UTF-8</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* <li>
|
|
37
|
-
* <p>Maximum value length—255 Unicode characters in UTF-8</p>
|
|
38
|
-
* </li>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>Tag keys and values are case sensitive.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>Do not use the <code>aws:</code> prefix in your tag names or values because Amazon Web Services reserves it
|
|
44
|
-
* for Amazon Web Services use. You can't edit or delete tag names or values with this
|
|
45
|
-
* prefix. Tags with this prefix do not count against your tags per secret limit.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>If you use your tagging schema across multiple services and resources,
|
|
49
|
-
* remember other services might have restrictions on allowed characters. Generally
|
|
50
|
-
* allowed characters: letters, spaces, and numbers representable in UTF-8, plus the
|
|
51
|
-
* following special characters: + - = . _ : / @.</p>
|
|
52
|
-
* </li>
|
|
53
|
-
* </ul>
|
|
54
|
-
* <important>
|
|
55
|
-
* <p>If you use tags as part of your security strategy, then adding or removing a tag can
|
|
56
|
-
* change permissions. If successfully completing this operation would result in you losing
|
|
57
|
-
* your permissions for this secret, then the operation is blocked and returns an Access Denied
|
|
58
|
-
* error.</p>
|
|
59
|
-
* </important>
|
|
60
|
-
* <p>
|
|
61
|
-
* <b>Minimum permissions</b>
|
|
62
|
-
* </p>
|
|
63
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
64
|
-
* <ul>
|
|
65
|
-
* <li>
|
|
66
|
-
* <p>secretsmanager:TagResource</p>
|
|
67
|
-
* </li>
|
|
68
|
-
* </ul>
|
|
69
|
-
* <p>
|
|
70
|
-
* <b>Related operations</b>
|
|
71
|
-
* </p>
|
|
72
|
-
* <ul>
|
|
73
|
-
* <li>
|
|
74
|
-
* <p>To remove one or more tags from the collection attached to a secret, use <a>UntagResource</a>.</p>
|
|
75
|
-
* </li>
|
|
76
|
-
* <li>
|
|
77
|
-
* <p>To view the list of tags attached to a secret, use <a>DescribeSecret</a>.</p>
|
|
78
|
-
* </li>
|
|
79
|
-
* </ul>
|
|
80
|
-
* @example
|
|
81
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
82
|
-
* ```javascript
|
|
83
|
-
* import { SecretsManagerClient, TagResourceCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
84
|
-
* // const { SecretsManagerClient, TagResourceCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
85
|
-
* const client = new SecretsManagerClient(config);
|
|
86
|
-
* const command = new TagResourceCommand(input);
|
|
87
|
-
* const response = await client.send(command);
|
|
88
|
-
* ```
|
|
89
|
-
*
|
|
90
|
-
* @see {@link TagResourceCommandInput} for command's `input` shape.
|
|
91
|
-
* @see {@link TagResourceCommandOutput} for command's `response` shape.
|
|
92
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
93
|
-
*
|
|
94
|
-
*/
|
|
95
|
-
export class TagResourceCommand extends $Command<
|
|
96
|
-
TagResourceCommandInput,
|
|
97
|
-
TagResourceCommandOutput,
|
|
98
|
-
SecretsManagerClientResolvedConfig
|
|
99
|
-
> {
|
|
100
|
-
// Start section: command_properties
|
|
101
|
-
// End section: command_properties
|
|
102
|
-
|
|
103
|
-
constructor(readonly input: TagResourceCommandInput) {
|
|
104
|
-
// Start section: command_constructor
|
|
105
|
-
super();
|
|
106
|
-
// End section: command_constructor
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* @internal
|
|
111
|
-
*/
|
|
112
|
-
resolveMiddleware(
|
|
113
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
114
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
115
|
-
options?: __HttpHandlerOptions
|
|
116
|
-
): Handler<TagResourceCommandInput, TagResourceCommandOutput> {
|
|
117
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
118
|
-
|
|
119
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
120
|
-
|
|
121
|
-
const { logger } = configuration;
|
|
122
|
-
const clientName = "SecretsManagerClient";
|
|
123
|
-
const commandName = "TagResourceCommand";
|
|
124
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
125
|
-
logger,
|
|
126
|
-
clientName,
|
|
127
|
-
commandName,
|
|
128
|
-
inputFilterSensitiveLog: TagResourceRequest.filterSensitiveLog,
|
|
129
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
130
|
-
};
|
|
131
|
-
const { requestHandler } = configuration;
|
|
132
|
-
return stack.resolve(
|
|
133
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
134
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
135
|
-
handlerExecutionContext
|
|
136
|
-
);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
private serialize(input: TagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
140
|
-
return serializeAws_json1_1TagResourceCommand(input, context);
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<TagResourceCommandOutput> {
|
|
144
|
-
return deserializeAws_json1_1TagResourceCommand(output, context);
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
// Start section: command_body_extra
|
|
148
|
-
// End section: command_body_extra
|
|
149
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { UntagResourceRequest } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1UntagResourceCommand,
|
|
5
|
-
serializeAws_json1_1UntagResourceCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface UntagResourceCommandInput extends UntagResourceRequest {}
|
|
21
|
-
export interface UntagResourceCommandOutput extends __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Removes one or more tags from the specified secret.</p>
|
|
25
|
-
* <p>This operation is idempotent. If a requested tag is not attached to the secret, no error
|
|
26
|
-
* is returned and the secret metadata is unchanged.</p>
|
|
27
|
-
* <important>
|
|
28
|
-
* <p>If you use tags as part of your security strategy, then removing a tag can change
|
|
29
|
-
* permissions. If successfully completing this operation would result in you losing your
|
|
30
|
-
* permissions for this secret, then the operation is blocked and returns an Access Denied
|
|
31
|
-
* error.</p>
|
|
32
|
-
* </important>
|
|
33
|
-
* <p>
|
|
34
|
-
* <b>Minimum permissions</b>
|
|
35
|
-
* </p>
|
|
36
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
37
|
-
* <ul>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>secretsmanager:UntagResource</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* </ul>
|
|
42
|
-
* <p>
|
|
43
|
-
* <b>Related operations</b>
|
|
44
|
-
* </p>
|
|
45
|
-
* <ul>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>To add one or more tags to the collection attached to a secret, use <a>TagResource</a>.</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>To view the list of tags attached to a secret, use <a>DescribeSecret</a>.</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* </ul>
|
|
53
|
-
* @example
|
|
54
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
55
|
-
* ```javascript
|
|
56
|
-
* import { SecretsManagerClient, UntagResourceCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
57
|
-
* // const { SecretsManagerClient, UntagResourceCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
58
|
-
* const client = new SecretsManagerClient(config);
|
|
59
|
-
* const command = new UntagResourceCommand(input);
|
|
60
|
-
* const response = await client.send(command);
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @see {@link UntagResourceCommandInput} for command's `input` shape.
|
|
64
|
-
* @see {@link UntagResourceCommandOutput} for command's `response` shape.
|
|
65
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
export class UntagResourceCommand extends $Command<
|
|
69
|
-
UntagResourceCommandInput,
|
|
70
|
-
UntagResourceCommandOutput,
|
|
71
|
-
SecretsManagerClientResolvedConfig
|
|
72
|
-
> {
|
|
73
|
-
// Start section: command_properties
|
|
74
|
-
// End section: command_properties
|
|
75
|
-
|
|
76
|
-
constructor(readonly input: UntagResourceCommandInput) {
|
|
77
|
-
// Start section: command_constructor
|
|
78
|
-
super();
|
|
79
|
-
// End section: command_constructor
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
resolveMiddleware(
|
|
86
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
87
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
88
|
-
options?: __HttpHandlerOptions
|
|
89
|
-
): Handler<UntagResourceCommandInput, UntagResourceCommandOutput> {
|
|
90
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
91
|
-
|
|
92
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
93
|
-
|
|
94
|
-
const { logger } = configuration;
|
|
95
|
-
const clientName = "SecretsManagerClient";
|
|
96
|
-
const commandName = "UntagResourceCommand";
|
|
97
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
98
|
-
logger,
|
|
99
|
-
clientName,
|
|
100
|
-
commandName,
|
|
101
|
-
inputFilterSensitiveLog: UntagResourceRequest.filterSensitiveLog,
|
|
102
|
-
outputFilterSensitiveLog: (output: any) => output,
|
|
103
|
-
};
|
|
104
|
-
const { requestHandler } = configuration;
|
|
105
|
-
return stack.resolve(
|
|
106
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
107
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
108
|
-
handlerExecutionContext
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private serialize(input: UntagResourceCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
113
|
-
return serializeAws_json1_1UntagResourceCommand(input, context);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UntagResourceCommandOutput> {
|
|
117
|
-
return deserializeAws_json1_1UntagResourceCommand(output, context);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Start section: command_body_extra
|
|
121
|
-
// End section: command_body_extra
|
|
122
|
-
}
|
|
@@ -1,178 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { UpdateSecretRequest, UpdateSecretResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1UpdateSecretCommand,
|
|
5
|
-
serializeAws_json1_1UpdateSecretCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface UpdateSecretCommandInput extends UpdateSecretRequest {}
|
|
21
|
-
export interface UpdateSecretCommandOutput extends UpdateSecretResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Modifies many of the details of the specified secret. If you include a
|
|
25
|
-
* <code>ClientRequestToken</code> and <i>either</i>
|
|
26
|
-
* <code>SecretString</code> or <code>SecretBinary</code> then it also creates a new version
|
|
27
|
-
* attached to the secret.</p>
|
|
28
|
-
* <p>To modify the rotation configuration of a secret, use <a>RotateSecret</a>
|
|
29
|
-
* instead.</p>
|
|
30
|
-
* <note>
|
|
31
|
-
* <p>The Secrets Manager console uses only the <code>SecretString</code> parameter and therefore limits
|
|
32
|
-
* you to encrypting and storing only a text string. To encrypt and store binary data as part
|
|
33
|
-
* of the version of a secret, you must use either the Amazon Web Services CLI or one of the Amazon Web Services
|
|
34
|
-
* SDKs.</p>
|
|
35
|
-
* </note>
|
|
36
|
-
* <ul>
|
|
37
|
-
* <li>
|
|
38
|
-
* <p>If a version with a <code>VersionId</code> with the same value as the
|
|
39
|
-
* <code>ClientRequestToken</code> parameter already exists, the operation results in an
|
|
40
|
-
* error. You cannot modify an existing version, you can only create a new version.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>If you include <code>SecretString</code> or <code>SecretBinary</code> to create a new
|
|
44
|
-
* secret version, Secrets Manager automatically attaches the staging label <code>AWSCURRENT</code> to the new
|
|
45
|
-
* version. </p>
|
|
46
|
-
* </li>
|
|
47
|
-
* </ul>
|
|
48
|
-
* <note>
|
|
49
|
-
* <ul>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>If you call an operation to encrypt or decrypt the <code>SecretString</code>
|
|
52
|
-
* or <code>SecretBinary</code> for a secret in the same account as the calling user and that
|
|
53
|
-
* secret doesn't specify a Amazon Web Services KMS encryption key, Secrets Manager uses the account's default
|
|
54
|
-
* Amazon Web Services managed customer master key (CMK) with the alias <code>aws/secretsmanager</code>. If this key
|
|
55
|
-
* doesn't already exist in your account then Secrets Manager creates it for you automatically. All
|
|
56
|
-
* users and roles in the same Amazon Web Services account automatically have access to use the default CMK.
|
|
57
|
-
* Note that if an Secrets Manager API call results in Amazon Web Services creating the account's
|
|
58
|
-
* Amazon Web Services-managed CMK, it can result in a one-time significant delay in returning the
|
|
59
|
-
* result.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* <li>
|
|
62
|
-
* <p>If the secret resides in a different Amazon Web Services account from the credentials calling an API that
|
|
63
|
-
* requires encryption or decryption of the secret value then you must create and use a custom
|
|
64
|
-
* Amazon Web Services KMS CMK because you can't access the default CMK for the account using credentials
|
|
65
|
-
* from a different Amazon Web Services account. Store the ARN of the CMK in the secret when you create the
|
|
66
|
-
* secret or when you update it by including it in the <code>KMSKeyId</code>. If you call an
|
|
67
|
-
* API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code>
|
|
68
|
-
* using credentials from a different account then the Amazon Web Services KMS key policy must grant cross-account
|
|
69
|
-
* access to that other account's user or role for both the kms:GenerateDataKey and
|
|
70
|
-
* kms:Decrypt operations.</p>
|
|
71
|
-
* </li>
|
|
72
|
-
* </ul>
|
|
73
|
-
* </note>
|
|
74
|
-
* <p>
|
|
75
|
-
* <b>Minimum permissions</b>
|
|
76
|
-
* </p>
|
|
77
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
78
|
-
* <ul>
|
|
79
|
-
* <li>
|
|
80
|
-
* <p>secretsmanager:UpdateSecret</p>
|
|
81
|
-
* </li>
|
|
82
|
-
* <li>
|
|
83
|
-
* <p>kms:GenerateDataKey - needed only if you use a custom Amazon Web Services KMS key to encrypt the secret.
|
|
84
|
-
* You do not need this permission to use the account's Amazon Web Services managed CMK for
|
|
85
|
-
* Secrets Manager.</p>
|
|
86
|
-
* </li>
|
|
87
|
-
* <li>
|
|
88
|
-
* <p>kms:Decrypt - needed only if you use a custom Amazon Web Services KMS key to encrypt the secret. You do
|
|
89
|
-
* not need this permission to use the account's Amazon Web Services managed CMK for Secrets Manager.</p>
|
|
90
|
-
* </li>
|
|
91
|
-
* </ul>
|
|
92
|
-
* <p>
|
|
93
|
-
* <b>Related operations</b>
|
|
94
|
-
* </p>
|
|
95
|
-
* <ul>
|
|
96
|
-
* <li>
|
|
97
|
-
* <p>To create a new secret, use <a>CreateSecret</a>.</p>
|
|
98
|
-
* </li>
|
|
99
|
-
* <li>
|
|
100
|
-
* <p>To add only a new version to an existing secret, use <a>PutSecretValue</a>.</p>
|
|
101
|
-
* </li>
|
|
102
|
-
* <li>
|
|
103
|
-
* <p>To get the details for a secret, use <a>DescribeSecret</a>.</p>
|
|
104
|
-
* </li>
|
|
105
|
-
* <li>
|
|
106
|
-
* <p>To list the versions contained in a secret, use <a>ListSecretVersionIds</a>.</p>
|
|
107
|
-
* </li>
|
|
108
|
-
* </ul>
|
|
109
|
-
* @example
|
|
110
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
111
|
-
* ```javascript
|
|
112
|
-
* import { SecretsManagerClient, UpdateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
113
|
-
* // const { SecretsManagerClient, UpdateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
114
|
-
* const client = new SecretsManagerClient(config);
|
|
115
|
-
* const command = new UpdateSecretCommand(input);
|
|
116
|
-
* const response = await client.send(command);
|
|
117
|
-
* ```
|
|
118
|
-
*
|
|
119
|
-
* @see {@link UpdateSecretCommandInput} for command's `input` shape.
|
|
120
|
-
* @see {@link UpdateSecretCommandOutput} for command's `response` shape.
|
|
121
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
122
|
-
*
|
|
123
|
-
*/
|
|
124
|
-
export class UpdateSecretCommand extends $Command<
|
|
125
|
-
UpdateSecretCommandInput,
|
|
126
|
-
UpdateSecretCommandOutput,
|
|
127
|
-
SecretsManagerClientResolvedConfig
|
|
128
|
-
> {
|
|
129
|
-
// Start section: command_properties
|
|
130
|
-
// End section: command_properties
|
|
131
|
-
|
|
132
|
-
constructor(readonly input: UpdateSecretCommandInput) {
|
|
133
|
-
// Start section: command_constructor
|
|
134
|
-
super();
|
|
135
|
-
// End section: command_constructor
|
|
136
|
-
}
|
|
137
|
-
|
|
138
|
-
/**
|
|
139
|
-
* @internal
|
|
140
|
-
*/
|
|
141
|
-
resolveMiddleware(
|
|
142
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
143
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
144
|
-
options?: __HttpHandlerOptions
|
|
145
|
-
): Handler<UpdateSecretCommandInput, UpdateSecretCommandOutput> {
|
|
146
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
147
|
-
|
|
148
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
149
|
-
|
|
150
|
-
const { logger } = configuration;
|
|
151
|
-
const clientName = "SecretsManagerClient";
|
|
152
|
-
const commandName = "UpdateSecretCommand";
|
|
153
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
154
|
-
logger,
|
|
155
|
-
clientName,
|
|
156
|
-
commandName,
|
|
157
|
-
inputFilterSensitiveLog: UpdateSecretRequest.filterSensitiveLog,
|
|
158
|
-
outputFilterSensitiveLog: UpdateSecretResponse.filterSensitiveLog,
|
|
159
|
-
};
|
|
160
|
-
const { requestHandler } = configuration;
|
|
161
|
-
return stack.resolve(
|
|
162
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
163
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
164
|
-
handlerExecutionContext
|
|
165
|
-
);
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
private serialize(input: UpdateSecretCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
169
|
-
return serializeAws_json1_1UpdateSecretCommand(input, context);
|
|
170
|
-
}
|
|
171
|
-
|
|
172
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateSecretCommandOutput> {
|
|
173
|
-
return deserializeAws_json1_1UpdateSecretCommand(output, context);
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
// Start section: command_body_extra
|
|
177
|
-
// End section: command_body_extra
|
|
178
|
-
}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { UpdateSecretVersionStageRequest, UpdateSecretVersionStageResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1UpdateSecretVersionStageCommand,
|
|
5
|
-
serializeAws_json1_1UpdateSecretVersionStageCommand,
|
|
6
|
-
} from "../protocols/Aws_json1_1";
|
|
7
|
-
import { getSerdePlugin } from "@aws-sdk/middleware-serde";
|
|
8
|
-
import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@aws-sdk/protocol-http";
|
|
9
|
-
import { Command as $Command } from "@aws-sdk/smithy-client";
|
|
10
|
-
import {
|
|
11
|
-
FinalizeHandlerArguments,
|
|
12
|
-
Handler,
|
|
13
|
-
HandlerExecutionContext,
|
|
14
|
-
MiddlewareStack,
|
|
15
|
-
HttpHandlerOptions as __HttpHandlerOptions,
|
|
16
|
-
MetadataBearer as __MetadataBearer,
|
|
17
|
-
SerdeContext as __SerdeContext,
|
|
18
|
-
} from "@aws-sdk/types";
|
|
19
|
-
|
|
20
|
-
export interface UpdateSecretVersionStageCommandInput extends UpdateSecretVersionStageRequest {}
|
|
21
|
-
export interface UpdateSecretVersionStageCommandOutput extends UpdateSecretVersionStageResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Modifies the staging labels attached to a version of a secret. Staging labels are used to
|
|
25
|
-
* track a version as it progresses through the secret rotation process. You can attach a staging
|
|
26
|
-
* label to only one version of a secret at a time. If a staging label to be added is already
|
|
27
|
-
* attached to another version, then it is moved--removed from the other version first and
|
|
28
|
-
* then attached to this one. For more information about staging labels, see <a href="https://docs.aws.amazon.com/secretsmanager/latest/userguide/terms-concepts.html#term_staging-label">Staging
|
|
29
|
-
* Labels</a> in the <i>Amazon Web Services Secrets Manager User Guide</i>. </p>
|
|
30
|
-
* <p>The staging labels that you specify in the <code>VersionStage</code> parameter are added
|
|
31
|
-
* to the existing list of staging labels--they don't replace it.</p>
|
|
32
|
-
* <p>You can move the <code>AWSCURRENT</code> staging label to this version by including it in this
|
|
33
|
-
* call.</p>
|
|
34
|
-
* <note>
|
|
35
|
-
* <p>Whenever you move <code>AWSCURRENT</code>, Secrets Manager automatically moves the label <code>AWSPREVIOUS</code>
|
|
36
|
-
* to the version that <code>AWSCURRENT</code> was removed from.</p>
|
|
37
|
-
* </note>
|
|
38
|
-
* <p>If this action results in the last label being removed from a version, then the version is
|
|
39
|
-
* considered to be 'deprecated' and can be deleted by Secrets Manager.</p>
|
|
40
|
-
* <p>
|
|
41
|
-
* <b>Minimum permissions</b>
|
|
42
|
-
* </p>
|
|
43
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
44
|
-
* <ul>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>secretsmanager:UpdateSecretVersionStage</p>
|
|
47
|
-
* </li>
|
|
48
|
-
* </ul>
|
|
49
|
-
* <p>
|
|
50
|
-
* <b>Related operations</b>
|
|
51
|
-
* </p>
|
|
52
|
-
* <ul>
|
|
53
|
-
* <li>
|
|
54
|
-
* <p>To get the list of staging labels that are currently associated with a version of a
|
|
55
|
-
* secret, use <code>
|
|
56
|
-
* <a>DescribeSecret</a>
|
|
57
|
-
* </code> and examine the
|
|
58
|
-
* <code>SecretVersionsToStages</code> response value. </p>
|
|
59
|
-
* </li>
|
|
60
|
-
* </ul>
|
|
61
|
-
* @example
|
|
62
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
63
|
-
* ```javascript
|
|
64
|
-
* import { SecretsManagerClient, UpdateSecretVersionStageCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
65
|
-
* // const { SecretsManagerClient, UpdateSecretVersionStageCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
66
|
-
* const client = new SecretsManagerClient(config);
|
|
67
|
-
* const command = new UpdateSecretVersionStageCommand(input);
|
|
68
|
-
* const response = await client.send(command);
|
|
69
|
-
* ```
|
|
70
|
-
*
|
|
71
|
-
* @see {@link UpdateSecretVersionStageCommandInput} for command's `input` shape.
|
|
72
|
-
* @see {@link UpdateSecretVersionStageCommandOutput} for command's `response` shape.
|
|
73
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
74
|
-
*
|
|
75
|
-
*/
|
|
76
|
-
export class UpdateSecretVersionStageCommand extends $Command<
|
|
77
|
-
UpdateSecretVersionStageCommandInput,
|
|
78
|
-
UpdateSecretVersionStageCommandOutput,
|
|
79
|
-
SecretsManagerClientResolvedConfig
|
|
80
|
-
> {
|
|
81
|
-
// Start section: command_properties
|
|
82
|
-
// End section: command_properties
|
|
83
|
-
|
|
84
|
-
constructor(readonly input: UpdateSecretVersionStageCommandInput) {
|
|
85
|
-
// Start section: command_constructor
|
|
86
|
-
super();
|
|
87
|
-
// End section: command_constructor
|
|
88
|
-
}
|
|
89
|
-
|
|
90
|
-
/**
|
|
91
|
-
* @internal
|
|
92
|
-
*/
|
|
93
|
-
resolveMiddleware(
|
|
94
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
95
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
96
|
-
options?: __HttpHandlerOptions
|
|
97
|
-
): Handler<UpdateSecretVersionStageCommandInput, UpdateSecretVersionStageCommandOutput> {
|
|
98
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
99
|
-
|
|
100
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
101
|
-
|
|
102
|
-
const { logger } = configuration;
|
|
103
|
-
const clientName = "SecretsManagerClient";
|
|
104
|
-
const commandName = "UpdateSecretVersionStageCommand";
|
|
105
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
106
|
-
logger,
|
|
107
|
-
clientName,
|
|
108
|
-
commandName,
|
|
109
|
-
inputFilterSensitiveLog: UpdateSecretVersionStageRequest.filterSensitiveLog,
|
|
110
|
-
outputFilterSensitiveLog: UpdateSecretVersionStageResponse.filterSensitiveLog,
|
|
111
|
-
};
|
|
112
|
-
const { requestHandler } = configuration;
|
|
113
|
-
return stack.resolve(
|
|
114
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
115
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
116
|
-
handlerExecutionContext
|
|
117
|
-
);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
private serialize(input: UpdateSecretVersionStageCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
121
|
-
return serializeAws_json1_1UpdateSecretVersionStageCommand(input, context);
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<UpdateSecretVersionStageCommandOutput> {
|
|
125
|
-
return deserializeAws_json1_1UpdateSecretVersionStageCommand(output, context);
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
// Start section: command_body_extra
|
|
129
|
-
// End section: command_body_extra
|
|
130
|
-
}
|