Class CfnTopicInlinePolicy.Builder
java.lang.Object
software.amazon.awscdk.services.sns.CfnTopicInlinePolicy.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopicInlinePolicy>
- Enclosing class:
CfnTopicInlinePolicy
@Stability(Stable)
public static final class CfnTopicInlinePolicy.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopicInlinePolicy>
A fluent builder for
CfnTopicInlinePolicy
.-
Method Summary
Modifier and TypeMethodDescriptionbuild()
static CfnTopicInlinePolicy.Builder
policyDocument
(Object policyDocument) A policy document that contains permissions to add to the specified Amazon SNS topic.The Amazon Resource Name (ARN) of the topic to which you want to add the policy.
-
Method Details
-
create
@Stability(Stable) public static CfnTopicInlinePolicy.Builder create(software.constructs.Construct scope, String id) - Parameters:
scope
- Scope in which this resource is defined. This parameter is required.id
- Construct identifier for this resource (unique in its scope). This parameter is required.- Returns:
- a new instance of
CfnTopicInlinePolicy.Builder
.
-
policyDocument
A policy document that contains permissions to add to the specified Amazon SNS topic.- Parameters:
policyDocument
- A policy document that contains permissions to add to the specified Amazon SNS topic. This parameter is required.- Returns:
this
- See Also:
-
topicArn
The Amazon Resource Name (ARN) of the topic to which you want to add the policy.- Parameters:
topicArn
- The Amazon Resource Name (ARN) of the topic to which you want to add the policy. This parameter is required.- Returns:
this
- See Also:
-
build
- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopicInlinePolicy>
- Returns:
- a newly built instance of
CfnTopicInlinePolicy
.
-