Skip to main content

channels

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

Overview

Namechannels
TypeResource
Idaws.notifications.channels

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
channelstringA list of Channels.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_channelsselectnotificationConfigurationArn, regionmaxResults, nextTokenReturns a list of Channels for a NotificationConfiguration.
associate_channelupdatearn, region, notificationConfigurationArnAssociates a delivery Channel with a particular NotificationConfiguration. Supported Channels include Amazon Q Developer in chat applications, the Console Mobile Application, and emails (notifications-contacts).
associate_managed_notification_additional_channelupdatechannel_arn, region, managedNotificationConfigurationArnAssociates an additional Channel with a particular ManagedNotificationConfiguration. Supported Channels include Amazon Q Developer in chat applications, the Console Mobile Application, and emails (notifications-contacts).
disassociate_channelexecarn, region, notificationConfigurationArnDisassociates a Channel from a specified NotificationConfiguration. Supported Channels include Amazon Q Developer in chat applications, the Console Mobile Application, and emails (notifications-contacts).
disassociate_managed_notification_additional_channelexecchannel_arn, region, managedNotificationConfigurationArnDisassociates an additional Channel from a particular ManagedNotificationConfiguration. Supported Channels include Amazon Q Developer in chat applications, the Console Mobile Application, and emails (notifications-contacts).

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
arnstringThe Amazon Resource Name (ARN) of the Channel to disassociate.
channel_arnstringThe Amazon Resource Name (ARN) of the Channel to associate with the ManagedNotificationConfiguration.
notificationConfigurationArnstringThe Amazon Resource Name (ARN) of the NotificationConfiguration.
regionstringAWS region (default: us-east-1)
maxResultsintegerThe maximum number of results to be returned in this call. The default value is 20.
nextTokenstringThe start token for paginated calls. Retrieved from the response of a previous ListNotificationEvents call. NextToken uses Base64 encoding.

SELECT examples

Returns a list of Channels for a NotificationConfiguration.

SELECT
channel
FROM aws.notifications.channels
WHERE notificationConfigurationArn = '{{ notificationConfigurationArn }}' -- required
AND region = '{{ region }}' -- required
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;

UPDATE examples

Associates a delivery Channel with a particular NotificationConfiguration. Supported Channels include Amazon Q Developer in chat applications, the Console Mobile Application, and emails (notifications-contacts).

UPDATE aws.notifications.channels
SET
notificationConfigurationArn = '{{ notificationConfigurationArn }}'
WHERE
arn = '{{ arn }}' --required
AND region = '{{ region }}' --required
AND notificationConfigurationArn = '{{ notificationConfigurationArn }}' --required;

Lifecycle Methods

Disassociates a Channel from a specified NotificationConfiguration. Supported Channels include Amazon Q Developer in chat applications, the Console Mobile Application, and emails (notifications-contacts).

EXEC aws.notifications.channels.disassociate_channel
@arn='{{ arn }}' --required,
@region='{{ region }}' --required
@@json=
'{
"notificationConfigurationArn": "{{ notificationConfigurationArn }}"
}'
;