Skip to content

Commit

Permalink
update deprecated property
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerry Kindall committed May 29, 2021
1 parent fad30f6 commit 8b3e2c2
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions doc_source/get_secrets_manager_value.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class SecretsManagerStack extends core.Stack {
super(scope, id, props);
const secret = sm.Secret.fromSecretAttributes(this, "ImportedSecret", {
secretArn:
secretCompleteArn:
"arn:aws:secretsmanager:<region>:<account-id-number>:secret:<secret-name>-<random-6-characters>"
// If the secret is encrypted using a KMS-hosted CMK, either import or reference that key:
// encryptionKey: ...
Expand All @@ -31,7 +31,7 @@ class SecretsManagerStack extends core.Stack {
super(scope, id, props);
const secret = sm.Secret.fromSecretAttributes(this, "ImportedSecret", {
secretArn:
secretCompleteArn:
"arn:aws:secretsmanager:<region>:<account-id-number>:secret:<secret-name>-<random-6-characters>"
// If the secret is encrypted using a KMS-hosted CMK, either import or reference that key:
// encryptionKey: ...
Expand All @@ -53,7 +53,7 @@ class SecretsManagerStack(core.Stack):
super().__init__(scope, name, **kwargs)
secret = sm.Secret.from_secret_attributes(self, "ImportedSecret",
secret_arn="arn:aws:secretsmanager:<region>:<account-id-number>:secret:<secret-name>-<random-6-characters>",
secret_complete_arn="arn:aws:secretsmanager:<region>:<account-id-number>:secret:<secret-name>-<random-6-characters>",
# If the secret is encrypted using a KMS-hosted CMK, either import or reference that key:
# encryption_key=....
)
Expand All @@ -75,10 +75,10 @@ public class SecretsManagerStack extends Stack {
super(scope, id, props);
Secret secret = (Secret)Secret.fromSecretAttributes(this, "ImportedSecret", SecretAttributes.builder()
.secretArn("arn:aws:secretsmanager:<region>:<account-id-number>:secret:<secret-name>-<random-6-characters>")
// If the secret is encrypted using a KMS-hosted CMK, either import or reference that key:
// .encryptionKey(...)
.build());
.secretCompleteArn("arn:aws:secretsmanager:<region>:<account-id-number>:secret:<secret-name>-<random-6-characters>")
// If the secret is encrypted using a KMS-hosted CMK, either import or reference that key:
// .encryptionKey(...)
.build());
}
}
```
Expand Down Expand Up @@ -109,4 +109,4 @@ Use the [create\-secret](https://docs.aws.amazon.com/cli/latest/reference/secret
aws secretsmanager create-secret --name ImportedSecret --secret-string mygroovybucket
```

The command returns an ARN you can use for the example\.
The command returns an ARN you can use for the example\.

0 comments on commit 8b3e2c2

Please sign in to comment.