account_sending_enableds
Creates, updates, deletes, gets or lists an account_sending_enableds resource.
Overview
| Name | account_sending_enableds |
| Type | Resource |
| Id | aws.ses.account_sending_enableds |
Fields
The following fields are returned by SELECT queries:
- get_account_sending_enabled
| Name | Datatype | Description |
|---|---|---|
enabled | boolean | Describes whether email sending is enabled or disabled for your Amazon SES account in the current Amazon Web Services Region. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_account_sending_enabled | select | region | Returns the email sending status of the Amazon SES account for the current Region. You can execute this operation no more than once per second. | |
update_account_sending_enabled | update | region | Enabled | Enables or disables email sending across your entire Amazon SES account in the current Amazon Web Services Region. You can use this operation in conjunction with Amazon CloudWatch alarms to temporarily pause email sending across your Amazon SES account in a given Amazon Web Services Region when reputation metrics (such as your bounce or complaint rates) reach certain thresholds. You can execute this operation no more than once per second. |
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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
Enabled | boolean | Describes whether email sending is enabled or disabled for your Amazon SES account in the current Amazon Web Services Region. |
SELECT examples
- get_account_sending_enabled
Returns the email sending status of the Amazon SES account for the current Region. You can execute this operation no more than once per second.
SELECT
enabled
FROM aws.ses.account_sending_enableds
WHERE region = '{{ region }}' -- required
;
UPDATE examples
- update_account_sending_enabled
Enables or disables email sending across your entire Amazon SES account in the current Amazon Web Services Region. You can use this operation in conjunction with Amazon CloudWatch alarms to temporarily pause email sending across your Amazon SES account in a given Amazon Web Services Region when reputation metrics (such as your bounce or complaint rates) reach certain thresholds. You can execute this operation no more than once per second.
UPDATE aws.ses.account_sending_enableds
SET
-- No updatable properties
WHERE
region = '{{ region }}' --required
AND Enabled = {{ Enabled}};