targets
Creates, updates, deletes, gets or lists a targets resource.
Overview
| Name | targets |
| Type | Resource |
| Id | aws.codestar_notifications.targets |
Fields
The following fields are returned by SELECT queries:
- list_targets
| Name | Datatype | Description |
|---|---|---|
target_address | string | The Amazon Resource Name (ARN) of the Amazon Q Developer in chat applications topic or Amazon Q Developer in chat applications client. |
target_status | string | The status of the target. (PENDING, ACTIVE, UNREACHABLE, INACTIVE, DEACTIVATED) |
target_type | string | The 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:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_targets | select | region | Returns a list of the notification rule targets for an Amazon Web Services account. | |
delete_target | delete | region | Deletes 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.
| Name | Datatype | Description |
|---|---|---|
region | string | AWS region (default: us-east-1) |
SELECT examples
- list_targets
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
- delete_target
Deletes a specified target for notifications.
DELETE FROM aws.codestar_notifications.targets
WHERE region = '{{ region }}' --required
;