interface LoggingConfigProperty
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.SNS.CfnTopic.LoggingConfigProperty |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awssns#CfnTopic_LoggingConfigProperty |
Java | software.amazon.awscdk.services.sns.CfnTopic.LoggingConfigProperty |
Python | aws_cdk.aws_sns.CfnTopic.LoggingConfigProperty |
TypeScript | aws-cdk-lib » aws_sns » CfnTopic » LoggingConfigProperty |
The LoggingConfig property type specifies the Delivery status logging configuration for an AWS::SNS::Topic .
Example
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_sns as sns } from 'aws-cdk-lib';
const loggingConfigProperty: sns.CfnTopic.LoggingConfigProperty = {
protocol: 'protocol',
// the properties below are optional
failureFeedbackRoleArn: 'failureFeedbackRoleArn',
successFeedbackRoleArn: 'successFeedbackRoleArn',
successFeedbackSampleRate: 'successFeedbackSampleRate',
};
Properties
| Name | Type | Description |
|---|---|---|
| protocol | string | Indicates one of the supported protocols for the Amazon SNS topic. |
| failure | string | The IAM role ARN to be used when logging failed message deliveries in Amazon CloudWatch. |
| success | string | The IAM role ARN to be used when logging successful message deliveries in Amazon CloudWatch. |
| success | string | The percentage of successful message deliveries to be logged in Amazon CloudWatch. |
protocol
Type:
string
Indicates one of the supported protocols for the Amazon SNS topic.
At least one of the other three
LoggingConfigproperties is recommend along withProtocol.
failureFeedbackRoleArn?
Type:
string
(optional)
The IAM role ARN to be used when logging failed message deliveries in Amazon CloudWatch.
successFeedbackRoleArn?
Type:
string
(optional)
The IAM role ARN to be used when logging successful message deliveries in Amazon CloudWatch.
successFeedbackSampleRate?
Type:
string
(optional)
The percentage of successful message deliveries to be logged in Amazon CloudWatch.
Valid percentage values range from 0 to 100.

.NET
Go
Java
Python
TypeScript