Skip to main content

action_targets

Creates, updates, deletes, gets or lists an action_targets resource.

Overview

Nameaction_targets
TypeResource
Idaws.securityhub.action_targets

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
action_target_arnstringThe ARN for the target action. (pattern: <code>.\S.</code>)
descriptionstringThe description of the target action. (pattern: <code>.\S.</code>)
namestringThe name of the action target. (pattern: <code>.\S.</code>)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_action_targetsselectregionReturns a list of the custom action targets in Security Hub CSPM in your account.
create_action_targetinsertregion, IdCreates a custom action target in Security Hub CSPM. You can use custom actions on findings and insights in Security Hub CSPM to trigger target actions in Amazon CloudWatch Events.
update_action_targetupdateaction_target_arn, regionUpdates the name and description of a custom action target in Security Hub CSPM.
delete_action_targetdeleteaction_target_arn, regionDeletes a custom action target from Security Hub CSPM. Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.

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
action_target_arnstringThe Amazon Resource Name (ARN) of the custom action target to delete.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a list of the custom action targets in Security Hub CSPM in your account.

SELECT
action_target_arn,
description,
name
FROM aws.securityhub.action_targets
WHERE region = '{{ region }}' -- required
;

INSERT examples

Creates a custom action target in Security Hub CSPM. You can use custom actions on findings and insights in Security Hub CSPM to trigger target actions in Amazon CloudWatch Events.

INSERT INTO aws.securityhub.action_targets (
Name,
Description,
Id,
region
)
SELECT
'{{ Name }}',
'{{ Description }}',
'{{ Id }}' /* required */,
'{{ region }}'
RETURNING
action_target_arn
;

UPDATE examples

Updates the name and description of a custom action target in Security Hub CSPM.

UPDATE aws.securityhub.action_targets
SET
Name = '{{ Name }}',
Description = '{{ Description }}'
WHERE
action_target_arn = '{{ action_target_arn }}' --required
AND region = '{{ region }}' --required;

DELETE examples

Deletes a custom action target from Security Hub CSPM. Deleting a custom action target does not affect any findings or insights that were already sent to Amazon CloudWatch Events using the custom action.

DELETE FROM aws.securityhub.action_targets
WHERE action_target_arn = '{{ action_target_arn }}' --required
AND region = '{{ region }}' --required
;