Class CfnTopic.LoggingConfigProperty.Builder
java.lang.Object
software.amazon.awscdk.services.sns.CfnTopic.LoggingConfigProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnTopic.LoggingConfigProperty>
- Enclosing interface:
CfnTopic.LoggingConfigProperty
@Stability(Stable)
public static final class CfnTopic.LoggingConfigProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnTopic.LoggingConfigProperty>
A builder for
CfnTopic.LoggingConfigProperty
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Builds the configured instance.failureFeedbackRoleArn
(String failureFeedbackRoleArn) Sets the value ofCfnTopic.LoggingConfigProperty.getFailureFeedbackRoleArn()
Sets the value ofCfnTopic.LoggingConfigProperty.getProtocol()
successFeedbackRoleArn
(String successFeedbackRoleArn) Sets the value ofCfnTopic.LoggingConfigProperty.getSuccessFeedbackRoleArn()
successFeedbackSampleRate
(String successFeedbackSampleRate) Sets the value ofCfnTopic.LoggingConfigProperty.getSuccessFeedbackSampleRate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
protocol
Sets the value ofCfnTopic.LoggingConfigProperty.getProtocol()
- Parameters:
protocol
- Indicates one of the supported protocols for the Amazon SNS topic. This parameter is required.At least one of the other three
LoggingConfig
properties is recommend along withProtocol
.- Returns:
this
-
failureFeedbackRoleArn
@Stability(Stable) public CfnTopic.LoggingConfigProperty.Builder failureFeedbackRoleArn(String failureFeedbackRoleArn) Sets the value ofCfnTopic.LoggingConfigProperty.getFailureFeedbackRoleArn()
- Parameters:
failureFeedbackRoleArn
- The IAM role ARN to be used when logging failed message deliveries in Amazon CloudWatch.- Returns:
this
-
successFeedbackRoleArn
@Stability(Stable) public CfnTopic.LoggingConfigProperty.Builder successFeedbackRoleArn(String successFeedbackRoleArn) Sets the value ofCfnTopic.LoggingConfigProperty.getSuccessFeedbackRoleArn()
- Parameters:
successFeedbackRoleArn
- The IAM role ARN to be used when logging successful message deliveries in Amazon CloudWatch.- Returns:
this
-
successFeedbackSampleRate
@Stability(Stable) public CfnTopic.LoggingConfigProperty.Builder successFeedbackSampleRate(String successFeedbackSampleRate) Sets the value ofCfnTopic.LoggingConfigProperty.getSuccessFeedbackSampleRate()
- Parameters:
successFeedbackSampleRate
- The percentage of successful message deliveries to be logged in Amazon CloudWatch. Valid percentage values range from 0 to 100.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnTopic.LoggingConfigProperty>
- Returns:
- a new instance of
CfnTopic.LoggingConfigProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-