@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,106 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeleteSecretCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
|
-
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Deletes an entire secret and all of the versions. You can optionally include a recovery
|
|
10
|
-
* window during which you can restore the secret. If you don't specify a recovery window value,
|
|
11
|
-
* the operation defaults to 30 days. Secrets Manager attaches a <code>DeletionDate</code> stamp to
|
|
12
|
-
* the secret that specifies the end of the recovery window. At the end of the recovery window,
|
|
13
|
-
* Secrets Manager deletes the secret permanently.</p>
|
|
14
|
-
* <p>At any time before recovery window ends, you can use <a>RestoreSecret</a> to
|
|
15
|
-
* remove the <code>DeletionDate</code> and cancel the deletion of the secret.</p>
|
|
16
|
-
* <p>You cannot access the encrypted secret information in any secret scheduled for deletion.
|
|
17
|
-
* If you need to access that information, you must cancel the deletion with <a>RestoreSecret</a> and then retrieve the information.</p>
|
|
18
|
-
* <note>
|
|
19
|
-
* <ul>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>There is no explicit operation to delete a version of a secret. Instead, remove all
|
|
22
|
-
* staging labels from the <code>VersionStage</code> field of a version. That marks the
|
|
23
|
-
* version as deprecated and allows Secrets Manager to delete it as needed. Versions without any
|
|
24
|
-
* staging labels do not show up in <a>ListSecretVersionIds</a> unless you
|
|
25
|
-
* specify <code>IncludeDeprecated</code>.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>The permanent secret deletion at the end of the waiting period is performed as a
|
|
29
|
-
* background task with low priority. There is no guarantee of a specific time after the
|
|
30
|
-
* recovery window for the actual delete operation to occur.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* </ul>
|
|
33
|
-
* </note>
|
|
34
|
-
* <p>
|
|
35
|
-
* <b>Minimum permissions</b>
|
|
36
|
-
* </p>
|
|
37
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
38
|
-
* <ul>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>secretsmanager:DeleteSecret</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* </ul>
|
|
43
|
-
* <p>
|
|
44
|
-
* <b>Related operations</b>
|
|
45
|
-
* </p>
|
|
46
|
-
* <ul>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>To create a secret, use <a>CreateSecret</a>.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>To cancel deletion of a version of a secret before the recovery window has expired,
|
|
52
|
-
* use <a>RestoreSecret</a>.</p>
|
|
53
|
-
* </li>
|
|
54
|
-
* </ul>
|
|
55
|
-
* @example
|
|
56
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
57
|
-
* ```javascript
|
|
58
|
-
* import { SecretsManagerClient, DeleteSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
59
|
-
* // const { SecretsManagerClient, DeleteSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
60
|
-
* const client = new SecretsManagerClient(config);
|
|
61
|
-
* const command = new DeleteSecretCommand(input);
|
|
62
|
-
* const response = await client.send(command);
|
|
63
|
-
* ```
|
|
64
|
-
*
|
|
65
|
-
* @see {@link DeleteSecretCommandInput} for command's `input` shape.
|
|
66
|
-
* @see {@link DeleteSecretCommandOutput} for command's `response` shape.
|
|
67
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
68
|
-
*
|
|
69
|
-
*/
|
|
70
|
-
class DeleteSecretCommand extends smithy_client_1.Command {
|
|
71
|
-
// Start section: command_properties
|
|
72
|
-
// End section: command_properties
|
|
73
|
-
constructor(input) {
|
|
74
|
-
// Start section: command_constructor
|
|
75
|
-
super();
|
|
76
|
-
this.input = input;
|
|
77
|
-
// End section: command_constructor
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
83
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
84
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
85
|
-
const { logger } = configuration;
|
|
86
|
-
const clientName = "SecretsManagerClient";
|
|
87
|
-
const commandName = "DeleteSecretCommand";
|
|
88
|
-
const handlerExecutionContext = {
|
|
89
|
-
logger,
|
|
90
|
-
clientName,
|
|
91
|
-
commandName,
|
|
92
|
-
inputFilterSensitiveLog: models_0_1.DeleteSecretRequest.filterSensitiveLog,
|
|
93
|
-
outputFilterSensitiveLog: models_0_1.DeleteSecretResponse.filterSensitiveLog,
|
|
94
|
-
};
|
|
95
|
-
const { requestHandler } = configuration;
|
|
96
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
97
|
-
}
|
|
98
|
-
serialize(input, context) {
|
|
99
|
-
return Aws_json1_1_1.serializeAws_json1_1DeleteSecretCommand(input, context);
|
|
100
|
-
}
|
|
101
|
-
deserialize(output, context) {
|
|
102
|
-
return Aws_json1_1_1.deserializeAws_json1_1DeleteSecretCommand(output, context);
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
exports.DeleteSecretCommand = DeleteSecretCommand;
|
|
106
|
-
//# sourceMappingURL=DeleteSecretCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DeleteSecretCommand.js","sourceRoot":"","sources":["../../../commands/DeleteSecretCommand.ts"],"names":[],"mappings":";;;AACA,iDAA+E;AAC/E,0DAGkC;AAClC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6DG;AACH,MAAa,mBAAoB,SAAQ,uBAIxC;IACC,oCA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ports, "__esModule", { value: true });
|
|
3
|
-
exports.DescribeSecretCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
|
-
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Retrieves the details of a secret. It does not include the encrypted fields. Secrets
|
|
10
|
-
* Manager only returns fields populated with a value in the response. </p>
|
|
11
|
-
* <p>
|
|
12
|
-
* <b>Minimum permissions</b>
|
|
13
|
-
* </p>
|
|
14
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
15
|
-
* <ul>
|
|
16
|
-
* <li>
|
|
17
|
-
* <p>secretsmanager:DescribeSecret</p>
|
|
18
|
-
* </li>
|
|
19
|
-
* </ul>
|
|
20
|
-
* <p>
|
|
21
|
-
* <b>Related operations</b>
|
|
22
|
-
* </p>
|
|
23
|
-
* <ul>
|
|
24
|
-
* <li>
|
|
25
|
-
* <p>To create a secret, use <a>CreateSecret</a>.</p>
|
|
26
|
-
* </li>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>To modify a secret, use <a>UpdateSecret</a>.</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>To retrieve the encrypted secret information in a version of the secret, use <a>GetSecretValue</a>.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>To list all of the secrets in the Amazon Web Services account, use <a>ListSecrets</a>.</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* </ul>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { SecretsManagerClient, DescribeSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
41
|
-
* // const { SecretsManagerClient, DescribeSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
42
|
-
* const client = new SecretsManagerClient(config);
|
|
43
|
-
* const command = new DescribeSecretCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link DescribeSecretCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link DescribeSecretCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
class DescribeSecretCommand extends smithy_client_1.Command {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
constructor(input) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
this.input = input;
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
65
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "SecretsManagerClient";
|
|
69
|
-
const commandName = "DescribeSecretCommand";
|
|
70
|
-
const handlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: models_0_1.DescribeSecretRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: models_0_1.DescribeSecretResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
79
|
-
}
|
|
80
|
-
serialize(input, context) {
|
|
81
|
-
return Aws_json1_1_1.serializeAws_json1_1DescribeSecretCommand(input, context);
|
|
82
|
-
}
|
|
83
|
-
deserialize(output, context) {
|
|
84
|
-
return Aws_json1_1_1.deserializeAws_json1_1DescribeSecretCommand(output, context);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
exports.DescribeSecretCommand = DescribeSecretCommand;
|
|
88
|
-
//# sourceMappingURL=DescribeSecretCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"DescribeSecretCommand.js","sourceRoot":"","sources":["../../../commands/DescribeSecretCommand.ts"],"names":[],"mappings":";;;AACA,iDAAmF;AACnF,0DAGkC;AAClC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,qBAAsB,SAAQ,uBAI1C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAiC;QACpD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA4B;QAGpD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAiD,EACjD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,sBAAsB,CAAC;QAC1C,MAAM,WAAW,GAAG,uBAAuB,CAAC;QAC5C,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,gCAAqB,CAAC,kBAAkB;YACjE,wBAAwB,EAAE,iCAAsB,CAAC,kBAAkB;SACpE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACz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MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,mCAAwB,CAAC,kBAAkB;YACpE,wBAAwB,EAAE,oCAAyB,CAAC,kBAAkB;SACvE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAoC,EAAE,OAAuB;QAC7E,OAAO,0DAA4C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,4DAA8C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;CAIF;AAtDD,4DAsDC"}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GetResourcePolicyCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
|
-
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Retrieves the JSON text of the resource-based policy document attached to the specified
|
|
10
|
-
* secret. The JSON request string input and response output displays formatted code
|
|
11
|
-
* with white space and line breaks for better readability. Submit your input as a single line
|
|
12
|
-
* JSON string.</p>
|
|
13
|
-
* <p>
|
|
14
|
-
* <b>Minimum permissions</b>
|
|
15
|
-
* </p>
|
|
16
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
17
|
-
* <ul>
|
|
18
|
-
* <li>
|
|
19
|
-
* <p>secretsmanager:GetResourcePolicy</p>
|
|
20
|
-
* </li>
|
|
21
|
-
* </ul>
|
|
22
|
-
* <p>
|
|
23
|
-
* <b>Related operations</b>
|
|
24
|
-
* </p>
|
|
25
|
-
* <ul>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>To attach a resource policy to a secret, use <a>PutResourcePolicy</a>.</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* <li>
|
|
30
|
-
* <p>To delete the resource-based policy attached to a secret, use <a>DeleteResourcePolicy</a>.</p>
|
|
31
|
-
* </li>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>
|
|
34
|
-
* </li>
|
|
35
|
-
* </ul>
|
|
36
|
-
* @example
|
|
37
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
38
|
-
* ```javascript
|
|
39
|
-
* import { SecretsManagerClient, GetResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
40
|
-
* // const { SecretsManagerClient, GetResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
41
|
-
* const client = new SecretsManagerClient(config);
|
|
42
|
-
* const command = new GetResourcePolicyCommand(input);
|
|
43
|
-
* const response = await client.send(command);
|
|
44
|
-
* ```
|
|
45
|
-
*
|
|
46
|
-
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
47
|
-
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
48
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
49
|
-
*
|
|
50
|
-
*/
|
|
51
|
-
class GetResourcePolicyCommand extends smithy_client_1.Command {
|
|
52
|
-
// Start section: command_properties
|
|
53
|
-
// End section: command_properties
|
|
54
|
-
constructor(input) {
|
|
55
|
-
// Start section: command_constructor
|
|
56
|
-
super();
|
|
57
|
-
this.input = input;
|
|
58
|
-
// End section: command_constructor
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* @internal
|
|
62
|
-
*/
|
|
63
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
64
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
65
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
66
|
-
const { logger } = configuration;
|
|
67
|
-
const clientName = "SecretsManagerClient";
|
|
68
|
-
const commandName = "GetResourcePolicyCommand";
|
|
69
|
-
const handlerExecutionContext = {
|
|
70
|
-
logger,
|
|
71
|
-
clientName,
|
|
72
|
-
commandName,
|
|
73
|
-
inputFilterSensitiveLog: models_0_1.GetResourcePolicyRequest.filterSensitiveLog,
|
|
74
|
-
outputFilterSensitiveLog: models_0_1.GetResourcePolicyResponse.filterSensitiveLog,
|
|
75
|
-
};
|
|
76
|
-
const { requestHandler } = configuration;
|
|
77
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
78
|
-
}
|
|
79
|
-
serialize(input, context) {
|
|
80
|
-
return Aws_json1_1_1.serializeAws_json1_1GetResourcePolicyCommand(input, context);
|
|
81
|
-
}
|
|
82
|
-
deserialize(output, context) {
|
|
83
|
-
return Aws_json1_1_1.deserializeAws_json1_1GetResourcePolicyCommand(output, context);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
exports.GetResourcePolicyCommand = GetResourcePolicyCommand;
|
|
87
|
-
//# sourceMappingURL=GetResourcePolicyCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetResourcePolicyCommand.js","sourceRoot":"","sources":["../../../commands/GetResourcePolicyCommand.ts"],"names":[],"mappings":";;;AACA,iDAAyF;AACzF,0DAGkC;AAClC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA0CG;AACH,MAAa,wBAAyB,SAAQ,uBAI7C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAoC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ValueCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
|
-
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Retrieves the contents of the encrypted fields <code>SecretString</code> or
|
|
10
|
-
* <code>SecretBinary</code> from the specified version of a secret, whichever contains
|
|
11
|
-
* content.</p>
|
|
12
|
-
* <p>
|
|
13
|
-
* <b>Minimum permissions</b>
|
|
14
|
-
* </p>
|
|
15
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
16
|
-
* <ul>
|
|
17
|
-
* <li>
|
|
18
|
-
* <p>secretsmanager:GetSecretValue</p>
|
|
19
|
-
* </li>
|
|
20
|
-
* <li>
|
|
21
|
-
* <p>kms:Decrypt - required only if you use a customer-managed Amazon Web Services KMS key to encrypt the
|
|
22
|
-
* secret. You do not need this permission to use the account's default Amazon Web Services managed CMK for
|
|
23
|
-
* Secrets Manager.</p>
|
|
24
|
-
* </li>
|
|
25
|
-
* </ul>
|
|
26
|
-
* <p>
|
|
27
|
-
* <b>Related operations</b>
|
|
28
|
-
* </p>
|
|
29
|
-
* <ul>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>To create a new version of the secret with different encrypted information, use <a>PutSecretValue</a>.</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>To retrieve the non-encrypted details for the secret, use <a>DescribeSecret</a>.</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* </ul>
|
|
37
|
-
* @example
|
|
38
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
39
|
-
* ```javascript
|
|
40
|
-
* import { SecretsManagerClient, GetSecretValueCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
41
|
-
* // const { SecretsManagerClient, GetSecretValueCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
42
|
-
* const client = new SecretsManagerClient(config);
|
|
43
|
-
* const command = new GetSecretValueCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link GetSecretValueCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link GetSecretValueCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
class GetSecretValueCommand extends smithy_client_1.Command {
|
|
53
|
-
// Start section: command_properties
|
|
54
|
-
// End section: command_properties
|
|
55
|
-
constructor(input) {
|
|
56
|
-
// Start section: command_constructor
|
|
57
|
-
super();
|
|
58
|
-
this.input = input;
|
|
59
|
-
// End section: command_constructor
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* @internal
|
|
63
|
-
*/
|
|
64
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
65
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
66
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
67
|
-
const { logger } = configuration;
|
|
68
|
-
const clientName = "SecretsManagerClient";
|
|
69
|
-
const commandName = "GetSecretValueCommand";
|
|
70
|
-
const handlerExecutionContext = {
|
|
71
|
-
logger,
|
|
72
|
-
clientName,
|
|
73
|
-
commandName,
|
|
74
|
-
inputFilterSensitiveLog: models_0_1.GetSecretValueRequest.filterSensitiveLog,
|
|
75
|
-
outputFilterSensitiveLog: models_0_1.GetSecretValueResponse.filterSensitiveLog,
|
|
76
|
-
};
|
|
77
|
-
const { requestHandler } = configuration;
|
|
78
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
79
|
-
}
|
|
80
|
-
serialize(input, context) {
|
|
81
|
-
return Aws_json1_1_1.serializeAws_json1_1GetSecretValueCommand(input, context);
|
|
82
|
-
}
|
|
83
|
-
deserialize(output, context) {
|
|
84
|
-
return Aws_json1_1_1.deserializeAws_json1_1GetSecretValueCommand(output, context);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
exports.GetSecretValueCommand = GetSecretValueCommand;
|
|
88
|
-
//# sourceMappingURL=GetSecretValueCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"GetSecretValueCommand.js","sourceRoot":"","sources":["../../../commands/GetSecretValueCommand.ts"],"names":[],"mappings":";;;AACA,iDAAmF;AACnF,0DAGkC;AAClC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,MAAa,qBAAsB,SAAQ,uBAI1C;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAiC;QACpD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAA4B;QAGpD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAiD,EACjD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,sBAAsB,CAAC;QAC1C,MAAM,WAAW,GAAG,uBAAuB,CAAC;QAC5C,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,gCAAqB,CAAC,kBAAkB;YACjE,wBAAwB,EAAE,iCAAsB,CAAC,kBAAkB;SACpE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAiC,EAAE,OAAuB;QAC1E,OAAO,uDAAyC,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACnE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,yDAA2C,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;CAIF;AAtDD,sDAsDC"}
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListSecretVersionIdsCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
|
-
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Lists all of the versions attached to the specified secret. The output does not include
|
|
10
|
-
* the <code>SecretString</code> or <code>SecretBinary</code> fields. By default, the list
|
|
11
|
-
* includes only versions that have at least one staging label in <code>VersionStage</code>
|
|
12
|
-
* attached.</p>
|
|
13
|
-
* <note>
|
|
14
|
-
* <p>Always check the <code>NextToken</code> response parameter
|
|
15
|
-
* when calling any of the <code>List*</code> operations. These operations can occasionally return
|
|
16
|
-
* an empty or shorter than expected list of results even when there more results become available.
|
|
17
|
-
* When this happens, the <code>NextToken</code> response parameter contains a value to pass to the
|
|
18
|
-
* next call to the same API to request the next part of the list.</p>
|
|
19
|
-
* </note>
|
|
20
|
-
* <p>
|
|
21
|
-
* <b>Minimum
|
|
22
|
-
* permissions</b>
|
|
23
|
-
* </p>
|
|
24
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
25
|
-
* <ul>
|
|
26
|
-
* <li>
|
|
27
|
-
* <p>secretsmanager:ListSecretVersionIds</p>
|
|
28
|
-
* </li>
|
|
29
|
-
* </ul>
|
|
30
|
-
* <p>
|
|
31
|
-
* <b>Related operations</b>
|
|
32
|
-
* </p>
|
|
33
|
-
* <ul>
|
|
34
|
-
* <li>
|
|
35
|
-
* <p>To list the secrets in an account, use <a>ListSecrets</a>.</p>
|
|
36
|
-
* </li>
|
|
37
|
-
* </ul>
|
|
38
|
-
* @example
|
|
39
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
40
|
-
* ```javascript
|
|
41
|
-
* import { SecretsManagerClient, ListSecretVersionIdsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
42
|
-
* // const { SecretsManagerClient, ListSecretVersionIdsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
43
|
-
* const client = new SecretsManagerClient(config);
|
|
44
|
-
* const command = new ListSecretVersionIdsCommand(input);
|
|
45
|
-
* const response = await client.send(command);
|
|
46
|
-
* ```
|
|
47
|
-
*
|
|
48
|
-
* @see {@link ListSecretVersionIdsCommandInput} for command's `input` shape.
|
|
49
|
-
* @see {@link ListSecretVersionIdsCommandOutput} for command's `response` shape.
|
|
50
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
51
|
-
*
|
|
52
|
-
*/
|
|
53
|
-
class ListSecretVersionIdsCommand extends smithy_client_1.Command {
|
|
54
|
-
// Start section: command_properties
|
|
55
|
-
// End section: command_properties
|
|
56
|
-
constructor(input) {
|
|
57
|
-
// Start section: command_constructor
|
|
58
|
-
super();
|
|
59
|
-
this.input = input;
|
|
60
|
-
// End section: command_constructor
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* @internal
|
|
64
|
-
*/
|
|
65
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
66
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
67
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
68
|
-
const { logger } = configuration;
|
|
69
|
-
const clientName = "SecretsManagerClient";
|
|
70
|
-
const commandName = "ListSecretVersionIdsCommand";
|
|
71
|
-
const handlerExecutionContext = {
|
|
72
|
-
logger,
|
|
73
|
-
clientName,
|
|
74
|
-
commandName,
|
|
75
|
-
inputFilterSensitiveLog: models_0_1.ListSecretVersionIdsRequest.filterSensitiveLog,
|
|
76
|
-
outputFilterSensitiveLog: models_0_1.ListSecretVersionIdsResponse.filterSensitiveLog,
|
|
77
|
-
};
|
|
78
|
-
const { requestHandler } = configuration;
|
|
79
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
80
|
-
}
|
|
81
|
-
serialize(input, context) {
|
|
82
|
-
return Aws_json1_1_1.serializeAws_json1_1ListSecretVersionIdsCommand(input, context);
|
|
83
|
-
}
|
|
84
|
-
deserialize(output, context) {
|
|
85
|
-
return Aws_json1_1_1.deserializeAws_json1_1ListSecretVersionIdsCommand(output, context);
|
|
86
|
-
}
|
|
87
|
-
}
|
|
88
|
-
exports.ListSecretVersionIdsCommand = ListSecretVersionIdsCommand;
|
|
89
|
-
//# sourceMappingURL=ListSecretVersionIdsCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListSecretVersionIdsCommand.js","sourceRoot":"","sources":["../../../commands/ListSecretVersionIdsCommand.ts"],"names":[],"mappings":";;;AACA,iDAA+F;AAC/F,0DAGkC;AAClC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4CG;AACH,MAAa,2BAA4B,SAAQ,uBAIhD;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAAuC;QAC1D,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAkC;QAG1D,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAiD,EACjD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,sBAAsB,CAAC;QAC1C,MAAM,WAAW,GAAG,6BAA6B,CAAC;QAClD,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,sCAA2B,CAAC,kBAAkB;YACvE,wBAAwB,EAAE,uCAA4B,CAAC,kBAAkB;SAC1E,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,KAAK,CAAC,OAAO,CAClB,CAAC,OAAsC,EAAE,EAAE,CACzC,cAAc,CAAC,MAAM,CAAC,OAAO,CAAC,OAAwB,EAAE,OAAO,IAAI,EAAE,CAAC,EACxE,uBAAuB,CACxB,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,KAAuC,EAAE,OAAuB;QAChF,OAAO,6DAA+C,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAEO,WAAW,CAAC,MAAsB,EAAE,OAAuB;QACjE,OAAO,+DAAiD,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CAIF;AAtDD,kEAsDC"}
|
|
@@ -1,90 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ListSecretsCommand = void 0;
|
|
4
|
-
const models_0_1 = require("../models/models_0");
|
|
5
|
-
const Aws_json1_1_1 = require("../protocols/Aws_json1_1");
|
|
6
|
-
const middleware_serde_1 = require("@aws-sdk/middleware-serde");
|
|
7
|
-
const smithy_client_1 = require("@aws-sdk/smithy-client");
|
|
8
|
-
/**
|
|
9
|
-
* <p>Lists all of the secrets that are stored by Secrets Manager in the Amazon Web Services account. To list the
|
|
10
|
-
* versions currently stored for a specific secret, use <a>ListSecretVersionIds</a>.
|
|
11
|
-
* The encrypted fields <code>SecretString</code> and <code>SecretBinary</code> are not included
|
|
12
|
-
* in the output. To get that information, call the <a>GetSecretValue</a>
|
|
13
|
-
* operation.</p>
|
|
14
|
-
* <note>
|
|
15
|
-
* <p>Always check the <code>NextToken</code> response parameter
|
|
16
|
-
* when calling any of the <code>List*</code> operations. These operations can occasionally return
|
|
17
|
-
* an empty or shorter than expected list of results even when there more results become available.
|
|
18
|
-
* When this happens, the <code>NextToken</code> response parameter contains a value to pass to the
|
|
19
|
-
* next call to the same API to request the next part of the list.</p>
|
|
20
|
-
* </note>
|
|
21
|
-
* <p>
|
|
22
|
-
* <b>Minimum
|
|
23
|
-
* permissions</b>
|
|
24
|
-
* </p>
|
|
25
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
26
|
-
* <ul>
|
|
27
|
-
* <li>
|
|
28
|
-
* <p>secretsmanager:ListSecrets</p>
|
|
29
|
-
* </li>
|
|
30
|
-
* </ul>
|
|
31
|
-
* <p>
|
|
32
|
-
* <b>Related operations</b>
|
|
33
|
-
* </p>
|
|
34
|
-
* <ul>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>To list the versions attached to a secret, use <a>ListSecretVersionIds</a>.</p>
|
|
37
|
-
* </li>
|
|
38
|
-
* </ul>
|
|
39
|
-
* @example
|
|
40
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
41
|
-
* ```javascript
|
|
42
|
-
* import { SecretsManagerClient, ListSecretsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
43
|
-
* // const { SecretsManagerClient, ListSecretsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
44
|
-
* const client = new SecretsManagerClient(config);
|
|
45
|
-
* const command = new ListSecretsCommand(input);
|
|
46
|
-
* const response = await client.send(command);
|
|
47
|
-
* ```
|
|
48
|
-
*
|
|
49
|
-
* @see {@link ListSecretsCommandInput} for command's `input` shape.
|
|
50
|
-
* @see {@link ListSecretsCommandOutput} for command's `response` shape.
|
|
51
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
52
|
-
*
|
|
53
|
-
*/
|
|
54
|
-
class ListSecretsCommand extends smithy_client_1.Command {
|
|
55
|
-
// Start section: command_properties
|
|
56
|
-
// End section: command_properties
|
|
57
|
-
constructor(input) {
|
|
58
|
-
// Start section: command_constructor
|
|
59
|
-
super();
|
|
60
|
-
this.input = input;
|
|
61
|
-
// End section: command_constructor
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* @internal
|
|
65
|
-
*/
|
|
66
|
-
resolveMiddleware(clientStack, configuration, options) {
|
|
67
|
-
this.middlewareStack.use(middleware_serde_1.getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
68
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
69
|
-
const { logger } = configuration;
|
|
70
|
-
const clientName = "SecretsManagerClient";
|
|
71
|
-
const commandName = "ListSecretsCommand";
|
|
72
|
-
const handlerExecutionContext = {
|
|
73
|
-
logger,
|
|
74
|
-
clientName,
|
|
75
|
-
commandName,
|
|
76
|
-
inputFilterSensitiveLog: models_0_1.ListSecretsRequest.filterSensitiveLog,
|
|
77
|
-
outputFilterSensitiveLog: models_0_1.ListSecretsResponse.filterSensitiveLog,
|
|
78
|
-
};
|
|
79
|
-
const { requestHandler } = configuration;
|
|
80
|
-
return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext);
|
|
81
|
-
}
|
|
82
|
-
serialize(input, context) {
|
|
83
|
-
return Aws_json1_1_1.serializeAws_json1_1ListSecretsCommand(input, context);
|
|
84
|
-
}
|
|
85
|
-
deserialize(output, context) {
|
|
86
|
-
return Aws_json1_1_1.deserializeAws_json1_1ListSecretsCommand(output, context);
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
exports.ListSecretsCommand = ListSecretsCommand;
|
|
90
|
-
//# sourceMappingURL=ListSecretsCommand.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ListSecretsCommand.js","sourceRoot":"","sources":["../../../commands/ListSecretsCommand.ts"],"names":[],"mappings":";;;AACA,iDAA6E;AAC7E,0DAGkC;AAClC,gEAA2D;AAE3D,0DAA6D;AAc7D;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6CG;AACH,MAAa,kBAAmB,SAAQ,uBAIvC;IACC,oCAAoC;IACpC,kCAAkC;IAElC,YAAqB,KAA8B;QACjD,qCAAqC;QACrC,KAAK,EAAE,CAAC;QAFW,UAAK,GAAL,KAAK,CAAyB;QAGjD,mCAAmC;IACrC,CAAC;IAED;;OAEG;IACH,iBAAiB,CACf,WAAmE,EACnE,aAAiD,EACjD,OAA8B;QAE9B,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,iCAAc,CAAC,aAAa,EAAE,IAAI,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC;QAE1F,MAAM,KAAK,GAAG,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC;QAEvD,MAAM,EAAE,MAAM,EAAE,GAAG,aAAa,CAAC;QACjC,MAAM,UAAU,GAAG,sBAAsB,CAAC;QAC1C,MAAM,WAAW,GAAG,oBAAoB,CAAC;QACzC,MAAM,uBAAuB,GAA4B;YACvD,MAAM;YACN,UAAU;YACV,WAAW;YACX,uBAAuB,EAAE,6BAAkB,CAAC,kBAAkB;YAC9D,wBAAwB,EAAE,8BAAmB,CAAC,kBAAkB;SACjE,CAAC;QACF,MAAM,EAAE,cAAc,EAAE,GAAG,aAAa,CAAC;QACzC,OAAO,K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