Skip to main content

configuration_set_event_destinations

Creates, updates, deletes, gets or lists a configuration_set_event_destinations resource.

Overview

Nameconfiguration_set_event_destinations
TypeResource
Idaws.pinpoint_sms_voice.configuration_set_event_destinations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
event_destinationsarrayAn array of EventDestination objects. Each EventDestination object includes ARNs and other information that define an event destination.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_configuration_set_event_destinationsselectconfiguration_set_name, regionObtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination.
create_configuration_set_event_destinationinsertconfiguration_set_name, regionCreate a new event destination in a configuration set.
update_configuration_set_event_destinationupdateconfiguration_set_name, event_destination_name, regionUpdate an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.
delete_configuration_set_event_destinationdeleteconfiguration_set_name, event_destination_name, regionDeletes an event destination in a configuration set.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
configuration_set_namestringConfigurationSetName
event_destination_namestringEventDestinationName
regionstringAWS region (default: us-east-1)

SELECT examples

Obtain information about an event destination, including the types of events it reports, the Amazon Resource Name (ARN) of the destination, and the name of the event destination.

SELECT
event_destinations
FROM aws.pinpoint_sms_voice.configuration_set_event_destinations
WHERE configuration_set_name = '{{ configuration_set_name }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Create a new event destination in a configuration set.

INSERT INTO aws.pinpoint_sms_voice.configuration_set_event_destinations (
EventDestination,
EventDestinationName,
configuration_set_name,
region
)
SELECT
'{{ EventDestination }}',
'{{ EventDestinationName }}',
'{{ configuration_set_name }}',
'{{ region }}'
;

UPDATE examples

Update an event destination in a configuration set. An event destination is a location that you publish information about your voice calls to. For example, you can log an event to an Amazon CloudWatch destination when a call fails.

UPDATE aws.pinpoint_sms_voice.configuration_set_event_destinations
SET
EventDestination = '{{ EventDestination }}'
WHERE
configuration_set_name = '{{ configuration_set_name }}' --required
AND event_destination_name = '{{ event_destination_name }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes an event destination in a configuration set.

DELETE FROM aws.pinpoint_sms_voice.configuration_set_event_destinations
WHERE configuration_set_name = '{{ configuration_set_name }}' --required
AND event_destination_name = '{{ event_destination_name }}' --required
AND region = '{{ region }}' --required
;