Class CfnTopicPolicyProps.Builder
java.lang.Object
software.amazon.awscdk.services.sns.CfnTopicPolicyProps.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicPolicyProps>
- Enclosing interface:
CfnTopicPolicyProps
@Stability(Stable)
public static final class CfnTopicPolicyProps.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicPolicyProps>
A builder for
CfnTopicPolicyProps
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.policyDocument
(Object policyDocument) Sets the value ofCfnTopicPolicyProps.getPolicyDocument()
Sets the value ofCfnTopicPolicyProps.getTopics()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
policyDocument
Sets the value ofCfnTopicPolicyProps.getPolicyDocument()
- Parameters:
policyDocument
- A policy document that contains permissions to add to the specified SNS topics. This parameter is required.- Returns:
this
-
topics
Sets the value ofCfnTopicPolicyProps.getTopics()
- Parameters:
topics
- The Amazon Resource Names (ARN) of the topics to which you want to add the policy. This parameter is required. You can use the[Ref](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/intrinsic-function-reference-ref.html)
function to specify an[AWS::SNS::Topic](https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-sns-topic.html)
resource.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicPolicyProps>
- Returns:
- a new instance of
CfnTopicPolicyProps
- Throws:
NullPointerException
- if any required attribute was not provided
-