Interface LoggingConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LoggingConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.103.1 (build bef2dea)",
date="2024-10-25T14:21:24.042Z")
@Stability(Stable)
public interface LoggingConfig
extends software.amazon.jsii.JsiiSerializable
A logging configuration for delivery status of messages sent from SNS topic to subscribed endpoints.
Example:
Role role; Topic topic = new Topic(this, "MyTopic"); topic.addLoggingConfig(LoggingConfig.builder() .protocol(LoggingProtocol.SQS) .failureFeedbackRole(role) .successFeedbackRole(role) .successFeedbackSampleRate(50) .build());
- See Also:
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic final class
A builder forLoggingConfig
static final class
An implementation forLoggingConfig
-
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingConfig.Builder
builder()
default IRole
The IAM role to be used when logging failed message deliveries in Amazon CloudWatch.Indicates one of the supported protocols for the SNS topic.default IRole
The IAM role to be used when logging successful message deliveries in Amazon CloudWatch.default Number
The percentage of successful message deliveries to be logged in Amazon CloudWatch.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getProtocol
Indicates one of the supported protocols for the SNS topic. -
getFailureFeedbackRole
The IAM role to be used when logging failed message deliveries in Amazon CloudWatch.Default: None
-
getSuccessFeedbackRole
The IAM role to be used when logging successful message deliveries in Amazon CloudWatch.Default: None
-
getSuccessFeedbackSampleRate
The percentage of successful message deliveries to be logged in Amazon CloudWatch.Valid values are integer between 0-100
Default: None
-
builder
- Returns:
- a
LoggingConfig.Builder
ofLoggingConfig
-