Skip to main content

targets

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

Overview

Nametargets
TypeResource
Idaws.codestar_notifications.targets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
target_addressstringThe Amazon Resource Name (ARN) of the Amazon Q Developer in chat applications topic or Amazon Q Developer in chat applications client.
target_statusstringThe status of the target. (PENDING, ACTIVE, UNREACHABLE, INACTIVE, DEACTIVATED)
target_typestringThe type of the target (for example, SNS). Amazon Q Developer in chat applications topics are specified as SNS. Amazon Q Developer in chat applications clients are specified as AWSChatbotSlack. (pattern: <code>^[A-Za-z]+$</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_targetsselectregionReturns a list of the notification rule targets for an Amazon Web Services account.
delete_targetdeleteregionDeletes a specified target for notifications.

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

Returns a list of the notification rule targets for an Amazon Web Services account.

SELECT
target_address,
target_status,
target_type
FROM aws.codestar_notifications.targets
WHERE region = '{{ region }}' -- required
;

DELETE examples

Deletes a specified target for notifications.

DELETE FROM aws.codestar_notifications.targets
WHERE region = '{{ region }}' --required
;