Resource: aws_cloudwatch_event_api_destination

Provides an EventBridge event API Destination resource.

Example Usage

resource "aws_cloudwatch_event_api_destination" "test" {
  name                             = "api-destination"
  description                      = "An API Destination"
  invocation_endpoint              = "https://api.destination.com/endpoint"
  http_method                      = "POST"
  invocation_rate_limit_per_second = 20
  connection_arn                   = aws_cloudwatch_event_connection.test.arn
}

Argument Reference

This resource supports the following arguments:

Attribute Reference

This resource exports the following attributes in addition to the arguments above:

Import

In Terraform v1.5.0 and later, use an import block to import EventBridge API Destinations using the name. For example:

import {
  to = aws_cloudwatch_event_api_destination.test
  id = "api-destination"
}

Using terraform import, import EventBridge API Destinations using the name. For example:

% terraform import aws_cloudwatch_event_api_destination.test api-destination