AWS Security Hub Action Targets API

The Action Targets API from AWS Security Hub — 1 operation(s) for action targets.

GitHub OpenAPI
Business capability
Cybersecurity Management BC-620

Operations 4

POST /actionTargets Create Action Target #
DELETE /actionTargets/{ActionTargetArn+} Delete Action Target #
PATCH /actionTargets/{ActionTargetArn+} Update Action Target #
POST /actionTargets/get Describe Action Targets #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/aws-security-hub:aws-security-hub-action-targets-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

aws-security-hub-action-targets-api-openapi.yml Raw ↑
openapi: 3.1.0
info:
  title: AWS SecurityHub Action Targets API
  version: '2018-10-26'
  description: Generated from AWS's published Smithy model for AWS SecurityHub. 4 operation(s).
  contact:
    name: Amazon Web Services
    url: https://aws.amazon.com/contact-us/
  license:
    name: Apache 2.0
    identifier: Apache-2.0
    url: https://github.com/aws/api-models-aws/blob/main/LICENSE
servers:
- url: https://securityhub.{region}.amazonaws.com
  variables:
    region:
      default: us-east-1
security:
- sigv4: []
paths:
  /actionTargets:
    post:
      operationId: CreateActionTarget
      summary: Create Action Target
      description: 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.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreateActionTargetResponse'
              example:
                ActionTargetArn: arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '429':
          description: LimitExceededException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/LimitExceededException'
        '409':
          description: ResourceConflictException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceConflictException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                Name:
                  type: string
                  description: The name of the custom action target. Can contain up to 20 characters.
                Description:
                  type: string
                  description: The description for the custom action target.
                Id:
                  type: string
                  description: The ID for the custom action target. Can contain up to 20 alphanumeric characters.
              required:
              - Name
              - Description
              - Id
            example:
              Name: Send to remediation
              Description: Action to send the finding for remediation tracking
              Id: Remediation
      tags:
      - Action Targets
  /actionTargets/{ActionTargetArn+}:
    delete:
      operationId: DeleteActionTarget
      summary: Delete Action Target
      description: 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.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DeleteActionTargetResponse'
              example:
                ActionTargetArn: arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: ActionTargetArn
        in: path
        required: true
        schema:
          type: string
        description: The Amazon Resource Name (ARN) of the custom action target to delete.
      tags:
      - Action Targets
    patch:
      operationId: UpdateActionTarget
      summary: Update Action Target
      description: Updates the name and description of a custom action target in Security Hub CSPM.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UpdateActionTargetResponse'
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      parameters:
      - name: ActionTargetArn
        in: path
        required: true
        schema:
          type: string
        description: The ARN of the custom action target to update.
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                Name:
                  type: string
                  description: The updated name of the custom action target.
                Description:
                  type: string
                  description: The updated description for the custom action target.
            example:
              ActionTargetArn: arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation
              Name: Chat custom action
              Description: Sends specified findings to customer service chat
      tags:
      - Action Targets
  /actionTargets/get:
    post:
      operationId: DescribeActionTargets
      summary: Describe Action Targets
      description: Returns a list of the custom action targets in Security Hub CSPM in your account.
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DescribeActionTargetsResponse'
              example:
                ActionTargets:
                - ActionTargetArn: arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation
                  Description: Action to send the finding for remediation tracking
                  Name: Send to remediation
        '500':
          description: InternalException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InternalException'
        '401':
          description: InvalidAccessException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidAccessException'
        '400':
          description: InvalidInputException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/InvalidInputException'
        '404':
          description: ResourceNotFoundException
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ResourceNotFoundException'
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                ActionTargetArns:
                  type: array
                  items:
                    type: string
                  description: A list of custom action target ARNs for the custom action targets to retrieve.
                NextToken:
                  type: string
                  description: The token that is required for pagination. On your first call to the DescribeActionTargets
                    operation, set the value of this parameter to NULL. For subsequent calls to the operation, to continue
                    listing data, set the value of this parameter to the value returned from the previous response.
                MaxResults:
                  type: integer
                  description: The maximum number of results to return.
            example:
              ActionTargetArns:
              - arn:aws:securityhub:us-west-1:123456789012:action/custom/Remediation
      tags:
      - Action Targets
components:
  securitySchemes:
    sigv4:
      type: apiKey
      in: header
      name: Authorization
      description: AWS Signature Version 4. The Authorization header carries an AWS4-HMAC-SHA256 signature over the canonical
        request, with X-Amz-Date (and X-Amz-Security-Token for temporary credentials). Not a bearer token.
      x-aws-sigv4:
        signingName: securityhub
  schemas:
    ActionTarget:
      type: object
      properties:
        ActionTargetArn:
          type: string
          description: The ARN for the target action.
        Name:
          type: string
          description: The name of the action target.
        Description:
          type: string
          description: The description of the target action.
      required:
      - ActionTargetArn
      - Name
      - Description
    CreateActionTargetResponse:
      type: object
      properties:
        ActionTargetArn:
          type: string
          description: The Amazon Resource Name (ARN) for the custom action target.
      required:
      - ActionTargetArn
    DeleteActionTargetResponse:
      type: object
      properties:
        ActionTargetArn:
          type: string
          description: The ARN of the custom action target that was deleted.
      required:
      - ActionTargetArn
    DescribeActionTargetsResponse:
      type: object
      properties:
        ActionTargets:
          type: array
          items:
            $ref: '#/components/schemas/ActionTarget'
          description: A list of ActionTarget objects. Each object includes the ActionTargetArn, Description, and Name of
            a custom action target available in Security Hub CSPM.
        NextToken:
          type: string
          description: The pagination token to use to request the next page of results.
      required:
      - ActionTargets
    InternalException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    InvalidAccessException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    InvalidInputException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    LimitExceededException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    ResourceConflictException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    ResourceNotFoundException:
      type: object
      properties:
        Message:
          type: string
        Code:
          type: string
    UpdateActionTargetResponse:
      type: object
      properties: {}
x-provenance:
  method: harvested
  publisher: Amazon Web Services
  source: https://raw.githubusercontent.com/aws/api-models-aws/3cd98287b471c106254abd89279cc87308d38bfd/models/securityhub/service/2018-10-26/securityhub-2018-10-26.json
  note: converted by smithy-to-openapi.py from AWS's Smithy model (roadmap#1001)