Skip to main content

notification_channels

Creates, updates, deletes, gets or lists a notification_channels resource.

Overview

Namenotification_channels
TypeResource
Idaws.fms.notification_channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
sns_role_namestringThe IAM role that is used by Firewall Manager to record activity to SNS. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$</code>)
sns_topic_arnstringThe SNS topic that records Firewall Manager activity. (pattern: <code>^([\p{L}\p{Z}\p{N}_.:/=+-@]*)$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_notification_channelselectregionInformation about the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.
put_notification_channelreplaceregion, SnsTopicArn, SnsRoleNameDesignates the IAM role and Amazon Simple Notification Service (SNS) topic that Firewall Manager uses to record SNS logs. To perform this action outside of the console, you must first configure the SNS topic's access policy to allow the SnsRoleName to publish SNS logs. If the SnsRoleName provided is a role other than the AWSServiceRoleForFMS service-linked role, this role must have a trust relationship configured to allow the Firewall Manager service principal fms.amazonaws.com to assume this role. For information about configuring an SNS access policy, see Service roles for Firewall Manager in the Firewall Manager Developer Guide.
delete_notification_channeldeleteregionDeletes an Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.

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.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)

SELECT examples

Information about the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.

SELECT
sns_role_name,
sns_topic_arn
FROM aws.fms.notification_channels
WHERE region = '{{ region }}' -- required
;

REPLACE examples

Designates the IAM role and Amazon Simple Notification Service (SNS) topic that Firewall Manager uses to record SNS logs. To perform this action outside of the console, you must first configure the SNS topic's access policy to allow the SnsRoleName to publish SNS logs. If the SnsRoleName provided is a role other than the AWSServiceRoleForFMS service-linked role, this role must have a trust relationship configured to allow the Firewall Manager service principal fms.amazonaws.com to assume this role. For information about configuring an SNS access policy, see Service roles for Firewall Manager in the Firewall Manager Developer Guide.

REPLACE aws.fms.notification_channels
SET
SnsTopicArn = '{{ SnsTopicArn }}',
SnsRoleName = '{{ SnsRoleName }}'
WHERE
region = '{{ region }}' --required
AND SnsTopicArn = '{{ SnsTopicArn }}' --required
AND SnsRoleName = '{{ SnsRoleName }}' --required;

DELETE examples

Deletes an Firewall Manager association with the IAM role and the Amazon Simple Notification Service (SNS) topic that is used to record Firewall Manager SNS logs.

DELETE FROM aws.fms.notification_channels
WHERE region = '{{ region }}' --required
;