Interface CfnTopicPolicyProps

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CfnTopicPolicyProps.Jsii$Proxy

@Generated(value="jsii-pacmak/1.84.0 (build 5404dcf)", date="2023-06-19T16:30:38.165Z") @Stability(Stable) public interface CfnTopicPolicyProps extends software.amazon.jsii.JsiiSerializable
Properties for defining a CfnTopicPolicy.

Example:

 // The code below shows an example of how to instantiate this type.
 // The values are placeholders you should change.
 import software.amazon.awscdk.services.sns.*;
 Object policyDocument;
 CfnTopicPolicyProps cfnTopicPolicyProps = CfnTopicPolicyProps.builder()
         .policyDocument(policyDocument)
         .topics(List.of("topics"))
         .build();
 
  • Method Details

    • getPolicyDocument

      @Stability(Stable) @NotNull Object getPolicyDocument()
      A policy document that contains permissions to add to the specified SNS topics.
    • getTopics

      @Stability(Stable) @NotNull List<String> getTopics()
      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.

    • builder

      @Stability(Stable) static CfnTopicPolicyProps.Builder builder()
      Returns:
      a CfnTopicPolicyProps.Builder of CfnTopicPolicyProps