Class LoggingConfig.Builder
java.lang.Object
software.amazon.awscdk.services.sns.LoggingConfig.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<LoggingConfig>
- Enclosing interface:
LoggingConfig
@Stability(Stable)
public static final class LoggingConfig.Builder
extends Object
implements software.amazon.jsii.Builder<LoggingConfig>
A builder for
LoggingConfig-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds the configured instance.failureFeedbackRole(IRoleRef failureFeedbackRole) Sets the value ofLoggingConfig.getFailureFeedbackRole()protocol(LoggingProtocol protocol) Sets the value ofLoggingConfig.getProtocol()successFeedbackRole(IRoleRef successFeedbackRole) Sets the value ofLoggingConfig.getSuccessFeedbackRole()successFeedbackSampleRate(Number successFeedbackSampleRate) Sets the value ofLoggingConfig.getSuccessFeedbackSampleRate()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
protocol
Sets the value ofLoggingConfig.getProtocol()- Parameters:
protocol- Indicates one of the supported protocols for the SNS topic. This parameter is required.- Returns:
this
-
failureFeedbackRole
Sets the value ofLoggingConfig.getFailureFeedbackRole()- Parameters:
failureFeedbackRole- The IAM role to be used when logging failed message deliveries in Amazon CloudWatch.- Returns:
this
-
successFeedbackRole
Sets the value ofLoggingConfig.getSuccessFeedbackRole()- Parameters:
successFeedbackRole- The IAM role to be used when logging successful message deliveries in Amazon CloudWatch.- Returns:
this
-
successFeedbackSampleRate
@Stability(Stable) public LoggingConfig.Builder successFeedbackSampleRate(Number successFeedbackSampleRate) Sets the value ofLoggingConfig.getSuccessFeedbackSampleRate()- Parameters:
successFeedbackSampleRate- The percentage of successful message deliveries to be logged in Amazon CloudWatch. Valid values are integer between 0-100- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<LoggingConfig>- Returns:
- a new instance of
LoggingConfig - Throws:
NullPointerException- if any required attribute was not provided
-