notification_configurations
Creates, updates, deletes or gets a notification_configuration resource or lists notification_configurations in a region
Overview
| Name | notification_configurations |
| Type | Resource |
| Description | Resource Type definition for AWS::Notifications::NotificationConfiguration |
| Id | awscc.notifications.notification_configurations |
Fields
| Name | Datatype | Description |
|---|---|---|
aggregation_duration | string | |
arn | string | |
creation_time | string | |
description | string | |
name | string | |
status | string | |
tags | array | A list of tags that are attached to the role. |
region | string | AWS region. |
For more information, see AWS::Notifications::NotificationConfiguration.
Methods
| Name | Accessible by | Required Params |
|---|---|---|
create_resource | INSERT | Description, Name, 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 properties from an individual notification_configuration.
SELECT
region,
aggregation_duration,
arn,
creation_time,
description,
name,
status,
tags
FROM awscc.notifications.notification_configurations
WHERE region = 'us-east-1' AND data__Identifier = '<Arn>';
INSERT example
Use the following StackQL query and manifest file to create a new notification_configuration resource, using stack-deploy.
- Required Properties
- All Properties
- Manifest
/*+ create */
INSERT INTO awscc.notifications.notification_configurations (
Description,
Name,
region
)
SELECT
'{{ Description }}',
'{{ Name }}',
'{{ region }}';
/*+ create */
INSERT INTO awscc.notifications.notification_configurations (
AggregationDuration,
Description,
Name,
Tags,
region
)
SELECT
'{{ AggregationDuration }}',
'{{ Description }}',
'{{ Name }}',
'{{ Tags }}',
'{{ region }}';
version: 1
name: stack name
description: stack description
providers:
- aws
globals:
- name: region
value: '{{ vars.AWS_REGION }}'
resources:
- name: notification_configuration
props:
- name: AggregationDuration
value: '{{ AggregationDuration }}'
- name: Description
value: '{{ Description }}'
- name: Name
value: '{{ Name }}'
- name: Tags
value:
- Key: '{{ Key }}'
Value: '{{ Value }}'
DELETE example
/*+ delete */
DELETE FROM awscc.notifications.notification_configurations
WHERE data__Identifier = '<Arn>'
AND region = 'us-east-1';
Permissions
To operate on the notification_configurations resource, the following permissions are required:
Create
notifications:CreateNotificationConfiguration,
notifications:GetNotificationConfiguration,
notifications:UpdateNotificationConfiguration,
notifications:TagResource,
notifications:UntagResource,
notifications:ListTagsForResource,
iam:CreateServiceLinkedRole
Read
notifications:GetNotificationConfiguration,
notifications:ListTagsForResource,
notifications:TagResource,
notifications:UntagResource
Update
notifications:CreateNotificationConfiguration,
notifications:GetNotificationConfiguration,
notifications:UpdateNotificationConfiguration,
notifications:TagResource,
notifications:UntagResource,
notifications:ListTagsForResource
Delete
notifications:DeleteNotificationConfiguration
List
notifications:ListNotificationConfigurations,
notifications:ListTagsForResource