Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

DynamicFrameCollection class

Focus mode
DynamicFrameCollection class - AWS Glue

A DynamicFrameCollection is a dictionary of DynamicFrame class objects, in which the keys are the names of the DynamicFrames and the values are the DynamicFrame objects.

__init__

__init__(dynamic_frames, glue_ctx)

Keys

keys( ) – Returns a list of the keys in this collection, which generally consists of the names of the corresponding DynamicFrame values.

Values

values(key) – Returns a list of the DynamicFrame values in this collection.

Select

select(key)

Returns the DynamicFrame that corresponds to the specfied key (which is generally the name of the DynamicFrame).

  • key – A key in the DynamicFrameCollection, which usually represents the name of a DynamicFrame.

Map

map(callable, transformation_ctx="")

Uses a passed-in function to create and return a new DynamicFrameCollection based on the DynamicFrames in this collection.

  • callable – A function that takes a DynamicFrame and the specified transformation context as parameters and returns a DynamicFrame.

  • transformation_ctx – A transformation context to be used by the callable (optional).

Flatmap

flatmap(f, transformation_ctx="")

Uses a passed-in function to create and return a new DynamicFrameCollection based on the DynamicFrames in this collection.

  • f – A function that takes a DynamicFrame as a parameter and returns a DynamicFrame or DynamicFrameCollection.

  • transformation_ctx – A transformation context to be used by the function (optional).

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.