EventDestinationProperty Struct
Contains information about an event destination.
Event destinations are associated with configuration sets, which enable you to publish message sending events to CloudWatch, Firehose, or Amazon SNS.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_smsvoice as smsvoice } from 'aws-cdk-lib';
const eventDestinationProperty: smsvoice.CfnConfigurationSet.EventDestinationProperty = {
enabled: false,
eventDestinationName: 'eventDestinationName',
matchingEventTypes: ['matchingEventTypes'],
// the properties below are optional
cloudWatchLogsDestination: {
iamRoleArn: 'iamRoleArn',
logGroupArn: 'logGroupArn',
},
kinesisFirehoseDestination: {
deliveryStreamArn: 'deliveryStreamArn',
iamRoleArn: 'iamRoleArn',
},
snsDestination: {
topicArn: 'topicArn',
},
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_smsvoice as smsvoice
event_destination_property = smsvoice.CfnConfigurationSet.EventDestinationProperty(
enabled=False,
event_destination_name="eventDestinationName",
matching_event_types=["matchingEventTypes"],
# the properties below are optional
cloud_watch_logs_destination=smsvoice.CfnConfigurationSet.CloudWatchLogsDestinationProperty(
iam_role_arn="iamRoleArn",
log_group_arn="logGroupArn"
),
kinesis_firehose_destination=smsvoice.CfnConfigurationSet.KinesisFirehoseDestinationProperty(
delivery_stream_arn="deliveryStreamArn",
iam_role_arn="iamRoleArn"
),
sns_destination=smsvoice.CfnConfigurationSet.SnsDestinationProperty(
topic_arn="topicArn"
)
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.smsvoice.*;
EventDestinationProperty eventDestinationProperty = EventDestinationProperty.builder()
.enabled(false)
.eventDestinationName("eventDestinationName")
.matchingEventTypes(List.of("matchingEventTypes"))
// the properties below are optional
.cloudWatchLogsDestination(CloudWatchLogsDestinationProperty.builder()
.iamRoleArn("iamRoleArn")
.logGroupArn("logGroupArn")
.build())
.kinesisFirehoseDestination(KinesisFirehoseDestinationProperty.builder()
.deliveryStreamArn("deliveryStreamArn")
.iamRoleArn("iamRoleArn")
.build())
.snsDestination(SnsDestinationProperty.builder()
.topicArn("topicArn")
.build())
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.SMSVOICE;
var eventDestinationProperty = new EventDestinationProperty {
Enabled = false,
EventDestinationName = "eventDestinationName",
MatchingEventTypes = new [] { "matchingEventTypes" },
// the properties below are optional
CloudWatchLogsDestination = new CloudWatchLogsDestinationProperty {
IamRoleArn = "iamRoleArn",
LogGroupArn = "logGroupArn"
},
KinesisFirehoseDestination = new KinesisFirehoseDestinationProperty {
DeliveryStreamArn = "deliveryStreamArn",
IamRoleArn = "iamRoleArn"
},
SnsDestination = new SnsDestinationProperty {
TopicArn = "topicArn"
}
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
eventDestinationProperty := &EventDestinationProperty{
Enabled: jsii.Boolean(false),
EventDestinationName: jsii.String("eventDestinationName"),
MatchingEventTypes: []*string{
jsii.String("matchingEventTypes"),
},
// the properties below are optional
CloudWatchLogsDestination: &CloudWatchLogsDestinationProperty{
IamRoleArn: jsii.String("iamRoleArn"),
LogGroupArn: jsii.String("logGroupArn"),
},
KinesisFirehoseDestination: &KinesisFirehoseDestinationProperty{
DeliveryStreamArn: jsii.String("deliveryStreamArn"),
IamRoleArn: jsii.String("iamRoleArn"),
},
SnsDestination: &SnsDestinationProperty{
TopicArn: jsii.String("topicArn"),
},
}
Properties
cloudWatchLogsDestinationoptionalIResolvable | CfnConfigurationSet.cloud_watch_logs_destinationoptionaltyping.Union[IResolvable, CloudWatchLogsDestinationProperty]cloudWatchLogsDestinationoptionalIResolvableCloudWatchLogsDestinationoptionalIResolvableCloudWatchLogsDestinationoptionalinterface{} #An object that contains information about an event destination that sends logging events to Amazon CloudWatch logs.
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #When set to true events will be logged.
eventDestinationNamestringevent_destination_namestreventDestinationNameStringEventDestinationNamestringEventDestinationName*string required #The name of the EventDestination.
kinesisFirehoseDestinationoptionalIResolvable | CfnConfigurationSet.kinesis_firehose_destinationoptionaltyping.Union[IResolvable, KinesisFirehoseDestinationProperty]kinesisFirehoseDestinationoptionalIResolvableKinesisFirehoseDestinationoptionalIResolvableKinesisFirehoseDestinationoptionalinterface{} #An object that contains information about an event destination for logging to Amazon Data Firehose.
matchingEventTypesstring[]matching_event_typestyping.List[str]matchingEventTypesList<String>MatchingEventTypesstring[]MatchingEventTypes*[]*string required #An array of event types that determine which events to log.
The
TEXT_SENTevent type is not supported.
snsDestinationoptionalIResolvable | CfnConfigurationSet.sns_destinationoptionaltyping.Union[IResolvable, SnsDestinationProperty]snsDestinationoptionalIResolvableSnsDestinationoptionalIResolvableSnsDestinationoptionalinterface{} #An object that contains information about an event destination that sends logging events to Amazon SNS.