Class LoggingConfig
A logging configuration for delivery status of messages sent from SNS topic to subscribed endpoints.
Inheritance
Implements
Namespace: Amazon.CDK.AWS.SNS
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class LoggingConfig : Object, ILoggingConfig
Syntax (vb)
Public Class LoggingConfig
Inherits Object
Implements ILoggingConfig
Remarks
See: https://docs.aws.amazon.com/sns/latest/dg/sns-topic-attributes.html.
ExampleMetadata: infused
Examples
Role role;
var topic = new Topic(this, "MyTopic");
topic.AddLoggingConfig(new LoggingConfig {
Protocol = LoggingProtocol.SQS,
FailureFeedbackRole = role,
SuccessFeedbackRole = role,
SuccessFeedbackSampleRate = 50
});
Synopsis
Constructors
LoggingConfig() |
Properties
FailureFeedbackRole | The IAM role to be used when logging failed message deliveries in Amazon CloudWatch. |
Protocol | Indicates one of the supported protocols for the SNS topic. |
SuccessFeedbackRole | The IAM role to be used when logging successful message deliveries in Amazon CloudWatch. |
SuccessFeedbackSampleRate | The percentage of successful message deliveries to be logged in Amazon CloudWatch. |
Constructors
LoggingConfig()
public LoggingConfig()
Properties
FailureFeedbackRole
The IAM role to be used when logging failed message deliveries in Amazon CloudWatch.
public IRole FailureFeedbackRole { get; set; }
Property Value
Remarks
Default: None
Protocol
Indicates one of the supported protocols for the SNS topic.
public LoggingProtocol Protocol { get; set; }
Property Value
SuccessFeedbackRole
The IAM role to be used when logging successful message deliveries in Amazon CloudWatch.
public IRole SuccessFeedbackRole { get; set; }
Property Value
Remarks
Default: None
SuccessFeedbackSampleRate
The percentage of successful message deliveries to be logged in Amazon CloudWatch.
public Nullable<double> SuccessFeedbackSampleRate { get; set; }
Property Value
System.Nullable<System.Double>
Remarks
Valid values are integer between 0-100
Default: None