@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:42.256Z") @Stability(value=Stable) public interface TopicPolicyProps extends software.amazon.jsii.JsiiSerializable
Example:
Topic topic = new Topic(this, "Topic");
TopicPolicy topicPolicy = TopicPolicy.Builder.create(this, "TopicPolicy")
.topics(List.of(topic))
.build();
topicPolicy.document.addStatements(PolicyStatement.Builder.create()
.actions(List.of("sns:Subscribe"))
.principals(List.of(new AnyPrincipal()))
.resources(List.of(topic.getTopicArn()))
.build());
| Modifier and Type | Interface and Description |
|---|---|
static class |
TopicPolicyProps.Builder
A builder for
TopicPolicyProps |
static class |
TopicPolicyProps.Jsii$Proxy
An implementation for
TopicPolicyProps |
| Modifier and Type | Method and Description |
|---|---|
static TopicPolicyProps.Builder |
builder() |
default PolicyDocument |
getPolicyDocument()
IAM policy document to apply to topic(s).
|
List<ITopic> |
getTopics()
The set of topics this policy applies to.
|
@Stability(value=Stable) @NotNull List<ITopic> getTopics()
@Stability(value=Stable) @Nullable default PolicyDocument getPolicyDocument()
Default: empty policy document
@Stability(value=Stable) static TopicPolicyProps.Builder builder()
TopicPolicyProps.Builder of TopicPolicyPropsCopyright © 2022. All rights reserved.