Skip to main content

email_channels

Creates, updates, deletes, gets or lists an email_channels resource.

Overview

Nameemail_channels
TypeResource
Idaws.pinpoint.email_channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
application_idstringThe unique identifier for the application that the email channel applies to.
configuration_setstringThe Amazon SES configuration set that's applied to messages that are sent through the channel.
creation_datestringThe date and time, in ISO 8601 format, when the email channel was enabled.
enabledbooleanSpecifies whether the email channel is enabled for the application.
from_addressstringThe verified email address that email is sent from when you send email through the channel.
has_credentialboolean(Not used) This property is retained only for backward compatibility.
idstring(Deprecated) An identifier for the email channel. This property is retained only for backward compatibility.
identitystringThe Amazon Resource Name (ARN) of the identity, verified with Amazon Simple Email Service (Amazon SES), that's used when you send email through the channel.
is_archivedbooleanSpecifies whether the email channel is archived.
last_modified_bystringThe user who last modified the email channel.
last_modified_datestringThe date and time, in ISO 8601 format, when the email channel was last modified.
messages_per_secondintegerThe maximum number of emails that can be sent through the channel each second.
orchestration_sending_role_arnstringThe ARN of an IAM role for Amazon Pinpoint to use to send email from your campaigns or journeys through Amazon SES.
platformstringThe type of messaging or notification platform for the channel. For the email channel, this value is EMAIL.
role_arnstringThe ARN of the AWS Identity and Access Management (IAM) role that Amazon Pinpoint uses to submit email-related event data for the channel.
versionintegerThe current version of the email channel.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_email_channelselectapplication-id, regionRetrieves information about the status and settings of the email channel for an application.
update_email_channelupdateapplication-id, region, EmailChannelRequestEnables the email channel for an application or updates the status and settings of the email channel for an application.
delete_email_channeldeleteapplication-id, regionDisables the email channel for an application and deletes any existing settings for the channel.

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
application-idstringThe unique identifier for the application. This identifier is displayed as the Project ID on the Amazon Pinpoint console.
regionstringAWS region (default: us-east-1)

SELECT examples

Retrieves information about the status and settings of the email channel for an application.

SELECT
application_id,
configuration_set,
creation_date,
enabled,
from_address,
has_credential,
id,
identity,
is_archived,
last_modified_by,
last_modified_date,
messages_per_second,
orchestration_sending_role_arn,
platform,
role_arn,
version
FROM aws.pinpoint.email_channels
WHERE `application-id` = '{{ application-id }}' -- required
AND region = '{{ region }}' -- required
;

UPDATE examples

Enables the email channel for an application or updates the status and settings of the email channel for an application.

UPDATE aws.pinpoint.email_channels
SET
EmailChannelRequest = '{{ EmailChannelRequest }}'
WHERE
`application-id` = '{{ application-id }}' --required
AND region = '{{ region }}' --required
AND EmailChannelRequest = '{{ EmailChannelRequest }}' --required
RETURNING
email_channel_response;

DELETE examples

Disables the email channel for an application and deletes any existing settings for the channel.

DELETE FROM aws.pinpoint.email_channels
WHERE `application-id` = '{{ application-id }}' --required
AND region = '{{ region }}' --required
;