Interface LoggingConfig
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
LoggingConfig.Jsii$Proxy
@Generated(value="jsii-pacmak/1.119.0 (build 1634eac)",
date="2025-11-17T14:41:01.156Z")
@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
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forLoggingConfigstatic final classAn implementation forLoggingConfig -
Method Summary
Modifier and TypeMethodDescriptionstatic LoggingConfig.Builderbuilder()default IRoleRefThe IAM role to be used when logging failed message deliveries in Amazon CloudWatch.Indicates one of the supported protocols for the SNS topic.default IRoleRefThe IAM role to be used when logging successful message deliveries in Amazon CloudWatch.default NumberThe 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.BuilderofLoggingConfig
-