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 Details

    • Builder

      public Builder()
  • Method Details

    • policyDocument

      @Stability(Stable) public CfnTopicPolicyProps.Builder policyDocument(Object policyDocument)
      Parameters:
      policyDocument - A policy document that contains permissions to add to the specified SNS topics. This parameter is required.
      Returns:
      this
    • topics

      @Stability(Stable) public CfnTopicPolicyProps.Builder topics(List<String> topics)
      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

      @Stability(Stable) public CfnTopicPolicyProps build()
      Builds the configured instance.
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTopicPolicyProps>
      Returns:
      a new instance of CfnTopicPolicyProps
      Throws:
      NullPointerException - if any required attribute was not provided