airflow.providers.amazon.aws.hooks.eventbridge

Module Contents

Classes

EventBridgeHook

Amazon EventBridge Hook.

class airflow.providers.amazon.aws.hooks.eventbridge.EventBridgeHook(*args, **kwargs)[source]

Bases: airflow.providers.amazon.aws.hooks.base_aws.AwsBaseHook

Amazon EventBridge Hook.

put_rule(name, description=None, event_bus_name=None, event_pattern=None, role_arn=None, schedule_expression=None, state=None, tags=None, **kwargs)[source]

Create or update an EventBridge rule.

Parameters
  • name (str) – name of the rule to create or update (required)

  • description (str | None) – description of the rule

  • event_bus_name (str | None) – name or ARN of the event bus to associate with this rule

  • event_pattern (str | None) – pattern of events to be matched to this rule

  • role_arn (str | None) – the Amazon Resource Name of the IAM role associated with the rule

  • schedule_expression (str | None) – the scheduling expression (for example, a cron or rate expression)

  • state (str | None) – indicates whether rule is set to be “ENABLED” or “DISABLED”

  • tags (list[dict] | None) – list of key-value pairs to associate with the rule

Was this entry helpful?