Skip to content

Data Source: awsCloudwatchEventSource

Use this data source to get information about an EventBridge Partner Event Source. This data source will only return one partner event source. An error will be returned if multiple sources match the same name prefix.

\~> Note: EventBridge was formerly known as CloudWatch Events. The functionality is identical.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as aws from "./.gen/providers/aws";
new aws.dataAwsCloudwatchEventSource.DataAwsCloudwatchEventSource(
  this,
  "examplepartner",
  {
    namePrefix: "aws.partner/examplepartner.com",
  }
);

Argument Reference

The following arguments are supported:

  • namePrefix - (Optional) Specifying this limits the results to only those partner event sources with names that start with the specified prefix

Attributes Reference

In addition to all arguments above, the following attributes are exported:

  • arn - ARN of the partner event source
  • createdBy - Name of the SaaS partner that created the event source
  • name - Name of the event source
  • state - State of the event source (active or pending)