CfnConfigurationSetProps Struct
Properties for defining a CfnConfigurationSet.
| 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 cfnConfigurationSetProps: smsvoice.CfnConfigurationSetProps = {
configurationSetName: 'configurationSetName',
defaultSenderId: 'defaultSenderId',
eventDestinations: [{
enabled: false,
eventDestinationName: 'eventDestinationName',
matchingEventTypes: ['matchingEventTypes'],
// the properties below are optional
cloudWatchLogsDestination: {
iamRoleArn: 'iamRoleArn',
logGroupArn: 'logGroupArn',
},
kinesisFirehoseDestination: {
deliveryStreamArn: 'deliveryStreamArn',
iamRoleArn: 'iamRoleArn',
},
snsDestination: {
topicArn: 'topicArn',
},
}],
messageFeedbackEnabled: false,
protectConfigurationId: 'protectConfigurationId',
tags: [{
key: 'key',
value: 'value',
}],
};
python
from aws_cdk import CfnTag
# 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
cfn_configuration_set_props = smsvoice.CfnConfigurationSetProps(
configuration_set_name="configurationSetName",
default_sender_id="defaultSenderId",
event_destinations=[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"
)
)],
message_feedback_enabled=False,
protect_configuration_id="protectConfigurationId",
tags=[CfnTag(
key="key",
value="value"
)]
)
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.*;
CfnConfigurationSetProps cfnConfigurationSetProps = CfnConfigurationSetProps.builder()
.configurationSetName("configurationSetName")
.defaultSenderId("defaultSenderId")
.eventDestinations(List.of(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()))
.messageFeedbackEnabled(false)
.protectConfigurationId("protectConfigurationId")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.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 cfnConfigurationSetProps = new CfnConfigurationSetProps {
ConfigurationSetName = "configurationSetName",
DefaultSenderId = "defaultSenderId",
EventDestinations = new [] { 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"
}
} },
MessageFeedbackEnabled = false,
ProtectConfigurationId = "protectConfigurationId",
Tags = new [] { new CfnTag {
Key = "key",
Value = "value"
} }
};
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"
cfnConfigurationSetProps := &CfnConfigurationSetProps{
ConfigurationSetName: jsii.String("configurationSetName"),
DefaultSenderId: jsii.String("defaultSenderId"),
EventDestinations: []interface{}{
&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"),
},
},
},
MessageFeedbackEnabled: jsii.Boolean(false),
ProtectConfigurationId: jsii.String("protectConfigurationId"),
Tags: []CfnTag{
&CfnTag{
Key: jsii.String("key"),
Value: jsii.String("value"),
},
},
}
Properties
configurationSetNameoptionalstringconfiguration_set_nameoptionalstrconfigurationSetNameoptionalStringConfigurationSetNameoptionalstringConfigurationSetNameoptional*string #The name of the ConfigurationSet.
defaultSenderIdoptionalstringdefault_sender_idoptionalstrdefaultSenderIdoptionalStringDefaultSenderIdoptionalstringDefaultSenderIdoptional*string #The default sender ID used by the ConfigurationSet.
eventDestinationsoptionalIResolvable | IResolvable | CfnConfigurationSet.event_destinationsoptionaltyping.Union[IResolvable, typing.List[typing.Union[IResolvable, EventDestinationProperty]]]eventDestinationsoptionalIResolvableEventDestinationsoptionalIResolvableEventDestinationsoptionalinterface{} #An array of EventDestination objects that describe any events to log and where to log them.
messageFeedbackEnabledoptionalboolean | IResolvablemessage_feedback_enabledoptionaltyping.Union[bool, IResolvable]messageFeedbackEnabledoptionalBooleanMessageFeedbackEnabledoptionalboolMessageFeedbackEnabledoptionalinterface{} #Set to true to enable feedback for the message.
protectConfigurationIdoptionalstringprotect_configuration_idoptionalstrprotectConfigurationIdoptionalStringProtectConfigurationIdoptionalstringProtectConfigurationIdoptional*string #The unique identifier for the protect configuration.