Menu
AWS Glue
Developer Guide

DynamicFrameWriter Class

 Methods

__init__

__init__(glue_context)

from_options

from_options(frame, connection_type, connection_options={}, format=None, format_options={}, transformation_ctx="")

Writes a DynamicFrame using the specified connection and format.

  • frame – The DynamicFrame to write.

  • connection_type – The connection type.

  • connection_options – Connection options, such as path and database table (optional).

  • format – A format specification such as JSON, CSV, or other format (optional). This is used for an Amazon Simple Storage Service (Amazon S3) or tape connection that supports multiple formats.

  • format_options – Format options, such as delimiter (optional).

  • transformation_ctx – A transformation context to use (optional).

from_catalog

from_catalog(frame, name_space, table_name, redshift_tmp_dir="", transformation_ctx="")

Writes a DynamicFrame using the specified catalog database and table name.

  • frame – The DynamicFrame to write.

  • name_space – The database to use.

  • table_name – The table_name to use.

  • redshift_tmp_dir – An Amazon Redshift temporary directory to use (optional).

  • transformation_ctx – A transformation context to use (optional).

from_jdbc_conf

from_jdbc_conf(frame, catalog_connection, connection_options={}, redshift_tmp_dir = "", transformation_ctx="")

Writes a DynamicFrame using the specified JDBC connection information.

  • frame – The DynamicFrame to write.

  • catalog_connection – A catalog connection to use.

  • connection_options – Connection options, such as path and database table (optional).

  • redshift_tmp_dir – An Amazon Redshift temporary directory to use (optional).

  • transformation_ctx – A transformation context to use (optional).