airflow.providers.amazon.aws.hooks.dynamodb

This module contains the AWS DynamoDB hook

Module Contents

Classes

DynamoDBHook

Interact with AWS DynamoDB.

AwsDynamoDBHook

This class is deprecated.

class airflow.providers.amazon.aws.hooks.dynamodb.DynamoDBHook(*args, table_keys=None, table_name=None, **kwargs)[source]

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

Interact with AWS DynamoDB.

Additional arguments (such as aws_conn_id) may be specified and are passed down to the underlying AwsBaseHook.

See also

AwsBaseHook

Parameters
  • table_keys (Optional[List]) – partition key and sort key

  • table_name (Optional[str]) – target DynamoDB table

write_batch_data(self, items)[source]

Write batch items to DynamoDB table with provisioned throughout capacity.

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

Bases: DynamoDBHook

This class is deprecated. Please use airflow.providers.amazon.aws.hooks.dynamodb.DynamoDBHook.

Was this entry helpful?