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
DescriptionDesignates the IAM role and Amazon Simple Notification Service (SNS) topic that AWS Firewall Manager uses to record SNS logs.
Idaws.fms.notification_channels

Fields

NameDatatypeDescription
sns_role_namestringA resource ARN.
sns_topic_arnstringA resource ARN.
regionstringAWS region.

Methods

NameAccessible byRequired Params
create_resourceINSERTSnsRoleName, SnsTopicArn, region
delete_resourceDELETEdata__Identifier, region
update_resourceUPDATEdata__Identifier, data__PatchDocument, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all notification_channels in a region.

SELECT
region,
sns_role_name,
sns_topic_arn
FROM aws.fms.notification_channels
WHERE region = 'us-east-1';

Gets all properties from an individual notification_channel.

SELECT
region,
sns_role_name,
sns_topic_arn
FROM aws.fms.notification_channels
WHERE region = 'us-east-1' AND data__Identifier = '<SnsTopicArn>';

INSERT example

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

/*+ create */
INSERT INTO aws.fms.notification_channels (
SnsRoleName,
SnsTopicArn,
region
)
SELECT
'{{ SnsRoleName }}',
'{{ SnsTopicArn }}',
'{{ region }}';

DELETE example

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

Permissions

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

Create

fms:PutNotificationChannel,
iam:PassRole

Update

fms:PutNotificationChannel,
iam:PassRole

Read

fms:GetNotificationChannel

Delete

fms:DeleteNotificationChannel

List

fms:GetNotificationChannel