Skip to content

Commit

Permalink
docs(stepfunctions): fix typo in README (aws#10939)
Browse files Browse the repository at this point in the history
The parameter specified for LogOptions is `destination`, not `destinations`.
https://github.com/aws/aws-cdk/blob/2640d9aa06039a6eb539d959d2126749486c7ef3/packages/%40aws-cdk/aws-stepfunctions/lib/state-machine.ts#L62

----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
hilotter authored Oct 20, 2020
1 parent 5450322 commit 6d04fd2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-stepfunctions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -562,7 +562,7 @@ const logGroup = new logs.LogGroup(stack, 'MyLogGroup');
new stepfunctions.StateMachine(stack, 'MyStateMachine', {
definition: stepfunctions.Chain.start(new stepfunctions.Pass(stack, 'Pass')),
logs: {
destinations: logGroup,
destination: logGroup,
level: stepfunctions.LogLevel.ALL,
}
});
Expand Down

0 comments on commit 6d04fd2

Please sign in to comment.