@gradientedge/cdk-utils 8.99.1 → 8.100.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.
|
@@ -35,9 +35,9 @@ export declare class SecretsManager {
|
|
|
35
35
|
retrieveSecretFromSecretsManager(id: string, scope: CommonConstruct, stackName: string, exportName: string): cdk.aws_secretsmanager.ISecret;
|
|
36
36
|
/**
|
|
37
37
|
* @summary Method to resolve secret value from a secret using AWS SDK
|
|
38
|
-
* @param
|
|
38
|
+
* @param region the region in which the secret is defined
|
|
39
39
|
* @param secretId the secret name/ARN
|
|
40
40
|
* @param secretKey the secret key to resolve the value for
|
|
41
41
|
*/
|
|
42
|
-
resolveSecretValue(
|
|
42
|
+
resolveSecretValue(region: string, secretId: string, secretKey: string): Promise<any>;
|
|
43
43
|
}
|
|
@@ -72,14 +72,14 @@ class SecretsManager {
|
|
|
72
72
|
}
|
|
73
73
|
/**
|
|
74
74
|
* @summary Method to resolve secret value from a secret using AWS SDK
|
|
75
|
-
* @param
|
|
75
|
+
* @param region the region in which the secret is defined
|
|
76
76
|
* @param secretId the secret name/ARN
|
|
77
77
|
* @param secretKey the secret key to resolve the value for
|
|
78
78
|
*/
|
|
79
|
-
async resolveSecretValue(
|
|
79
|
+
async resolveSecretValue(region, secretId, secretKey) {
|
|
80
80
|
const client = new client_secrets_manager_1.SecretsManagerClient({
|
|
81
81
|
credentials: utils.determineCredentials(),
|
|
82
|
-
region:
|
|
82
|
+
region: region,
|
|
83
83
|
});
|
|
84
84
|
const command = new client_secrets_manager_1.GetSecretValueCommand({
|
|
85
85
|
SecretId: secretId,
|
package/package.json
CHANGED
|
@@ -56,14 +56,14 @@ export class SecretsManager {
|
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* @summary Method to resolve secret value from a secret using AWS SDK
|
|
59
|
-
* @param
|
|
59
|
+
* @param region the region in which the secret is defined
|
|
60
60
|
* @param secretId the secret name/ARN
|
|
61
61
|
* @param secretKey the secret key to resolve the value for
|
|
62
62
|
*/
|
|
63
|
-
public async resolveSecretValue(
|
|
63
|
+
public async resolveSecretValue(region: string, secretId: string, secretKey: string) {
|
|
64
64
|
const client = new SecretsManagerClient({
|
|
65
65
|
credentials: utils.determineCredentials(),
|
|
66
|
-
region:
|
|
66
|
+
region: region,
|
|
67
67
|
})
|
|
68
68
|
const command = new GetSecretValueCommand({
|
|
69
69
|
SecretId: secretId,
|