Skip to main content

Event targets for Amazon EventBridge

Project description

Event Targets for Amazon EventBridge

---

cdk-constructs: Stable


This library contains integration classes to send Amazon EventBridge to any number of supported AWS Services. Instances of these classes should be passed to the rule.addTarget() method.

Currently supported are:

  • Start a CodeBuild build
  • Start a CodePipeline pipeline
  • Run an ECS task
  • Invoke a Lambda function
  • Publish a message to an SNS topic
  • Send a message to an SQS queue
  • Start a StepFunctions state machine
  • Queue a Batch job
  • Make an AWS API call
  • Put a record to a Kinesis stream
  • Log an event into a LogGroup
  • Put a record to a Kinesis Data Firehose stream

See the README of the @aws-cdk/aws-events library for more information on EventBridge.

LogGroup

Use the LogGroup target to log your events in a CloudWatch LogGroup.

For example, the following code snippet creates an event rule with a CloudWatch LogGroup as a target. Every events sent from the aws.ec2 source will be sent to the CloudWatch LogGroup.

# Example automatically generated without compilation. See https://github.com/aws/jsii/issues/826
import aws_cdk.aws_logs as logs
import aws_cdk.aws_events as events
import aws_cdk.aws_events_targets as targets

log_group = logs.LogGroup(self, "MyLogGroup",
    log_group_name="MyLogGroup"
)

rule = events.Rule(self, "rule",
    event_pattern=EventPattern(
        source=["aws.ec2"]
    )
)

rule.add_target(targets.CloudWatchLogGroup(log_group))

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aws-cdk.aws-events-targets-1.87.1.tar.gz (71.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file aws-cdk.aws-events-targets-1.87.1.tar.gz.

File metadata

  • Download URL: aws-cdk.aws-events-targets-1.87.1.tar.gz
  • Upload date:
  • Size: 71.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.5

File hashes

Hashes for aws-cdk.aws-events-targets-1.87.1.tar.gz
Algorithm Hash digest
SHA256 46b0c0adaaf1d38fa401f97aaf6868dafd3b72f46c0157de7c6a103dab0f8d34
MD5 85ecd71d8e2af2986a3b95b7b49ff562
BLAKE2b-256 a6d8390d62652d776ec0e075cf4275312c09d0bfb917522b6b0f8ceec05f1a6a

See more details on using hashes here.

File details

Details for the file aws_cdk.aws_events_targets-1.87.1-py3-none-any.whl.

File metadata

  • Download URL: aws_cdk.aws_events_targets-1.87.1-py3-none-any.whl
  • Upload date:
  • Size: 70.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/39.0.1 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.6.5

File hashes

Hashes for aws_cdk.aws_events_targets-1.87.1-py3-none-any.whl
Algorithm Hash digest
SHA256 e964de9c5dfa58a7cdcc9f643e971cd7d6d4662786ef97dcc0342e375452b1e8
MD5 08bcd123ba94ec63c0c6ec164a44906c
BLAKE2b-256 c4ce9b09d5a805de355d544c51d4929ffbc137671fa96b10d18d274f01487234

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page