Skip to main content

notification_channels

Creates, updates, deletes or gets a notification_channel resource or lists notification_channels in a region

Overview

Namenotification_channels
TypeResource
DescriptionThis resource schema represents the NotificationChannel resource in the Amazon DevOps Guru.
Idaws.devopsguru.notification_channels

Fields

NameDatatypeDescription
configobjectInformation about notification channels you have configured with DevOps Guru.
idstringThe ID of a notification channel.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTConfig, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all notification_channels in a region.

SELECT
region,
config,
id
FROM aws.devopsguru.notification_channels
WHERE region = 'us-east-1';

Gets all properties from an individual notification_channel.

SELECT
region,
config,
id
FROM aws.devopsguru.notification_channels
WHERE region = 'us-east-1' AND data__Identifier = '<Id>';

INSERT example

Use the following StackQL query and manifest file to create a new notification_channel resource, using stack-deploy.

/*+ create */
INSERT INTO aws.devopsguru.notification_channels (
Config,
region
)
SELECT
'{{ Config }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.devopsguru.notification_channels
WHERE data__Identifier = '<Id>'
AND region = 'us-east-1';

Permissions

To operate on the notification_channels resource, the following permissions are required:

Create

devops-guru:AddNotificationChannel,
devops-guru:ListNotificationChannels,
sns:Publish,
sns:GetTopicAttributes,
sns:SetTopicAttributes

List

devops-guru:ListNotificationChannels

Delete

devops-guru:RemoveNotificationChannel,
devops-guru:ListNotificationChannels

Read

devops-guru:ListNotificationChannels