Class TopicPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.sns.TopicPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<TopicPolicyProps>
- Enclosing interface:
TopicPolicyProps
@Stability(Stable)
public static final class TopicPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<TopicPolicyProps>
A builder for
TopicPolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDocument
(PolicyDocument policyDocument) Sets the value ofTopicPolicyProps.getPolicyDocument()
Sets the value ofTopicPolicyProps.getTopics()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
topics
Sets the value ofTopicPolicyProps.getTopics()
- Parameters:
topics
- The set of topics this policy applies to. This parameter is required.- Returns:
this
-
policyDocument
Sets the value ofTopicPolicyProps.getPolicyDocument()
- Parameters:
policyDocument
- IAM policy document to apply to topic(s).- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<TopicPolicyProps>
- Returns:
- a new instance of
TopicPolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-