Skip to content

Commit

Permalink
docs: fixed example (#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 Jul 6, 2021
1 parent 865b266 commit 393be52
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 393be52

Please sign in to comment.