View a markdown version of this page

Reading from Bitbucket entities - AWS Glue

Reading from Bitbucket entities

Prerequisites

A Bitbucket object you want to read from. For the available entities, see the following supported entities table.

Supported entities for source

EntityCan be filteredSupports limitSupports select *Supports order bySupports partitioning
branchesNoYesYesNoNo
commitsNoYesYesNoNo
default-reviewersNoYesYesNoNo
deploymentsNoYesYesNoNo
environmentsNoYesYesNoNo
membersNoYesYesNoNo
pipelinesNoYesYesNoNo
projectsNoYesYesNoNo
pull-request-activityNoYesYesNoNo
pull-requestsYesYesYesNoNo
repositoriesYesYesYesNoNo
tagsNoYesYesNoNo
user-workspacesNoYesYesNoNo
watchersNoYesYesNoNo
workspace-permissionsNoYesYesNoNo
Example – Reading from a Bitbucket entity

The following Python example reads the branches entity of one repository. Replace connectionName with the name of your Bitbucket connection, workspace with the workspace slug, and repoSlug with the repository slug:

read_df = glueContext.create_dynamic_frame.from_options( connection_type="bitbucket", connection_options={ "connectionName": "connectionName", "ENTITY_NAME": "branches/workspace/repoSlug" } )