Skip to content

Commit

Permalink
docs: fixed example (aws#15434)
Browse files Browse the repository at this point in the history
Property 'addToPrincipalPolicy' does not exist on type 'SlackChannelConfiguration'.


----

*By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license*
  • Loading branch information
ManuelMueller1st authored and upparekh committed Jul 8, 2021
1 parent 6279bcf commit 35e5ca5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/@aws-cdk/aws-chatbot/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const slackChannel = new chatbot.SlackChannelConfiguration(this, 'MySlackChannel
slackChannelId: 'YOUR_SLACK_CHANNEL_ID',
});

slackChannel.addToPrincipalPolicy(new iam.PolicyStatement({
slackChannel.addToRolePolicy(new iam.PolicyStatement({
effect: iam.Effect.ALLOW,
actions: [
's3:GetObject',
Expand Down

0 comments on commit 35e5ca5

Please sign in to comment.