Skip to content

Commit

Permalink
doc(codebuild): Fix Project example with GitHubSource (#1834)
Browse files Browse the repository at this point in the history
`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
```
  • Loading branch information
rce authored and skinny85 committed Feb 22, 2019
1 parent 828a2d7 commit cec8564
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-codebuild/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
});
```
Expand Down

0 comments on commit cec8564

Please sign in to comment.