Create Event Destination
pinpointsmsvoicev2_create_event_destination | R Documentation |
Creates a new event destination in a configuration set¶
Description¶
Creates a new event destination in a configuration set.
An event destination is a location where you send message events. The event options are Amazon CloudWatch, Amazon Data Firehose, or Amazon SNS. For example, when a message is delivered successfully, you can send information about that event to an event destination, or send notifications to endpoints that are subscribed to an Amazon SNS topic.
Each configuration set can contain between 0 and 5 event destinations. Each event destination can contain a reference to a single destination, such as a CloudWatch or Firehose destination.
Usage¶
pinpointsmsvoicev2_create_event_destination(ConfigurationSetName,
EventDestinationName, MatchingEventTypes, CloudWatchLogsDestination,
KinesisFirehoseDestination, SnsDestination, ClientToken)
Arguments¶
ConfigurationSetName
[required] Either the name of the configuration set or the configuration set ARN to apply event logging to. The ConfigurateSetName and ConfigurationSetArn can be found using the
describe_configuration_sets
action.EventDestinationName
[required] The name that identifies the event destination.
MatchingEventTypes
[required] An array of event types that determine which events to log. If "ALL" is used, then AWS End User Messaging SMS and Voice logs every event type.
The
TEXT_SENT
event type is not supported.CloudWatchLogsDestination
An object that contains information about an event destination for logging to Amazon CloudWatch Logs.
KinesisFirehoseDestination
An object that contains information about an event destination for logging to Amazon Data Firehose.
SnsDestination
An object that contains information about an event destination for logging to Amazon SNS.
ClientToken
Unique, case-sensitive identifier that you provide to ensure the idempotency of the request. If you don't specify a client token, a randomly generated token is used for the request to ensure idempotency.
Value¶
A list with the following syntax:
list(
ConfigurationSetArn = "string",
ConfigurationSetName = "string",
EventDestination = list(
EventDestinationName = "string",
Enabled = TRUE|FALSE,
MatchingEventTypes = list(
"ALL"|"TEXT_ALL"|"TEXT_SENT"|"TEXT_PENDING"|"TEXT_QUEUED"|"TEXT_SUCCESSFUL"|"TEXT_DELIVERED"|"TEXT_INVALID"|"TEXT_INVALID_MESSAGE"|"TEXT_UNREACHABLE"|"TEXT_CARRIER_UNREACHABLE"|"TEXT_BLOCKED"|"TEXT_CARRIER_BLOCKED"|"TEXT_SPAM"|"TEXT_UNKNOWN"|"TEXT_TTL_EXPIRED"|"VOICE_ALL"|"VOICE_INITIATED"|"VOICE_RINGING"|"VOICE_ANSWERED"|"VOICE_COMPLETED"|"VOICE_BUSY"|"VOICE_NO_ANSWER"|"VOICE_FAILED"|"VOICE_TTL_EXPIRED"|"MEDIA_ALL"|"MEDIA_PENDING"|"MEDIA_QUEUED"|"MEDIA_SUCCESSFUL"|"MEDIA_DELIVERED"|"MEDIA_INVALID"|"MEDIA_INVALID_MESSAGE"|"MEDIA_UNREACHABLE"|"MEDIA_CARRIER_UNREACHABLE"|"MEDIA_BLOCKED"|"MEDIA_CARRIER_BLOCKED"|"MEDIA_SPAM"|"MEDIA_UNKNOWN"|"MEDIA_TTL_EXPIRED"|"MEDIA_FILE_INACCESSIBLE"|"MEDIA_FILE_TYPE_UNSUPPORTED"|"MEDIA_FILE_SIZE_EXCEEDED"
),
CloudWatchLogsDestination = list(
IamRoleArn = "string",
LogGroupArn = "string"
),
KinesisFirehoseDestination = list(
IamRoleArn = "string",
DeliveryStreamArn = "string"
),
SnsDestination = list(
TopicArn = "string"
)
)
)
Request syntax¶
svc$create_event_destination(
ConfigurationSetName = "string",
EventDestinationName = "string",
MatchingEventTypes = list(
"ALL"|"TEXT_ALL"|"TEXT_SENT"|"TEXT_PENDING"|"TEXT_QUEUED"|"TEXT_SUCCESSFUL"|"TEXT_DELIVERED"|"TEXT_INVALID"|"TEXT_INVALID_MESSAGE"|"TEXT_UNREACHABLE"|"TEXT_CARRIER_UNREACHABLE"|"TEXT_BLOCKED"|"TEXT_CARRIER_BLOCKED"|"TEXT_SPAM"|"TEXT_UNKNOWN"|"TEXT_TTL_EXPIRED"|"VOICE_ALL"|"VOICE_INITIATED"|"VOICE_RINGING"|"VOICE_ANSWERED"|"VOICE_COMPLETED"|"VOICE_BUSY"|"VOICE_NO_ANSWER"|"VOICE_FAILED"|"VOICE_TTL_EXPIRED"|"MEDIA_ALL"|"MEDIA_PENDING"|"MEDIA_QUEUED"|"MEDIA_SUCCESSFUL"|"MEDIA_DELIVERED"|"MEDIA_INVALID"|"MEDIA_INVALID_MESSAGE"|"MEDIA_UNREACHABLE"|"MEDIA_CARRIER_UNREACHABLE"|"MEDIA_BLOCKED"|"MEDIA_CARRIER_BLOCKED"|"MEDIA_SPAM"|"MEDIA_UNKNOWN"|"MEDIA_TTL_EXPIRED"|"MEDIA_FILE_INACCESSIBLE"|"MEDIA_FILE_TYPE_UNSUPPORTED"|"MEDIA_FILE_SIZE_EXCEEDED"
),
CloudWatchLogsDestination = list(
IamRoleArn = "string",
LogGroupArn = "string"
),
KinesisFirehoseDestination = list(
IamRoleArn = "string",
DeliveryStreamArn = "string"
),
SnsDestination = list(
TopicArn = "string"
),
ClientToken = "string"
)