@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,181 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { CreateSecretRequest, CreateSecretResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1CreateSecretCommand,
|
|
5
|
-
serializeAws_json1_1CreateSecretCommand,
|
|
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 CreateSecretCommandInput extends CreateSecretRequest {}
|
|
21
|
-
export interface CreateSecretCommandOutput extends CreateSecretResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Creates a new secret. A secret in Secrets Manager consists of both the protected secret data and the
|
|
25
|
-
* important information needed to manage the secret.</p>
|
|
26
|
-
* <p>Secrets Manager stores the encrypted secret data in one of a collection of "versions"
|
|
27
|
-
* associated with the secret. Each version contains a copy of the encrypted secret data. Each
|
|
28
|
-
* version is associated with one or more "staging labels" that identify where the version is in
|
|
29
|
-
* the rotation cycle. The <code>SecretVersionsToStages</code> field of the secret contains the
|
|
30
|
-
* mapping of staging labels to the active versions of the secret. Versions without a staging
|
|
31
|
-
* label are considered deprecated and not included in the list.</p>
|
|
32
|
-
* <p>You provide the secret data to be encrypted by putting text in either the
|
|
33
|
-
* <code>SecretString</code> parameter or binary data in the <code>SecretBinary</code>
|
|
34
|
-
* parameter, but not both. If you include <code>SecretString</code> or <code>SecretBinary</code>
|
|
35
|
-
* then Secrets Manager also creates an initial secret version and automatically attaches the staging
|
|
36
|
-
* label <code>AWSCURRENT</code> to the new version.</p>
|
|
37
|
-
* <note>
|
|
38
|
-
* <ul>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>If you call an operation to encrypt or decrypt the <code>SecretString</code>
|
|
41
|
-
* or <code>SecretBinary</code> for a secret in the same account as the calling user and that
|
|
42
|
-
* secret doesn't specify a Amazon Web Services KMS encryption key, Secrets Manager uses the account's default
|
|
43
|
-
* Amazon Web Services managed customer master key (CMK) with the alias <code>aws/secretsmanager</code>. If this key
|
|
44
|
-
* doesn't already exist in your account then Secrets Manager creates it for you automatically. All
|
|
45
|
-
* users and roles in the same Amazon Web Services account automatically have access to use the default CMK.
|
|
46
|
-
* Note that if an Secrets Manager API call results in Amazon Web Services creating the account's
|
|
47
|
-
* Amazon Web Services-managed CMK, it can result in a one-time significant delay in returning the
|
|
48
|
-
* result.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>If the secret resides in a different Amazon Web Services account from the credentials calling an API that
|
|
52
|
-
* requires encryption or decryption of the secret value then you must create and use a custom
|
|
53
|
-
* Amazon Web Services KMS CMK because you can't access the default CMK for the account using credentials
|
|
54
|
-
* from a different Amazon Web Services account. Store the ARN of the CMK in the secret when you create the
|
|
55
|
-
* secret or when you update it by including it in the <code>KMSKeyId</code>. If you call an
|
|
56
|
-
* API that must encrypt or decrypt <code>SecretString</code> or <code>SecretBinary</code>
|
|
57
|
-
* using credentials from a different account then the Amazon Web Services KMS key policy must grant cross-account
|
|
58
|
-
* access to that other account's user or role for both the kms:GenerateDataKey and
|
|
59
|
-
* kms:Decrypt operations.</p>
|
|
60
|
-
* </li>
|
|
61
|
-
* </ul>
|
|
62
|
-
* </note>
|
|
63
|
-
* <p> </p>
|
|
64
|
-
* <p>
|
|
65
|
-
* <b>Minimum permissions</b>
|
|
66
|
-
* </p>
|
|
67
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
68
|
-
* <ul>
|
|
69
|
-
* <li>
|
|
70
|
-
* <p>secretsmanager:CreateSecret</p>
|
|
71
|
-
* </li>
|
|
72
|
-
* <li>
|
|
73
|
-
* <p>kms:GenerateDataKey - needed only if you use a customer-managed Amazon Web Services KMS key to encrypt
|
|
74
|
-
* the secret. You do not need this permission to use the account default Amazon Web Services managed CMK
|
|
75
|
-
* for Secrets Manager.</p>
|
|
76
|
-
* </li>
|
|
77
|
-
* <li>
|
|
78
|
-
* <p>kms:Decrypt - needed only if you use a customer-managed Amazon Web Services KMS key to encrypt the
|
|
79
|
-
* secret. You do not need this permission to use the account default Amazon Web Services managed CMK for
|
|
80
|
-
* Secrets Manager.</p>
|
|
81
|
-
* </li>
|
|
82
|
-
* <li>
|
|
83
|
-
* <p>secretsmanager:TagResource - needed only if you include the <code>Tags</code>
|
|
84
|
-
* parameter. </p>
|
|
85
|
-
* </li>
|
|
86
|
-
* </ul>
|
|
87
|
-
* <p>
|
|
88
|
-
* <b>Related operations</b>
|
|
89
|
-
* </p>
|
|
90
|
-
* <ul>
|
|
91
|
-
* <li>
|
|
92
|
-
* <p>To delete a secret, use <a>DeleteSecret</a>.</p>
|
|
93
|
-
* </li>
|
|
94
|
-
* <li>
|
|
95
|
-
* <p>To modify an existing secret, use <a>UpdateSecret</a>.</p>
|
|
96
|
-
* </li>
|
|
97
|
-
* <li>
|
|
98
|
-
* <p>To create a new version of a secret, use <a>PutSecretValue</a>.</p>
|
|
99
|
-
* </li>
|
|
100
|
-
* <li>
|
|
101
|
-
* <p>To retrieve the encrypted secure string and secure binary values, use <a>GetSecretValue</a>.</p>
|
|
102
|
-
* </li>
|
|
103
|
-
* <li>
|
|
104
|
-
* <p>To retrieve all other details for a secret, use <a>DescribeSecret</a>. This
|
|
105
|
-
* does not include the encrypted secure string and secure binary values.</p>
|
|
106
|
-
* </li>
|
|
107
|
-
* <li>
|
|
108
|
-
* <p>To retrieve the list of secret versions associated with the current secret, use <a>DescribeSecret</a> and examine the <code>SecretVersionsToStages</code> response
|
|
109
|
-
* value.</p>
|
|
110
|
-
* </li>
|
|
111
|
-
* </ul>
|
|
112
|
-
* @example
|
|
113
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
114
|
-
* ```javascript
|
|
115
|
-
* import { SecretsManagerClient, CreateSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
116
|
-
* // const { SecretsManagerClient, CreateSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
117
|
-
* const client = new SecretsManagerClient(config);
|
|
118
|
-
* const command = new CreateSecretCommand(input);
|
|
119
|
-
* const response = await client.send(command);
|
|
120
|
-
* ```
|
|
121
|
-
*
|
|
122
|
-
* @see {@link CreateSecretCommandInput} for command's `input` shape.
|
|
123
|
-
* @see {@link CreateSecretCommandOutput} for command's `response` shape.
|
|
124
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
125
|
-
*
|
|
126
|
-
*/
|
|
127
|
-
export class CreateSecretCommand extends $Command<
|
|
128
|
-
CreateSecretCommandInput,
|
|
129
|
-
CreateSecretCommandOutput,
|
|
130
|
-
SecretsManagerClientResolvedConfig
|
|
131
|
-
> {
|
|
132
|
-
// Start section: command_properties
|
|
133
|
-
// End section: command_properties
|
|
134
|
-
|
|
135
|
-
constructor(readonly input: CreateSecretCommandInput) {
|
|
136
|
-
// Start section: command_constructor
|
|
137
|
-
super();
|
|
138
|
-
// End section: command_constructor
|
|
139
|
-
}
|
|
140
|
-
|
|
141
|
-
/**
|
|
142
|
-
* @internal
|
|
143
|
-
*/
|
|
144
|
-
resolveMiddleware(
|
|
145
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
146
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
147
|
-
options?: __HttpHandlerOptions
|
|
148
|
-
): Handler<CreateSecretCommandInput, CreateSecretCommandOutput> {
|
|
149
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
150
|
-
|
|
151
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
152
|
-
|
|
153
|
-
const { logger } = configuration;
|
|
154
|
-
const clientName = "SecretsManagerClient";
|
|
155
|
-
const commandName = "CreateSecretCommand";
|
|
156
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
157
|
-
logger,
|
|
158
|
-
clientName,
|
|
159
|
-
commandName,
|
|
160
|
-
inputFilterSensitiveLog: CreateSecretRequest.filterSensitiveLog,
|
|
161
|
-
outputFilterSensitiveLog: CreateSecretResponse.filterSensitiveLog,
|
|
162
|
-
};
|
|
163
|
-
const { requestHandler } = configuration;
|
|
164
|
-
return stack.resolve(
|
|
165
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
166
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
167
|
-
handlerExecutionContext
|
|
168
|
-
);
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
private serialize(input: CreateSecretCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
172
|
-
return serializeAws_json1_1CreateSecretCommand(input, context);
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<CreateSecretCommandOutput> {
|
|
176
|
-
return deserializeAws_json1_1CreateSecretCommand(output, context);
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// Start section: command_body_extra
|
|
180
|
-
// End section: command_body_extra
|
|
181
|
-
}
|
|
@@ -1,117 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { DeleteResourcePolicyRequest, DeleteResourcePolicyResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1DeleteResourcePolicyCommand,
|
|
5
|
-
serializeAws_json1_1DeleteResourcePolicyCommand,
|
|
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 DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest {}
|
|
21
|
-
export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Deletes the resource-based permission policy attached to the secret.</p>
|
|
25
|
-
* <p>
|
|
26
|
-
* <b>Minimum permissions</b>
|
|
27
|
-
* </p>
|
|
28
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
29
|
-
* <ul>
|
|
30
|
-
* <li>
|
|
31
|
-
* <p>secretsmanager:DeleteResourcePolicy</p>
|
|
32
|
-
* </li>
|
|
33
|
-
* </ul>
|
|
34
|
-
* <p>
|
|
35
|
-
* <b>Related operations</b>
|
|
36
|
-
* </p>
|
|
37
|
-
* <ul>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>To attach a resource policy to a secret, use <a>PutResourcePolicy</a>.</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>To retrieve the current resource-based policy attached to a secret, use <a>GetResourcePolicy</a>.</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* </ul>
|
|
48
|
-
* @example
|
|
49
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
50
|
-
* ```javascript
|
|
51
|
-
* import { SecretsManagerClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
52
|
-
* // const { SecretsManagerClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
53
|
-
* const client = new SecretsManagerClient(config);
|
|
54
|
-
* const command = new DeleteResourcePolicyCommand(input);
|
|
55
|
-
* const response = await client.send(command);
|
|
56
|
-
* ```
|
|
57
|
-
*
|
|
58
|
-
* @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape.
|
|
59
|
-
* @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape.
|
|
60
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
61
|
-
*
|
|
62
|
-
*/
|
|
63
|
-
export class DeleteResourcePolicyCommand extends $Command<
|
|
64
|
-
DeleteResourcePolicyCommandInput,
|
|
65
|
-
DeleteResourcePolicyCommandOutput,
|
|
66
|
-
SecretsManagerClientResolvedConfig
|
|
67
|
-
> {
|
|
68
|
-
// Start section: command_properties
|
|
69
|
-
// End section: command_properties
|
|
70
|
-
|
|
71
|
-
constructor(readonly input: DeleteResourcePolicyCommandInput) {
|
|
72
|
-
// Start section: command_constructor
|
|
73
|
-
super();
|
|
74
|
-
// End section: command_constructor
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
/**
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
resolveMiddleware(
|
|
81
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
82
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
83
|
-
options?: __HttpHandlerOptions
|
|
84
|
-
): Handler<DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput> {
|
|
85
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
86
|
-
|
|
87
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
88
|
-
|
|
89
|
-
const { logger } = configuration;
|
|
90
|
-
const clientName = "SecretsManagerClient";
|
|
91
|
-
const commandName = "DeleteResourcePolicyCommand";
|
|
92
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
93
|
-
logger,
|
|
94
|
-
clientName,
|
|
95
|
-
commandName,
|
|
96
|
-
inputFilterSensitiveLog: DeleteResourcePolicyRequest.filterSensitiveLog,
|
|
97
|
-
outputFilterSensitiveLog: DeleteResourcePolicyResponse.filterSensitiveLog,
|
|
98
|
-
};
|
|
99
|
-
const { requestHandler } = configuration;
|
|
100
|
-
return stack.resolve(
|
|
101
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
102
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
103
|
-
handlerExecutionContext
|
|
104
|
-
);
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
private serialize(input: DeleteResourcePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
108
|
-
return serializeAws_json1_1DeleteResourcePolicyCommand(input, context);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteResourcePolicyCommandOutput> {
|
|
112
|
-
return deserializeAws_json1_1DeleteResourcePolicyCommand(output, context);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
// Start section: command_body_extra
|
|
116
|
-
// End section: command_body_extra
|
|
117
|
-
}
|
|
@@ -1,139 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { DeleteSecretRequest, DeleteSecretResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1DeleteSecretCommand,
|
|
5
|
-
serializeAws_json1_1DeleteSecretCommand,
|
|
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 DeleteSecretCommandInput extends DeleteSecretRequest {}
|
|
21
|
-
export interface DeleteSecretCommandOutput extends DeleteSecretResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Deletes an entire secret and all of the versions. You can optionally include a recovery
|
|
25
|
-
* window during which you can restore the secret. If you don't specify a recovery window value,
|
|
26
|
-
* the operation defaults to 30 days. Secrets Manager attaches a <code>DeletionDate</code> stamp to
|
|
27
|
-
* the secret that specifies the end of the recovery window. At the end of the recovery window,
|
|
28
|
-
* Secrets Manager deletes the secret permanently.</p>
|
|
29
|
-
* <p>At any time before recovery window ends, you can use <a>RestoreSecret</a> to
|
|
30
|
-
* remove the <code>DeletionDate</code> and cancel the deletion of the secret.</p>
|
|
31
|
-
* <p>You cannot access the encrypted secret information in any secret scheduled for deletion.
|
|
32
|
-
* If you need to access that information, you must cancel the deletion with <a>RestoreSecret</a> and then retrieve the information.</p>
|
|
33
|
-
* <note>
|
|
34
|
-
* <ul>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>There is no explicit operation to delete a version of a secret. Instead, remove all
|
|
37
|
-
* staging labels from the <code>VersionStage</code> field of a version. That marks the
|
|
38
|
-
* version as deprecated and allows Secrets Manager to delete it as needed. Versions without any
|
|
39
|
-
* staging labels do not show up in <a>ListSecretVersionIds</a> unless you
|
|
40
|
-
* specify <code>IncludeDeprecated</code>.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>The permanent secret deletion at the end of the waiting period is performed as a
|
|
44
|
-
* background task with low priority. There is no guarantee of a specific time after the
|
|
45
|
-
* recovery window for the actual delete operation to occur.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* </ul>
|
|
48
|
-
* </note>
|
|
49
|
-
* <p>
|
|
50
|
-
* <b>Minimum permissions</b>
|
|
51
|
-
* </p>
|
|
52
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
53
|
-
* <ul>
|
|
54
|
-
* <li>
|
|
55
|
-
* <p>secretsmanager:DeleteSecret</p>
|
|
56
|
-
* </li>
|
|
57
|
-
* </ul>
|
|
58
|
-
* <p>
|
|
59
|
-
* <b>Related operations</b>
|
|
60
|
-
* </p>
|
|
61
|
-
* <ul>
|
|
62
|
-
* <li>
|
|
63
|
-
* <p>To create a secret, use <a>CreateSecret</a>.</p>
|
|
64
|
-
* </li>
|
|
65
|
-
* <li>
|
|
66
|
-
* <p>To cancel deletion of a version of a secret before the recovery window has expired,
|
|
67
|
-
* use <a>RestoreSecret</a>.</p>
|
|
68
|
-
* </li>
|
|
69
|
-
* </ul>
|
|
70
|
-
* @example
|
|
71
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
72
|
-
* ```javascript
|
|
73
|
-
* import { SecretsManagerClient, DeleteSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
74
|
-
* // const { SecretsManagerClient, DeleteSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
75
|
-
* const client = new SecretsManagerClient(config);
|
|
76
|
-
* const command = new DeleteSecretCommand(input);
|
|
77
|
-
* const response = await client.send(command);
|
|
78
|
-
* ```
|
|
79
|
-
*
|
|
80
|
-
* @see {@link DeleteSecretCommandInput} for command's `input` shape.
|
|
81
|
-
* @see {@link DeleteSecretCommandOutput} for command's `response` shape.
|
|
82
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
83
|
-
*
|
|
84
|
-
*/
|
|
85
|
-
export class DeleteSecretCommand extends $Command<
|
|
86
|
-
DeleteSecretCommandInput,
|
|
87
|
-
DeleteSecretCommandOutput,
|
|
88
|
-
SecretsManagerClientResolvedConfig
|
|
89
|
-
> {
|
|
90
|
-
// Start section: command_properties
|
|
91
|
-
// End section: command_properties
|
|
92
|
-
|
|
93
|
-
constructor(readonly input: DeleteSecretCommandInput) {
|
|
94
|
-
// Start section: command_constructor
|
|
95
|
-
super();
|
|
96
|
-
// End section: command_constructor
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
*/
|
|
102
|
-
resolveMiddleware(
|
|
103
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
104
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
105
|
-
options?: __HttpHandlerOptions
|
|
106
|
-
): Handler<DeleteSecretCommandInput, DeleteSecretCommandOutput> {
|
|
107
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
108
|
-
|
|
109
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
110
|
-
|
|
111
|
-
const { logger } = configuration;
|
|
112
|
-
const clientName = "SecretsManagerClient";
|
|
113
|
-
const commandName = "DeleteSecretCommand";
|
|
114
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
115
|
-
logger,
|
|
116
|
-
clientName,
|
|
117
|
-
commandName,
|
|
118
|
-
inputFilterSensitiveLog: DeleteSecretRequest.filterSensitiveLog,
|
|
119
|
-
outputFilterSensitiveLog: DeleteSecretResponse.filterSensitiveLog,
|
|
120
|
-
};
|
|
121
|
-
const { requestHandler } = configuration;
|
|
122
|
-
return stack.resolve(
|
|
123
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
124
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
125
|
-
handlerExecutionContext
|
|
126
|
-
);
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
private serialize(input: DeleteSecretCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
130
|
-
return serializeAws_json1_1DeleteSecretCommand(input, context);
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DeleteSecretCommandOutput> {
|
|
134
|
-
return deserializeAws_json1_1DeleteSecretCommand(output, context);
|
|
135
|
-
}
|
|
136
|
-
|
|
137
|
-
// Start section: command_body_extra
|
|
138
|
-
// End section: command_body_extra
|
|
139
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { DescribeSecretRequest, DescribeSecretResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1DescribeSecretCommand,
|
|
5
|
-
serializeAws_json1_1DescribeSecretCommand,
|
|
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 DescribeSecretCommandInput extends DescribeSecretRequest {}
|
|
21
|
-
export interface DescribeSecretCommandOutput extends DescribeSecretResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves the details of a secret. It does not include the encrypted fields. Secrets
|
|
25
|
-
* Manager only returns fields populated with a value in the response. </p>
|
|
26
|
-
* <p>
|
|
27
|
-
* <b>Minimum permissions</b>
|
|
28
|
-
* </p>
|
|
29
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
30
|
-
* <ul>
|
|
31
|
-
* <li>
|
|
32
|
-
* <p>secretsmanager:DescribeSecret</p>
|
|
33
|
-
* </li>
|
|
34
|
-
* </ul>
|
|
35
|
-
* <p>
|
|
36
|
-
* <b>Related operations</b>
|
|
37
|
-
* </p>
|
|
38
|
-
* <ul>
|
|
39
|
-
* <li>
|
|
40
|
-
* <p>To create a secret, use <a>CreateSecret</a>.</p>
|
|
41
|
-
* </li>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>To modify a secret, use <a>UpdateSecret</a>.</p>
|
|
44
|
-
* </li>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>To retrieve the encrypted secret information in a version of the secret, use <a>GetSecretValue</a>.</p>
|
|
47
|
-
* </li>
|
|
48
|
-
* <li>
|
|
49
|
-
* <p>To list all of the secrets in the Amazon Web Services account, use <a>ListSecrets</a>.</p>
|
|
50
|
-
* </li>
|
|
51
|
-
* </ul>
|
|
52
|
-
* @example
|
|
53
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
54
|
-
* ```javascript
|
|
55
|
-
* import { SecretsManagerClient, DescribeSecretCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
56
|
-
* // const { SecretsManagerClient, DescribeSecretCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
57
|
-
* const client = new SecretsManagerClient(config);
|
|
58
|
-
* const command = new DescribeSecretCommand(input);
|
|
59
|
-
* const response = await client.send(command);
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* @see {@link DescribeSecretCommandInput} for command's `input` shape.
|
|
63
|
-
* @see {@link DescribeSecretCommandOutput} for command's `response` shape.
|
|
64
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
export class DescribeSecretCommand extends $Command<
|
|
68
|
-
DescribeSecretCommandInput,
|
|
69
|
-
DescribeSecretCommandOutput,
|
|
70
|
-
SecretsManagerClientResolvedConfig
|
|
71
|
-
> {
|
|
72
|
-
// Start section: command_properties
|
|
73
|
-
// End section: command_properties
|
|
74
|
-
|
|
75
|
-
constructor(readonly input: DescribeSecretCommandInput) {
|
|
76
|
-
// Start section: command_constructor
|
|
77
|
-
super();
|
|
78
|
-
// End section: command_constructor
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/**
|
|
82
|
-
* @internal
|
|
83
|
-
*/
|
|
84
|
-
resolveMiddleware(
|
|
85
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
86
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
87
|
-
options?: __HttpHandlerOptions
|
|
88
|
-
): Handler<DescribeSecretCommandInput, DescribeSecretCommandOutput> {
|
|
89
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
90
|
-
|
|
91
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
92
|
-
|
|
93
|
-
const { logger } = configuration;
|
|
94
|
-
const clientName = "SecretsManagerClient";
|
|
95
|
-
const commandName = "DescribeSecretCommand";
|
|
96
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
97
|
-
logger,
|
|
98
|
-
clientName,
|
|
99
|
-
commandName,
|
|
100
|
-
inputFilterSensitiveLog: DescribeSecretRequest.filterSensitiveLog,
|
|
101
|
-
outputFilterSensitiveLog: DescribeSecretResponse.filterSensitiveLog,
|
|
102
|
-
};
|
|
103
|
-
const { requestHandler } = configuration;
|
|
104
|
-
return stack.resolve(
|
|
105
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
106
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
107
|
-
handlerExecutionContext
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
private serialize(input: DescribeSecretCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
112
|
-
return serializeAws_json1_1DescribeSecretCommand(input, context);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<DescribeSecretCommandOutput> {
|
|
116
|
-
return deserializeAws_json1_1DescribeSecretCommand(output, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Start section: command_body_extra
|
|
120
|
-
// End section: command_body_extra
|
|
121
|
-
}
|
|
@@ -1,106 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { GetRandomPasswordRequest, GetRandomPasswordResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1GetRandomPasswordCommand,
|
|
5
|
-
serializeAws_json1_1GetRandomPasswordCommand,
|
|
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 GetRandomPasswordCommandInput extends GetRandomPasswordRequest {}
|
|
21
|
-
export interface GetRandomPasswordCommandOutput extends GetRandomPasswordResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Generates a random password of the specified complexity. This operation is intended for
|
|
25
|
-
* use in the Lambda rotation function. Per best practice, we recommend that you specify the
|
|
26
|
-
* maximum length and include every character type that the system you are generating a password
|
|
27
|
-
* for can support.</p>
|
|
28
|
-
* <p>
|
|
29
|
-
* <b>Minimum permissions</b>
|
|
30
|
-
* </p>
|
|
31
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
32
|
-
* <ul>
|
|
33
|
-
* <li>
|
|
34
|
-
* <p>secretsmanager:GetRandomPassword</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, GetRandomPasswordCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
41
|
-
* // const { SecretsManagerClient, GetRandomPasswordCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
42
|
-
* const client = new SecretsManagerClient(config);
|
|
43
|
-
* const command = new GetRandomPasswordCommand(input);
|
|
44
|
-
* const response = await client.send(command);
|
|
45
|
-
* ```
|
|
46
|
-
*
|
|
47
|
-
* @see {@link GetRandomPasswordCommandInput} for command's `input` shape.
|
|
48
|
-
* @see {@link GetRandomPasswordCommandOutput} for command's `response` shape.
|
|
49
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
50
|
-
*
|
|
51
|
-
*/
|
|
52
|
-
export class GetRandomPasswordCommand extends $Command<
|
|
53
|
-
GetRandomPasswordCommandInput,
|
|
54
|
-
GetRandomPasswordCommandOutput,
|
|
55
|
-
SecretsManagerClientResolvedConfig
|
|
56
|
-
> {
|
|
57
|
-
// Start section: command_properties
|
|
58
|
-
// End section: command_properties
|
|
59
|
-
|
|
60
|
-
constructor(readonly input: GetRandomPasswordCommandInput) {
|
|
61
|
-
// Start section: command_constructor
|
|
62
|
-
super();
|
|
63
|
-
// End section: command_constructor
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* @internal
|
|
68
|
-
*/
|
|
69
|
-
resolveMiddleware(
|
|
70
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
71
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
72
|
-
options?: __HttpHandlerOptions
|
|
73
|
-
): Handler<GetRandomPasswordCommandInput, GetRandomPasswordCommandOutput> {
|
|
74
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
75
|
-
|
|
76
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
77
|
-
|
|
78
|
-
const { logger } = configuration;
|
|
79
|
-
const clientName = "SecretsManagerClient";
|
|
80
|
-
const commandName = "GetRandomPasswordCommand";
|
|
81
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
82
|
-
logger,
|
|
83
|
-
clientName,
|
|
84
|
-
commandName,
|
|
85
|
-
inputFilterSensitiveLog: GetRandomPasswordRequest.filterSensitiveLog,
|
|
86
|
-
outputFilterSensitiveLog: GetRandomPasswordResponse.filterSensitiveLog,
|
|
87
|
-
};
|
|
88
|
-
const { requestHandler } = configuration;
|
|
89
|
-
return stack.resolve(
|
|
90
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
91
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
92
|
-
handlerExecutionContext
|
|
93
|
-
);
|
|
94
|
-
}
|
|
95
|
-
|
|
96
|
-
private serialize(input: GetRandomPasswordCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
97
|
-
return serializeAws_json1_1GetRandomPasswordCommand(input, context);
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetRandomPasswordCommandOutput> {
|
|
101
|
-
return deserializeAws_json1_1GetRandomPasswordCommand(output, context);
|
|
102
|
-
}
|
|
103
|
-
|
|
104
|
-
// Start section: command_body_extra
|
|
105
|
-
// End section: command_body_extra
|
|
106
|
-
}
|