From fd902165fcd0e80127cea17a8c44807a164a573a Mon Sep 17 00:00:00 2001 From: Samuel Karp Date: Wed, 26 Jun 2019 17:35:02 -0700 Subject: [PATCH] fix(aws-codepipeline-actions): use SecretValue cdk.SecretValue has replaced cdk.SecretParameter but the README was outdated. --- packages/@aws-cdk/aws-codepipeline-actions/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-codepipeline-actions/README.md b/packages/@aws-cdk/aws-codepipeline-actions/README.md index 592555a298216..2c549801405b3 100644 --- a/packages/@aws-cdk/aws-codepipeline-actions/README.md +++ b/packages/@aws-cdk/aws-codepipeline-actions/README.md @@ -56,7 +56,7 @@ To use GitHub as the source of a CodePipeline: ```typescript // Read the secret from ParameterStore -const token = new cdk.SecretParameter(this, 'GitHubToken', { ssmParameter: 'my-github-token' }); +const token = cdk.SecretValue.ssmSecure('my-github-token','1'); const sourceOutput = new codepipeline.Artifact(); const sourceAction = new codepipeline_actions.GitHubSourceAction({ actionName: 'GitHub_Source',