Skip to content

Create Action Target

securityhub_create_action_target R Documentation

Creates a custom action target in Security Hub

Description

Creates a custom action target in Security Hub.

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

Usage

securityhub_create_action_target(Name, Description, Id)

Arguments

Name

[required] The name of the custom action target. Can contain up to 20 characters.

Description

[required] The description for the custom action target.

Id

[required] The ID for the custom action target. Can contain up to 20 alphanumeric characters.

Value

A list with the following syntax:

list(
  ActionTargetArn = "string"
)

Request syntax

svc$create_action_target(
  Name = "string",
  Description = "string",
  Id = "string"
)

Examples

## Not run: 
# The following example creates a custom action target in Security Hub.
# Custom actions on findings and insights automatically trigger actions in
# Amazon CloudWatch Events.
svc$create_action_target(
  Description = "Action to send the finding for remediation tracking",
  Id = "Remediation",
  Name = "Send to remediation"
)

## End(Not run)