Skip to main content

domain_deliverability_campaigns

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

Overview

Namedomain_deliverability_campaigns
TypeResource
Idaws.sesv2.domain_deliverability_campaigns

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
domain_deliverability_campaignsarrayAn array of responses, one for each campaign that used the domain to send email during the specified time range.
next_tokenstringA token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns operation. This token indicates the position of the campaign in the list of campaigns.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_domain_deliverability_campaignsselectStartDate, EndDate, subscribed_domain, regionNextToken, PageSizeRetrieve deliverability data for all the campaigns that used a specific domain to send email during a specified time range. This data is available for a domain only if you enabled the Deliverability dashboard for the domain.
get_domain_deliverability_campaignselectcampaign_id, regionRetrieve all the deliverability data for a specific campaign. This data is available for a campaign only if the campaign sent email by using a domain that the Deliverability dashboard is enabled for.

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
EndDatestring (date-time)The last day that you want to obtain deliverability data for. This value has to be less than or equal to 30 days after the value of the StartDate parameter.
StartDatestring (date-time)The first day that you want to obtain deliverability data for.
campaign_idstringThe unique identifier for the campaign. The Deliverability dashboard automatically generates and assigns this identifier to a campaign.
regionstringAWS region (default: us-east-1)
subscribed_domainstringThe domain to obtain deliverability data for.
NextTokenstringA token that’s returned from a previous call to the ListDomainDeliverabilityCampaigns operation. This token indicates the position of a campaign in the list of campaigns.
PageSizeintegerThe maximum number of results to include in response to a single call to the ListDomainDeliverabilityCampaigns operation. If the number of results is larger than the number that you specify in this parameter, the response includes a NextToken element, which you can use to obtain additional results.

SELECT examples

Retrieve deliverability data for all the campaigns that used a specific domain to send email during a specified time range. This data is available for a domain only if you enabled the Deliverability dashboard for the domain.

SELECT
domain_deliverability_campaigns,
next_token
FROM aws.sesv2.domain_deliverability_campaigns
WHERE StartDate = '{{ StartDate }}' -- required
AND EndDate = '{{ EndDate }}' -- required
AND subscribed_domain = '{{ subscribed_domain }}' -- required
AND region = '{{ region }}' -- required
AND NextToken = '{{ NextToken }}'
AND PageSize = '{{ PageSize }}'
;