Skip to content
v2.275.0

Experimental

@aws-cdk/aws-pipes-targets-alpha is an experimental (alpha) package: its API may change in any release, without a major version bump.

EventBridgeTargetParameters Struct ​

EventBridge target properties.

Example ​

ts
declare const sourceQueue: sqs.Queue;
declare const targetEventBus: events.EventBus;

const eventBusTarget = new targets.EventBridgeTarget(targetEventBus, {
  inputTransformation: pipes.InputTransformation.fromObject({ body: "👀" }),
});

const pipe = new pipes.Pipe(this, 'Pipe', {
    source: new SqsSource(sourceQueue),
    target: eventBusTarget,
});

Properties ​

detailTypeoptionalstringdetail_typeoptionalstrdetailTypeoptionalStringDetailTypeoptionalstringDetailTypeoptional*string= none#
A free-form string used to decide what fields to expect in the event detail.
endpointIdoptionalstringendpoint_idoptionalstrendpointIdoptionalStringEndpointIdoptionalstringEndpointIdoptional*string= none#
The URL subdomain of the endpoint.
example
ts
// if the URL for the endpoint is https://abcde.veo.endpoints.event.amazonaws.com
'abcde.veo'
inputTransformationoptionalIInputTransformationinput_transformationoptionalIInputTransformationinputTransformationoptionalIInputTransformationInputTransformationoptionalIInputTransformationInputTransformationoptionalIInputTransformation= none#
The input transformation to apply to the message before sending it to the target.
resourcesoptionalstring[]resourcesoptionaltyping.List[str]resourcesoptionalList<String>Resourcesoptionalstring[]Resourcesoptional*[]*string= none#
AWS resources, identified by Amazon Resource Name (ARN), which the event primarily concerns.
sourceoptionalstringsourceoptionalstrsourceoptionalStringSourceoptionalstringSourceoptional*string= none#
The source of the event.
timeoptionalstringtimeoptionalstrtimeoptionalStringTimeoptionalstringTimeoptional*string#
The time stamp of the event, per RFC3339.

Default: the time stamp of the PutEvents call