mail_manager_addon_subscriptions
Creates, updates, deletes or gets a mail_manager_addon_subscription
resource or lists mail_manager_addon_subscriptions
in a region
Overview
Name | mail_manager_addon_subscriptions |
Type | Resource |
Description | Definition of AWS::SES::MailManagerAddonSubscription Resource Type |
Id | aws.ses.mail_manager_addon_subscriptions |
Fields
Name | Datatype | Description |
---|---|---|
addon_name | string | |
addon_subscription_arn | string | |
addon_subscription_id | string | |
tags | array | |
region | string | AWS region. |
For more information, see AWS::SES::MailManagerAddonSubscription
.
Methods
Name | Accessible by | Required Params |
---|---|---|
create_resource | INSERT | AddonName, region |
delete_resource | DELETE | data__Identifier, region |
update_resource | UPDATE | data__Identifier, data__PatchDocument, region |
list_resources | SELECT | region |
get_resource | SELECT | data__Identifier, region |
SELECT
examples
Gets all mail_manager_addon_subscriptions
in a region.
SELECT
region,
addon_name,
addon_subscription_arn,
addon_subscription_id,
tags
FROM aws.ses.mail_manager_addon_subscriptions
WHERE region = 'us-east-1';
Gets all properties from an individual mail_manager_addon_subscription
.
SELECT
region,
addon_name,
addon_subscription_arn,
addon_subscription_id,
tags
FROM aws.ses.mail_manager_addon_subscriptions
WHERE region = 'us-east-1' AND data__Identifier = '<AddonSubscriptionId>';
INSERT
example
Use the following StackQL query and manifest file to create a new mail_manager_addon_subscription
resource, using stack-deploy
.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO aws.ses.mail_manager_addon_subscriptions (
AddonName,
region
)
SELECT
'{{ AddonName }}',
'{{ region }}';
/*+ create */
INSERT INTO aws.ses.mail_manager_addon_subscriptions (
AddonName,
Tags,
region
)
SELECT
'{{ AddonName }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: mail_manager_addon_subscription
props:
- name: AddonName
value: '{{ AddonName }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE
example
/*+ delete */
DELETE FROM aws.ses.mail_manager_addon_subscriptions
WHERE data__Identifier = '<AddonSubscriptionId>'
AND region = 'us-east-1';
Permissions
To operate on the mail_manager_addon_subscriptions
resource, the following permissions are required:
Create
ses:TagResource,
ses:ListTagsForResource,
ses:GetAddonSubscription,
ses:CreateAddonSubscription
Read
ses:ListTagsForResource,
ses:GetAddonSubscription
Update
ses:TagResource,
ses:UntagResource,
ses:ListTagsForResource,
ses:GetAddonSubscription
Delete
ses:GetAddonSubscription,
ses:DeleteAddonSubscription
List
ses:ListAddonSubscriptions