@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,120 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { GetResourcePolicyRequest, GetResourcePolicyResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1GetResourcePolicyCommand,
|
|
5
|
-
serializeAws_json1_1GetResourcePolicyCommand,
|
|
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 GetResourcePolicyCommandInput extends GetResourcePolicyRequest {}
|
|
21
|
-
export interface GetResourcePolicyCommandOutput extends GetResourcePolicyResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves the JSON text of the resource-based policy document attached to the specified
|
|
25
|
-
* secret. The JSON request string input and response output displays formatted code
|
|
26
|
-
* with white space and line breaks for better readability. Submit your input as a single line
|
|
27
|
-
* JSON string.</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:GetResourcePolicy</p>
|
|
35
|
-
* </li>
|
|
36
|
-
* </ul>
|
|
37
|
-
* <p>
|
|
38
|
-
* <b>Related operations</b>
|
|
39
|
-
* </p>
|
|
40
|
-
* <ul>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>To attach a resource policy to a secret, use <a>PutResourcePolicy</a>.</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* <li>
|
|
45
|
-
* <p>To delete the resource-based policy attached to a secret, use <a>DeleteResourcePolicy</a>.</p>
|
|
46
|
-
* </li>
|
|
47
|
-
* <li>
|
|
48
|
-
* <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>
|
|
49
|
-
* </li>
|
|
50
|
-
* </ul>
|
|
51
|
-
* @example
|
|
52
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
53
|
-
* ```javascript
|
|
54
|
-
* import { SecretsManagerClient, GetResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
55
|
-
* // const { SecretsManagerClient, GetResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
56
|
-
* const client = new SecretsManagerClient(config);
|
|
57
|
-
* const command = new GetResourcePolicyCommand(input);
|
|
58
|
-
* const response = await client.send(command);
|
|
59
|
-
* ```
|
|
60
|
-
*
|
|
61
|
-
* @see {@link GetResourcePolicyCommandInput} for command's `input` shape.
|
|
62
|
-
* @see {@link GetResourcePolicyCommandOutput} for command's `response` shape.
|
|
63
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
64
|
-
*
|
|
65
|
-
*/
|
|
66
|
-
export class GetResourcePolicyCommand extends $Command<
|
|
67
|
-
GetResourcePolicyCommandInput,
|
|
68
|
-
GetResourcePolicyCommandOutput,
|
|
69
|
-
SecretsManagerClientResolvedConfig
|
|
70
|
-
> {
|
|
71
|
-
// Start section: command_properties
|
|
72
|
-
// End section: command_properties
|
|
73
|
-
|
|
74
|
-
constructor(readonly input: GetResourcePolicyCommandInput) {
|
|
75
|
-
// Start section: command_constructor
|
|
76
|
-
super();
|
|
77
|
-
// End section: command_constructor
|
|
78
|
-
}
|
|
79
|
-
|
|
80
|
-
/**
|
|
81
|
-
* @internal
|
|
82
|
-
*/
|
|
83
|
-
resolveMiddleware(
|
|
84
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
85
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
86
|
-
options?: __HttpHandlerOptions
|
|
87
|
-
): Handler<GetResourcePolicyCommandInput, GetResourcePolicyCommandOutput> {
|
|
88
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
89
|
-
|
|
90
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
91
|
-
|
|
92
|
-
const { logger } = configuration;
|
|
93
|
-
const clientName = "SecretsManagerClient";
|
|
94
|
-
const commandName = "GetResourcePolicyCommand";
|
|
95
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
96
|
-
logger,
|
|
97
|
-
clientName,
|
|
98
|
-
commandName,
|
|
99
|
-
inputFilterSensitiveLog: GetResourcePolicyRequest.filterSensitiveLog,
|
|
100
|
-
outputFilterSensitiveLog: GetResourcePolicyResponse.filterSensitiveLog,
|
|
101
|
-
};
|
|
102
|
-
const { requestHandler } = configuration;
|
|
103
|
-
return stack.resolve(
|
|
104
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
105
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
106
|
-
handlerExecutionContext
|
|
107
|
-
);
|
|
108
|
-
}
|
|
109
|
-
|
|
110
|
-
private serialize(input: GetResourcePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
111
|
-
return serializeAws_json1_1GetResourcePolicyCommand(input, context);
|
|
112
|
-
}
|
|
113
|
-
|
|
114
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetResourcePolicyCommandOutput> {
|
|
115
|
-
return deserializeAws_json1_1GetResourcePolicyCommand(output, context);
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
// Start section: command_body_extra
|
|
119
|
-
// End section: command_body_extra
|
|
120
|
-
}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { GetSecretValueRequest, GetSecretValueResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1GetSecretValueCommand,
|
|
5
|
-
serializeAws_json1_1GetSecretValueCommand,
|
|
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 GetSecretValueCommandInput extends GetSecretValueRequest {}
|
|
21
|
-
export interface GetSecretValueCommandOutput extends GetSecretValueResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Retrieves the contents of the encrypted fields <code>SecretString</code> or
|
|
25
|
-
* <code>SecretBinary</code> from the specified version of a secret, whichever contains
|
|
26
|
-
* content.</p>
|
|
27
|
-
* <p>
|
|
28
|
-
* <b>Minimum permissions</b>
|
|
29
|
-
* </p>
|
|
30
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
31
|
-
* <ul>
|
|
32
|
-
* <li>
|
|
33
|
-
* <p>secretsmanager:GetSecretValue</p>
|
|
34
|
-
* </li>
|
|
35
|
-
* <li>
|
|
36
|
-
* <p>kms:Decrypt - required only if you use a customer-managed Amazon Web Services KMS key to encrypt the
|
|
37
|
-
* secret. You do not need this permission to use the account's default Amazon Web Services managed CMK for
|
|
38
|
-
* Secrets Manager.</p>
|
|
39
|
-
* </li>
|
|
40
|
-
* </ul>
|
|
41
|
-
* <p>
|
|
42
|
-
* <b>Related operations</b>
|
|
43
|
-
* </p>
|
|
44
|
-
* <ul>
|
|
45
|
-
* <li>
|
|
46
|
-
* <p>To create a new version of the secret with different encrypted information, use <a>PutSecretValue</a>.</p>
|
|
47
|
-
* </li>
|
|
48
|
-
* <li>
|
|
49
|
-
* <p>To retrieve the non-encrypted details for the secret, use <a>DescribeSecret</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, GetSecretValueCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
56
|
-
* // const { SecretsManagerClient, GetSecretValueCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
57
|
-
* const client = new SecretsManagerClient(config);
|
|
58
|
-
* const command = new GetSecretValueCommand(input);
|
|
59
|
-
* const response = await client.send(command);
|
|
60
|
-
* ```
|
|
61
|
-
*
|
|
62
|
-
* @see {@link GetSecretValueCommandInput} for command's `input` shape.
|
|
63
|
-
* @see {@link GetSecretValueCommandOutput} for command's `response` shape.
|
|
64
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
65
|
-
*
|
|
66
|
-
*/
|
|
67
|
-
export class GetSecretValueCommand extends $Command<
|
|
68
|
-
GetSecretValueCommandInput,
|
|
69
|
-
GetSecretValueCommandOutput,
|
|
70
|
-
SecretsManagerClientResolvedConfig
|
|
71
|
-
> {
|
|
72
|
-
// Start section: command_properties
|
|
73
|
-
// End section: command_properties
|
|
74
|
-
|
|
75
|
-
constructor(readonly input: GetSecretValueCommandInput) {
|
|
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<GetSecretValueCommandInput, GetSecretValueCommandOutput> {
|
|
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 = "GetSecretValueCommand";
|
|
96
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
97
|
-
logger,
|
|
98
|
-
clientName,
|
|
99
|
-
commandName,
|
|
100
|
-
inputFilterSensitiveLog: GetSecretValueRequest.filterSensitiveLog,
|
|
101
|
-
outputFilterSensitiveLog: GetSecretValueResponse.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: GetSecretValueCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
112
|
-
return serializeAws_json1_1GetSecretValueCommand(input, context);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<GetSecretValueCommandOutput> {
|
|
116
|
-
return deserializeAws_json1_1GetSecretValueCommand(output, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
// Start section: command_body_extra
|
|
120
|
-
// End section: command_body_extra
|
|
121
|
-
}
|
|
@@ -1,122 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { ListSecretVersionIdsRequest, ListSecretVersionIdsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1ListSecretVersionIdsCommand,
|
|
5
|
-
serializeAws_json1_1ListSecretVersionIdsCommand,
|
|
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 ListSecretVersionIdsCommandInput extends ListSecretVersionIdsRequest {}
|
|
21
|
-
export interface ListSecretVersionIdsCommandOutput extends ListSecretVersionIdsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Lists all of the versions attached to the specified secret. The output does not include
|
|
25
|
-
* the <code>SecretString</code> or <code>SecretBinary</code> fields. By default, the list
|
|
26
|
-
* includes only versions that have at least one staging label in <code>VersionStage</code>
|
|
27
|
-
* attached.</p>
|
|
28
|
-
* <note>
|
|
29
|
-
* <p>Always check the <code>NextToken</code> response parameter
|
|
30
|
-
* when calling any of the <code>List*</code> operations. These operations can occasionally return
|
|
31
|
-
* an empty or shorter than expected list of results even when there more results become available.
|
|
32
|
-
* When this happens, the <code>NextToken</code> response parameter contains a value to pass to the
|
|
33
|
-
* next call to the same API to request the next part of the list.</p>
|
|
34
|
-
* </note>
|
|
35
|
-
* <p>
|
|
36
|
-
* <b>Minimum
|
|
37
|
-
* permissions</b>
|
|
38
|
-
* </p>
|
|
39
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
40
|
-
* <ul>
|
|
41
|
-
* <li>
|
|
42
|
-
* <p>secretsmanager:ListSecretVersionIds</p>
|
|
43
|
-
* </li>
|
|
44
|
-
* </ul>
|
|
45
|
-
* <p>
|
|
46
|
-
* <b>Related operations</b>
|
|
47
|
-
* </p>
|
|
48
|
-
* <ul>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>To list the secrets in an account, use <a>ListSecrets</a>.</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* </ul>
|
|
53
|
-
* @example
|
|
54
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
55
|
-
* ```javascript
|
|
56
|
-
* import { SecretsManagerClient, ListSecretVersionIdsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
57
|
-
* // const { SecretsManagerClient, ListSecretVersionIdsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
58
|
-
* const client = new SecretsManagerClient(config);
|
|
59
|
-
* const command = new ListSecretVersionIdsCommand(input);
|
|
60
|
-
* const response = await client.send(command);
|
|
61
|
-
* ```
|
|
62
|
-
*
|
|
63
|
-
* @see {@link ListSecretVersionIdsCommandInput} for command's `input` shape.
|
|
64
|
-
* @see {@link ListSecretVersionIdsCommandOutput} for command's `response` shape.
|
|
65
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
66
|
-
*
|
|
67
|
-
*/
|
|
68
|
-
export class ListSecretVersionIdsCommand extends $Command<
|
|
69
|
-
ListSecretVersionIdsCommandInput,
|
|
70
|
-
ListSecretVersionIdsCommandOutput,
|
|
71
|
-
SecretsManagerClientResolvedConfig
|
|
72
|
-
> {
|
|
73
|
-
// Start section: command_properties
|
|
74
|
-
// End section: command_properties
|
|
75
|
-
|
|
76
|
-
constructor(readonly input: ListSecretVersionIdsCommandInput) {
|
|
77
|
-
// Start section: command_constructor
|
|
78
|
-
super();
|
|
79
|
-
// End section: command_constructor
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
/**
|
|
83
|
-
* @internal
|
|
84
|
-
*/
|
|
85
|
-
resolveMiddleware(
|
|
86
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
87
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
88
|
-
options?: __HttpHandlerOptions
|
|
89
|
-
): Handler<ListSecretVersionIdsCommandInput, ListSecretVersionIdsCommandOutput> {
|
|
90
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
91
|
-
|
|
92
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
93
|
-
|
|
94
|
-
const { logger } = configuration;
|
|
95
|
-
const clientName = "SecretsManagerClient";
|
|
96
|
-
const commandName = "ListSecretVersionIdsCommand";
|
|
97
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
98
|
-
logger,
|
|
99
|
-
clientName,
|
|
100
|
-
commandName,
|
|
101
|
-
inputFilterSensitiveLog: ListSecretVersionIdsRequest.filterSensitiveLog,
|
|
102
|
-
outputFilterSensitiveLog: ListSecretVersionIdsResponse.filterSensitiveLog,
|
|
103
|
-
};
|
|
104
|
-
const { requestHandler } = configuration;
|
|
105
|
-
return stack.resolve(
|
|
106
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
107
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
108
|
-
handlerExecutionContext
|
|
109
|
-
);
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
private serialize(input: ListSecretVersionIdsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
113
|
-
return serializeAws_json1_1ListSecretVersionIdsCommand(input, context);
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListSecretVersionIdsCommandOutput> {
|
|
117
|
-
return deserializeAws_json1_1ListSecretVersionIdsCommand(output, context);
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
// Start section: command_body_extra
|
|
121
|
-
// End section: command_body_extra
|
|
122
|
-
}
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { ListSecretsRequest, ListSecretsResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1ListSecretsCommand,
|
|
5
|
-
serializeAws_json1_1ListSecretsCommand,
|
|
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 ListSecretsCommandInput extends ListSecretsRequest {}
|
|
21
|
-
export interface ListSecretsCommandOutput extends ListSecretsResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Lists all of the secrets that are stored by Secrets Manager in the Amazon Web Services account. To list the
|
|
25
|
-
* versions currently stored for a specific secret, use <a>ListSecretVersionIds</a>.
|
|
26
|
-
* The encrypted fields <code>SecretString</code> and <code>SecretBinary</code> are not included
|
|
27
|
-
* in the output. To get that information, call the <a>GetSecretValue</a>
|
|
28
|
-
* operation.</p>
|
|
29
|
-
* <note>
|
|
30
|
-
* <p>Always check the <code>NextToken</code> response parameter
|
|
31
|
-
* when calling any of the <code>List*</code> operations. These operations can occasionally return
|
|
32
|
-
* an empty or shorter than expected list of results even when there more results become available.
|
|
33
|
-
* When this happens, the <code>NextToken</code> response parameter contains a value to pass to the
|
|
34
|
-
* next call to the same API to request the next part of the list.</p>
|
|
35
|
-
* </note>
|
|
36
|
-
* <p>
|
|
37
|
-
* <b>Minimum
|
|
38
|
-
* permissions</b>
|
|
39
|
-
* </p>
|
|
40
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
41
|
-
* <ul>
|
|
42
|
-
* <li>
|
|
43
|
-
* <p>secretsmanager:ListSecrets</p>
|
|
44
|
-
* </li>
|
|
45
|
-
* </ul>
|
|
46
|
-
* <p>
|
|
47
|
-
* <b>Related operations</b>
|
|
48
|
-
* </p>
|
|
49
|
-
* <ul>
|
|
50
|
-
* <li>
|
|
51
|
-
* <p>To list the versions attached to a secret, use <a>ListSecretVersionIds</a>.</p>
|
|
52
|
-
* </li>
|
|
53
|
-
* </ul>
|
|
54
|
-
* @example
|
|
55
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
56
|
-
* ```javascript
|
|
57
|
-
* import { SecretsManagerClient, ListSecretsCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
58
|
-
* // const { SecretsManagerClient, ListSecretsCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
59
|
-
* const client = new SecretsManagerClient(config);
|
|
60
|
-
* const command = new ListSecretsCommand(input);
|
|
61
|
-
* const response = await client.send(command);
|
|
62
|
-
* ```
|
|
63
|
-
*
|
|
64
|
-
* @see {@link ListSecretsCommandInput} for command's `input` shape.
|
|
65
|
-
* @see {@link ListSecretsCommandOutput} for command's `response` shape.
|
|
66
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
67
|
-
*
|
|
68
|
-
*/
|
|
69
|
-
export class ListSecretsCommand extends $Command<
|
|
70
|
-
ListSecretsCommandInput,
|
|
71
|
-
ListSecretsCommandOutput,
|
|
72
|
-
SecretsManagerClientResolvedConfig
|
|
73
|
-
> {
|
|
74
|
-
// Start section: command_properties
|
|
75
|
-
// End section: command_properties
|
|
76
|
-
|
|
77
|
-
constructor(readonly input: ListSecretsCommandInput) {
|
|
78
|
-
// Start section: command_constructor
|
|
79
|
-
super();
|
|
80
|
-
// End section: command_constructor
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
/**
|
|
84
|
-
* @internal
|
|
85
|
-
*/
|
|
86
|
-
resolveMiddleware(
|
|
87
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
88
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
89
|
-
options?: __HttpHandlerOptions
|
|
90
|
-
): Handler<ListSecretsCommandInput, ListSecretsCommandOutput> {
|
|
91
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
92
|
-
|
|
93
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
94
|
-
|
|
95
|
-
const { logger } = configuration;
|
|
96
|
-
const clientName = "SecretsManagerClient";
|
|
97
|
-
const commandName = "ListSecretsCommand";
|
|
98
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
99
|
-
logger,
|
|
100
|
-
clientName,
|
|
101
|
-
commandName,
|
|
102
|
-
inputFilterSensitiveLog: ListSecretsRequest.filterSensitiveLog,
|
|
103
|
-
outputFilterSensitiveLog: ListSecretsResponse.filterSensitiveLog,
|
|
104
|
-
};
|
|
105
|
-
const { requestHandler } = configuration;
|
|
106
|
-
return stack.resolve(
|
|
107
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
108
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
109
|
-
handlerExecutionContext
|
|
110
|
-
);
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
private serialize(input: ListSecretsCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
114
|
-
return serializeAws_json1_1ListSecretsCommand(input, context);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<ListSecretsCommandOutput> {
|
|
118
|
-
return deserializeAws_json1_1ListSecretsCommand(output, context);
|
|
119
|
-
}
|
|
120
|
-
|
|
121
|
-
// Start section: command_body_extra
|
|
122
|
-
// End section: command_body_extra
|
|
123
|
-
}
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
import { SecretsManagerClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../SecretsManagerClient";
|
|
2
|
-
import { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_0";
|
|
3
|
-
import {
|
|
4
|
-
deserializeAws_json1_1PutResourcePolicyCommand,
|
|
5
|
-
serializeAws_json1_1PutResourcePolicyCommand,
|
|
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 PutResourcePolicyCommandInput extends PutResourcePolicyRequest {}
|
|
21
|
-
export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer {}
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* <p>Attaches the contents of the specified resource-based permission policy to a secret. A
|
|
25
|
-
* resource-based policy is optional. Alternatively, you can use IAM identity-based policies
|
|
26
|
-
* that specify the secret's Amazon Resource Name (ARN) in the policy statement's
|
|
27
|
-
* <code>Resources</code> element. You can also use a combination of both identity-based and
|
|
28
|
-
* resource-based policies. The affected users and roles receive the permissions that are
|
|
29
|
-
* permitted by all of the relevant policies. For more information, see <a href="http://docs.aws.amazon.com/secretsmanager/latest/userguide/auth-and-access_resource-based-policies.html">Using Resource-Based
|
|
30
|
-
* Policies for Amazon Web Services Secrets Manager</a>. For the complete description of the Amazon Web Services policy syntax and
|
|
31
|
-
* grammar, see <a href="https://docs.aws.amazon.com/IAM/latest/UserGuide/reference_policies.html">IAM JSON
|
|
32
|
-
* Policy Reference</a> in the <i>IAM User Guide</i>.</p>
|
|
33
|
-
* <p>
|
|
34
|
-
* <b>Minimum permissions</b>
|
|
35
|
-
* </p>
|
|
36
|
-
* <p>To run this command, you must have the following permissions:</p>
|
|
37
|
-
* <ul>
|
|
38
|
-
* <li>
|
|
39
|
-
* <p>secretsmanager:PutResourcePolicy</p>
|
|
40
|
-
* </li>
|
|
41
|
-
* </ul>
|
|
42
|
-
* <p>
|
|
43
|
-
* <b>Related operations</b>
|
|
44
|
-
* </p>
|
|
45
|
-
* <ul>
|
|
46
|
-
* <li>
|
|
47
|
-
* <p>To retrieve the resource policy attached to a secret, use <a>GetResourcePolicy</a>.</p>
|
|
48
|
-
* </li>
|
|
49
|
-
* <li>
|
|
50
|
-
* <p>To delete the resource-based policy attached to a secret, use <a>DeleteResourcePolicy</a>.</p>
|
|
51
|
-
* </li>
|
|
52
|
-
* <li>
|
|
53
|
-
* <p>To list all of the currently available secrets, use <a>ListSecrets</a>.</p>
|
|
54
|
-
* </li>
|
|
55
|
-
* </ul>
|
|
56
|
-
* @example
|
|
57
|
-
* Use a bare-bones client and the command you need to make an API call.
|
|
58
|
-
* ```javascript
|
|
59
|
-
* import { SecretsManagerClient, PutResourcePolicyCommand } from "@aws-sdk/client-secrets-manager"; // ES Modules import
|
|
60
|
-
* // const { SecretsManagerClient, PutResourcePolicyCommand } = require("@aws-sdk/client-secrets-manager"); // CommonJS import
|
|
61
|
-
* const client = new SecretsManagerClient(config);
|
|
62
|
-
* const command = new PutResourcePolicyCommand(input);
|
|
63
|
-
* const response = await client.send(command);
|
|
64
|
-
* ```
|
|
65
|
-
*
|
|
66
|
-
* @see {@link PutResourcePolicyCommandInput} for command's `input` shape.
|
|
67
|
-
* @see {@link PutResourcePolicyCommandOutput} for command's `response` shape.
|
|
68
|
-
* @see {@link SecretsManagerClientResolvedConfig | config} for command's `input` shape.
|
|
69
|
-
*
|
|
70
|
-
*/
|
|
71
|
-
export class PutResourcePolicyCommand extends $Command<
|
|
72
|
-
PutResourcePolicyCommandInput,
|
|
73
|
-
PutResourcePolicyCommandOutput,
|
|
74
|
-
SecretsManagerClientResolvedConfig
|
|
75
|
-
> {
|
|
76
|
-
// Start section: command_properties
|
|
77
|
-
// End section: command_properties
|
|
78
|
-
|
|
79
|
-
constructor(readonly input: PutResourcePolicyCommandInput) {
|
|
80
|
-
// Start section: command_constructor
|
|
81
|
-
super();
|
|
82
|
-
// End section: command_constructor
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
/**
|
|
86
|
-
* @internal
|
|
87
|
-
*/
|
|
88
|
-
resolveMiddleware(
|
|
89
|
-
clientStack: MiddlewareStack<ServiceInputTypes, ServiceOutputTypes>,
|
|
90
|
-
configuration: SecretsManagerClientResolvedConfig,
|
|
91
|
-
options?: __HttpHandlerOptions
|
|
92
|
-
): Handler<PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput> {
|
|
93
|
-
this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize));
|
|
94
|
-
|
|
95
|
-
const stack = clientStack.concat(this.middlewareStack);
|
|
96
|
-
|
|
97
|
-
const { logger } = configuration;
|
|
98
|
-
const clientName = "SecretsManagerClient";
|
|
99
|
-
const commandName = "PutResourcePolicyCommand";
|
|
100
|
-
const handlerExecutionContext: HandlerExecutionContext = {
|
|
101
|
-
logger,
|
|
102
|
-
clientName,
|
|
103
|
-
commandName,
|
|
104
|
-
inputFilterSensitiveLog: PutResourcePolicyRequest.filterSensitiveLog,
|
|
105
|
-
outputFilterSensitiveLog: PutResourcePolicyResponse.filterSensitiveLog,
|
|
106
|
-
};
|
|
107
|
-
const { requestHandler } = configuration;
|
|
108
|
-
return stack.resolve(
|
|
109
|
-
(request: FinalizeHandlerArguments<any>) =>
|
|
110
|
-
requestHandler.handle(request.request as __HttpRequest, options || {}),
|
|
111
|
-
handlerExecutionContext
|
|
112
|
-
);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private serialize(input: PutResourcePolicyCommandInput, context: __SerdeContext): Promise<__HttpRequest> {
|
|
116
|
-
return serializeAws_json1_1PutResourcePolicyCommand(input, context);
|
|
117
|
-
}
|
|
118
|
-
|
|
119
|
-
private deserialize(output: __HttpResponse, context: __SerdeContext): Promise<PutResourcePolicyCommandOutput> {
|
|
120
|
-
return deserializeAws_json1_1PutResourcePolicyCommand(output, context);
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
// Start section: command_body_extra
|
|
124
|
-
// End section: command_body_extra
|
|
125
|
-
}
|