Class CfnTopicPolicy.Builder

java.lang.Object
software.amazon.awscdk.services.sns.CfnTopicPolicy.Builder
All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicPolicy>
Enclosing class:
CfnTopicPolicy

@Stability(Stable) public static final class CfnTopicPolicy.Builder extends Object implements software.amazon.jsii.Builder<CfnTopicPolicy>
A fluent builder for CfnTopicPolicy.
  • Method Details

    • create

      @Stability(Stable) public static CfnTopicPolicy.Builder create(Construct scope, String id)
      Parameters:
      scope -
      • scope in which this resource is defined.
      This parameter is required.
      id -
      • scoped id of the resource.
      This parameter is required.
      Returns:
      a new instance of CfnTopicPolicy.Builder.
    • policyDocument

      @Stability(Stable) public CfnTopicPolicy.Builder policyDocument(Object policyDocument)
      A policy document that contains permissions to add to the specified SNS topics.

      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 CfnTopicPolicy.Builder topics(List<String> topics)
      The Amazon Resource Names (ARN) of the topics to which you want to add the policy.

      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.

      Parameters:
      topics - The Amazon Resource Names (ARN) of the topics to which you want to add the policy. This parameter is required.
      Returns:
      this
    • build

      @Stability(Stable) public CfnTopicPolicy build()
      Specified by:
      build in interface software.amazon.jsii.Builder<CfnTopicPolicy>
      Returns:
      a newly built instance of CfnTopicPolicy.