airflow.providers.amazon.aws.sensors.dynamodb

Module Contents

Classes

DynamoDBValueSensor

Waits for an attribute value to be present for an item in a DynamoDB table.

class airflow.providers.amazon.aws.sensors.dynamodb.DynamoDBValueSensor(table_name, partition_key_name, partition_key_value, attribute_name, attribute_value, sort_key_name=None, sort_key_value=None, aws_conn_id=DynamoDBHook.default_conn_name, region_name=None, **kwargs)[source]

Bases: airflow.sensors.base.BaseSensorOperator

Waits for an attribute value to be present for an item in a DynamoDB table.

See also

For more information on how to use this sensor, take a look at the guide: Wait on Amazon DynamoDB item attribute value match

Parameters
  • table_name (str) – DynamoDB table name

  • partition_key_name (str) – DynamoDB partition key name

  • partition_key_value (str) – DynamoDB partition key value

  • attribute_name (str) – DynamoDB attribute name

  • attribute_value (str | Iterable[str]) – DynamoDB attribute value

  • sort_key_name (str | None) – (optional) DynamoDB sort key name

  • sort_key_value (str | None) – (optional) DynamoDB sort key value

  • aws_conn_id (str | None) – aws connection to use

  • region_name (str | None) – aws region to use

template_fields: Sequence[str] = ('table_name', 'partition_key_name', 'partition_key_value', 'attribute_name', 'attribute_value',...[source]
poke(context)[source]

Test DynamoDB item for matching attribute value.

hook()[source]

Create and return a DynamoDBHook.

Was this entry helpful?