From cec8564a3c17b0dddd1f274848a4698985328bc0 Mon Sep 17 00:00:00 2001 From: Henry Heikkinen <4427896+rce@users.noreply.github.com> Date: Fri, 22 Feb 2019 20:07:31 +0200 Subject: [PATCH] doc(codebuild): Fix Project example with GitHubSource (#1834) `SecretParameter` was being used incorrectly and it did not pass typechecking. The type error was: ``` Type 'SecretParameter' is missing the following properties from type 'Secret': resolve, toJSON, toList ``` --- packages/@aws-cdk/aws-codebuild/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/@aws-cdk/aws-codebuild/README.md b/packages/@aws-cdk/aws-codebuild/README.md index a5eb9618abdf7..54489fa39f39a 100644 --- a/packages/@aws-cdk/aws-codebuild/README.md +++ b/packages/@aws-cdk/aws-codebuild/README.md @@ -92,7 +92,7 @@ const gitHubSource = new codebuild.GitHubSource({ repo: 'aws-cdk', oauthToken: new cdk.SecretParameter(this, 'GitHubOAuthToken', { ssmParameter: 'my-github-token', - }), + }).value, webhook: true, // optional, default: false }); ```