airflow.providers.amazon.aws.operators.eventbridge

Module Contents

Classes

EventBridgePutEventsOperator

Put Events onto Amazon EventBridge.

EventBridgePutRuleOperator

Create or update a specified EventBridge rule.

class airflow.providers.amazon.aws.operators.eventbridge.EventBridgePutEventsOperator(*, entries, endpoint_id=None, aws_conn_id='aws_default', region_name=None, **kwargs)[source]

Bases: airflow.models.BaseOperator

Put Events onto Amazon EventBridge.

See also

For more information on how to use this operator, take a look at the guide: Send events to Amazon EventBridge

Parameters
  • entries (list[dict]) – the list of events to be put onto EventBridge, each event is a dict (required)

  • endpoint_id (str | None) – the URL subdomain of the endpoint

  • aws_conn_id (str) – the AWS connection to use

  • region_name (str | None) – the region where events are to be sent

template_fields: Sequence[str] = ('entries', 'endpoint_id', 'aws_conn_id', 'region_name')[source]
hook()[source]

Create and return an EventBridgeHook.

execute(context)[source]

This is the main method to derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

class airflow.providers.amazon.aws.operators.eventbridge.EventBridgePutRuleOperator(*, name, description=None, event_bus_name=None, event_pattern=None, role_arn=None, schedule_expression=None, state=None, tags=None, region_name=None, aws_conn_id='aws_default', **kwargs)[source]

Bases: airflow.models.BaseOperator

Create or update a specified EventBridge rule.

See also

For more information on how to use this operator, take a look at the guide: Create or update a rule on Amazon EventBridge

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 | None) – list of key-value pairs to associate with the rule

  • region – the region where rule is to be created or updated

template_fields: Sequence[str] = ('aws_conn_id', 'name', 'description', 'event_bus_name', 'event_pattern', 'role_arn',...[source]
hook()[source]

Create and return an EventBridgeHook.

execute(context)[source]

This is the main method to derive when creating an operator.

Context is the same dictionary used as when rendering jinja templates.

Refer to get_template_context for more context.

Was this entry helpful?