-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Closed
Labels
@aws-cdk/aws-snsRelated to Amazon Simple Notification ServiceRelated to Amazon Simple Notification ServicebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortin-progressThis issue is being actively worked on.This issue is being actively worked on.p1
Description
❓ General Issue
When creating an SNS TopicPolicy the Props only have topics as a field. However, there also needs to be a PolicyDocument field and without it an error occurs during synth. There doesn't appear to be any way to set it, either through the Props in the constructor or after the fact.
The Question
With this minimum example:
const topic = new Topic(this, 'topic', {});
const tp = new TopicPolicy(this, 'tp', {
topics: [topic],
});
An error occurs during synth:
Error: Resolution error: Supplied properties not correct for "CfnTopicPolicyProps"
policyDocument: required but missing.
Environment
- CDK CLI Version: 1.38.0 (build d5fa31f)
- Module Version: 1.38.0
- OS: Mac OS 10.15.4
- Language: Typescript
Other information
corrjo, qchero, jiaqi0811 and evansgp
Metadata
Metadata
Assignees
Labels
@aws-cdk/aws-snsRelated to Amazon Simple Notification ServiceRelated to Amazon Simple Notification ServicebugThis issue is a bug.This issue is a bug.effort/smallSmall work item – less than a day of effortSmall work item – less than a day of effortin-progressThis issue is being actively worked on.This issue is being actively worked on.p1