RenameField class - Amazon Glue
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

RenameField class

Renames a node within a DynamicFrame.


We recommend that you use the DynamicFrame.rename_field() method to rename a field in a DynamicFrame. To view a code example, see Example: Use rename_field to rename fields in a DynamicFrame.


__call__(frame, old_name, new_name, transformation_ctx = "", info = "", stageThreshold = 0, totalThreshold = 0)

Renames a node within a DynamicFrame.

  • frame – The DynamicFrame in which to rename a node (required).

  • old_name – The full path to the node to rename (required).

    If the old name has dots in it, RenameField will not work unless you place backticks around it (``). For example, to replace with thisNewName, you would call RenameField as follows:

    newDyF = RenameField(oldDyF, "``", "thisNewName")
  • new_name – The new name, including full path (required).

  • transformation_ctx – A unique string that is used to identify state information (optional).

  • info – A string associated with errors in the transformation (optional).

  • stageThreshold – The maximum number of errors that can occur in the transformation before it errors out (optional). The default is zero.

  • totalThreshold – The maximum number of errors that can occur overall before processing errors out (optional). The default is zero.

apply(cls, *args, **kwargs)

Inherited from GlueTransform apply.


Inherited from GlueTransform name.


Inherited from GlueTransform describeArgs.


Inherited from GlueTransform describeReturn.


Inherited from GlueTransform describeTransform.


Inherited from GlueTransform describeErrors.


Inherited from GlueTransform describe.