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 Summary
Modifier and TypeMethodDescriptionbuild()
static CfnTopicPolicy.Builder
policyDocument
(Object policyDocument) A policy document that contains permissions to add to the specified SNS topics.The Amazon Resource Names (ARN) of the topics to which you want to add the policy.
-
Method Details
-
create
- Parameters:
scope
-- scope in which this resource is defined.
id
-- scoped id of the resource.
- Returns:
- a new instance of
CfnTopicPolicy.Builder
.
-
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
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
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicPolicy>
- Returns:
- a newly built instance of
CfnTopicPolicy
.
-