AWS Glue

2026/11/29 - AWS Glue - 6 new 48 updated api methods

Changes  This release adds support for data lineage in AWS Glue, support for managing operational system tables for Glue ETL, support for synchronizing federated catalog metadata with AWS Glue Data Catalog using the configured connection and support for the new auto-discovery APIs for the Glue Data Catalog.

PostLineageEvent (new) Link ¶

Publishes a lineage event to the Glue Data Catalog. The event describes a run and the datasets that it reads and writes. Glue uses the event to build the lineage graph that you retrieve with GetLineageNode.

See also: AWS API Documentation

Request Syntax

client.post_lineage_event(
    Event='string'
)
type Event:

string

param Event:

[REQUIRED]

The lineage event that you want to post, in OpenLineage format. Supported event types are run events and dataset events.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

    The response of the PostLineageEvent operation. The operation returns no data.

UpdateSystemTable (new) Link ¶

Updates the status of a single Glue system table for the account in the current Region. Provisioning happens asynchronously; use GetSystemTable to retrieve the resulting state of the table.

See also: AWS API Documentation

Request Syntax

client.update_system_table(
    SystemTableType='string',
    Action='string',
    EncryptionConfiguration={
        'EncryptionType': 'string',
        'KmsKeyArn': 'string'
    },
    AdditionalConfiguration={
        'string': 'string'
    }
)
type SystemTableType:

string

param SystemTableType:

[REQUIRED]

The type of the system table to update. Valid values are GLUE_JOB_RUNS and GLUE_SESSIONS.

type Action:

string

param Action:

[REQUIRED]

The action to perform on the system table. Valid values are ENABLE and DISABLE.

type EncryptionConfiguration:

dict

param EncryptionConfiguration:

The encryption configuration to apply to the system table. This field is valid only when Action is ENABLE. If you don't specify it, the table is encrypted using SSE_S3.

  • EncryptionType (string) -- [REQUIRED]

    The type of encryption to use for the system table. Valid values are SSE_S3 and SSE_KMS.

  • KmsKeyArn (string) --

    The Amazon Resource Name (ARN) of the KMS key used to encrypt the system table. This field is required when EncryptionType is SSE_KMS, and must not be specified when EncryptionType is SSE_S3.

type AdditionalConfiguration:

dict

param AdditionalConfiguration:

A map of additional configuration properties to apply to the system table.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

PutCatalogDiscovery (new) Link ¶

Turns business context and search on or off for the Glue Data Catalog in your account. Set Mode to OPTED_IN to turn it on, or to OPTED_OUT to turn it off.

A call with the mode that is already set has no effect, unless the last change failed. In that case the call runs the change again. If an earlier change is still in progress, the call fails with a ConflictException.

See also: AWS API Documentation

Request Syntax

client.put_catalog_discovery(
    Mode='OPTED_IN'|'OPTED_OUT'
)
type Mode:

string

param Mode:

The catalog discovery mode to set. Valid values are OPTED_IN and OPTED_OUT. This field is required.

rtype:

dict

returns:

Response Syntax

{
    'Mode': 'OPTED_IN'|'OPTED_OUT',
    'Errors': [
        {
            'ErrorCode': 'string',
            'ErrorMessage': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    The catalog discovery mode returned by the PutCatalogDiscovery operation.

    • Mode (string) --

      The catalog discovery mode that is set.

    • Errors (list) --

      The problems that occurred while Glue set up the change and that you can fix, such as a missing permission. The mode is still set. After you fix a problem, call PutCatalogDiscovery again with the same mode to run the setup again. The list is empty when nothing failed.

      • (dict) --

        A problem with a change to the catalog discovery mode.

        • ErrorCode (string) --

          The code that identifies the problem.

        • ErrorMessage (string) --

          A description of the problem.

GetCatalogDiscovery (new) Link ¶

Retrieves the catalog discovery mode for the Glue Data Catalog in your account, and any problems with the last change to it.

See also: AWS API Documentation

Request Syntax

client.get_catalog_discovery()
rtype:

dict

returns:

Response Syntax

{
    'Mode': 'OPTED_IN'|'OPTED_OUT',
    'Errors': [
        {
            'ErrorCode': 'string',
            'ErrorMessage': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    The catalog discovery mode returned by the GetCatalogDiscovery operation.

    • Mode (string) --

      Whether business context and search is turned on for the Data Catalog. Valid values are OPTED_IN and OPTED_OUT.

    • Errors (list) --

      The problems with the last change to the catalog discovery mode. This includes the work that Glue runs in the background after the change. The list is empty when nothing failed.

      • (dict) --

        A problem with a change to the catalog discovery mode.

        • ErrorCode (string) --

          The code that identifies the problem.

        • ErrorMessage (string) --

          A description of the problem.

GetLineageNode (new) Link ¶

Retrieves a lineage node from the Glue Data Catalog, with the nodes immediately upstream and downstream of it. A node represents one dataset or one run in the lineage graph.

See also: AWS API Documentation

Request Syntax

client.get_lineage_node(
    Identifier='string'
)
type Identifier:

string

param Identifier:

[REQUIRED]

The identifier of the lineage node that you want to get. Both a lineage node identifier and the SourceIdentifier of the lineage node are supported.

rtype:

dict

returns:

Response Syntax

{
    'Id': 'string',
    'TypeName': 'string',
    'SourceIdentifier': 'string',
    'EventTimestamp': datetime(2015, 1, 1),
    'Name': 'string',
    'Description': 'string',
    'UpstreamNodes': [
        {
            'Id': 'string'
        },
    ],
    'DownstreamNodes': [
        {
            'Id': 'string'
        },
    ],
    'FormsOutput': [
        {
            'TypeName': 'string',
            'Content': 'string'
        },
    ]
}

Response Structure

  • (dict) --

    The lineage node returned by the GetLineageNode operation.

    • Id (string) --

      The ID of the lineage node.

    • TypeName (string) --

      The name of the type of the specified lineage node.

    • SourceIdentifier (string) --

      The source identifier of the lineage node, such as the ARN of a Data Catalog table.

    • EventTimestamp (datetime) --

      The timestamp of the event described in the lineage node.

    • Name (string) --

      The name of the lineage node.

    • Description (string) --

      The description of the lineage node.

    • UpstreamNodes (list) --

      The upstream nodes of the specified lineage node.

      • (dict) --

        A reference to a lineage node, returned in the upstream and downstream node lists. Use its ID with GetLineageNode to retrieve the full node.

        • Id (string) --

          The ID of the referenced lineage node.

    • DownstreamNodes (list) --

      The downstream nodes of the specified lineage node.

      • (dict) --

        A reference to a lineage node, returned in the upstream and downstream node lists. Use its ID with GetLineageNode to retrieve the full node.

        • Id (string) --

          The ID of the referenced lineage node.

    • FormsOutput (list) --

      The metadata of the specified lineage node, as a list of forms.

      • (dict) --

        The details of a metadata form on a lineage node.

        • TypeName (string) --

          The name of the metadata form type.

        • Content (string) --

          The content of the metadata form, as a JSON string.

GetSystemTable (new) Link ¶

Retrieves the status and configuration of a single Glue system table for the account in the current Region.

See also: AWS API Documentation

Request Syntax

client.get_system_table(
    SystemTableType='string'
)
type SystemTableType:

string

param SystemTableType:

[REQUIRED]

The type of the system table to retrieve. Valid values are GLUE_JOB_RUNS and GLUE_SESSIONS.

rtype:

dict

returns:

Response Syntax

{
    'SystemTableType': 'string',
    'Status': 'string',
    'TableArn': 'string',
    'StatusDetails': 'string',
    'EncryptionConfiguration': {
        'EncryptionType': 'string',
        'KmsKeyArn': 'string'
    },
    'AdditionalConfiguration': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • SystemTableType (string) --

      The type of the system table.

    • Status (string) --

      The current status of the system table. Valid values are:

      • ENABLED – The table has been enabled, but provisioning has not yet started.

      • IN_PROGRESS – The table is being provisioned.

      • ACTIVE – The table is provisioned and data is being published to it.

      • FAILED – Provisioning failed. See StatusDetails for the reason.

      • INACTIVE – The table is no longer receiving data.

    • TableArn (string) --

      The Amazon Resource Name (ARN) of the system table. This field is not returned until the table has been provisioned.

    • StatusDetails (string) --

      Additional details about the status of the system table, such as the reason for a FAILED status.

    • EncryptionConfiguration (dict) --

      The encryption configuration of the system table.

      • EncryptionType (string) --

        The type of encryption to use for the system table. Valid values are SSE_S3 and SSE_KMS.

      • KmsKeyArn (string) --

        The Amazon Resource Name (ARN) of the KMS key used to encrypt the system table. This field is required when EncryptionType is SSE_KMS, and must not be specified when EncryptionType is SSE_S3.

    • AdditionalConfiguration (dict) --

      A map of additional configuration properties for the system table.

      • (string) --

        • (string) --

BatchGetCrawlers (updated) Link ¶
Changes (response)
{'Crawlers': {'Targets': {'LineageTargets': [{'ConnectionName': 'string'}]}}}

Returns a list of resource metadata for a given list of crawler names. After calling the ListCrawlers operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

See also: AWS API Documentation

Request Syntax

client.batch_get_crawlers(
    CrawlerNames=[
        'string',
    ]
)
type CrawlerNames:

list

param CrawlerNames:

[REQUIRED]

A list of crawler names, which might be the names returned from the ListCrawlers operation.

  • (string) --

rtype:

dict

returns:

Response Syntax

{
    'Crawlers': [
        {
            'Name': 'string',
            'Role': 'string',
            'Targets': {
                'S3Targets': [
                    {
                        'Path': 'string',
                        'Exclusions': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'SampleSize': 123,
                        'EventQueueArn': 'string',
                        'DlqEventQueueArn': 'string'
                    },
                ],
                'JdbcTargets': [
                    {
                        'ConnectionName': 'string',
                        'Path': 'string',
                        'Exclusions': [
                            'string',
                        ],
                        'EnableAdditionalMetadata': [
                            'COMMENTS'|'RAWTYPES',
                        ]
                    },
                ],
                'MongoDBTargets': [
                    {
                        'ConnectionName': 'string',
                        'Path': 'string',
                        'ScanAll': True|False
                    },
                ],
                'DynamoDBTargets': [
                    {
                        'Path': 'string',
                        'scanAll': True|False,
                        'scanRate': 123.0
                    },
                ],
                'CatalogTargets': [
                    {
                        'DatabaseName': 'string',
                        'Tables': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'EventQueueArn': 'string',
                        'DlqEventQueueArn': 'string'
                    },
                ],
                'DeltaTargets': [
                    {
                        'DeltaTables': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'WriteManifest': True|False,
                        'CreateNativeDeltaTable': True|False
                    },
                ],
                'IcebergTargets': [
                    {
                        'Paths': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'Exclusions': [
                            'string',
                        ],
                        'MaximumTraversalDepth': 123
                    },
                ],
                'HudiTargets': [
                    {
                        'Paths': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'Exclusions': [
                            'string',
                        ],
                        'MaximumTraversalDepth': 123
                    },
                ],
                'LineageTargets': [
                    {
                        'ConnectionName': 'string'
                    },
                ]
            },
            'DatabaseName': 'string',
            'Description': 'string',
            'Classifiers': [
                'string',
            ],
            'RecrawlPolicy': {
                'RecrawlBehavior': 'CRAWL_EVERYTHING'|'CRAWL_NEW_FOLDERS_ONLY'|'CRAWL_EVENT_MODE'
            },
            'SchemaChangePolicy': {
                'UpdateBehavior': 'LOG'|'UPDATE_IN_DATABASE',
                'DeleteBehavior': 'LOG'|'DELETE_FROM_DATABASE'|'DEPRECATE_IN_DATABASE'
            },
            'LineageConfiguration': {
                'CrawlerLineageSettings': 'ENABLE'|'DISABLE'
            },
            'State': 'READY'|'RUNNING'|'STOPPING',
            'TablePrefix': 'string',
            'Schedule': {
                'ScheduleExpression': 'string',
                'State': 'SCHEDULED'|'NOT_SCHEDULED'|'TRANSITIONING'
            },
            'CrawlElapsedTime': 123,
            'CreationTime': datetime(2015, 1, 1),
            'LastUpdated': datetime(2015, 1, 1),
            'LastCrawl': {
                'Status': 'SUCCEEDED'|'CANCELLED'|'FAILED',
                'ErrorMessage': 'string',
                'LogGroup': 'string',
                'LogStream': 'string',
                'MessagePrefix': 'string',
                'StartTime': datetime(2015, 1, 1)
            },
            'Version': 123,
            'Configuration': 'string',
            'CrawlerSecurityConfiguration': 'string',
            'LakeFormationConfiguration': {
                'UseLakeFormationCredentials': True|False,
                'AccountId': 'string'
            },
            'CatalogId': 'string'
        },
    ],
    'CrawlersNotFound': [
        'string',
    ]
}

Response Structure

  • (dict) --

    • Crawlers (list) --

      A list of crawler definitions.

      • (dict) --

        Specifies a crawler program that examines a data source and uses classifiers to try to determine its schema. If successful, the crawler records metadata concerning the data source in the Glue Data Catalog.

        • Name (string) --

          The name of the crawler.

        • Role (string) --

          The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.

        • Targets (dict) --

          A collection of targets to crawl.

          • S3Targets (list) --

            Specifies Amazon Simple Storage Service (Amazon S3) targets.

            • (dict) --

              Specifies a data store in Amazon Simple Storage Service (Amazon S3).

              • Path (string) --

                The path to the Amazon S3 target.

              • Exclusions (list) --

                A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

                • (string) --

              • ConnectionName (string) --

                The name of a connection which allows a job or crawler to access data in Amazon S3 within an Amazon Virtual Private Cloud environment (Amazon VPC).

              • SampleSize (integer) --

                Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.

              • EventQueueArn (string) --

                A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

              • DlqEventQueueArn (string) --

                A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

          • JdbcTargets (list) --

            Specifies JDBC targets.

            • (dict) --

              Specifies a JDBC data store to crawl.

              • ConnectionName (string) --

                The name of the connection to use to connect to the JDBC target.

              • Path (string) --

                The path of the JDBC target.

              • Exclusions (list) --

                A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

                • (string) --

              • EnableAdditionalMetadata (list) --

                Specify a value of RAWTYPES or COMMENTS to enable additional metadata in table responses. RAWTYPES provides the native-level datatype. COMMENTS provides comments associated with a column or table in the database.

                If you do not need additional metadata, keep the field empty.

                • (string) --

          • MongoDBTargets (list) --

            Specifies Amazon DocumentDB or MongoDB targets.

            • (dict) --

              Specifies an Amazon DocumentDB or MongoDB data store to crawl.

              • ConnectionName (string) --

                The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.

              • Path (string) --

                The path of the Amazon DocumentDB or MongoDB target (database/collection).

              • ScanAll (boolean) --

                Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

                A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

          • DynamoDBTargets (list) --

            Specifies Amazon DynamoDB targets.

            • (dict) --

              Specifies an Amazon DynamoDB table to crawl.

              • Path (string) --

                The name of the DynamoDB table to crawl.

              • scanAll (boolean) --

                Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

                A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

              • scanRate (float) --

                The percentage of the configured read capacity units to use by the Glue crawler. Read capacity units is a term defined by DynamoDB, and is a numeric value that acts as rate limiter for the number of reads that can be performed on that table per second.

                The valid values are null or a value between 0.1 to 1.5. A null value is used when user does not provide a value, and defaults to 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of the max configured Read Capacity Unit (for tables using on-demand mode).

          • CatalogTargets (list) --

            Specifies Glue Data Catalog targets.

            • (dict) --

              Specifies an Glue Data Catalog target.

              • DatabaseName (string) --

                The name of the database to be synchronized.

              • Tables (list) --

                A list of the tables to be synchronized.

                • (string) --

              • ConnectionName (string) --

                The name of the connection for an Amazon S3-backed Data Catalog table to be a target of the crawl when using a Catalog connection type paired with a NETWORK Connection type.

              • EventQueueArn (string) --

                A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

              • DlqEventQueueArn (string) --

                A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

          • DeltaTargets (list) --

            Specifies Delta data store targets.

            • (dict) --

              Specifies a Delta data store to crawl one or more Delta tables.

              • DeltaTables (list) --

                A list of the Amazon S3 paths to the Delta tables.

                • (string) --

              • ConnectionName (string) --

                The name of the connection to use to connect to the Delta table target.

              • WriteManifest (boolean) --

                Specifies whether to write the manifest files to the Delta table path.

              • CreateNativeDeltaTable (boolean) --

                Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly.

          • IcebergTargets (list) --

            Specifies Apache Iceberg data store targets.

            • (dict) --

              Specifies an Apache Iceberg data source where Iceberg tables are stored in Amazon S3.

              • Paths (list) --

                One or more Amazon S3 paths that contains Iceberg metadata folders as s3://bucket/prefix.

                • (string) --

              • ConnectionName (string) --

                The name of the connection to use to connect to the Iceberg target.

              • Exclusions (list) --

                A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

                • (string) --

              • MaximumTraversalDepth (integer) --

                The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Iceberg metadata folder in your Amazon S3 path. Used to limit the crawler run time.

          • HudiTargets (list) --

            Specifies Apache Hudi data store targets.

            • (dict) --

              Specifies an Apache Hudi data source.

              • Paths (list) --

                An array of Amazon S3 location strings for Hudi, each indicating the root folder with which the metadata files for a Hudi table resides. The Hudi folder may be located in a child folder of the root folder.

                The crawler will scan all folders underneath a path for a Hudi folder.

                • (string) --

              • ConnectionName (string) --

                The name of the connection to use to connect to the Hudi target. If your Hudi files are stored in buckets that require VPC authorization, you can set their connection properties here.

              • Exclusions (list) --

                A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

                • (string) --

              • MaximumTraversalDepth (integer) --

                The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Hudi metadata folder in your Amazon S3 path. Used to limit the crawler run time.

          • LineageTargets (list) --

            Specifies lineage targets.

            • (dict) --

              Specifies a lineage source from which the crawler synchronizes lineage.

              • ConnectionName (string) --

                The name of the connection to use to connect to the lineage source.

        • DatabaseName (string) --

          The name of the database in which the crawler's output is stored.

        • Description (string) --

          A description of the crawler.

        • Classifiers (list) --

          A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.

          • (string) --

        • RecrawlPolicy (dict) --

          A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.

          • RecrawlBehavior (string) --

            Specifies whether to crawl the entire dataset again or to crawl only folders that were added since the last crawler run.

            A value of CRAWL_EVERYTHING specifies crawling the entire dataset again.

            A value of CRAWL_NEW_FOLDERS_ONLY specifies crawling only folders that were added since the last crawler run.

            A value of CRAWL_EVENT_MODE specifies crawling only the changes identified by Amazon S3 events.

        • SchemaChangePolicy (dict) --

          The policy that specifies update and delete behaviors for the crawler.

          • UpdateBehavior (string) --

            The update behavior when the crawler finds a changed schema.

          • DeleteBehavior (string) --

            The deletion behavior when the crawler finds a deleted object.

        • LineageConfiguration (dict) --

          A configuration that specifies whether data lineage is enabled for the crawler.

          • CrawlerLineageSettings (string) --

            Specifies whether data lineage is enabled for the crawler. Valid values are:

            • ENABLE: enables data lineage for the crawler

            • DISABLE: disables data lineage for the crawler

        • State (string) --

          Indicates whether the crawler is running, or whether a run is pending.

        • TablePrefix (string) --

          The prefix added to the names of tables that are created.

        • Schedule (dict) --

          For scheduled crawlers, the schedule when the crawler runs.

          • ScheduleExpression (string) --

            A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

          • State (string) --

            The state of the schedule.

        • CrawlElapsedTime (integer) --

          If the crawler is running, contains the total time elapsed since the last crawl began.

        • CreationTime (datetime) --

          The time that the crawler was created.

        • LastUpdated (datetime) --

          The time that the crawler was last updated.

        • LastCrawl (dict) --

          The status of the last crawl, and potentially error information if an error occurred.

          • Status (string) --

            Status of the last crawl.

          • ErrorMessage (string) --

            If an error occurred, the error information about the last crawl.

          • LogGroup (string) --

            The log group for the last crawl.

          • LogStream (string) --

            The log stream for the last crawl.

          • MessagePrefix (string) --

            The prefix for a message about this crawl.

          • StartTime (datetime) --

            The time at which the crawl started.

        • Version (integer) --

          The version of the crawler.

        • Configuration (string) --

          Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.

        • CrawlerSecurityConfiguration (string) --

          The name of the SecurityConfiguration structure to be used by this crawler.

        • LakeFormationConfiguration (dict) --

          Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.

          • UseLakeFormationCredentials (boolean) --

            Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials.

          • AccountId (string) --

            Required for cross account crawls. For same account crawls as the target data, this can be left as null.

        • CatalogId (string) --

          The ID of the Data Catalog in which the crawler's output is stored.

    • CrawlersNotFound (list) --

      A list of names of crawlers that were not found.

      • (string) --

BatchGetDevEndpoints (updated) Link ¶
Changes (response)
{'DevEndpoints': {'WorkerType': {'G.12X.GRAVITON',
                                 'G.16X.GRAVITON',
                                 'G.1X.GRAVITON',
                                 'G.2X.GRAVITON',
                                 'G.4X.GRAVITON',
                                 'G.8X.GRAVITON',
                                 'R.1X.GRAVITON',
                                 'R.2X.GRAVITON',
                                 'R.4X.GRAVITON',
                                 'R.8X.GRAVITON'}}}

Returns a list of resource metadata for a given list of development endpoint names. After calling the ListDevEndpoints operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

See also: AWS API Documentation

Request Syntax

client.batch_get_dev_endpoints(
    DevEndpointNames=[
        'string',
    ]
)
type DevEndpointNames:

list

param DevEndpointNames:

[REQUIRED]

The list of DevEndpoint names, which might be the names returned from the ListDevEndpoint operation.

  • (string) --

rtype:

dict

returns:

Response Syntax

{
    'DevEndpoints': [
        {
            'EndpointName': 'string',
            'RoleArn': 'string',
            'SecurityGroupIds': [
                'string',
            ],
            'SubnetId': 'string',
            'YarnEndpointAddress': 'string',
            'PrivateAddress': 'string',
            'ZeppelinRemoteSparkInterpreterPort': 123,
            'PublicAddress': 'string',
            'Status': 'string',
            'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
            'GlueVersion': 'string',
            'NumberOfWorkers': 123,
            'NumberOfNodes': 123,
            'AvailabilityZone': 'string',
            'VpcId': 'string',
            'ExtraPythonLibsS3Path': 'string',
            'ExtraJarsS3Path': 'string',
            'FailureReason': 'string',
            'LastUpdateStatus': 'string',
            'CreatedTimestamp': datetime(2015, 1, 1),
            'LastModifiedTimestamp': datetime(2015, 1, 1),
            'PublicKey': 'string',
            'PublicKeys': [
                'string',
            ],
            'SecurityConfiguration': 'string',
            'Arguments': {
                'string': 'string'
            }
        },
    ],
    'DevEndpointsNotFound': [
        'string',
    ]
}

Response Structure

  • (dict) --

    • DevEndpoints (list) --

      A list of DevEndpoint definitions.

      • (dict) --

        A development endpoint where a developer can remotely debug extract, transform, and load (ETL) scripts.

        • EndpointName (string) --

          The name of the DevEndpoint.

        • RoleArn (string) --

          The Amazon Resource Name (ARN) of the IAM role used in this DevEndpoint.

        • SecurityGroupIds (list) --

          A list of security group identifiers used in this DevEndpoint.

          • (string) --

        • SubnetId (string) --

          The subnet ID for this DevEndpoint.

        • YarnEndpointAddress (string) --

          The YARN endpoint address used by this DevEndpoint.

        • PrivateAddress (string) --

          A private IP address to access the DevEndpoint within a VPC if the DevEndpoint is created within one. The PrivateAddress field is present only when you create the DevEndpoint within your VPC.

        • ZeppelinRemoteSparkInterpreterPort (integer) --

          The Apache Zeppelin port for the remote Apache Spark interpreter.

        • PublicAddress (string) --

          The public IP address used by this DevEndpoint. The PublicAddress field is present only when you create a non-virtual private cloud (VPC) DevEndpoint.

        • Status (string) --

          The current status of this DevEndpoint.

        • WorkerType (string) --

          The type of predefined worker that is allocated to the development endpoint. Accepts a value of Standard, G.1X, or G.2X.

          • For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.

          • For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.

          • For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.

          Known issue: when a development endpoint is created with the G.2X WorkerType configuration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk.

        • GlueVersion (string) --

          Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.

          For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

          Development endpoints that are created without specifying a Glue version default to Glue 0.9.

          You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

        • NumberOfWorkers (integer) --

          The number of workers of a defined workerType that are allocated to the development endpoint.

          The maximum number of workers you can define are 299 for G.1X, and 149 for G.2X.

        • NumberOfNodes (integer) --

          The number of Glue Data Processing Units (DPUs) allocated to this DevEndpoint.

        • AvailabilityZone (string) --

          The Amazon Web Services Availability Zone where this DevEndpoint is located.

        • VpcId (string) --

          The ID of the virtual private cloud (VPC) used by this DevEndpoint.

        • ExtraPythonLibsS3Path (string) --

          The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma.

        • ExtraJarsS3Path (string) --

          The path to one or more Java .jar files in an S3 bucket that should be loaded in your DevEndpoint.

        • FailureReason (string) --

          The reason for a current failure in this DevEndpoint.

        • LastUpdateStatus (string) --

          The status of the last update.

        • CreatedTimestamp (datetime) --

          The point in time at which this DevEndpoint was created.

        • LastModifiedTimestamp (datetime) --

          The point in time at which this DevEndpoint was last modified.

        • PublicKey (string) --

          The public key to be used by this DevEndpoint for authentication. This attribute is provided for backward compatibility because the recommended attribute to use is public keys.

        • PublicKeys (list) --

          A list of public keys to be used by the DevEndpoints for authentication. Using this attribute is preferred over a single public key because the public keys allow you to have a different private key per client.

          • (string) --

        • SecurityConfiguration (string) --

          The name of the SecurityConfiguration structure to be used with this DevEndpoint.

        • Arguments (dict) --

          A map of arguments used to configure the DevEndpoint.

          Valid arguments are:

          • "--enable-glue-datacatalog": ""

          You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

          • (string) --

            • (string) --

    • DevEndpointsNotFound (list) --

      A list of DevEndpoints not found.

      • (string) --

BatchGetJobs (updated) Link ¶
Changes (response)
{'Jobs': {'WorkerType': {'G.12X.GRAVITON',
                         'G.16X.GRAVITON',
                         'G.1X.GRAVITON',
                         'G.2X.GRAVITON',
                         'G.4X.GRAVITON',
                         'G.8X.GRAVITON',
                         'R.1X.GRAVITON',
                         'R.2X.GRAVITON',
                         'R.4X.GRAVITON',
                         'R.8X.GRAVITON'}}}

Returns a list of resource metadata for a given list of job names. After calling the ListJobs operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

See also: AWS API Documentation

Request Syntax

client.batch_get_jobs(
    JobNames=[
        'string',
    ]
)
type JobNames:

list

param JobNames:

[REQUIRED]

A list of job names, which might be the names returned from the ListJobs operation.

  • (string) --

rtype:

dict

returns:

Response Syntax

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

Response Structure

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

BatchGetWorkflows (updated) Link ¶
Changes (response)
{'Workflows': {'Graph': {'Nodes': {'JobDetails': {'JobRuns': {'WorkerType': {'G.12X.GRAVITON',
                                                                             'G.16X.GRAVITON',
                                                                             'G.1X.GRAVITON',
                                                                             'G.2X.GRAVITON',
                                                                             'G.4X.GRAVITON',
                                                                             'G.8X.GRAVITON',
                                                                             'R.1X.GRAVITON',
                                                                             'R.2X.GRAVITON',
                                                                             'R.4X.GRAVITON',
                                                                             'R.8X.GRAVITON'}}}}},
               'LastRun': {'Graph': {'Nodes': {'JobDetails': {'JobRuns': {'WorkerType': {'G.12X.GRAVITON',
                                                                                         'G.16X.GRAVITON',
                                                                                         'G.1X.GRAVITON',
                                                                                         'G.2X.GRAVITON',
                                                                                         'G.4X.GRAVITON',
                                                                                         'G.8X.GRAVITON',
                                                                                         'R.1X.GRAVITON',
                                                                                         'R.2X.GRAVITON',
                                                                                         'R.4X.GRAVITON',
                                                                                         'R.8X.GRAVITON'}}}}}}}}

Returns a list of resource metadata for a given list of workflow names. After calling the ListWorkflows operation, you can call this operation to access the data to which you have been granted permissions. This operation supports all IAM permissions, including permission conditions that uses tags.

See also: AWS API Documentation

Request Syntax

client.batch_get_workflows(
    Names=[
        'string',
    ],
    IncludeGraph=True|False
)
type Names:

list

param Names:

[REQUIRED]

A list of workflow names, which may be the names returned from the ListWorkflows operation.

  • (string) --

type IncludeGraph:

boolean

param IncludeGraph:

Specifies whether to include a graph when returning the workflow resource metadata.

rtype:

dict

returns:

Response Syntax

{
    'Workflows': [
        {
            'Name': 'string',
            'Description': 'string',
            'DefaultRunProperties': {
                'string': 'string'
            },
            'CreatedOn': datetime(2015, 1, 1),
            'LastModifiedOn': datetime(2015, 1, 1),
            'LastRun': {
                'Name': 'string',
                'WorkflowRunId': 'string',
                'PreviousRunId': 'string',
                'WorkflowRunProperties': {
                    'string': 'string'
                },
                'StartedOn': datetime(2015, 1, 1),
                'CompletedOn': datetime(2015, 1, 1),
                'Status': 'RUNNING'|'COMPLETED'|'STOPPING'|'STOPPED'|'ERROR',
                'ErrorMessage': 'string',
                'Statistics': {
                    'TotalActions': 123,
                    'TimeoutActions': 123,
                    'FailedActions': 123,
                    'StoppedActions': 123,
                    'SucceededActions': 123,
                    'RunningActions': 123,
                    'ErroredActions': 123,
                    'WaitingActions': 123
                },
                'Graph': {
                    'Nodes': [
                        {
                            'Type': 'CRAWLER'|'JOB'|'TRIGGER',
                            'Name': 'string',
                            'UniqueId': 'string',
                            'TriggerDetails': {
                                'Trigger': {
                                    'Name': 'string',
                                    'WorkflowName': 'string',
                                    'Id': 'string',
                                    'Type': 'SCHEDULED'|'CONDITIONAL'|'ON_DEMAND'|'EVENT',
                                    'State': 'CREATING'|'CREATED'|'ACTIVATING'|'ACTIVATED'|'DEACTIVATING'|'DEACTIVATED'|'DELETING'|'UPDATING',
                                    'Description': 'string',
                                    'Schedule': 'string',
                                    'Actions': [
                                        {
                                            'JobName': 'string',
                                            'Arguments': {
                                                'string': 'string'
                                            },
                                            'Timeout': 123,
                                            'SecurityConfiguration': 'string',
                                            'NotificationProperty': {
                                                'NotifyDelayAfter': 123
                                            },
                                            'CrawlerName': 'string'
                                        },
                                    ],
                                    'Predicate': {
                                        'Logical': 'AND'|'ANY',
                                        'Conditions': [
                                            {
                                                'LogicalOperator': 'EQUALS',
                                                'JobName': 'string',
                                                'State': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                                'CrawlerName': 'string',
                                                'CrawlState': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR'
                                            },
                                        ]
                                    },
                                    'EventBatchingCondition': {
                                        'BatchSize': 123,
                                        'BatchWindow': 123
                                    }
                                }
                            },
                            'JobDetails': {
                                'JobRuns': [
                                    {
                                        'Id': 'string',
                                        'Attempt': 123,
                                        'PreviousRunId': 'string',
                                        'TriggerName': 'string',
                                        'JobName': 'string',
                                        'JobMode': 'SCRIPT'|'VISUAL'|'NOTEBOOK',
                                        'JobRunQueuingEnabled': True|False,
                                        'StartedOn': datetime(2015, 1, 1),
                                        'LastModifiedOn': datetime(2015, 1, 1),
                                        'CompletedOn': datetime(2015, 1, 1),
                                        'JobRunState': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                        'Arguments': {
                                            'string': 'string'
                                        },
                                        'ErrorMessage': 'string',
                                        'PredecessorRuns': [
                                            {
                                                'JobName': 'string',
                                                'RunId': 'string'
                                            },
                                        ],
                                        'AllocatedCapacity': 123,
                                        'ExecutionTime': 123,
                                        'Timeout': 123,
                                        'MaxCapacity': 123.0,
                                        'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
                                        'NumberOfWorkers': 123,
                                        'SecurityConfiguration': 'string',
                                        'LogGroupName': 'string',
                                        'NotificationProperty': {
                                            'NotifyDelayAfter': 123
                                        },
                                        'GlueVersion': 'string',
                                        'DPUSeconds': 123.0,
                                        'ExecutionClass': 'FLEX'|'STANDARD',
                                        'MaintenanceWindow': 'string',
                                        'ProfileName': 'string',
                                        'StateDetail': 'string',
                                        'ExecutionRoleSessionPolicy': 'string'
                                    },
                                ]
                            },
                            'CrawlerDetails': {
                                'Crawls': [
                                    {
                                        'State': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR',
                                        'StartedOn': datetime(2015, 1, 1),
                                        'CompletedOn': datetime(2015, 1, 1),
                                        'ErrorMessage': 'string',
                                        'LogGroup': 'string',
                                        'LogStream': 'string'
                                    },
                                ]
                            }
                        },
                    ],
                    'Edges': [
                        {
                            'SourceId': 'string',
                            'DestinationId': 'string'
                        },
                    ]
                },
                'StartingEventBatchCondition': {
                    'BatchSize': 123,
                    'BatchWindow': 123
                }
            },
            'Graph': {
                'Nodes': [
                    {
                        'Type': 'CRAWLER'|'JOB'|'TRIGGER',
                        'Name': 'string',
                        'UniqueId': 'string',
                        'TriggerDetails': {
                            'Trigger': {
                                'Name': 'string',
                                'WorkflowName': 'string',
                                'Id': 'string',
                                'Type': 'SCHEDULED'|'CONDITIONAL'|'ON_DEMAND'|'EVENT',
                                'State': 'CREATING'|'CREATED'|'ACTIVATING'|'ACTIVATED'|'DEACTIVATING'|'DEACTIVATED'|'DELETING'|'UPDATING',
                                'Description': 'string',
                                'Schedule': 'string',
                                'Actions': [
                                    {
                                        'JobName': 'string',
                                        'Arguments': {
                                            'string': 'string'
                                        },
                                        'Timeout': 123,
                                        'SecurityConfiguration': 'string',
                                        'NotificationProperty': {
                                            'NotifyDelayAfter': 123
                                        },
                                        'CrawlerName': 'string'
                                    },
                                ],
                                'Predicate': {
                                    'Logical': 'AND'|'ANY',
                                    'Conditions': [
                                        {
                                            'LogicalOperator': 'EQUALS',
                                            'JobName': 'string',
                                            'State': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                            'CrawlerName': 'string',
                                            'CrawlState': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR'
                                        },
                                    ]
                                },
                                'EventBatchingCondition': {
                                    'BatchSize': 123,
                                    'BatchWindow': 123
                                }
                            }
                        },
                        'JobDetails': {
                            'JobRuns': [
                                {
                                    'Id': 'string',
                                    'Attempt': 123,
                                    'PreviousRunId': 'string',
                                    'TriggerName': 'string',
                                    'JobName': 'string',
                                    'JobMode': 'SCRIPT'|'VISUAL'|'NOTEBOOK',
                                    'JobRunQueuingEnabled': True|False,
                                    'StartedOn': datetime(2015, 1, 1),
                                    'LastModifiedOn': datetime(2015, 1, 1),
                                    'CompletedOn': datetime(2015, 1, 1),
                                    'JobRunState': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                    'Arguments': {
                                        'string': 'string'
                                    },
                                    'ErrorMessage': 'string',
                                    'PredecessorRuns': [
                                        {
                                            'JobName': 'string',
                                            'RunId': 'string'
                                        },
                                    ],
                                    'AllocatedCapacity': 123,
                                    'ExecutionTime': 123,
                                    'Timeout': 123,
                                    'MaxCapacity': 123.0,
                                    'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
                                    'NumberOfWorkers': 123,
                                    'SecurityConfiguration': 'string',
                                    'LogGroupName': 'string',
                                    'NotificationProperty': {
                                        'NotifyDelayAfter': 123
                                    },
                                    'GlueVersion': 'string',
                                    'DPUSeconds': 123.0,
                                    'ExecutionClass': 'FLEX'|'STANDARD',
                                    'MaintenanceWindow': 'string',
                                    'ProfileName': 'string',
                                    'StateDetail': 'string',
                                    'ExecutionRoleSessionPolicy': 'string'
                                },
                            ]
                        },
                        'CrawlerDetails': {
                            'Crawls': [
                                {
                                    'State': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR',
                                    'StartedOn': datetime(2015, 1, 1),
                                    'CompletedOn': datetime(2015, 1, 1),
                                    'ErrorMessage': 'string',
                                    'LogGroup': 'string',
                                    'LogStream': 'string'
                                },
                            ]
                        }
                    },
                ],
                'Edges': [
                    {
                        'SourceId': 'string',
                        'DestinationId': 'string'
                    },
                ]
            },
            'MaxConcurrentRuns': 123,
            'BlueprintDetails': {
                'BlueprintName': 'string',
                'RunId': 'string'
            }
        },
    ],
    'MissingWorkflows': [
        'string',
    ]
}

Response Structure

  • (dict) --

    • Workflows (list) --

      A list of workflow resource metadata.

      • (dict) --

        A workflow is a collection of multiple dependent Glue jobs and crawlers that are run to complete a complex ETL task. A workflow manages the execution and monitoring of all its jobs and crawlers.

        • Name (string) --

          The name of the workflow.

        • Description (string) --

          A description of the workflow.

        • DefaultRunProperties (dict) --

          A collection of properties to be used as part of each execution of the workflow. The run properties are made available to each job in the workflow. A job can modify the properties for the next jobs in the flow.

          • (string) --

            • (string) --

        • CreatedOn (datetime) --

          The date and time when the workflow was created.

        • LastModifiedOn (datetime) --

          The date and time when the workflow was last modified.

        • LastRun (dict) --

          The information about the last execution of the workflow.

          • Name (string) --

            Name of the workflow that was run.

          • WorkflowRunId (string) --

            The ID of this workflow run.

          • PreviousRunId (string) --

            The ID of the previous workflow run.

          • WorkflowRunProperties (dict) --

            The workflow run properties which were set during the run.

            • (string) --

              • (string) --

          • StartedOn (datetime) --

            The date and time when the workflow run was started.

          • CompletedOn (datetime) --

            The date and time when the workflow run completed.

          • Status (string) --

            The status of the workflow run.

          • ErrorMessage (string) --

            This error message describes any error that may have occurred in starting the workflow run. Currently the only error message is "Concurrent runs exceeded for workflow: foo."

          • Statistics (dict) --

            The statistics of the run.

            • TotalActions (integer) --

              Total number of Actions in the workflow run.

            • TimeoutActions (integer) --

              Total number of Actions that timed out.

            • FailedActions (integer) --

              Total number of Actions that have failed.

            • StoppedActions (integer) --

              Total number of Actions that have stopped.

            • SucceededActions (integer) --

              Total number of Actions that have succeeded.

            • RunningActions (integer) --

              Total number Actions in running state.

            • ErroredActions (integer) --

              Indicates the count of job runs in the ERROR state in the workflow run.

            • WaitingActions (integer) --

              Indicates the count of job runs in WAITING state in the workflow run.

          • Graph (dict) --

            The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.

            • Nodes (list) --

              A list of the the Glue components belong to the workflow represented as nodes.

              • (dict) --

                A node represents an Glue component (trigger, crawler, or job) on a workflow graph.

                • Type (string) --

                  The type of Glue component represented by the node.

                • Name (string) --

                  The name of the Glue component represented by the node.

                • UniqueId (string) --

                  The unique Id assigned to the node within the workflow.

                • TriggerDetails (dict) --

                  Details of the Trigger when the node represents a Trigger.

                  • Trigger (dict) --

                    The information of the trigger represented by the trigger node.

                    • Name (string) --

                      The name of the trigger.

                    • WorkflowName (string) --

                      The name of the workflow associated with the trigger.

                    • Id (string) --

                      Reserved for future use.

                    • Type (string) --

                      The type of trigger that this is.

                    • State (string) --

                      The current state of the trigger.

                    • Description (string) --

                      A description of this trigger.

                    • Schedule (string) --

                      A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

                    • Actions (list) --

                      The actions initiated by this trigger.

                      • (dict) --

                        Defines an action to be initiated by a trigger.

                        • JobName (string) --

                          The name of a job to be run.

                        • Arguments (dict) --

                          The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.

                          You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                          For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                          For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

                          • (string) --

                            • (string) --

                        • Timeout (integer) --

                          The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This overrides the timeout value set in the parent job.

                          Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                          When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                          Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                          For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                        • SecurityConfiguration (string) --

                          The name of the SecurityConfiguration structure to be used with this action.

                        • NotificationProperty (dict) --

                          Specifies configuration properties of a job run notification.

                          • NotifyDelayAfter (integer) --

                            After a job run starts, the number of minutes to wait before sending a job run delay notification.

                        • CrawlerName (string) --

                          The name of the crawler to be used with this action.

                    • Predicate (dict) --

                      The predicate of this trigger, which defines when it will fire.

                      • Logical (string) --

                        An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.

                      • Conditions (list) --

                        A list of the conditions that determine when the trigger will fire.

                        • (dict) --

                          Defines a condition under which a trigger fires.

                          • LogicalOperator (string) --

                            A logical operator.

                          • JobName (string) --

                            The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

                          • State (string) --

                            The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

                          • CrawlerName (string) --

                            The name of the crawler to which this condition applies.

                          • CrawlState (string) --

                            The state of the crawler to which this condition applies.

                    • EventBatchingCondition (dict) --

                      Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

                      • BatchSize (integer) --

                        Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.

                      • BatchWindow (integer) --

                        Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received.

                • JobDetails (dict) --

                  Details of the Job when the node represents a Job.

                  • JobRuns (list) --

                    The information for the job runs represented by the job node.

                    • (dict) --

                      Contains information about a job run.

                      • Id (string) --

                        The ID of this job run.

                      • Attempt (integer) --

                        The number of the attempt to run this job.

                      • PreviousRunId (string) --

                        The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.

                      • TriggerName (string) --

                        The name of the trigger that started this job run.

                      • JobName (string) --

                        The name of the job definition being used in this run.

                      • JobMode (string) --

                        A mode that describes how a job was created. Valid values are:

                        • SCRIPT - The job was created using the Glue Studio script editor.

                        • VISUAL - The job was created using the Glue Studio visual editor.

                        • NOTEBOOK - The job was created using an interactive sessions notebook.

                        When the JobMode field is missing or null, SCRIPT is assigned as the default value.

                      • JobRunQueuingEnabled (boolean) --

                        Specifies whether job run queuing is enabled for the job run.

                        A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.

                      • StartedOn (datetime) --

                        The date and time at which this job run was started.

                      • LastModifiedOn (datetime) --

                        The last time that this job run was modified.

                      • CompletedOn (datetime) --

                        The date and time that this job run completed.

                      • JobRunState (string) --

                        The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.

                      • Arguments (dict) --

                        The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.

                        You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                        Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

                        For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                        For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.

                        For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.

                        • (string) --

                          • (string) --

                      • ErrorMessage (string) --

                        An error message associated with this job run.

                      • PredecessorRuns (list) --

                        A list of predecessors to this job run.

                        • (dict) --

                          A job run that was used in the predicate of a conditional trigger that triggered this job run.

                          • JobName (string) --

                            The name of the job definition used by the predecessor job run.

                          • RunId (string) --

                            The job-run ID of the predecessor job run.

                      • AllocatedCapacity (integer) --

                        This field is deprecated. Use MaxCapacity instead.

                        The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                      • ExecutionTime (integer) --

                        The amount of time (in seconds) that the job run consumed resources.

                      • Timeout (integer) --

                        The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

                        Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                        When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                        Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                        For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                      • MaxCapacity (float) --

                        For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                        For Glue version 2.0+ jobs, you cannot specify a Maximum capacity. Instead, you should specify a Worker type and the Number of workers.

                        Do not set MaxCapacity if using WorkerType and NumberOfWorkers.

                        The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:

                        • When you specify a Python shell job ( ``JobCommand.Name``="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.

                        • When you specify an Apache Spark ETL job ( ``JobCommand.Name``="glueetl") or Apache Spark streaming ETL job ( ``JobCommand.Name``="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.

                      • WorkerType (string) --

                        The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.

                        • For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.

                        • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                        • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                        • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                        • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                        • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                        • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                        • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                        • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                        • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                        • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                        • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

                      • NumberOfWorkers (integer) --

                        The number of workers of a defined workerType that are allocated when a job runs.

                      • SecurityConfiguration (string) --

                        The name of the SecurityConfiguration structure to be used with this job run.

                      • LogGroupName (string) --

                        The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be /aws-glue/jobs/, in which case the default encryption is NONE. If you add a role name and SecurityConfiguration name (in other words, /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.

                      • NotificationProperty (dict) --

                        Specifies configuration properties of a job run notification.

                        • NotifyDelayAfter (integer) --

                          After a job run starts, the number of minutes to wait before sending a job run delay notification.

                      • GlueVersion (string) --

                        In Spark jobs, GlueVersion determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.

                        Ray jobs should set GlueVersion to 4.0 or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the Runtime parameter of the Job command.

                        For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

                        Jobs that are created without specifying a Glue version default to Glue 5.1.

                      • DPUSeconds (float) --

                        This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

                      • ExecutionClass (string) --

                        Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

                        The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

                        Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

                      • MaintenanceWindow (string) --

                        This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

                        Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

                      • ProfileName (string) --

                        The name of an Glue usage profile associated with the job run.

                      • StateDetail (string) --

                        This field holds details that pertain to the state of a job run. The field is nullable.

                        For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.

                      • ExecutionRoleSessionPolicy (string) --

                        This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

                • CrawlerDetails (dict) --

                  Details of the crawler when the node represents a crawler.

                  • Crawls (list) --

                    A list of crawls represented by the crawl node.

                    • (dict) --

                      The details of a crawl in the workflow.

                      • State (string) --

                        The state of the crawler.

                      • StartedOn (datetime) --

                        The date and time on which the crawl started.

                      • CompletedOn (datetime) --

                        The date and time on which the crawl completed.

                      • ErrorMessage (string) --

                        The error message associated with the crawl.

                      • LogGroup (string) --

                        The log group associated with the crawl.

                      • LogStream (string) --

                        The log stream associated with the crawl.

            • Edges (list) --

              A list of all the directed connections between the nodes belonging to the workflow.

              • (dict) --

                An edge represents a directed connection between two Glue components that are part of the workflow the edge belongs to.

                • SourceId (string) --

                  The unique of the node within the workflow where the edge starts.

                • DestinationId (string) --

                  The unique of the node within the workflow where the edge ends.

          • StartingEventBatchCondition (dict) --

            The batch condition that started the workflow run.

            • BatchSize (integer) --

              Number of events in the batch.

            • BatchWindow (integer) --

              Duration of the batch window in seconds.

        • Graph (dict) --

          The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.

          • Nodes (list) --

            A list of the the Glue components belong to the workflow represented as nodes.

            • (dict) --

              A node represents an Glue component (trigger, crawler, or job) on a workflow graph.

              • Type (string) --

                The type of Glue component represented by the node.

              • Name (string) --

                The name of the Glue component represented by the node.

              • UniqueId (string) --

                The unique Id assigned to the node within the workflow.

              • TriggerDetails (dict) --

                Details of the Trigger when the node represents a Trigger.

                • Trigger (dict) --

                  The information of the trigger represented by the trigger node.

                  • Name (string) --

                    The name of the trigger.

                  • WorkflowName (string) --

                    The name of the workflow associated with the trigger.

                  • Id (string) --

                    Reserved for future use.

                  • Type (string) --

                    The type of trigger that this is.

                  • State (string) --

                    The current state of the trigger.

                  • Description (string) --

                    A description of this trigger.

                  • Schedule (string) --

                    A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

                  • Actions (list) --

                    The actions initiated by this trigger.

                    • (dict) --

                      Defines an action to be initiated by a trigger.

                      • JobName (string) --

                        The name of a job to be run.

                      • Arguments (dict) --

                        The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.

                        You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                        For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                        For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

                        • (string) --

                          • (string) --

                      • Timeout (integer) --

                        The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This overrides the timeout value set in the parent job.

                        Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                        When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                        Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                        For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                      • SecurityConfiguration (string) --

                        The name of the SecurityConfiguration structure to be used with this action.

                      • NotificationProperty (dict) --

                        Specifies configuration properties of a job run notification.

                        • NotifyDelayAfter (integer) --

                          After a job run starts, the number of minutes to wait before sending a job run delay notification.

                      • CrawlerName (string) --

                        The name of the crawler to be used with this action.

                  • Predicate (dict) --

                    The predicate of this trigger, which defines when it will fire.

                    • Logical (string) --

                      An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.

                    • Conditions (list) --

                      A list of the conditions that determine when the trigger will fire.

                      • (dict) --

                        Defines a condition under which a trigger fires.

                        • LogicalOperator (string) --

                          A logical operator.

                        • JobName (string) --

                          The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

                        • State (string) --

                          The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

                        • CrawlerName (string) --

                          The name of the crawler to which this condition applies.

                        • CrawlState (string) --

                          The state of the crawler to which this condition applies.

                  • EventBatchingCondition (dict) --

                    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

                    • BatchSize (integer) --

                      Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.

                    • BatchWindow (integer) --

                      Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received.

              • JobDetails (dict) --

                Details of the Job when the node represents a Job.

                • JobRuns (list) --

                  The information for the job runs represented by the job node.

                  • (dict) --

                    Contains information about a job run.

                    • Id (string) --

                      The ID of this job run.

                    • Attempt (integer) --

                      The number of the attempt to run this job.

                    • PreviousRunId (string) --

                      The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.

                    • TriggerName (string) --

                      The name of the trigger that started this job run.

                    • JobName (string) --

                      The name of the job definition being used in this run.

                    • JobMode (string) --

                      A mode that describes how a job was created. Valid values are:

                      • SCRIPT - The job was created using the Glue Studio script editor.

                      • VISUAL - The job was created using the Glue Studio visual editor.

                      • NOTEBOOK - The job was created using an interactive sessions notebook.

                      When the JobMode field is missing or null, SCRIPT is assigned as the default value.

                    • JobRunQueuingEnabled (boolean) --

                      Specifies whether job run queuing is enabled for the job run.

                      A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.

                    • StartedOn (datetime) --

                      The date and time at which this job run was started.

                    • LastModifiedOn (datetime) --

                      The last time that this job run was modified.

                    • CompletedOn (datetime) --

                      The date and time that this job run completed.

                    • JobRunState (string) --

                      The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.

                    • Arguments (dict) --

                      The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.

                      You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                      Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

                      For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                      For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.

                      For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.

                      • (string) --

                        • (string) --

                    • ErrorMessage (string) --

                      An error message associated with this job run.

                    • PredecessorRuns (list) --

                      A list of predecessors to this job run.

                      • (dict) --

                        A job run that was used in the predicate of a conditional trigger that triggered this job run.

                        • JobName (string) --

                          The name of the job definition used by the predecessor job run.

                        • RunId (string) --

                          The job-run ID of the predecessor job run.

                    • AllocatedCapacity (integer) --

                      This field is deprecated. Use MaxCapacity instead.

                      The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                    • ExecutionTime (integer) --

                      The amount of time (in seconds) that the job run consumed resources.

                    • Timeout (integer) --

                      The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

                      Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                      When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                      Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                      For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                    • MaxCapacity (float) --

                      For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                      For Glue version 2.0+ jobs, you cannot specify a Maximum capacity. Instead, you should specify a Worker type and the Number of workers.

                      Do not set MaxCapacity if using WorkerType and NumberOfWorkers.

                      The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:

                      • When you specify a Python shell job ( ``JobCommand.Name``="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.

                      • When you specify an Apache Spark ETL job ( ``JobCommand.Name``="glueetl") or Apache Spark streaming ETL job ( ``JobCommand.Name``="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.

                    • WorkerType (string) --

                      The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.

                      • For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.

                      • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                      • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                      • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

                    • NumberOfWorkers (integer) --

                      The number of workers of a defined workerType that are allocated when a job runs.

                    • SecurityConfiguration (string) --

                      The name of the SecurityConfiguration structure to be used with this job run.

                    • LogGroupName (string) --

                      The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be /aws-glue/jobs/, in which case the default encryption is NONE. If you add a role name and SecurityConfiguration name (in other words, /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.

                    • NotificationProperty (dict) --

                      Specifies configuration properties of a job run notification.

                      • NotifyDelayAfter (integer) --

                        After a job run starts, the number of minutes to wait before sending a job run delay notification.

                    • GlueVersion (string) --

                      In Spark jobs, GlueVersion determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.

                      Ray jobs should set GlueVersion to 4.0 or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the Runtime parameter of the Job command.

                      For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

                      Jobs that are created without specifying a Glue version default to Glue 5.1.

                    • DPUSeconds (float) --

                      This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

                    • ExecutionClass (string) --

                      Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

                      The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

                      Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

                    • MaintenanceWindow (string) --

                      This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

                      Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

                    • ProfileName (string) --

                      The name of an Glue usage profile associated with the job run.

                    • StateDetail (string) --

                      This field holds details that pertain to the state of a job run. The field is nullable.

                      For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.

                    • ExecutionRoleSessionPolicy (string) --

                      This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

              • CrawlerDetails (dict) --

                Details of the crawler when the node represents a crawler.

                • Crawls (list) --

                  A list of crawls represented by the crawl node.

                  • (dict) --

                    The details of a crawl in the workflow.

                    • State (string) --

                      The state of the crawler.

                    • StartedOn (datetime) --

                      The date and time on which the crawl started.

                    • CompletedOn (datetime) --

                      The date and time on which the crawl completed.

                    • ErrorMessage (string) --

                      The error message associated with the crawl.

                    • LogGroup (string) --

                      The log group associated with the crawl.

                    • LogStream (string) --

                      The log stream associated with the crawl.

          • Edges (list) --

            A list of all the directed connections between the nodes belonging to the workflow.

            • (dict) --

              An edge represents a directed connection between two Glue components that are part of the workflow the edge belongs to.

              • SourceId (string) --

                The unique of the node within the workflow where the edge starts.

              • DestinationId (string) --

                The unique of the node within the workflow where the edge ends.

        • MaxConcurrentRuns (integer) --

          You can use this parameter to prevent unwanted multiple updates to data, to control costs, or in some cases, to prevent exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.

        • BlueprintDetails (dict) --

          This structure indicates the details of the blueprint that this particular workflow is created from.

          • BlueprintName (string) --

            The name of the blueprint.

          • RunId (string) --

            The run ID for this blueprint.

    • MissingWorkflows (list) --

      A list of names of workflows not found.

      • (string) --

CreateCatalog (updated) Link ¶
Changes (request)
{'CatalogInput': {'FederatedCatalog': {'SyncConfiguration': {'AssetsSyncConfiguration': {'ManagedCrawlerDetails': {'CrawlerArn': 'string',
                                                                                                                   'Error': {'ErrorCode': 'string',
                                                                                                                             'ErrorMessage': 'string'},
                                                                                                                   'Status': 'PROVISIONING '
                                                                                                                             '| '
                                                                                                                             'PROVISIONED '
                                                                                                                             '| '
                                                                                                                             'FAILED'},
                                                                                         'RefreshIntervalMinutes': 'integer',
                                                                                         'Status': 'ENABLED '
                                                                                                   '| '
                                                                                                   'DISABLED'},
                                                             'LineageSyncConfiguration': {'ManagedCrawlerDetails': {'CrawlerArn': 'string',
                                                                                                                    'Error': {'ErrorCode': 'string',
                                                                                                                              'ErrorMessage': 'string'},
                                                                                                                    'Status': 'PROVISIONING '
                                                                                                                              '| '
                                                                                                                              'PROVISIONED '
                                                                                                                              '| '
                                                                                                                              'FAILED'},
                                                                                          'RefreshIntervalMinutes': 'integer',
                                                                                          'Status': 'ENABLED '
                                                                                                    '| '
                                                                                                    'DISABLED'},
                                                             'RoleArn': 'string'}}}}

Creates a new catalog in the Glue Data Catalog.

See also: AWS API Documentation

Request Syntax

client.create_catalog(
    Name='string',
    CatalogInput={
        'Description': 'string',
        'FederatedCatalog': {
            'Identifier': 'string',
            'ConnectionName': 'string',
            'ConnectionType': 'string',
            'SyncConfiguration': {
                'RoleArn': 'string',
                'AssetsSyncConfiguration': {
                    'Status': 'ENABLED'|'DISABLED',
                    'RefreshIntervalMinutes': 123,
                    'ManagedCrawlerDetails': {
                        'CrawlerArn': 'string',
                        'Status': 'PROVISIONING'|'PROVISIONED'|'FAILED',
                        'Error': {
                            'ErrorCode': 'string',
                            'ErrorMessage': 'string'
                        }
                    }
                },
                'LineageSyncConfiguration': {
                    'Status': 'ENABLED'|'DISABLED',
                    'RefreshIntervalMinutes': 123,
                    'ManagedCrawlerDetails': {
                        'CrawlerArn': 'string',
                        'Status': 'PROVISIONING'|'PROVISIONED'|'FAILED',
                        'Error': {
                            'ErrorCode': 'string',
                            'ErrorMessage': 'string'
                        }
                    }
                }
            }
        },
        'Parameters': {
            'string': 'string'
        },
        'TargetRedshiftCatalog': {
            'CatalogArn': 'string'
        },
        'CatalogProperties': {
            'DataLakeAccessProperties': {
                'DataLakeAccess': True|False,
                'DataTransferRole': 'string',
                'KmsKey': 'string',
                'CatalogType': 'string'
            },
            'IcebergOptimizationProperties': {
                'RoleArn': 'string',
                'Compaction': {
                    'string': 'string'
                },
                'Retention': {
                    'string': 'string'
                },
                'OrphanFileDeletion': {
                    'string': 'string'
                }
            },
            'CustomProperties': {
                'string': 'string'
            }
        },
        'CreateTableDefaultPermissions': [
            {
                'Principal': {
                    'DataLakePrincipalIdentifier': 'string'
                },
                'Permissions': [
                    'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS',
                ]
            },
        ],
        'CreateDatabaseDefaultPermissions': [
            {
                'Principal': {
                    'DataLakePrincipalIdentifier': 'string'
                },
                'Permissions': [
                    'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS',
                ]
            },
        ],
        'AllowFullTableExternalDataAccess': 'True'|'False',
        'OverwriteChildResourcePermissionsWithDefault': 'Accept'|'Deny'
    },
    Tags={
        'string': 'string'
    }
)
type Name:

string

param Name:

[REQUIRED]

The name of the catalog to create.

type CatalogInput:

dict

param CatalogInput:

[REQUIRED]

A CatalogInput object that defines the metadata for the catalog.

  • Description (string) --

    Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern. A description of the catalog.

  • FederatedCatalog (dict) --

    A FederatedCatalog object. A FederatedCatalog structure that references an entity outside the Glue Data Catalog, for example a Redshift database.

    • Identifier (string) --

      A unique identifier for the federated catalog.

    • ConnectionName (string) --

      The name of the connection to an external data source, for example a Redshift-federated catalog.

    • ConnectionType (string) --

      The type of connection used to access the federated catalog, specifying the protocol or method for connection to the external data source.

    • SyncConfiguration (dict) --

      Configuration for synchronizing assets and lineage from the external data source into the federated catalog.

      • RoleArn (string) -- [REQUIRED]

        The ARN of the IAM role that Glue assumes to synchronize the federated catalog.

      • AssetsSyncConfiguration (dict) --

        Configuration for synchronizing assets, such as databases and tables.

        • Status (string) -- [REQUIRED]

          Whether assets synchronization is ENABLED or DISABLED.

        • RefreshIntervalMinutes (integer) --

          How often assets are synchronized, in minutes. The minimum is 1440 (one day) and the maximum is 10080 (seven days).

        • ManagedCrawlerDetails (dict) --

          Details of the managed crawler that performs assets synchronization.

          • CrawlerArn (string) --

            The ARN of the managed crawler.

          • Status (string) -- [REQUIRED]

            The provisioning status of the managed crawler: PROVISIONING, PROVISIONED, or FAILED.

          • Error (dict) --

            The error that occurred when provisioning the managed crawler failed.

            • ErrorCode (string) --

              The code associated with this error.

            • ErrorMessage (string) --

              A message describing the error.

      • LineageSyncConfiguration (dict) --

        Configuration for synchronizing lineage.

        • Status (string) -- [REQUIRED]

          Whether lineage synchronization is ENABLED or DISABLED.

        • RefreshIntervalMinutes (integer) --

          How often lineage is synchronized, in minutes. The minimum is 1440 (one day) and the maximum is 10080 (seven days).

        • ManagedCrawlerDetails (dict) --

          Details of the managed crawler that performs lineage synchronization.

          • CrawlerArn (string) --

            The ARN of the managed crawler.

          • Status (string) -- [REQUIRED]

            The provisioning status of the managed crawler: PROVISIONING, PROVISIONED, or FAILED.

          • Error (dict) --

            The error that occurred when provisioning the managed crawler failed.

            • ErrorCode (string) --

              The code associated with this error.

            • ErrorMessage (string) --

              A message describing the error.

  • Parameters (dict) --

    A map array of key-value pairs that define the parameters and properties of the catalog.

    • (string) --

      • (string) --

  • TargetRedshiftCatalog (dict) --

    A TargetRedshiftCatalog object that describes a target catalog for resource linking.

    • CatalogArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the catalog resource.

  • CatalogProperties (dict) --

    A CatalogProperties object that specifies data lake access properties and other custom properties.

    • DataLakeAccessProperties (dict) --

      A DataLakeAccessProperties object that specifies properties to configure data lake access for your catalog resource in the Glue Data Catalog.

      • DataLakeAccess (boolean) --

        Turns on or off data lake access for Apache Spark applications that access Amazon Redshift databases in the Data Catalog from any non-Redshift engine, such as Amazon Athena, Amazon EMR, or Glue ETL.

      • DataTransferRole (string) --

        A role that will be assumed by Glue for transferring data into/out of the staging bucket during a query.

      • KmsKey (string) --

        An encryption key that will be used for the staging bucket that will be created along with the catalog.

      • CatalogType (string) --

        Specifies a federated catalog type for the native catalog resource. The currently supported type is aws:redshift.

    • IcebergOptimizationProperties (dict) --

      A structure that specifies Iceberg table optimization properties for the catalog. This includes configuration for compaction, retention, and orphan file deletion operations that can be applied to Iceberg tables in this catalog.

      • RoleArn (string) --

        The Amazon Resource Name (ARN) of the IAM role that will be assumed to perform Iceberg table optimization operations.

      • Compaction (dict) --

        A map of key-value pairs that specify configuration parameters for Iceberg table compaction operations, which optimize the layout of data files to improve query performance.

        • (string) --

          • (string) --

      • Retention (dict) --

        A map of key-value pairs that specify configuration parameters for Iceberg table retention operations, which manage the lifecycle of table snapshots to control storage costs.

        • (string) --

          • (string) --

      • OrphanFileDeletion (dict) --

        A map of key-value pairs that specify configuration parameters for Iceberg orphan file deletion operations, which identify and remove files that are no longer referenced by the table metadata.

        • (string) --

          • (string) --

    • CustomProperties (dict) --

      Additional key-value properties for the catalog, such as column statistics optimizations.

      • (string) --

        • (string) --

  • CreateTableDefaultPermissions (list) --

    An array of PrincipalPermissions objects. Creates a set of default permissions on the table(s) for principals. Used by Amazon Web Services Lake Formation. Typically should be explicitly set as an empty list.

    • (dict) --

      Permissions granted to a principal.

      • Principal (dict) --

        The principal who is granted permissions.

        • DataLakePrincipalIdentifier (string) --

          An identifier for the Lake Formation principal.

      • Permissions (list) --

        The permissions that are granted to the principal.

        • (string) --

  • CreateDatabaseDefaultPermissions (list) --

    An array of PrincipalPermissions objects. Creates a set of default permissions on the database(s) for principals. Used by Amazon Web Services Lake Formation. Typically should be explicitly set as an empty list.

    • (dict) --

      Permissions granted to a principal.

      • Principal (dict) --

        The principal who is granted permissions.

        • DataLakePrincipalIdentifier (string) --

          An identifier for the Lake Formation principal.

      • Permissions (list) --

        The permissions that are granted to the principal.

        • (string) --

  • AllowFullTableExternalDataAccess (string) --

    Allows third-party engines to access data in Amazon S3 locations that are registered with Lake Formation.

  • OverwriteChildResourcePermissionsWithDefault (string) --

    Overwrites existing Amazon Web Services Lake Formation permissions with CatalogInput$CreateTableDefaultPermissions and CatalogInput$CreateDatabaseDefaultPermissions for all child resources.

type Tags:

dict

param Tags:

A map array of key-value pairs, not more than 50 pairs. Each key is a UTF-8 string, not less than 1 or more than 128 bytes long. Each value is a UTF-8 string, not more than 256 bytes long. The tags you assign to the catalog.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

CreateConnection (updated) Link ¶
Changes (request)
{'ConnectionInput': {'AuthenticationConfiguration': {'CredentialBrokerProperties': {'CredentialProviderArn': 'string',
                                                                                    'OAuth2GrantType': 'AUTHORIZATION_CODE '
                                                                                                       '| '
                                                                                                       'CLIENT_CREDENTIALS '
                                                                                                       '| '
                                                                                                       'JWT_BEARER '
                                                                                                       '| '
                                                                                                       'REFRESH_TOKEN '
                                                                                                       '| '
                                                                                                       'TOKEN_EXCHANGE',
                                                                                    'Scopes': ['string']},
                                                     'OAuth2Properties': {'OAuth2GrantType': {'TOKEN_EXCHANGE'}}}}}

Creates a connection definition in the Data Catalog.

Connections used for creating federated resources require the IAM glue:PassConnection permission.

See also: AWS API Documentation

Request Syntax

client.create_connection(
    CatalogId='string',
    ConnectionInput={
        'Name': 'string',
        'Description': 'string',
        'ConnectionType': 'JDBC'|'SFTP'|'MONGODB'|'KAFKA'|'NETWORK'|'MARKETPLACE'|'CUSTOM'|'SALESFORCE'|'VIEW_VALIDATION_REDSHIFT'|'VIEW_VALIDATION_ATHENA'|'GOOGLEADS'|'GOOGLESHEETS'|'GOOGLEANALYTICS4'|'SERVICENOW'|'MARKETO'|'SAPODATA'|'ZENDESK'|'JIRACLOUD'|'NETSUITEERP'|'HUBSPOT'|'FACEBOOKADS'|'INSTAGRAMADS'|'ZOHOCRM'|'SALESFORCEPARDOT'|'SALESFORCEMARKETINGCLOUD'|'ADOBEANALYTICS'|'SLACK'|'LINKEDIN'|'MIXPANEL'|'ASANA'|'STRIPE'|'SMARTSHEET'|'DATADOG'|'WOOCOMMERCE'|'INTERCOM'|'SNAPCHATADS'|'PAYPAL'|'QUICKBOOKS'|'FACEBOOKPAGEINSIGHTS'|'FRESHDESK'|'TWILIO'|'DOCUSIGNMONITOR'|'FRESHSALES'|'ZOOM'|'GOOGLESEARCHCONSOLE'|'SALESFORCECOMMERCECLOUD'|'SAPCONCUR'|'DYNATRACE'|'MICROSOFTDYNAMIC365FINANCEANDOPS'|'MICROSOFTTEAMS'|'BLACKBAUDRAISEREDGENXT'|'MAILCHIMP'|'GITLAB'|'PENDO'|'PRODUCTBOARD'|'CIRCLECI'|'PIPEDIVE'|'SENDGRID'|'AZURECOSMOS'|'AZURESQL'|'BIGQUERY'|'BLACKBAUD'|'CLOUDERAHIVE'|'CLOUDERAIMPALA'|'CLOUDWATCH'|'CLOUDWATCHMETRICS'|'CMDB'|'DATALAKEGEN2'|'DB2'|'DB2AS400'|'DOCUMENTDB'|'DOMO'|'DYNAMODB'|'GOOGLECLOUDSTORAGE'|'HBASE'|'KUSTOMER'|'MICROSOFTDYNAMICS365CRM'|'MONDAY'|'MYSQL'|'OKTA'|'OPENSEARCH'|'ORACLE'|'PIPEDRIVE'|'POSTGRESQL'|'SAPHANA'|'SQLSERVER'|'SYNAPSE'|'TERADATA'|'TERADATANOS'|'TIMESTREAM'|'TPCDS'|'VERTICA',
        'MatchCriteria': [
            'string',
        ],
        'ConnectionProperties': {
            'string': 'string'
        },
        'SparkProperties': {
            'string': 'string'
        },
        'AthenaProperties': {
            'string': 'string'
        },
        'PythonProperties': {
            'string': 'string'
        },
        'PhysicalConnectionRequirements': {
            'SubnetId': 'string',
            'SecurityGroupIdList': [
                'string',
            ],
            'AvailabilityZone': 'string'
        },
        'AuthenticationConfiguration': {
            'AuthenticationType': 'BASIC'|'OAUTH2'|'CUSTOM'|'IAM',
            'OAuth2Properties': {
                'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                'OAuth2ClientApplication': {
                    'UserManagedClientApplicationClientId': 'string',
                    'AWSManagedClientApplicationReference': 'string'
                },
                'TokenUrl': 'string',
                'TokenUrlParametersMap': {
                    'string': 'string'
                },
                'AuthorizationCodeProperties': {
                    'AuthorizationCode': 'string',
                    'RedirectUri': 'string'
                },
                'OAuth2Credentials': {
                    'UserManagedClientApplicationClientSecret': 'string',
                    'AccessToken': 'string',
                    'RefreshToken': 'string',
                    'JwtToken': 'string'
                }
            },
            'SecretArn': 'string',
            'KmsKeyArn': 'string',
            'CredentialBrokerProperties': {
                'CredentialProviderArn': 'string',
                'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                'Scopes': [
                    'string',
                ]
            },
            'BasicAuthenticationCredentials': {
                'Username': 'string',
                'Password': 'string'
            },
            'CustomAuthenticationCredentials': {
                'string': 'string'
            }
        },
        'ValidateCredentials': True|False,
        'ValidateForComputeEnvironments': [
            'SPARK'|'ATHENA'|'PYTHON',
        ]
    },
    Tags={
        'string': 'string'
    }
)
type CatalogId:

string

param CatalogId:

The ID of the Data Catalog in which to create the connection. If none is provided, the Amazon Web Services account ID is used by default.

type ConnectionInput:

dict

param ConnectionInput:

[REQUIRED]

A ConnectionInput object defining the connection to create.

  • Name (string) -- [REQUIRED]

    The name of the connection.

  • Description (string) --

    The description of the connection.

  • ConnectionType (string) -- [REQUIRED]

    The type of the connection. Currently, these types are supported:

    • JDBC - Designates a connection to a database through Java Database Connectivity (JDBC). JDBC Connections use the following ConnectionParameters.

      • Required: All of ( HOST, PORT, JDBC_ENGINE) or JDBC_CONNECTION_URL.

      • Required: All of ( USERNAME, PASSWORD) or SECRET_ID.

      • Optional: JDBC_ENFORCE_SSL, CUSTOM_JDBC_CERT, CUSTOM_JDBC_CERT_STRING, SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to configure SSL with JDBC.

    • KAFKA - Designates a connection to an Apache Kafka streaming platform. KAFKA Connections use the following ConnectionParameters.

      • Required: KAFKA_BOOTSTRAP_SERVERS.

      • Optional: KAFKA_SSL_ENABLED, KAFKA_CUSTOM_CERT, KAFKA_SKIP_CUSTOM_CERT_VALIDATION. These parameters are used to configure SSL with KAFKA.

      • Optional: KAFKA_CLIENT_KEYSTORE, KAFKA_CLIENT_KEYSTORE_PASSWORD, KAFKA_CLIENT_KEY_PASSWORD, ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD, ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD. These parameters are used to configure TLS client configuration with SSL in KAFKA.

      • Optional: KAFKA_SASL_MECHANISM. Can be specified as SCRAM-SHA-512, GSSAPI, or AWS_MSK_IAM.

      • Optional: KAFKA_SASL_SCRAM_USERNAME, KAFKA_SASL_SCRAM_PASSWORD, ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD. These parameters are used to configure SASL/SCRAM-SHA-512 authentication with KAFKA.

      • Optional: KAFKA_SASL_GSSAPI_KEYTAB, KAFKA_SASL_GSSAPI_KRB5_CONF, KAFKA_SASL_GSSAPI_SERVICE, KAFKA_SASL_GSSAPI_PRINCIPAL. These parameters are used to configure SASL/GSSAPI authentication with KAFKA.

    • MONGODB - Designates a connection to a MongoDB document database. MONGODB Connections use the following ConnectionParameters.

      • Required: CONNECTION_URL.

      • Required: All of ( USERNAME, PASSWORD) or SECRET_ID.

    • VIEW_VALIDATION_REDSHIFT - Designates a connection used for view validation by Amazon Redshift.

    • VIEW_VALIDATION_ATHENA - Designates a connection used for view validation by Amazon Athena.

    • NETWORK - Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC). NETWORK Connections do not require ConnectionParameters. Instead, provide a PhysicalConnectionRequirements.

    • MARKETPLACE - Uses configuration settings contained in a connector purchased from Amazon Web Services Marketplace to read from and write to data stores that are not natively supported by Glue. MARKETPLACE Connections use the following ConnectionParameters.

      • Required: CONNECTOR_TYPE, CONNECTOR_URL, CONNECTOR_CLASS_NAME, CONNECTION_URL.

      • Required for JDBC CONNECTOR_TYPE connections: All of ( USERNAME, PASSWORD) or SECRET_ID.

    • CUSTOM - Uses configuration settings contained in a custom connector to read from and write to data stores that are not natively supported by Glue.

    For more information on the connection parameters needed for a particular connector, see the documentation for the connector in `Adding an Glue connection <https://docs.aws.amazon.com/glue/latest/dg/console-connections.html>`__in the Glue User Guide.

    SFTP is not supported.

    For more information about how optional ConnectionProperties are used to configure features in Glue, consult Glue connection properties.

    For more information about how optional ConnectionProperties are used to configure features in Glue Studio, consult Using connectors and connections.

  • MatchCriteria (list) --

    A list of criteria that can be used in selecting this connection.

    • (string) --

  • ConnectionProperties (dict) -- [REQUIRED]

    These key-value pairs define parameters for the connection.

    • (string) --

      • (string) --

  • SparkProperties (dict) --

    Connection properties specific to the Spark compute environment.

    • (string) --

      • (string) --

  • AthenaProperties (dict) --

    Connection properties specific to the Athena compute environment.

    • (string) --

      • (string) --

  • PythonProperties (dict) --

    Connection properties specific to the Python compute environment.

    • (string) --

      • (string) --

  • PhysicalConnectionRequirements (dict) --

    The physical connection requirements, such as virtual private cloud (VPC) and SecurityGroup, that are needed to successfully make this connection.

    • SubnetId (string) --

      The subnet ID used by the connection.

    • SecurityGroupIdList (list) --

      The security group ID list used by the connection.

      • (string) --

    • AvailabilityZone (string) --

      The connection's Availability Zone.

  • AuthenticationConfiguration (dict) --

    The authentication properties of the connection.

    • AuthenticationType (string) --

      A structure containing the authentication configuration in the CreateConnection request.

    • OAuth2Properties (dict) --

      The properties for OAuth2 authentication in the CreateConnection request.

      • OAuth2GrantType (string) --

        The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE, JWT_BEARER, REFRESH_TOKEN, or CLIENT_CREDENTIALS.

      • OAuth2ClientApplication (dict) --

        The client application type in the CreateConnection request. For example, AWS_MANAGED or USER_MANAGED.

        • UserManagedClientApplicationClientId (string) --

          The client application clientID if the ClientAppType is USER_MANAGED.

        • AWSManagedClientApplicationReference (string) --

          The reference to the SaaS-side client app that is Amazon Web Services managed.

      • TokenUrl (string) --

        The URL of the provider's authentication server, to exchange an authorization code for an access token.

      • TokenUrlParametersMap (dict) --

        A map of parameters that are added to the token GET request.

        • (string) --

          • (string) --

      • AuthorizationCodeProperties (dict) --

        The set of properties required for the the OAuth2 AUTHORIZATION_CODE grant type.

        • AuthorizationCode (string) --

          An authorization code to be used in the third leg of the AUTHORIZATION_CODE grant workflow. This is a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable to have this value as a request parameter.

        • RedirectUri (string) --

          The redirect URI where the user gets redirected to by authorization server when issuing an authorization code. The URI is subsequently used when the authorization code is exchanged for an access token.

      • OAuth2Credentials (dict) --

        The credentials used when the authentication type is OAuth2 authentication.

        • UserManagedClientApplicationClientSecret (string) --

          The client application client secret if the client application is user managed.

        • AccessToken (string) --

          The access token used when the authentication type is OAuth2.

        • RefreshToken (string) --

          The refresh token used when the authentication type is OAuth2.

        • JwtToken (string) --

          The JSON Web Token (JWT) used when the authentication type is OAuth2.

    • SecretArn (string) --

      The secret manager ARN to store credentials in the CreateConnection request.

    • KmsKeyArn (string) --

      The ARN of the KMS key used to encrypt the connection. Only taken an as input in the request and stored in the Secret Manager.

    • CredentialBrokerProperties (dict) --

      Credential broker settings used to obtain OAuth tokens for this connection.

      • CredentialProviderArn (string) --

        The Amazon Resource Name (ARN) of the credential broker OAuth credential provider used to obtain credentials for this connection.

      • OAuth2GrantType (string) --

        The OAuth2 grant type the credential broker uses to obtain tokens. Must be one of CLIENT_CREDENTIALS, TOKEN_EXCHANGE, JWT_BEARER, or AUTHORIZATION_CODE.

      • Scopes (list) --

        The list of OAuth scopes requested from the credential broker. If omitted, the credential provider's default scopes are used.

        • (string) --

    • BasicAuthenticationCredentials (dict) --

      The credentials used when the authentication type is basic authentication.

      • Username (string) --

        The username to connect to the data source.

      • Password (string) --

        The password to connect to the data source.

    • CustomAuthenticationCredentials (dict) --

      The credentials used when the authentication type is custom authentication.

      • (string) --

        • (string) --

  • ValidateCredentials (boolean) --

    A flag to validate the credentials during create connection. Default is true.

  • ValidateForComputeEnvironments (list) --

    The compute environments that the specified connection properties are validated against.

    • (string) --

type Tags:

dict

param Tags:

The tags you assign to the connection.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'CreateConnectionStatus': 'READY'|'IN_PROGRESS'|'FAILED'
}

Response Structure

  • (dict) --

    • CreateConnectionStatus (string) --

      The status of the connection creation request. The request can take some time for certain authentication types, for example when creating an OAuth connection with token exchange over VPC.

CreateCrawler (updated) Link ¶
Changes (request)
{'Targets': {'LineageTargets': [{'ConnectionName': 'string'}]}}

Creates a new crawler with specified targets, role, configuration, and optional schedule. At least one crawl target must be specified, in the s3Targets field, the jdbcTargets field, or the DynamoDBTargets field.

See also: AWS API Documentation

Request Syntax

client.create_crawler(
    Name='string',
    Role='string',
    DatabaseName='string',
    Description='string',
    Targets={
        'S3Targets': [
            {
                'Path': 'string',
                'Exclusions': [
                    'string',
                ],
                'ConnectionName': 'string',
                'SampleSize': 123,
                'EventQueueArn': 'string',
                'DlqEventQueueArn': 'string'
            },
        ],
        'JdbcTargets': [
            {
                'ConnectionName': 'string',
                'Path': 'string',
                'Exclusions': [
                    'string',
                ],
                'EnableAdditionalMetadata': [
                    'COMMENTS'|'RAWTYPES',
                ]
            },
        ],
        'MongoDBTargets': [
            {
                'ConnectionName': 'string',
                'Path': 'string',
                'ScanAll': True|False
            },
        ],
        'DynamoDBTargets': [
            {
                'Path': 'string',
                'scanAll': True|False,
                'scanRate': 123.0
            },
        ],
        'CatalogTargets': [
            {
                'DatabaseName': 'string',
                'Tables': [
                    'string',
                ],
                'ConnectionName': 'string',
                'EventQueueArn': 'string',
                'DlqEventQueueArn': 'string'
            },
        ],
        'DeltaTargets': [
            {
                'DeltaTables': [
                    'string',
                ],
                'ConnectionName': 'string',
                'WriteManifest': True|False,
                'CreateNativeDeltaTable': True|False
            },
        ],
        'IcebergTargets': [
            {
                'Paths': [
                    'string',
                ],
                'ConnectionName': 'string',
                'Exclusions': [
                    'string',
                ],
                'MaximumTraversalDepth': 123
            },
        ],
        'HudiTargets': [
            {
                'Paths': [
                    'string',
                ],
                'ConnectionName': 'string',
                'Exclusions': [
                    'string',
                ],
                'MaximumTraversalDepth': 123
            },
        ],
        'LineageTargets': [
            {
                'ConnectionName': 'string'
            },
        ]
    },
    Schedule='string',
    Classifiers=[
        'string',
    ],
    TablePrefix='string',
    SchemaChangePolicy={
        'UpdateBehavior': 'LOG'|'UPDATE_IN_DATABASE',
        'DeleteBehavior': 'LOG'|'DELETE_FROM_DATABASE'|'DEPRECATE_IN_DATABASE'
    },
    RecrawlPolicy={
        'RecrawlBehavior': 'CRAWL_EVERYTHING'|'CRAWL_NEW_FOLDERS_ONLY'|'CRAWL_EVENT_MODE'
    },
    LineageConfiguration={
        'CrawlerLineageSettings': 'ENABLE'|'DISABLE'
    },
    LakeFormationConfiguration={
        'UseLakeFormationCredentials': True|False,
        'AccountId': 'string'
    },
    Configuration='string',
    CrawlerSecurityConfiguration='string',
    Tags={
        'string': 'string'
    },
    CatalogId='string'
)
type Name:

string

param Name:

[REQUIRED]

Name of the new crawler.

type Role:

string

param Role:

[REQUIRED]

The IAM role or Amazon Resource Name (ARN) of an IAM role used by the new crawler to access customer resources.

type DatabaseName:

string

param DatabaseName:

The Glue database where results are written, such as: arn:aws:daylight:us-east-1::database/sometable/*.

type Description:

string

param Description:

A description of the new crawler.

type Targets:

dict

param Targets:

[REQUIRED]

A list of collection of targets to crawl.

  • S3Targets (list) --

    Specifies Amazon Simple Storage Service (Amazon S3) targets.

    • (dict) --

      Specifies a data store in Amazon Simple Storage Service (Amazon S3).

      • Path (string) --

        The path to the Amazon S3 target.

      • Exclusions (list) --

        A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • (string) --

      • ConnectionName (string) --

        The name of a connection which allows a job or crawler to access data in Amazon S3 within an Amazon Virtual Private Cloud environment (Amazon VPC).

      • SampleSize (integer) --

        Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.

      • EventQueueArn (string) --

        A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

      • DlqEventQueueArn (string) --

        A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

  • JdbcTargets (list) --

    Specifies JDBC targets.

    • (dict) --

      Specifies a JDBC data store to crawl.

      • ConnectionName (string) --

        The name of the connection to use to connect to the JDBC target.

      • Path (string) --

        The path of the JDBC target.

      • Exclusions (list) --

        A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • (string) --

      • EnableAdditionalMetadata (list) --

        Specify a value of RAWTYPES or COMMENTS to enable additional metadata in table responses. RAWTYPES provides the native-level datatype. COMMENTS provides comments associated with a column or table in the database.

        If you do not need additional metadata, keep the field empty.

        • (string) --

  • MongoDBTargets (list) --

    Specifies Amazon DocumentDB or MongoDB targets.

    • (dict) --

      Specifies an Amazon DocumentDB or MongoDB data store to crawl.

      • ConnectionName (string) --

        The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.

      • Path (string) --

        The path of the Amazon DocumentDB or MongoDB target (database/collection).

      • ScanAll (boolean) --

        Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

        A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

  • DynamoDBTargets (list) --

    Specifies Amazon DynamoDB targets.

    • (dict) --

      Specifies an Amazon DynamoDB table to crawl.

      • Path (string) --

        The name of the DynamoDB table to crawl.

      • scanAll (boolean) --

        Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

        A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

      • scanRate (float) --

        The percentage of the configured read capacity units to use by the Glue crawler. Read capacity units is a term defined by DynamoDB, and is a numeric value that acts as rate limiter for the number of reads that can be performed on that table per second.

        The valid values are null or a value between 0.1 to 1.5. A null value is used when user does not provide a value, and defaults to 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of the max configured Read Capacity Unit (for tables using on-demand mode).

  • CatalogTargets (list) --

    Specifies Glue Data Catalog targets.

    • (dict) --

      Specifies an Glue Data Catalog target.

      • DatabaseName (string) -- [REQUIRED]

        The name of the database to be synchronized.

      • Tables (list) -- [REQUIRED]

        A list of the tables to be synchronized.

        • (string) --

      • ConnectionName (string) --

        The name of the connection for an Amazon S3-backed Data Catalog table to be a target of the crawl when using a Catalog connection type paired with a NETWORK Connection type.

      • EventQueueArn (string) --

        A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

      • DlqEventQueueArn (string) --

        A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

  • DeltaTargets (list) --

    Specifies Delta data store targets.

    • (dict) --

      Specifies a Delta data store to crawl one or more Delta tables.

      • DeltaTables (list) --

        A list of the Amazon S3 paths to the Delta tables.

        • (string) --

      • ConnectionName (string) --

        The name of the connection to use to connect to the Delta table target.

      • WriteManifest (boolean) --

        Specifies whether to write the manifest files to the Delta table path.

      • CreateNativeDeltaTable (boolean) --

        Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly.

  • IcebergTargets (list) --

    Specifies Apache Iceberg data store targets.

    • (dict) --

      Specifies an Apache Iceberg data source where Iceberg tables are stored in Amazon S3.

      • Paths (list) --

        One or more Amazon S3 paths that contains Iceberg metadata folders as s3://bucket/prefix.

        • (string) --

      • ConnectionName (string) --

        The name of the connection to use to connect to the Iceberg target.

      • Exclusions (list) --

        A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • (string) --

      • MaximumTraversalDepth (integer) --

        The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Iceberg metadata folder in your Amazon S3 path. Used to limit the crawler run time.

  • HudiTargets (list) --

    Specifies Apache Hudi data store targets.

    • (dict) --

      Specifies an Apache Hudi data source.

      • Paths (list) --

        An array of Amazon S3 location strings for Hudi, each indicating the root folder with which the metadata files for a Hudi table resides. The Hudi folder may be located in a child folder of the root folder.

        The crawler will scan all folders underneath a path for a Hudi folder.

        • (string) --

      • ConnectionName (string) --

        The name of the connection to use to connect to the Hudi target. If your Hudi files are stored in buckets that require VPC authorization, you can set their connection properties here.

      • Exclusions (list) --

        A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • (string) --

      • MaximumTraversalDepth (integer) --

        The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Hudi metadata folder in your Amazon S3 path. Used to limit the crawler run time.

  • LineageTargets (list) --

    Specifies lineage targets.

    • (dict) --

      Specifies a lineage source from which the crawler synchronizes lineage.

      • ConnectionName (string) -- [REQUIRED]

        The name of the connection to use to connect to the lineage source.

type Schedule:

string

param Schedule:

A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

type Classifiers:

list

param Classifiers:

A list of custom classifiers that the user has registered. By default, all built-in classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.

  • (string) --

type TablePrefix:

string

param TablePrefix:

The table prefix used for catalog tables that are created.

type SchemaChangePolicy:

dict

param SchemaChangePolicy:

The policy for the crawler's update and deletion behavior.

  • UpdateBehavior (string) --

    The update behavior when the crawler finds a changed schema.

  • DeleteBehavior (string) --

    The deletion behavior when the crawler finds a deleted object.

type RecrawlPolicy:

dict

param RecrawlPolicy:

A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.

  • RecrawlBehavior (string) --

    Specifies whether to crawl the entire dataset again or to crawl only folders that were added since the last crawler run.

    A value of CRAWL_EVERYTHING specifies crawling the entire dataset again.

    A value of CRAWL_NEW_FOLDERS_ONLY specifies crawling only folders that were added since the last crawler run.

    A value of CRAWL_EVENT_MODE specifies crawling only the changes identified by Amazon S3 events.

type LineageConfiguration:

dict

param LineageConfiguration:

Specifies data lineage configuration settings for the crawler.

  • CrawlerLineageSettings (string) --

    Specifies whether data lineage is enabled for the crawler. Valid values are:

    • ENABLE: enables data lineage for the crawler

    • DISABLE: disables data lineage for the crawler

type LakeFormationConfiguration:

dict

param LakeFormationConfiguration:

Specifies Lake Formation configuration settings for the crawler.

  • UseLakeFormationCredentials (boolean) --

    Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials.

  • AccountId (string) --

    Required for cross account crawls. For same account crawls as the target data, this can be left as null.

type Configuration:

string

param Configuration:

Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.

type CrawlerSecurityConfiguration:

string

param CrawlerSecurityConfiguration:

The name of the SecurityConfiguration structure to be used by this crawler.

type Tags:

dict

param Tags:

The tags to use with this crawler request. You may use tags to limit access to the crawler. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.

  • (string) --

    • (string) --

type CatalogId:

string

param CatalogId:

The ID of the Data Catalog in which to store the crawler's output. If none is supplied, the Amazon Web Services account ID is used by default.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

CreateDevEndpoint (updated) Link ¶
Changes (both)
{'WorkerType': {'G.12X.GRAVITON',
                'G.16X.GRAVITON',
                'G.1X.GRAVITON',
                'G.2X.GRAVITON',
                'G.4X.GRAVITON',
                'G.8X.GRAVITON',
                'R.1X.GRAVITON',
                'R.2X.GRAVITON',
                'R.4X.GRAVITON',
                'R.8X.GRAVITON'}}

Creates a new development endpoint.

See also: AWS API Documentation

Request Syntax

client.create_dev_endpoint(
    EndpointName='string',
    RoleArn='string',
    SecurityGroupIds=[
        'string',
    ],
    SubnetId='string',
    PublicKey='string',
    PublicKeys=[
        'string',
    ],
    NumberOfNodes=123,
    WorkerType='Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
    GlueVersion='string',
    NumberOfWorkers=123,
    ExtraPythonLibsS3Path='string',
    ExtraJarsS3Path='string',
    SecurityConfiguration='string',
    Tags={
        'string': 'string'
    },
    Arguments={
        'string': 'string'
    }
)
type EndpointName:

string

param EndpointName:

[REQUIRED]

The name to be assigned to the new DevEndpoint.

type RoleArn:

string

param RoleArn:

[REQUIRED]

The IAM role for the DevEndpoint.

type SecurityGroupIds:

list

param SecurityGroupIds:

Security group IDs for the security groups to be used by the new DevEndpoint.

  • (string) --

type SubnetId:

string

param SubnetId:

The subnet ID for the new DevEndpoint to use.

type PublicKey:

string

param PublicKey:

The public key to be used by this DevEndpoint for authentication. This attribute is provided for backward compatibility because the recommended attribute to use is public keys.

type PublicKeys:

list

param PublicKeys:

A list of public keys to be used by the development endpoints for authentication. The use of this attribute is preferred over a single public key because the public keys allow you to have a different private key per client.

  • (string) --

type NumberOfNodes:

integer

param NumberOfNodes:

The number of Glue Data Processing Units (DPUs) to allocate to this DevEndpoint.

type WorkerType:

string

param WorkerType:

The type of predefined worker that is allocated to the development endpoint. Accepts a value of Standard, G.1X, or G.2X.

  • For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.

  • For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.

  • For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.

Known issue: when a development endpoint is created with the G.2X WorkerType configuration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk.

type GlueVersion:

string

param GlueVersion:

Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.

For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

Development endpoints that are created without specifying a Glue version default to Glue 0.9.

You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

type NumberOfWorkers:

integer

param NumberOfWorkers:

The number of workers of a defined workerType that are allocated to the development endpoint.

The maximum number of workers you can define are 299 for G.1X, and 149 for G.2X.

type ExtraPythonLibsS3Path:

string

param ExtraPythonLibsS3Path:

The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma.

type ExtraJarsS3Path:

string

param ExtraJarsS3Path:

The path to one or more Java .jar files in an S3 bucket that should be loaded in your DevEndpoint.

type SecurityConfiguration:

string

param SecurityConfiguration:

The name of the SecurityConfiguration structure to be used with this DevEndpoint.

type Tags:

dict

param Tags:

The tags to use with this DevEndpoint. You may use tags to limit access to the DevEndpoint. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.

  • (string) --

    • (string) --

type Arguments:

dict

param Arguments:

A map of arguments used to configure the DevEndpoint.

  • (string) --

    • (string) --

rtype:

dict

returns:

Response Syntax

{
    'EndpointName': 'string',
    'Status': 'string',
    'SecurityGroupIds': [
        'string',
    ],
    'SubnetId': 'string',
    'RoleArn': 'string',
    'YarnEndpointAddress': 'string',
    'ZeppelinRemoteSparkInterpreterPort': 123,
    'NumberOfNodes': 123,
    'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
    'GlueVersion': 'string',
    'NumberOfWorkers': 123,
    'AvailabilityZone': 'string',
    'VpcId': 'string',
    'ExtraPythonLibsS3Path': 'string',
    'ExtraJarsS3Path': 'string',
    'FailureReason': 'string',
    'SecurityConfiguration': 'string',
    'CreatedTimestamp': datetime(2015, 1, 1),
    'Arguments': {
        'string': 'string'
    }
}

Response Structure

  • (dict) --

    • EndpointName (string) --

      The name assigned to the new DevEndpoint.

    • Status (string) --

      The current status of the new DevEndpoint.

    • SecurityGroupIds (list) --

      The security groups assigned to the new DevEndpoint.

      • (string) --

    • SubnetId (string) --

      The subnet ID assigned to the new DevEndpoint.

    • RoleArn (string) --

      The Amazon Resource Name (ARN) of the role assigned to the new DevEndpoint.

    • YarnEndpointAddress (string) --

      The address of the YARN endpoint used by this DevEndpoint.

    • ZeppelinRemoteSparkInterpreterPort (integer) --

      The Apache Zeppelin port for the remote Apache Spark interpreter.

    • NumberOfNodes (integer) --

      The number of Glue Data Processing Units (DPUs) allocated to this DevEndpoint.

    • WorkerType (string) --

      The type of predefined worker that is allocated to the development endpoint. May be a value of Standard, G.1X, or G.2X.

    • GlueVersion (string) --

      Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.

      For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

    • NumberOfWorkers (integer) --

      The number of workers of a defined workerType that are allocated to the development endpoint.

    • AvailabilityZone (string) --

      The Amazon Web Services Availability Zone where this DevEndpoint is located.

    • VpcId (string) --

      The ID of the virtual private cloud (VPC) used by this DevEndpoint.

    • ExtraPythonLibsS3Path (string) --

      The paths to one or more Python libraries in an S3 bucket that will be loaded in your DevEndpoint.

    • ExtraJarsS3Path (string) --

      Path to one or more Java .jar files in an S3 bucket that will be loaded in your DevEndpoint.

    • FailureReason (string) --

      The reason for a current failure in this DevEndpoint.

    • SecurityConfiguration (string) --

      The name of the SecurityConfiguration structure being used with this DevEndpoint.

    • CreatedTimestamp (datetime) --

      The point in time at which this DevEndpoint was created.

    • Arguments (dict) --

      The map of arguments used to configure this DevEndpoint.

      Valid arguments are:

      • "--enable-glue-datacatalog": ""

      You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

      • (string) --

        • (string) --

CreateJob (updated) Link ¶
Changes (request)
{'WorkerType': {'G.12X.GRAVITON',
                'G.16X.GRAVITON',
                'G.1X.GRAVITON',
                'G.2X.GRAVITON',
                'G.4X.GRAVITON',
                'G.8X.GRAVITON',
                'R.1X.GRAVITON',
                'R.2X.GRAVITON',
                'R.4X.GRAVITON',
                'R.8X.GRAVITON'}}

Creates a new job definition.

See also: AWS API Documentation

Request Syntax

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

Parameters

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

rtype:

dict

returns:

Response Syntax

{
    'Name': 'string'
}

Response Structure

  • (dict) --

    • Name (string) --

      The unique name that was provided for this job definition.

CreateMLTransform (updated) Link ¶
Changes (request)
{'WorkerType': {'G.12X.GRAVITON',
                'G.16X.GRAVITON',
                'G.1X.GRAVITON',
                'G.2X.GRAVITON',
                'G.4X.GRAVITON',
                'G.8X.GRAVITON',
                'R.1X.GRAVITON',
                'R.2X.GRAVITON',
                'R.4X.GRAVITON',
                'R.8X.GRAVITON'}}

Creates an Glue machine learning transform. This operation creates the transform and all the necessary parameters to train it.

Call this operation as the first step in the process of using a machine learning transform (such as the FindMatches transform) for deduplicating data. You can provide an optional Description, in addition to the parameters that you want to use for your algorithm.

You must also specify certain parameters for the tasks that Glue runs on your behalf as part of learning from your data and creating a high-quality machine learning transform. These parameters include Role, and optionally, AllocatedCapacity, Timeout, and MaxRetries. For more information, see Jobs.

See also: AWS API Documentation

Request Syntax

client.create_ml_transform(
    Name='string',
    Description='string',
    InputRecordTables=[
        {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            }
        },
    ],
    Parameters={
        'TransformType': 'FIND_MATCHES',
        'FindMatchesParameters': {
            'PrimaryKeyColumnName': 'string',
            'PrecisionRecallTradeoff': 123.0,
            'AccuracyCostTradeoff': 123.0,
            'EnforceProvidedLabels': True|False
        }
    },
    Role='string',
    GlueVersion='string',
    MaxCapacity=123.0,
    WorkerType='Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
    NumberOfWorkers=123,
    Timeout=123,
    MaxRetries=123,
    Tags={
        'string': 'string'
    },
    TransformEncryption={
        'MlUserDataEncryption': {
            'MlUserDataEncryptionMode': 'DISABLED'|'SSE-KMS',
            'KmsKeyId': 'string'
        },
        'TaskRunSecurityConfigurationName': 'string'
    }
)
type Name:

string

param Name:

[REQUIRED]

The unique name that you give the transform when you create it.

type Description:

string

param Description:

A description of the machine learning transform that is being defined. The default is an empty string.

type InputRecordTables:

list

param InputRecordTables:

[REQUIRED]

A list of Glue table definitions used by the transform.

  • (dict) --

    The database and table in the Glue Data Catalog that is used for input or output data.

    • DatabaseName (string) -- [REQUIRED]

      A database name in the Glue Data Catalog.

    • TableName (string) -- [REQUIRED]

      A table name in the Glue Data Catalog.

    • CatalogId (string) --

      A unique identifier for the Glue Data Catalog.

    • ConnectionName (string) --

      The name of the connection to the Glue Data Catalog.

    • AdditionalOptions (dict) --

      Additional options for the table. Currently there are two keys supported:

      • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

      • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

      • (string) --

        • (string) --

type Parameters:

dict

param Parameters:

[REQUIRED]

The algorithmic parameters that are specific to the transform type used. Conditionally dependent on the transform type.

  • TransformType (string) -- [REQUIRED]

    The type of machine learning transform.

    For information about the types of machine learning transforms, see Creating Machine Learning Transforms.

  • FindMatchesParameters (dict) --

    The parameters for the find matches algorithm.

    • PrimaryKeyColumnName (string) --

      The name of a column that uniquely identifies rows in the source table. Used to help identify matching records.

    • PrecisionRecallTradeoff (float) --

      The value selected when tuning your transform for a balance between precision and recall. A value of 0.5 means no preference; a value of 1.0 means a bias purely for precision, and a value of 0.0 means a bias for recall. Because this is a tradeoff, choosing values close to 1.0 means very low recall, and choosing values close to 0.0 results in very low precision.

      The precision metric indicates how often your model is correct when it predicts a match.

      The recall metric indicates that for an actual match, how often your model predicts the match.

    • AccuracyCostTradeoff (float) --

      The value that is selected when tuning your transform for a balance between accuracy and cost. A value of 0.5 means that the system balances accuracy and cost concerns. A value of 1.0 means a bias purely for accuracy, which typically results in a higher cost, sometimes substantially higher. A value of 0.0 means a bias purely for cost, which results in a less accurate FindMatches transform, sometimes with unacceptable accuracy.

      Accuracy measures how well the transform finds true positives and true negatives. Increasing accuracy requires more machine resources and cost. But it also results in increased recall.

      Cost measures how many compute resources, and thus money, are consumed to run the transform.

    • EnforceProvidedLabels (boolean) --

      The value to switch on or off to force the output to match the provided labels from users. If the value is True, the find matches transform forces the output to match the provided labels. The results override the normal conflation results. If the value is False, the find matches transform does not ensure all the labels provided are respected, and the results rely on the trained model.

      Note that setting this value to true may increase the conflation execution time.

type Role:

string

param Role:

[REQUIRED]

The name or Amazon Resource Name (ARN) of the IAM role with the required permissions. The required permissions include both Glue service role permissions to Glue resources, and Amazon S3 permissions required by the transform.

  • This role needs Glue service role permissions to allow access to resources in Glue. See Attach a Policy to IAM Users That Access Glue.

  • This role needs permission to your Amazon Simple Storage Service (Amazon S3) sources, targets, temporary directory, scripts, and any libraries used by the task run for this transform.

type GlueVersion:

string

param GlueVersion:

This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.

type MaxCapacity:

float

param MaxCapacity:

The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

MaxCapacity is a mutually exclusive option with NumberOfWorkers and WorkerType.

  • If either NumberOfWorkers or WorkerType is set, then MaxCapacity cannot be set.

  • If MaxCapacity is set then neither NumberOfWorkers or WorkerType can be set.

  • If WorkerType is set, then NumberOfWorkers is required (and vice versa).

  • MaxCapacity and NumberOfWorkers must both be at least 1.

When the WorkerType field is set to a value other than Standard, the MaxCapacity field is set automatically and becomes read-only.

When the WorkerType field is set to a value other than Standard, the MaxCapacity field is set automatically and becomes read-only.

type WorkerType:

string

param WorkerType:

The type of predefined worker that is allocated when this task runs. Accepts a value of Standard, G.1X, or G.2X.

  • For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.

  • For the G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker.

  • For the G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.

MaxCapacity is a mutually exclusive option with NumberOfWorkers and WorkerType.

  • If either NumberOfWorkers or WorkerType is set, then MaxCapacity cannot be set.

  • If MaxCapacity is set then neither NumberOfWorkers or WorkerType can be set.

  • If WorkerType is set, then NumberOfWorkers is required (and vice versa).

  • MaxCapacity and NumberOfWorkers must both be at least 1.

type NumberOfWorkers:

integer

param NumberOfWorkers:

The number of workers of a defined workerType that are allocated when this task runs.

If WorkerType is set, then NumberOfWorkers is required (and vice versa).

type Timeout:

integer

param Timeout:

The timeout of the task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

type MaxRetries:

integer

param MaxRetries:

The maximum number of times to retry a task for this transform after a task run fails.

type Tags:

dict

param Tags:

The tags to use with this machine learning transform. You may use tags to limit access to the machine learning transform. For more information about tags in Glue, see Amazon Web Services Tags in Glue in the developer guide.

  • (string) --

    • (string) --

type TransformEncryption:

dict

param TransformEncryption:

The encryption-at-rest settings of the transform that apply to accessing user data. Machine learning transforms can access user data encrypted in Amazon S3 using KMS.

  • MlUserDataEncryption (dict) --

    An MLUserDataEncryption object containing the encryption mode and customer-provided KMS key ID.

    • MlUserDataEncryptionMode (string) -- [REQUIRED]

      The encryption mode applied to user data. Valid values are:

      • DISABLED: encryption is disabled

      • SSEKMS: use of server-side encryption with Key Management Service (SSE-KMS) for user data stored in Amazon S3.

    • KmsKeyId (string) --

      The ID for the customer-provided KMS key.

  • TaskRunSecurityConfigurationName (string) --

    The name of the security configuration.

rtype:

dict

returns:

Response Syntax

{
    'TransformId': 'string'
}

Response Structure

  • (dict) --

    • TransformId (string) --

      A unique identifier that is generated for the transform.

CreateSession (updated) Link ¶
Changes (request, response)
Request
{'WorkerType': {'G.12X.GRAVITON',
                'G.16X.GRAVITON',
                'G.1X.GRAVITON',
                'G.2X.GRAVITON',
                'G.4X.GRAVITON',
                'G.8X.GRAVITON',
                'R.1X.GRAVITON',
                'R.2X.GRAVITON',
                'R.4X.GRAVITON',
                'R.8X.GRAVITON'}}
Response
{'Session': {'WorkerType': {'G.12X.GRAVITON',
                            'G.16X.GRAVITON',
                            'G.1X.GRAVITON',
                            'G.2X.GRAVITON',
                            'G.4X.GRAVITON',
                            'G.8X.GRAVITON',
                            'R.1X.GRAVITON',
                            'R.2X.GRAVITON',
                            'R.4X.GRAVITON',
                            'R.8X.GRAVITON'}}}

Creates a new session.

See also: AWS API Documentation

Request Syntax

client.create_session(
    Id='string',
    Description='string',
    Role='string',
    Command={
        'Name': 'string',
        'PythonVersion': 'string'
    },
    Timeout=123,
    IdleTimeout=123,
    DefaultArguments={
        'string': 'string'
    },
    Connections={
        'Connections': [
            'string',
        ]
    },
    MaxCapacity=123.0,
    NumberOfWorkers=123,
    WorkerType='Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
    SecurityConfiguration='string',
    GlueVersion='string',
    Tags={
        'string': 'string'
    },
    RequestOrigin='string',
    SessionType='LIVY'|'SPARK_CONNECT'
)
type Id:

string

param Id:

[REQUIRED]

The ID of the session request.

type Description:

string

param Description:

The description of the session.

type Role:

string

param Role:

[REQUIRED]

The IAM Role ARN

type Command:

dict

param Command:

[REQUIRED]

The SessionCommand that runs the job.

  • Name (string) --

    Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.

  • PythonVersion (string) --

    Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.

type Timeout:

integer

param Timeout:

The number of minutes before session times out. Default for Spark ETL jobs is 48 hours (2880 minutes). Consult the documentation for other job types.

type IdleTimeout:

integer

param IdleTimeout:

The number of minutes when idle before session times out. Default for Spark ETL jobs is value of Timeout. Consult the documentation for other job types.

type DefaultArguments:

dict

param DefaultArguments:

A map array of key-value pairs. Max is 75 pairs.

  • (string) --

    • (string) --

type Connections:

dict

param Connections:

The number of connections to use for the session.

  • Connections (list) --

    A list of connections used by the job.

    • (string) --

type MaxCapacity:

float

param MaxCapacity:

The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.

type NumberOfWorkers:

integer

param NumberOfWorkers:

The number of workers of a defined WorkerType to use for the session.

type WorkerType:

string

param WorkerType:

The type of predefined worker that is allocated when a job runs. Accepts a value of G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray notebooks.

  • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

  • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

  • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

type SecurityConfiguration:

string

param SecurityConfiguration:

The name of the SecurityConfiguration structure to be used with the session

type GlueVersion:

string

param GlueVersion:

The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.

type Tags:

dict

param Tags:

The map of key value pairs (tags) belonging to the session.

  • (string) --

    • (string) --

type RequestOrigin:

string

param RequestOrigin:

The origin of the request.

type SessionType:

string

param SessionType:

The type of session to create.

rtype:

dict

returns:

Response Syntax

{
    'Session': {
        'Id': 'string',
        'CreatedOn': datetime(2015, 1, 1),
        'Status': 'PROVISIONING'|'READY'|'FAILED'|'TIMEOUT'|'STOPPING'|'STOPPED',
        'ErrorMessage': 'string',
        'Description': 'string',
        'Role': 'string',
        'Command': {
            'Name': 'string',
            'PythonVersion': 'string'
        },
        'DefaultArguments': {
            'string': 'string'
        },
        'Connections': {
            'Connections': [
                'string',
            ]
        },
        'Progress': 123.0,
        'MaxCapacity': 123.0,
        'SecurityConfiguration': 'string',
        'GlueVersion': 'string',
        'NumberOfWorkers': 123,
        'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
        'CompletedOn': datetime(2015, 1, 1),
        'ExecutionTime': 123.0,
        'DPUSeconds': 123.0,
        'IdleTimeout': 123,
        'ProfileName': 'string',
        'SessionType': 'LIVY'|'SPARK_CONNECT'
    }
}

Response Structure

  • (dict) --

    • Session (dict) --

      Returns the session object in the response.

      • Id (string) --

        The ID of the session.

      • CreatedOn (datetime) --

        The time and date when the session was created.

      • Status (string) --

        The session status.

      • ErrorMessage (string) --

        The error message displayed during the session.

      • Description (string) --

        The description of the session.

      • Role (string) --

        The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.

      • Command (dict) --

        The command object.See SessionCommand.

        • Name (string) --

          Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.

        • PythonVersion (string) --

          Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.

      • DefaultArguments (dict) --

        A map array of key-value pairs. Max is 75 pairs.

        • (string) --

          • (string) --

      • Connections (dict) --

        The number of connections used for the session.

        • Connections (list) --

          A list of connections used by the job.

          • (string) --

      • Progress (float) --

        The code execution progress of the session.

      • MaxCapacity (float) --

        The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.

      • SecurityConfiguration (string) --

        The name of the SecurityConfiguration structure to be used with the session.

      • GlueVersion (string) --

        The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.

      • NumberOfWorkers (integer) --

        The number of workers of a defined WorkerType to use for the session.

      • WorkerType (string) --

        The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark sessions. Accepts the value Z.2X for Ray sessions.

        The G.12X, G.16X, and R.1X through R.8X worker types are available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

      • CompletedOn (datetime) --

        The date and time that this session is completed.

      • ExecutionTime (float) --

        The total time the session ran for.

      • DPUSeconds (float) --

        The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).

      • IdleTimeout (integer) --

        The number of minutes when idle before the session times out.

      • ProfileName (string) --

        The name of an Glue usage profile associated with the session.

      • SessionType (string) --

        The type of the session.

DeleteAttachment (updated) Link ¶
Changes (response)
{'AttachmentName': 'string'}

Deletes a form attachment from an asset in Glue Data Catalog.

See also: AWS API Documentation

Request Syntax

client.delete_attachment(
    AssetIdentifier='string',
    IterableFormName='string',
    ItemIdentifier='string',
    AttachmentName='string'
)
type AssetIdentifier:

string

param AssetIdentifier:

[REQUIRED]

The unique identifier of the asset from which to delete the attachment.

type IterableFormName:

string

param IterableFormName:

The name of the iterable form. When specified along with itemIdentifier, the attachment is deleted from an item within the iterable form rather than from the asset itself.

type ItemIdentifier:

string

param ItemIdentifier:

The identifier of the item within the iterable form. Required when iterableFormName is specified.

type AttachmentName:

string

param AttachmentName:

[REQUIRED]

The name of the attachment to delete.

rtype:

dict

returns:

Response Syntax

{
    'AssetId': 'string',
    'IterableFormName': 'string',
    'ItemId': 'string',
    'AttachmentName': 'string'
}

Response Structure

  • (dict) --

    • AssetId (string) --

      The unique identifier of the asset.

    • IterableFormName (string) --

      The name of the iterable form, if the deletion targets an item.

    • ItemId (string) --

      The identifier of the item within the iterable form, if applicable.

    • AttachmentName (string) --

      The name of the attachment that was deleted.

GetCatalog (updated) Link ¶
Changes (response)
{'Catalog': {'FederatedCatalog': {'SyncConfiguration': {'AssetsSyncConfiguration': {'ManagedCrawlerDetails': {'CrawlerArn': 'string',
                                                                                                              'Error': {'ErrorCode': 'string',
                                                                                                                        'ErrorMessage': 'string'},
                                                                                                              'Status': 'PROVISIONING '
                                                                                                                        '| '
                                                                                                                        'PROVISIONED '
                                                                                                                        '| '
                                                                                                                        'FAILED'},
                                                                                    'RefreshIntervalMinutes': 'integer',
                                                                                    'Status': 'ENABLED '
                                                                                              '| '
                                                                                              'DISABLED'},
                                                        'LineageSyncConfiguration': {'ManagedCrawlerDetails': {'CrawlerArn': 'string',
                                                                                                               'Error': {'ErrorCode': 'string',
                                                                                                                         'ErrorMessage': 'string'},
                                                                                                               'Status': 'PROVISIONING '
                                                                                                                         '| '
                                                                                                                         'PROVISIONED '
                                                                                                                         '| '
                                                                                                                         'FAILED'},
                                                                                     'RefreshIntervalMinutes': 'integer',
                                                                                     'Status': 'ENABLED '
                                                                                               '| '
                                                                                               'DISABLED'},
                                                        'RoleArn': 'string'}}}}

The name of the Catalog to retrieve. This should be all lowercase.

See also: AWS API Documentation

Request Syntax

client.get_catalog(
    CatalogId='string'
)
type CatalogId:

string

param CatalogId:

[REQUIRED]

The ID of the parent catalog in which the catalog resides. If none is provided, the Amazon Web Services Account Number is used by default.

rtype:

dict

returns:

Response Syntax

{
    'Catalog': {
        'CatalogId': 'string',
        'Name': 'string',
        'ResourceArn': 'string',
        'Description': 'string',
        'Parameters': {
            'string': 'string'
        },
        'CreateTime': datetime(2015, 1, 1),
        'UpdateTime': datetime(2015, 1, 1),
        'TargetRedshiftCatalog': {
            'CatalogArn': 'string'
        },
        'FederatedCatalog': {
            'Identifier': 'string',
            'ConnectionName': 'string',
            'ConnectionType': 'string',
            'SyncConfiguration': {
                'RoleArn': 'string',
                'AssetsSyncConfiguration': {
                    'Status': 'ENABLED'|'DISABLED',
                    'RefreshIntervalMinutes': 123,
                    'ManagedCrawlerDetails': {
                        'CrawlerArn': 'string',
                        'Status': 'PROVISIONING'|'PROVISIONED'|'FAILED',
                        'Error': {
                            'ErrorCode': 'string',
                            'ErrorMessage': 'string'
                        }
                    }
                },
                'LineageSyncConfiguration': {
                    'Status': 'ENABLED'|'DISABLED',
                    'RefreshIntervalMinutes': 123,
                    'ManagedCrawlerDetails': {
                        'CrawlerArn': 'string',
                        'Status': 'PROVISIONING'|'PROVISIONED'|'FAILED',
                        'Error': {
                            'ErrorCode': 'string',
                            'ErrorMessage': 'string'
                        }
                    }
                }
            }
        },
        'CatalogProperties': {
            'DataLakeAccessProperties': {
                'DataLakeAccess': True|False,
                'DataTransferRole': 'string',
                'KmsKey': 'string',
                'ManagedWorkgroupName': 'string',
                'ManagedWorkgroupStatus': 'string',
                'RedshiftDatabaseName': 'string',
                'StatusMessage': 'string',
                'CatalogType': 'string'
            },
            'IcebergOptimizationProperties': {
                'RoleArn': 'string',
                'Compaction': {
                    'string': 'string'
                },
                'Retention': {
                    'string': 'string'
                },
                'OrphanFileDeletion': {
                    'string': 'string'
                },
                'LastUpdatedTime': datetime(2015, 1, 1)
            },
            'CustomProperties': {
                'string': 'string'
            }
        },
        'CreateTableDefaultPermissions': [
            {
                'Principal': {
                    'DataLakePrincipalIdentifier': 'string'
                },
                'Permissions': [
                    'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS',
                ]
            },
        ],
        'CreateDatabaseDefaultPermissions': [
            {
                'Principal': {
                    'DataLakePrincipalIdentifier': 'string'
                },
                'Permissions': [
                    'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS',
                ]
            },
        ],
        'AllowFullTableExternalDataAccess': 'True'|'False'
    }
}

Response Structure

  • (dict) --

    • Catalog (dict) --

      A Catalog object. The definition of the specified catalog in the Glue Data Catalog.

      • CatalogId (string) --

        The ID of the catalog. To grant access to the default catalog, this field should not be provided.

      • Name (string) --

        The name of the catalog. Cannot be the same as the account ID.

      • ResourceArn (string) --

        The Amazon Resource Name (ARN) assigned to the catalog resource.

      • Description (string) --

        Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern. A description of the catalog.

      • Parameters (dict) --

        A map array of key-value pairs that define parameters and properties of the catalog.

        • (string) --

          • (string) --

      • CreateTime (datetime) --

        The time at which the catalog was created.

      • UpdateTime (datetime) --

        The time at which the catalog was last updated.

      • TargetRedshiftCatalog (dict) --

        A TargetRedshiftCatalog object that describes a target catalog for database resource linking.

        • CatalogArn (string) --

          The Amazon Resource Name (ARN) of the catalog resource.

      • FederatedCatalog (dict) --

        A FederatedCatalog object that points to an entity outside the Glue Data Catalog.

        • Identifier (string) --

          A unique identifier for the federated catalog.

        • ConnectionName (string) --

          The name of the connection to an external data source, for example a Redshift-federated catalog.

        • ConnectionType (string) --

          The type of connection used to access the federated catalog, specifying the protocol or method for connection to the external data source.

        • SyncConfiguration (dict) --

          Configuration for synchronizing assets and lineage from the external data source into the federated catalog.

          • RoleArn (string) --

            The ARN of the IAM role that Glue assumes to synchronize the federated catalog.

          • AssetsSyncConfiguration (dict) --

            Configuration for synchronizing assets, such as databases and tables.

            • Status (string) --

              Whether assets synchronization is ENABLED or DISABLED.

            • RefreshIntervalMinutes (integer) --

              How often assets are synchronized, in minutes. The minimum is 1440 (one day) and the maximum is 10080 (seven days).

            • ManagedCrawlerDetails (dict) --

              Details of the managed crawler that performs assets synchronization.

              • CrawlerArn (string) --

                The ARN of the managed crawler.

              • Status (string) --

                The provisioning status of the managed crawler: PROVISIONING, PROVISIONED, or FAILED.

              • Error (dict) --

                The error that occurred when provisioning the managed crawler failed.

                • ErrorCode (string) --

                  The code associated with this error.

                • ErrorMessage (string) --

                  A message describing the error.

          • LineageSyncConfiguration (dict) --

            Configuration for synchronizing lineage.

            • Status (string) --

              Whether lineage synchronization is ENABLED or DISABLED.

            • RefreshIntervalMinutes (integer) --

              How often lineage is synchronized, in minutes. The minimum is 1440 (one day) and the maximum is 10080 (seven days).

            • ManagedCrawlerDetails (dict) --

              Details of the managed crawler that performs lineage synchronization.

              • CrawlerArn (string) --

                The ARN of the managed crawler.

              • Status (string) --

                The provisioning status of the managed crawler: PROVISIONING, PROVISIONED, or FAILED.

              • Error (dict) --

                The error that occurred when provisioning the managed crawler failed.

                • ErrorCode (string) --

                  The code associated with this error.

                • ErrorMessage (string) --

                  A message describing the error.

      • CatalogProperties (dict) --

        A CatalogProperties object that specifies data lake access properties and other custom properties.

        • DataLakeAccessProperties (dict) --

          A DataLakeAccessProperties object with input properties to configure data lake access for your catalog resource in the Glue Data Catalog.

          • DataLakeAccess (boolean) --

            Turns on or off data lake access for Apache Spark applications that access Amazon Redshift databases in the Data Catalog.

          • DataTransferRole (string) --

            A role that will be assumed by Glue for transferring data into/out of the staging bucket during a query.

          • KmsKey (string) --

            An encryption key that will be used for the staging bucket that will be created along with the catalog.

          • ManagedWorkgroupName (string) --

            The managed Redshift Serverless compute name that is created for your catalog resource.

          • ManagedWorkgroupStatus (string) --

            The managed Redshift Serverless compute status.

          • RedshiftDatabaseName (string) --

            The default Redshift database resource name in the managed compute.

          • StatusMessage (string) --

            A message that gives more detailed information about the managed workgroup status.

          • CatalogType (string) --

            Specifies a federated catalog type for the native catalog resource. The currently supported type is aws:redshift.

        • IcebergOptimizationProperties (dict) --

          An IcebergOptimizationPropertiesOutput object that specifies Iceberg table optimization settings for the catalog, including configurations for compaction, retention, and orphan file deletion operations.

          • RoleArn (string) --

            The Amazon Resource Name (ARN) of the IAM role that is used to perform Iceberg table optimization operations.

          • Compaction (dict) --

            A map of key-value pairs that specify configuration parameters for Iceberg table compaction operations, which optimize the layout of data files to improve query performance.

            • (string) --

              • (string) --

          • Retention (dict) --

            A map of key-value pairs that specify configuration parameters for Iceberg table retention operations, which manage the lifecycle of table snapshots to control storage costs.

            • (string) --

              • (string) --

          • OrphanFileDeletion (dict) --

            A map of key-value pairs that specify configuration parameters for Iceberg orphan file deletion operations, which identify and remove files that are no longer referenced by the table metadata.

            • (string) --

              • (string) --

          • LastUpdatedTime (datetime) --

            The timestamp when the Iceberg optimization properties were last updated.

        • CustomProperties (dict) --

          Additional key-value properties for the catalog, such as column statistics optimizations.

          • (string) --

            • (string) --

      • CreateTableDefaultPermissions (list) --

        An array of PrincipalPermissions objects. Creates a set of default permissions on the table(s) for principals. Used by Amazon Web Services Lake Formation. Not used in the normal course of Glue operations.

        • (dict) --

          Permissions granted to a principal.

          • Principal (dict) --

            The principal who is granted permissions.

            • DataLakePrincipalIdentifier (string) --

              An identifier for the Lake Formation principal.

          • Permissions (list) --

            The permissions that are granted to the principal.

            • (string) --

      • CreateDatabaseDefaultPermissions (list) --

        An array of PrincipalPermissions objects. Creates a set of default permissions on the database(s) for principals. Used by Amazon Web Services Lake Formation. Not used in the normal course of Glue operations.

        • (dict) --

          Permissions granted to a principal.

          • Principal (dict) --

            The principal who is granted permissions.

            • DataLakePrincipalIdentifier (string) --

              An identifier for the Lake Formation principal.

          • Permissions (list) --

            The permissions that are granted to the principal.

            • (string) --

      • AllowFullTableExternalDataAccess (string) --

        Allows third-party engines to access data in Amazon S3 locations that are registered with Lake Formation.

GetCatalogs (updated) Link ¶
Changes (response)
{'CatalogList': {'FederatedCatalog': {'SyncConfiguration': {'AssetsSyncConfiguration': {'ManagedCrawlerDetails': {'CrawlerArn': 'string',
                                                                                                                  'Error': {'ErrorCode': 'string',
                                                                                                                            'ErrorMessage': 'string'},
                                                                                                                  'Status': 'PROVISIONING '
                                                                                                                            '| '
                                                                                                                            'PROVISIONED '
                                                                                                                            '| '
                                                                                                                            'FAILED'},
                                                                                        'RefreshIntervalMinutes': 'integer',
                                                                                        'Status': 'ENABLED '
                                                                                                  '| '
                                                                                                  'DISABLED'},
                                                            'LineageSyncConfiguration': {'ManagedCrawlerDetails': {'CrawlerArn': 'string',
                                                                                                                   'Error': {'ErrorCode': 'string',
                                                                                                                             'ErrorMessage': 'string'},
                                                                                                                   'Status': 'PROVISIONING '
                                                                                                                             '| '
                                                                                                                             'PROVISIONED '
                                                                                                                             '| '
                                                                                                                             'FAILED'},
                                                                                         'RefreshIntervalMinutes': 'integer',
                                                                                         'Status': 'ENABLED '
                                                                                                   '| '
                                                                                                   'DISABLED'},
                                                            'RoleArn': 'string'}}}}

Retrieves all catalogs defined in a catalog in the Glue Data Catalog. For a Redshift-federated catalog use case, this operation returns the list of catalogs mapped to Redshift databases in the Redshift namespace catalog.

See also: AWS API Documentation

Request Syntax

client.get_catalogs(
    ParentCatalogId='string',
    NextToken='string',
    MaxResults=123,
    Recursive=True|False,
    IncludeRoot=True|False,
    HasDatabases=True|False
)
type ParentCatalogId:

string

param ParentCatalogId:

The ID of the parent catalog in which the catalog resides. If none is provided, the Amazon Web Services Account Number is used by default.

type NextToken:

string

param NextToken:

A continuation token, if this is a continuation call.

type MaxResults:

integer

param MaxResults:

The maximum number of catalogs to return in one response.

type Recursive:

boolean

param Recursive:

Whether to list all catalogs across the catalog hierarchy, starting from the ParentCatalogId. Defaults to false . When true, all catalog objects in the ParentCatalogID hierarchy are enumerated in the response.

type IncludeRoot:

boolean

param IncludeRoot:

Whether to list the default catalog in the account and region in the response. Defaults to false. When true and ParentCatalogId = NULL | Amazon Web Services Account ID, all catalogs and the default catalog are enumerated in the response.

When the ParentCatalogId is not equal to null, and this attribute is passed as false or true, an InvalidInputException is thrown.

type HasDatabases:

boolean

param HasDatabases:

When true, the response only includes catalogs that can contain databases. Some catalogs are organizational containers that hold only other catalogs, not databases. When this parameter is set to true, those container-only catalogs are excluded, and only catalogs capable of containing databases are returned. Defaults to false.

rtype:

dict

returns:

Response Syntax

{
    'CatalogList': [
        {
            'CatalogId': 'string',
            'Name': 'string',
            'ResourceArn': 'string',
            'Description': 'string',
            'Parameters': {
                'string': 'string'
            },
            'CreateTime': datetime(2015, 1, 1),
            'UpdateTime': datetime(2015, 1, 1),
            'TargetRedshiftCatalog': {
                'CatalogArn': 'string'
            },
            'FederatedCatalog': {
                'Identifier': 'string',
                'ConnectionName': 'string',
                'ConnectionType': 'string',
                'SyncConfiguration': {
                    'RoleArn': 'string',
                    'AssetsSyncConfiguration': {
                        'Status': 'ENABLED'|'DISABLED',
                        'RefreshIntervalMinutes': 123,
                        'ManagedCrawlerDetails': {
                            'CrawlerArn': 'string',
                            'Status': 'PROVISIONING'|'PROVISIONED'|'FAILED',
                            'Error': {
                                'ErrorCode': 'string',
                                'ErrorMessage': 'string'
                            }
                        }
                    },
                    'LineageSyncConfiguration': {
                        'Status': 'ENABLED'|'DISABLED',
                        'RefreshIntervalMinutes': 123,
                        'ManagedCrawlerDetails': {
                            'CrawlerArn': 'string',
                            'Status': 'PROVISIONING'|'PROVISIONED'|'FAILED',
                            'Error': {
                                'ErrorCode': 'string',
                                'ErrorMessage': 'string'
                            }
                        }
                    }
                }
            },
            'CatalogProperties': {
                'DataLakeAccessProperties': {
                    'DataLakeAccess': True|False,
                    'DataTransferRole': 'string',
                    'KmsKey': 'string',
                    'ManagedWorkgroupName': 'string',
                    'ManagedWorkgroupStatus': 'string',
                    'RedshiftDatabaseName': 'string',
                    'StatusMessage': 'string',
                    'CatalogType': 'string'
                },
                'IcebergOptimizationProperties': {
                    'RoleArn': 'string',
                    'Compaction': {
                        'string': 'string'
                    },
                    'Retention': {
                        'string': 'string'
                    },
                    'OrphanFileDeletion': {
                        'string': 'string'
                    },
                    'LastUpdatedTime': datetime(2015, 1, 1)
                },
                'CustomProperties': {
                    'string': 'string'
                }
            },
            'CreateTableDefaultPermissions': [
                {
                    'Principal': {
                        'DataLakePrincipalIdentifier': 'string'
                    },
                    'Permissions': [
                        'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS',
                    ]
                },
            ],
            'CreateDatabaseDefaultPermissions': [
                {
                    'Principal': {
                        'DataLakePrincipalIdentifier': 'string'
                    },
                    'Permissions': [
                        'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS',
                    ]
                },
            ],
            'AllowFullTableExternalDataAccess': 'True'|'False'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • CatalogList (list) --

      An array of Catalog objects. A list of Catalog objects from the specified parent catalog.

      • (dict) --

        The catalog object represents a logical grouping of databases in the Glue Data Catalog or a federated source. You can now create a Redshift-federated catalog or a catalog containing resource links to Redshift databases in another account or region.

        • CatalogId (string) --

          The ID of the catalog. To grant access to the default catalog, this field should not be provided.

        • Name (string) --

          The name of the catalog. Cannot be the same as the account ID.

        • ResourceArn (string) --

          The Amazon Resource Name (ARN) assigned to the catalog resource.

        • Description (string) --

          Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern. A description of the catalog.

        • Parameters (dict) --

          A map array of key-value pairs that define parameters and properties of the catalog.

          • (string) --

            • (string) --

        • CreateTime (datetime) --

          The time at which the catalog was created.

        • UpdateTime (datetime) --

          The time at which the catalog was last updated.

        • TargetRedshiftCatalog (dict) --

          A TargetRedshiftCatalog object that describes a target catalog for database resource linking.

          • CatalogArn (string) --

            The Amazon Resource Name (ARN) of the catalog resource.

        • FederatedCatalog (dict) --

          A FederatedCatalog object that points to an entity outside the Glue Data Catalog.

          • Identifier (string) --

            A unique identifier for the federated catalog.

          • ConnectionName (string) --

            The name of the connection to an external data source, for example a Redshift-federated catalog.

          • ConnectionType (string) --

            The type of connection used to access the federated catalog, specifying the protocol or method for connection to the external data source.

          • SyncConfiguration (dict) --

            Configuration for synchronizing assets and lineage from the external data source into the federated catalog.

            • RoleArn (string) --

              The ARN of the IAM role that Glue assumes to synchronize the federated catalog.

            • AssetsSyncConfiguration (dict) --

              Configuration for synchronizing assets, such as databases and tables.

              • Status (string) --

                Whether assets synchronization is ENABLED or DISABLED.

              • RefreshIntervalMinutes (integer) --

                How often assets are synchronized, in minutes. The minimum is 1440 (one day) and the maximum is 10080 (seven days).

              • ManagedCrawlerDetails (dict) --

                Details of the managed crawler that performs assets synchronization.

                • CrawlerArn (string) --

                  The ARN of the managed crawler.

                • Status (string) --

                  The provisioning status of the managed crawler: PROVISIONING, PROVISIONED, or FAILED.

                • Error (dict) --

                  The error that occurred when provisioning the managed crawler failed.

                  • ErrorCode (string) --

                    The code associated with this error.

                  • ErrorMessage (string) --

                    A message describing the error.

            • LineageSyncConfiguration (dict) --

              Configuration for synchronizing lineage.

              • Status (string) --

                Whether lineage synchronization is ENABLED or DISABLED.

              • RefreshIntervalMinutes (integer) --

                How often lineage is synchronized, in minutes. The minimum is 1440 (one day) and the maximum is 10080 (seven days).

              • ManagedCrawlerDetails (dict) --

                Details of the managed crawler that performs lineage synchronization.

                • CrawlerArn (string) --

                  The ARN of the managed crawler.

                • Status (string) --

                  The provisioning status of the managed crawler: PROVISIONING, PROVISIONED, or FAILED.

                • Error (dict) --

                  The error that occurred when provisioning the managed crawler failed.

                  • ErrorCode (string) --

                    The code associated with this error.

                  • ErrorMessage (string) --

                    A message describing the error.

        • CatalogProperties (dict) --

          A CatalogProperties object that specifies data lake access properties and other custom properties.

          • DataLakeAccessProperties (dict) --

            A DataLakeAccessProperties object with input properties to configure data lake access for your catalog resource in the Glue Data Catalog.

            • DataLakeAccess (boolean) --

              Turns on or off data lake access for Apache Spark applications that access Amazon Redshift databases in the Data Catalog.

            • DataTransferRole (string) --

              A role that will be assumed by Glue for transferring data into/out of the staging bucket during a query.

            • KmsKey (string) --

              An encryption key that will be used for the staging bucket that will be created along with the catalog.

            • ManagedWorkgroupName (string) --

              The managed Redshift Serverless compute name that is created for your catalog resource.

            • ManagedWorkgroupStatus (string) --

              The managed Redshift Serverless compute status.

            • RedshiftDatabaseName (string) --

              The default Redshift database resource name in the managed compute.

            • StatusMessage (string) --

              A message that gives more detailed information about the managed workgroup status.

            • CatalogType (string) --

              Specifies a federated catalog type for the native catalog resource. The currently supported type is aws:redshift.

          • IcebergOptimizationProperties (dict) --

            An IcebergOptimizationPropertiesOutput object that specifies Iceberg table optimization settings for the catalog, including configurations for compaction, retention, and orphan file deletion operations.

            • RoleArn (string) --

              The Amazon Resource Name (ARN) of the IAM role that is used to perform Iceberg table optimization operations.

            • Compaction (dict) --

              A map of key-value pairs that specify configuration parameters for Iceberg table compaction operations, which optimize the layout of data files to improve query performance.

              • (string) --

                • (string) --

            • Retention (dict) --

              A map of key-value pairs that specify configuration parameters for Iceberg table retention operations, which manage the lifecycle of table snapshots to control storage costs.

              • (string) --

                • (string) --

            • OrphanFileDeletion (dict) --

              A map of key-value pairs that specify configuration parameters for Iceberg orphan file deletion operations, which identify and remove files that are no longer referenced by the table metadata.

              • (string) --

                • (string) --

            • LastUpdatedTime (datetime) --

              The timestamp when the Iceberg optimization properties were last updated.

          • CustomProperties (dict) --

            Additional key-value properties for the catalog, such as column statistics optimizations.

            • (string) --

              • (string) --

        • CreateTableDefaultPermissions (list) --

          An array of PrincipalPermissions objects. Creates a set of default permissions on the table(s) for principals. Used by Amazon Web Services Lake Formation. Not used in the normal course of Glue operations.

          • (dict) --

            Permissions granted to a principal.

            • Principal (dict) --

              The principal who is granted permissions.

              • DataLakePrincipalIdentifier (string) --

                An identifier for the Lake Formation principal.

            • Permissions (list) --

              The permissions that are granted to the principal.

              • (string) --

        • CreateDatabaseDefaultPermissions (list) --

          An array of PrincipalPermissions objects. Creates a set of default permissions on the database(s) for principals. Used by Amazon Web Services Lake Formation. Not used in the normal course of Glue operations.

          • (dict) --

            Permissions granted to a principal.

            • Principal (dict) --

              The principal who is granted permissions.

              • DataLakePrincipalIdentifier (string) --

                An identifier for the Lake Formation principal.

            • Permissions (list) --

              The permissions that are granted to the principal.

              • (string) --

        • AllowFullTableExternalDataAccess (string) --

          Allows third-party engines to access data in Amazon S3 locations that are registered with Lake Formation.

    • NextToken (string) --

      A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.

GetConnection (updated) Link ¶
Changes (response)
{'Connection': {'AuthenticationConfiguration': {'CredentialBrokerProperties': {'CredentialProviderArn': 'string',
                                                                               'OAuth2GrantType': 'AUTHORIZATION_CODE '
                                                                                                  '| '
                                                                                                  'CLIENT_CREDENTIALS '
                                                                                                  '| '
                                                                                                  'JWT_BEARER '
                                                                                                  '| '
                                                                                                  'REFRESH_TOKEN '
                                                                                                  '| '
                                                                                                  'TOKEN_EXCHANGE',
                                                                               'Scopes': ['string']},
                                                'OAuth2Properties': {'OAuth2GrantType': {'TOKEN_EXCHANGE'}}}}}

Retrieves a connection definition from the Data Catalog.

See also: AWS API Documentation

Request Syntax

client.get_connection(
    CatalogId='string',
    Name='string',
    HidePassword=True|False,
    ApplyOverrideForComputeEnvironment='SPARK'|'ATHENA'|'PYTHON'
)
type CatalogId:

string

param CatalogId:

The ID of the Data Catalog in which the connection resides. If none is provided, the Amazon Web Services account ID is used by default.

type Name:

string

param Name:

[REQUIRED]

The name of the connection definition to retrieve.

type HidePassword:

boolean

param HidePassword:

Allows you to retrieve the connection metadata without returning the password. For instance, the Glue console uses this flag to retrieve the connection, and does not display the password. Set this parameter when the caller might not have permission to use the KMS key to decrypt the password, but it does have permission to access the rest of the connection properties.

type ApplyOverrideForComputeEnvironment:

string

param ApplyOverrideForComputeEnvironment:

For connections that may be used in multiple services, specifies returning properties for the specified compute environment.

rtype:

dict

returns:

Response Syntax

{
    'Connection': {
        'Name': 'string',
        'Description': 'string',
        'ConnectionType': 'JDBC'|'SFTP'|'MONGODB'|'KAFKA'|'NETWORK'|'MARKETPLACE'|'CUSTOM'|'SALESFORCE'|'VIEW_VALIDATION_REDSHIFT'|'VIEW_VALIDATION_ATHENA'|'GOOGLEADS'|'GOOGLESHEETS'|'GOOGLEANALYTICS4'|'SERVICENOW'|'MARKETO'|'SAPODATA'|'ZENDESK'|'JIRACLOUD'|'NETSUITEERP'|'HUBSPOT'|'FACEBOOKADS'|'INSTAGRAMADS'|'ZOHOCRM'|'SALESFORCEPARDOT'|'SALESFORCEMARKETINGCLOUD'|'ADOBEANALYTICS'|'SLACK'|'LINKEDIN'|'MIXPANEL'|'ASANA'|'STRIPE'|'SMARTSHEET'|'DATADOG'|'WOOCOMMERCE'|'INTERCOM'|'SNAPCHATADS'|'PAYPAL'|'QUICKBOOKS'|'FACEBOOKPAGEINSIGHTS'|'FRESHDESK'|'TWILIO'|'DOCUSIGNMONITOR'|'FRESHSALES'|'ZOOM'|'GOOGLESEARCHCONSOLE'|'SALESFORCECOMMERCECLOUD'|'SAPCONCUR'|'DYNATRACE'|'MICROSOFTDYNAMIC365FINANCEANDOPS'|'MICROSOFTTEAMS'|'BLACKBAUDRAISEREDGENXT'|'MAILCHIMP'|'GITLAB'|'PENDO'|'PRODUCTBOARD'|'CIRCLECI'|'PIPEDIVE'|'SENDGRID'|'AZURECOSMOS'|'AZURESQL'|'BIGQUERY'|'BLACKBAUD'|'CLOUDERAHIVE'|'CLOUDERAIMPALA'|'CLOUDWATCH'|'CLOUDWATCHMETRICS'|'CMDB'|'DATALAKEGEN2'|'DB2'|'DB2AS400'|'DOCUMENTDB'|'DOMO'|'DYNAMODB'|'GOOGLECLOUDSTORAGE'|'HBASE'|'KUSTOMER'|'MICROSOFTDYNAMICS365CRM'|'MONDAY'|'MYSQL'|'OKTA'|'OPENSEARCH'|'ORACLE'|'PIPEDRIVE'|'POSTGRESQL'|'SAPHANA'|'SQLSERVER'|'SYNAPSE'|'TERADATA'|'TERADATANOS'|'TIMESTREAM'|'TPCDS'|'VERTICA',
        'MatchCriteria': [
            'string',
        ],
        'ConnectionProperties': {
            'string': 'string'
        },
        'SparkProperties': {
            'string': 'string'
        },
        'AthenaProperties': {
            'string': 'string'
        },
        'PythonProperties': {
            'string': 'string'
        },
        'PhysicalConnectionRequirements': {
            'SubnetId': 'string',
            'SecurityGroupIdList': [
                'string',
            ],
            'AvailabilityZone': 'string'
        },
        'CreationTime': datetime(2015, 1, 1),
        'LastUpdatedTime': datetime(2015, 1, 1),
        'LastUpdatedBy': 'string',
        'Status': 'READY'|'IN_PROGRESS'|'FAILED',
        'StatusReason': 'string',
        'LastConnectionValidationTime': datetime(2015, 1, 1),
        'AuthenticationConfiguration': {
            'AuthenticationType': 'BASIC'|'OAUTH2'|'CUSTOM'|'IAM',
            'SecretArn': 'string',
            'KmsKeyArn': 'string',
            'CredentialBrokerProperties': {
                'CredentialProviderArn': 'string',
                'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                'Scopes': [
                    'string',
                ]
            },
            'OAuth2Properties': {
                'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                'OAuth2ClientApplication': {
                    'UserManagedClientApplicationClientId': 'string',
                    'AWSManagedClientApplicationReference': 'string'
                },
                'TokenUrl': 'string',
                'TokenUrlParametersMap': {
                    'string': 'string'
                }
            }
        },
        'ConnectionSchemaVersion': 123,
        'CompatibleComputeEnvironments': [
            'SPARK'|'ATHENA'|'PYTHON',
        ]
    }
}

Response Structure

  • (dict) --

    • Connection (dict) --

      The requested connection definition.

      • Name (string) --

        The name of the connection definition.

      • Description (string) --

        The description of the connection.

      • ConnectionType (string) --

        The type of the connection. Currently, SFTP is not supported.

      • MatchCriteria (list) --

        A list of criteria that can be used in selecting this connection.

        • (string) --

      • ConnectionProperties (dict) --

        These key-value pairs define parameters for the connection when using the version 1 Connection schema:

        • HOST - The host URI: either the fully qualified domain name (FQDN) or the IPv4 address of the database host.

        • PORT - The port number, between 1024 and 65535, of the port on which the database host is listening for database connections.

        • USER_NAME - The name under which to log in to the database. The value string for USER_NAME is " USERNAME".

        • PASSWORD - A password, if one is used, for the user name.

        • ENCRYPTED_PASSWORD - When you enable connection password protection by setting ConnectionPasswordEncryption in the Data Catalog encryption settings, this field stores the encrypted password.

        • JDBC_DRIVER_JAR_URI - The Amazon Simple Storage Service (Amazon S3) path of the JAR file that contains the JDBC driver to use.

        • JDBC_DRIVER_CLASS_NAME - The class name of the JDBC driver to use.

        • JDBC_ENGINE - The name of the JDBC engine to use.

        • JDBC_ENGINE_VERSION - The version of the JDBC engine to use.

        • CONFIG_FILES - (Reserved for future use.)

        • INSTANCE_ID - The instance ID to use.

        • JDBC_CONNECTION_URL - The URL for connecting to a JDBC data source.

        • JDBC_ENFORCE_SSL - A case-insensitive Boolean string (true, false) specifying whether Secure Sockets Layer (SSL) with hostname matching is enforced for the JDBC connection on the client. The default is false.

        • CUSTOM_JDBC_CERT - An Amazon S3 location specifying the customer's root certificate. Glue uses this root certificate to validate the customer’s certificate when connecting to the customer database. Glue only handles X.509 certificates. The certificate provided must be DER-encoded and supplied in Base64 encoding PEM format.

        • SKIP_CUSTOM_JDBC_CERT_VALIDATION - By default, this is false. Glue validates the Signature algorithm and Subject Public Key Algorithm for the customer certificate. The only permitted algorithms for the Signature algorithm are SHA256withRSA, SHA384withRSA or SHA512withRSA. For the Subject Public Key Algorithm, the key length must be at least 2048. You can set the value of this property to true to skip Glue’s validation of the customer certificate.

        • CUSTOM_JDBC_CERT_STRING - A custom JDBC certificate string which is used for domain match or distinguished name match to prevent a man-in-the-middle attack. In Oracle database, this is used as the SSL_SERVER_CERT_DN; in Microsoft SQL Server, this is used as the hostNameInCertificate.

        • CONNECTION_URL - The URL for connecting to a general (non-JDBC) data source.

        • SECRET_ID - The secret ID used for the secret manager of credentials.

        • CONNECTOR_URL - The connector URL for a MARKETPLACE or CUSTOM connection.

        • CONNECTOR_TYPE - The connector type for a MARKETPLACE or CUSTOM connection.

        • CONNECTOR_CLASS_NAME - The connector class name for a MARKETPLACE or CUSTOM connection.

        • KAFKA_BOOTSTRAP_SERVERS - A comma-separated list of host and port pairs that are the addresses of the Apache Kafka brokers in a Kafka cluster to which a Kafka client will connect to and bootstrap itself.

        • KAFKA_SSL_ENABLED - Whether to enable or disable SSL on an Apache Kafka connection. Default value is "true".

        • KAFKA_CUSTOM_CERT - The Amazon S3 URL for the private CA cert file (.pem format). The default is an empty string.

        • KAFKA_SKIP_CUSTOM_CERT_VALIDATION - Whether to skip the validation of the CA cert file or not. Glue validates for three algorithms: SHA256withRSA, SHA384withRSA and SHA512withRSA. Default value is "false".

        • KAFKA_CLIENT_KEYSTORE - The Amazon S3 location of the client keystore file for Kafka client side authentication (Optional).

        • KAFKA_CLIENT_KEYSTORE_PASSWORD - The password to access the provided keystore (Optional).

        • KAFKA_CLIENT_KEY_PASSWORD - A keystore can consist of multiple keys, so this is the password to access the client key to be used with the Kafka server side key (Optional).

        • ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD - The encrypted version of the Kafka client keystore password (if the user has the Glue encrypt passwords setting selected).

        • ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD - The encrypted version of the Kafka client key password (if the user has the Glue encrypt passwords setting selected).

        • KAFKA_SASL_MECHANISM - "SCRAM-SHA-512", "GSSAPI", "AWS_MSK_IAM", or "PLAIN". These are the supported SASL Mechanisms.

        • KAFKA_SASL_PLAIN_USERNAME - A plaintext username used to authenticate with the "PLAIN" mechanism.

        • KAFKA_SASL_PLAIN_PASSWORD - A plaintext password used to authenticate with the "PLAIN" mechanism.

        • ENCRYPTED_KAFKA_SASL_PLAIN_PASSWORD - The encrypted version of the Kafka SASL PLAIN password (if the user has the Glue encrypt passwords setting selected).

        • KAFKA_SASL_SCRAM_USERNAME - A plaintext username used to authenticate with the "SCRAM-SHA-512" mechanism.

        • KAFKA_SASL_SCRAM_PASSWORD - A plaintext password used to authenticate with the "SCRAM-SHA-512" mechanism.

        • ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD - The encrypted version of the Kafka SASL SCRAM password (if the user has the Glue encrypt passwords setting selected).

        • KAFKA_SASL_SCRAM_SECRETS_ARN - The Amazon Resource Name of a secret in Amazon Web Services Secrets Manager.

        • KAFKA_SASL_GSSAPI_KEYTAB - The S3 location of a Kerberos keytab file. A keytab stores long-term keys for one or more principals. For more information, see MIT Kerberos Documentation: Keytab.

        • KAFKA_SASL_GSSAPI_KRB5_CONF - The S3 location of a Kerberos krb5.conf file. A krb5.conf stores Kerberos configuration information, such as the location of the KDC server. For more information, see MIT Kerberos Documentation: krb5.conf.

        • KAFKA_SASL_GSSAPI_SERVICE - The Kerberos service name, as set with sasl.kerberos.service.name in your Kafka Configuration.

        • KAFKA_SASL_GSSAPI_PRINCIPAL - The name of the Kerberos princial used by Glue. For more information, see Kafka Documentation: Configuring Kafka Brokers.

        • ROLE_ARN - The role to be used for running queries.

        • REGION - The Amazon Web Services Region where queries will be run.

        • WORKGROUP_NAME - The name of an Amazon Redshift serverless workgroup or Amazon Athena workgroup in which queries will run.

        • CLUSTER_IDENTIFIER - The cluster identifier of an Amazon Redshift cluster in which queries will run.

        • DATABASE - The Amazon Redshift database that you are connecting to.

        • (string) --

          • (string) --

      • SparkProperties (dict) --

        Connection properties specific to the Spark compute environment.

        • (string) --

          • (string) --

      • AthenaProperties (dict) --

        Connection properties specific to the Athena compute environment.

        • (string) --

          • (string) --

      • PythonProperties (dict) --

        Connection properties specific to the Python compute environment.

        • (string) --

          • (string) --

      • PhysicalConnectionRequirements (dict) --

        The physical connection requirements, such as virtual private cloud (VPC) and SecurityGroup, that are needed to make this connection successfully.

        • SubnetId (string) --

          The subnet ID used by the connection.

        • SecurityGroupIdList (list) --

          The security group ID list used by the connection.

          • (string) --

        • AvailabilityZone (string) --

          The connection's Availability Zone.

      • CreationTime (datetime) --

        The timestamp of the time that this connection definition was created.

      • LastUpdatedTime (datetime) --

        The timestamp of the last time the connection definition was updated.

      • LastUpdatedBy (string) --

        The user, group, or role that last updated this connection definition.

      • Status (string) --

        The status of the connection. Can be one of: READY, IN_PROGRESS, or FAILED.

      • StatusReason (string) --

        The reason for the connection status.

      • LastConnectionValidationTime (datetime) --

        A timestamp of the time this connection was last validated.

      • AuthenticationConfiguration (dict) --

        The authentication properties of the connection.

        • AuthenticationType (string) --

          A structure containing the authentication configuration.

        • SecretArn (string) --

          The secret manager ARN to store credentials.

        • KmsKeyArn (string) --

          The Amazon Resource Name (ARN) of the KMS key used to encrypt sensitive authentication information. This key is used to protect credentials and other sensitive data stored within the authentication configuration.

        • CredentialBrokerProperties (dict) --

          Credential broker settings used to obtain OAuth tokens for this connection.

          • CredentialProviderArn (string) --

            The Amazon Resource Name (ARN) of the credential broker OAuth credential provider used to obtain credentials for this connection.

          • OAuth2GrantType (string) --

            The OAuth2 grant type the credential broker uses to obtain tokens. Must be one of CLIENT_CREDENTIALS, TOKEN_EXCHANGE, JWT_BEARER, or AUTHORIZATION_CODE.

          • Scopes (list) --

            The list of OAuth scopes requested from the credential broker. If omitted, the credential provider's default scopes are used.

            • (string) --

        • OAuth2Properties (dict) --

          The properties for OAuth2 authentication.

          • OAuth2GrantType (string) --

            The OAuth2 grant type. For example, AUTHORIZATION_CODE, JWT_BEARER, REFRESH_TOKEN, or CLIENT_CREDENTIALS.

          • OAuth2ClientApplication (dict) --

            The client application type. For example, AWS_MANAGED or USER_MANAGED.

            • UserManagedClientApplicationClientId (string) --

              The client application clientID if the ClientAppType is USER_MANAGED.

            • AWSManagedClientApplicationReference (string) --

              The reference to the SaaS-side client app that is Amazon Web Services managed.

          • TokenUrl (string) --

            The URL of the provider's authentication server, to exchange an authorization code for an access token.

          • TokenUrlParametersMap (dict) --

            A map of parameters that are added to the token GET request.

            • (string) --

              • (string) --

      • ConnectionSchemaVersion (integer) --

        The version of the connection schema for this connection. Version 2 supports properties for specific compute environments.

      • CompatibleComputeEnvironments (list) --

        A list of compute environments compatible with the connection.

        • (string) --

GetConnections (updated) Link ¶
Changes (response)
{'ConnectionList': {'AuthenticationConfiguration': {'CredentialBrokerProperties': {'CredentialProviderArn': 'string',
                                                                                   'OAuth2GrantType': 'AUTHORIZATION_CODE '
                                                                                                      '| '
                                                                                                      'CLIENT_CREDENTIALS '
                                                                                                      '| '
                                                                                                      'JWT_BEARER '
                                                                                                      '| '
                                                                                                      'REFRESH_TOKEN '
                                                                                                      '| '
                                                                                                      'TOKEN_EXCHANGE',
                                                                                   'Scopes': ['string']},
                                                    'OAuth2Properties': {'OAuth2GrantType': {'TOKEN_EXCHANGE'}}}}}

Retrieves a list of connection definitions from the Data Catalog.

See also: AWS API Documentation

Request Syntax

client.get_connections(
    CatalogId='string',
    Filter={
        'MatchCriteria': [
            'string',
        ],
        'ConnectionType': 'JDBC'|'SFTP'|'MONGODB'|'KAFKA'|'NETWORK'|'MARKETPLACE'|'CUSTOM'|'SALESFORCE'|'VIEW_VALIDATION_REDSHIFT'|'VIEW_VALIDATION_ATHENA'|'GOOGLEADS'|'GOOGLESHEETS'|'GOOGLEANALYTICS4'|'SERVICENOW'|'MARKETO'|'SAPODATA'|'ZENDESK'|'JIRACLOUD'|'NETSUITEERP'|'HUBSPOT'|'FACEBOOKADS'|'INSTAGRAMADS'|'ZOHOCRM'|'SALESFORCEPARDOT'|'SALESFORCEMARKETINGCLOUD'|'ADOBEANALYTICS'|'SLACK'|'LINKEDIN'|'MIXPANEL'|'ASANA'|'STRIPE'|'SMARTSHEET'|'DATADOG'|'WOOCOMMERCE'|'INTERCOM'|'SNAPCHATADS'|'PAYPAL'|'QUICKBOOKS'|'FACEBOOKPAGEINSIGHTS'|'FRESHDESK'|'TWILIO'|'DOCUSIGNMONITOR'|'FRESHSALES'|'ZOOM'|'GOOGLESEARCHCONSOLE'|'SALESFORCECOMMERCECLOUD'|'SAPCONCUR'|'DYNATRACE'|'MICROSOFTDYNAMIC365FINANCEANDOPS'|'MICROSOFTTEAMS'|'BLACKBAUDRAISEREDGENXT'|'MAILCHIMP'|'GITLAB'|'PENDO'|'PRODUCTBOARD'|'CIRCLECI'|'PIPEDIVE'|'SENDGRID'|'AZURECOSMOS'|'AZURESQL'|'BIGQUERY'|'BLACKBAUD'|'CLOUDERAHIVE'|'CLOUDERAIMPALA'|'CLOUDWATCH'|'CLOUDWATCHMETRICS'|'CMDB'|'DATALAKEGEN2'|'DB2'|'DB2AS400'|'DOCUMENTDB'|'DOMO'|'DYNAMODB'|'GOOGLECLOUDSTORAGE'|'HBASE'|'KUSTOMER'|'MICROSOFTDYNAMICS365CRM'|'MONDAY'|'MYSQL'|'OKTA'|'OPENSEARCH'|'ORACLE'|'PIPEDRIVE'|'POSTGRESQL'|'SAPHANA'|'SQLSERVER'|'SYNAPSE'|'TERADATA'|'TERADATANOS'|'TIMESTREAM'|'TPCDS'|'VERTICA',
        'ConnectionSchemaVersion': 123
    },
    HidePassword=True|False,
    NextToken='string',
    MaxResults=123
)
type CatalogId:

string

param CatalogId:

The ID of the Data Catalog in which the connections reside. If none is provided, the Amazon Web Services account ID is used by default.

type Filter:

dict

param Filter:

A filter that controls which connections are returned.

  • MatchCriteria (list) --

    A criteria string that must match the criteria recorded in the connection definition for that connection definition to be returned.

    • (string) --

  • ConnectionType (string) --

    The type of connections to return. Currently, SFTP is not supported.

  • ConnectionSchemaVersion (integer) --

    Denotes if the connection was created with schema version 1 or 2.

type HidePassword:

boolean

param HidePassword:

Allows you to retrieve the connection metadata without returning the password. For instance, the Glue console uses this flag to retrieve the connection, and does not display the password. Set this parameter when the caller might not have permission to use the KMS key to decrypt the password, but it does have permission to access the rest of the connection properties.

type NextToken:

string

param NextToken:

A continuation token, if this is a continuation call.

type MaxResults:

integer

param MaxResults:

The maximum number of connections to return in one response.

rtype:

dict

returns:

Response Syntax

{
    'ConnectionList': [
        {
            'Name': 'string',
            'Description': 'string',
            'ConnectionType': 'JDBC'|'SFTP'|'MONGODB'|'KAFKA'|'NETWORK'|'MARKETPLACE'|'CUSTOM'|'SALESFORCE'|'VIEW_VALIDATION_REDSHIFT'|'VIEW_VALIDATION_ATHENA'|'GOOGLEADS'|'GOOGLESHEETS'|'GOOGLEANALYTICS4'|'SERVICENOW'|'MARKETO'|'SAPODATA'|'ZENDESK'|'JIRACLOUD'|'NETSUITEERP'|'HUBSPOT'|'FACEBOOKADS'|'INSTAGRAMADS'|'ZOHOCRM'|'SALESFORCEPARDOT'|'SALESFORCEMARKETINGCLOUD'|'ADOBEANALYTICS'|'SLACK'|'LINKEDIN'|'MIXPANEL'|'ASANA'|'STRIPE'|'SMARTSHEET'|'DATADOG'|'WOOCOMMERCE'|'INTERCOM'|'SNAPCHATADS'|'PAYPAL'|'QUICKBOOKS'|'FACEBOOKPAGEINSIGHTS'|'FRESHDESK'|'TWILIO'|'DOCUSIGNMONITOR'|'FRESHSALES'|'ZOOM'|'GOOGLESEARCHCONSOLE'|'SALESFORCECOMMERCECLOUD'|'SAPCONCUR'|'DYNATRACE'|'MICROSOFTDYNAMIC365FINANCEANDOPS'|'MICROSOFTTEAMS'|'BLACKBAUDRAISEREDGENXT'|'MAILCHIMP'|'GITLAB'|'PENDO'|'PRODUCTBOARD'|'CIRCLECI'|'PIPEDIVE'|'SENDGRID'|'AZURECOSMOS'|'AZURESQL'|'BIGQUERY'|'BLACKBAUD'|'CLOUDERAHIVE'|'CLOUDERAIMPALA'|'CLOUDWATCH'|'CLOUDWATCHMETRICS'|'CMDB'|'DATALAKEGEN2'|'DB2'|'DB2AS400'|'DOCUMENTDB'|'DOMO'|'DYNAMODB'|'GOOGLECLOUDSTORAGE'|'HBASE'|'KUSTOMER'|'MICROSOFTDYNAMICS365CRM'|'MONDAY'|'MYSQL'|'OKTA'|'OPENSEARCH'|'ORACLE'|'PIPEDRIVE'|'POSTGRESQL'|'SAPHANA'|'SQLSERVER'|'SYNAPSE'|'TERADATA'|'TERADATANOS'|'TIMESTREAM'|'TPCDS'|'VERTICA',
            'MatchCriteria': [
                'string',
            ],
            'ConnectionProperties': {
                'string': 'string'
            },
            'SparkProperties': {
                'string': 'string'
            },
            'AthenaProperties': {
                'string': 'string'
            },
            'PythonProperties': {
                'string': 'string'
            },
            'PhysicalConnectionRequirements': {
                'SubnetId': 'string',
                'SecurityGroupIdList': [
                    'string',
                ],
                'AvailabilityZone': 'string'
            },
            'CreationTime': datetime(2015, 1, 1),
            'LastUpdatedTime': datetime(2015, 1, 1),
            'LastUpdatedBy': 'string',
            'Status': 'READY'|'IN_PROGRESS'|'FAILED',
            'StatusReason': 'string',
            'LastConnectionValidationTime': datetime(2015, 1, 1),
            'AuthenticationConfiguration': {
                'AuthenticationType': 'BASIC'|'OAUTH2'|'CUSTOM'|'IAM',
                'SecretArn': 'string',
                'KmsKeyArn': 'string',
                'CredentialBrokerProperties': {
                    'CredentialProviderArn': 'string',
                    'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                    'Scopes': [
                        'string',
                    ]
                },
                'OAuth2Properties': {
                    'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                    'OAuth2ClientApplication': {
                        'UserManagedClientApplicationClientId': 'string',
                        'AWSManagedClientApplicationReference': 'string'
                    },
                    'TokenUrl': 'string',
                    'TokenUrlParametersMap': {
                        'string': 'string'
                    }
                }
            },
            'ConnectionSchemaVersion': 123,
            'CompatibleComputeEnvironments': [
                'SPARK'|'ATHENA'|'PYTHON',
            ]
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • ConnectionList (list) --

      A list of requested connection definitions.

      • (dict) --

        Defines a connection to a data source.

        • Name (string) --

          The name of the connection definition.

        • Description (string) --

          The description of the connection.

        • ConnectionType (string) --

          The type of the connection. Currently, SFTP is not supported.

        • MatchCriteria (list) --

          A list of criteria that can be used in selecting this connection.

          • (string) --

        • ConnectionProperties (dict) --

          These key-value pairs define parameters for the connection when using the version 1 Connection schema:

          • HOST - The host URI: either the fully qualified domain name (FQDN) or the IPv4 address of the database host.

          • PORT - The port number, between 1024 and 65535, of the port on which the database host is listening for database connections.

          • USER_NAME - The name under which to log in to the database. The value string for USER_NAME is " USERNAME".

          • PASSWORD - A password, if one is used, for the user name.

          • ENCRYPTED_PASSWORD - When you enable connection password protection by setting ConnectionPasswordEncryption in the Data Catalog encryption settings, this field stores the encrypted password.

          • JDBC_DRIVER_JAR_URI - The Amazon Simple Storage Service (Amazon S3) path of the JAR file that contains the JDBC driver to use.

          • JDBC_DRIVER_CLASS_NAME - The class name of the JDBC driver to use.

          • JDBC_ENGINE - The name of the JDBC engine to use.

          • JDBC_ENGINE_VERSION - The version of the JDBC engine to use.

          • CONFIG_FILES - (Reserved for future use.)

          • INSTANCE_ID - The instance ID to use.

          • JDBC_CONNECTION_URL - The URL for connecting to a JDBC data source.

          • JDBC_ENFORCE_SSL - A case-insensitive Boolean string (true, false) specifying whether Secure Sockets Layer (SSL) with hostname matching is enforced for the JDBC connection on the client. The default is false.

          • CUSTOM_JDBC_CERT - An Amazon S3 location specifying the customer's root certificate. Glue uses this root certificate to validate the customer’s certificate when connecting to the customer database. Glue only handles X.509 certificates. The certificate provided must be DER-encoded and supplied in Base64 encoding PEM format.

          • SKIP_CUSTOM_JDBC_CERT_VALIDATION - By default, this is false. Glue validates the Signature algorithm and Subject Public Key Algorithm for the customer certificate. The only permitted algorithms for the Signature algorithm are SHA256withRSA, SHA384withRSA or SHA512withRSA. For the Subject Public Key Algorithm, the key length must be at least 2048. You can set the value of this property to true to skip Glue’s validation of the customer certificate.

          • CUSTOM_JDBC_CERT_STRING - A custom JDBC certificate string which is used for domain match or distinguished name match to prevent a man-in-the-middle attack. In Oracle database, this is used as the SSL_SERVER_CERT_DN; in Microsoft SQL Server, this is used as the hostNameInCertificate.

          • CONNECTION_URL - The URL for connecting to a general (non-JDBC) data source.

          • SECRET_ID - The secret ID used for the secret manager of credentials.

          • CONNECTOR_URL - The connector URL for a MARKETPLACE or CUSTOM connection.

          • CONNECTOR_TYPE - The connector type for a MARKETPLACE or CUSTOM connection.

          • CONNECTOR_CLASS_NAME - The connector class name for a MARKETPLACE or CUSTOM connection.

          • KAFKA_BOOTSTRAP_SERVERS - A comma-separated list of host and port pairs that are the addresses of the Apache Kafka brokers in a Kafka cluster to which a Kafka client will connect to and bootstrap itself.

          • KAFKA_SSL_ENABLED - Whether to enable or disable SSL on an Apache Kafka connection. Default value is "true".

          • KAFKA_CUSTOM_CERT - The Amazon S3 URL for the private CA cert file (.pem format). The default is an empty string.

          • KAFKA_SKIP_CUSTOM_CERT_VALIDATION - Whether to skip the validation of the CA cert file or not. Glue validates for three algorithms: SHA256withRSA, SHA384withRSA and SHA512withRSA. Default value is "false".

          • KAFKA_CLIENT_KEYSTORE - The Amazon S3 location of the client keystore file for Kafka client side authentication (Optional).

          • KAFKA_CLIENT_KEYSTORE_PASSWORD - The password to access the provided keystore (Optional).

          • KAFKA_CLIENT_KEY_PASSWORD - A keystore can consist of multiple keys, so this is the password to access the client key to be used with the Kafka server side key (Optional).

          • ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD - The encrypted version of the Kafka client keystore password (if the user has the Glue encrypt passwords setting selected).

          • ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD - The encrypted version of the Kafka client key password (if the user has the Glue encrypt passwords setting selected).

          • KAFKA_SASL_MECHANISM - "SCRAM-SHA-512", "GSSAPI", "AWS_MSK_IAM", or "PLAIN". These are the supported SASL Mechanisms.

          • KAFKA_SASL_PLAIN_USERNAME - A plaintext username used to authenticate with the "PLAIN" mechanism.

          • KAFKA_SASL_PLAIN_PASSWORD - A plaintext password used to authenticate with the "PLAIN" mechanism.

          • ENCRYPTED_KAFKA_SASL_PLAIN_PASSWORD - The encrypted version of the Kafka SASL PLAIN password (if the user has the Glue encrypt passwords setting selected).

          • KAFKA_SASL_SCRAM_USERNAME - A plaintext username used to authenticate with the "SCRAM-SHA-512" mechanism.

          • KAFKA_SASL_SCRAM_PASSWORD - A plaintext password used to authenticate with the "SCRAM-SHA-512" mechanism.

          • ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD - The encrypted version of the Kafka SASL SCRAM password (if the user has the Glue encrypt passwords setting selected).

          • KAFKA_SASL_SCRAM_SECRETS_ARN - The Amazon Resource Name of a secret in Amazon Web Services Secrets Manager.

          • KAFKA_SASL_GSSAPI_KEYTAB - The S3 location of a Kerberos keytab file. A keytab stores long-term keys for one or more principals. For more information, see MIT Kerberos Documentation: Keytab.

          • KAFKA_SASL_GSSAPI_KRB5_CONF - The S3 location of a Kerberos krb5.conf file. A krb5.conf stores Kerberos configuration information, such as the location of the KDC server. For more information, see MIT Kerberos Documentation: krb5.conf.

          • KAFKA_SASL_GSSAPI_SERVICE - The Kerberos service name, as set with sasl.kerberos.service.name in your Kafka Configuration.

          • KAFKA_SASL_GSSAPI_PRINCIPAL - The name of the Kerberos princial used by Glue. For more information, see Kafka Documentation: Configuring Kafka Brokers.

          • ROLE_ARN - The role to be used for running queries.

          • REGION - The Amazon Web Services Region where queries will be run.

          • WORKGROUP_NAME - The name of an Amazon Redshift serverless workgroup or Amazon Athena workgroup in which queries will run.

          • CLUSTER_IDENTIFIER - The cluster identifier of an Amazon Redshift cluster in which queries will run.

          • DATABASE - The Amazon Redshift database that you are connecting to.

          • (string) --

            • (string) --

        • SparkProperties (dict) --

          Connection properties specific to the Spark compute environment.

          • (string) --

            • (string) --

        • AthenaProperties (dict) --

          Connection properties specific to the Athena compute environment.

          • (string) --

            • (string) --

        • PythonProperties (dict) --

          Connection properties specific to the Python compute environment.

          • (string) --

            • (string) --

        • PhysicalConnectionRequirements (dict) --

          The physical connection requirements, such as virtual private cloud (VPC) and SecurityGroup, that are needed to make this connection successfully.

          • SubnetId (string) --

            The subnet ID used by the connection.

          • SecurityGroupIdList (list) --

            The security group ID list used by the connection.

            • (string) --

          • AvailabilityZone (string) --

            The connection's Availability Zone.

        • CreationTime (datetime) --

          The timestamp of the time that this connection definition was created.

        • LastUpdatedTime (datetime) --

          The timestamp of the last time the connection definition was updated.

        • LastUpdatedBy (string) --

          The user, group, or role that last updated this connection definition.

        • Status (string) --

          The status of the connection. Can be one of: READY, IN_PROGRESS, or FAILED.

        • StatusReason (string) --

          The reason for the connection status.

        • LastConnectionValidationTime (datetime) --

          A timestamp of the time this connection was last validated.

        • AuthenticationConfiguration (dict) --

          The authentication properties of the connection.

          • AuthenticationType (string) --

            A structure containing the authentication configuration.

          • SecretArn (string) --

            The secret manager ARN to store credentials.

          • KmsKeyArn (string) --

            The Amazon Resource Name (ARN) of the KMS key used to encrypt sensitive authentication information. This key is used to protect credentials and other sensitive data stored within the authentication configuration.

          • CredentialBrokerProperties (dict) --

            Credential broker settings used to obtain OAuth tokens for this connection.

            • CredentialProviderArn (string) --

              The Amazon Resource Name (ARN) of the credential broker OAuth credential provider used to obtain credentials for this connection.

            • OAuth2GrantType (string) --

              The OAuth2 grant type the credential broker uses to obtain tokens. Must be one of CLIENT_CREDENTIALS, TOKEN_EXCHANGE, JWT_BEARER, or AUTHORIZATION_CODE.

            • Scopes (list) --

              The list of OAuth scopes requested from the credential broker. If omitted, the credential provider's default scopes are used.

              • (string) --

          • OAuth2Properties (dict) --

            The properties for OAuth2 authentication.

            • OAuth2GrantType (string) --

              The OAuth2 grant type. For example, AUTHORIZATION_CODE, JWT_BEARER, REFRESH_TOKEN, or CLIENT_CREDENTIALS.

            • OAuth2ClientApplication (dict) --

              The client application type. For example, AWS_MANAGED or USER_MANAGED.

              • UserManagedClientApplicationClientId (string) --

                The client application clientID if the ClientAppType is USER_MANAGED.

              • AWSManagedClientApplicationReference (string) --

                The reference to the SaaS-side client app that is Amazon Web Services managed.

            • TokenUrl (string) --

              The URL of the provider's authentication server, to exchange an authorization code for an access token.

            • TokenUrlParametersMap (dict) --

              A map of parameters that are added to the token GET request.

              • (string) --

                • (string) --

        • ConnectionSchemaVersion (integer) --

          The version of the connection schema for this connection. Version 2 supports properties for specific compute environments.

        • CompatibleComputeEnvironments (list) --

          A list of compute environments compatible with the connection.

          • (string) --

    • NextToken (string) --

      A continuation token, if the list of connections returned does not include the last of the filtered connections.

GetCrawler (updated) Link ¶
Changes (response)
{'Crawler': {'Targets': {'LineageTargets': [{'ConnectionName': 'string'}]}}}

Retrieves metadata for a specified crawler.

See also: AWS API Documentation

Request Syntax

client.get_crawler(
    Name='string'
)
type Name:

string

param Name:

[REQUIRED]

The name of the crawler to retrieve metadata for.

rtype:

dict

returns:

Response Syntax

{
    'Crawler': {
        'Name': 'string',
        'Role': 'string',
        'Targets': {
            'S3Targets': [
                {
                    'Path': 'string',
                    'Exclusions': [
                        'string',
                    ],
                    'ConnectionName': 'string',
                    'SampleSize': 123,
                    'EventQueueArn': 'string',
                    'DlqEventQueueArn': 'string'
                },
            ],
            'JdbcTargets': [
                {
                    'ConnectionName': 'string',
                    'Path': 'string',
                    'Exclusions': [
                        'string',
                    ],
                    'EnableAdditionalMetadata': [
                        'COMMENTS'|'RAWTYPES',
                    ]
                },
            ],
            'MongoDBTargets': [
                {
                    'ConnectionName': 'string',
                    'Path': 'string',
                    'ScanAll': True|False
                },
            ],
            'DynamoDBTargets': [
                {
                    'Path': 'string',
                    'scanAll': True|False,
                    'scanRate': 123.0
                },
            ],
            'CatalogTargets': [
                {
                    'DatabaseName': 'string',
                    'Tables': [
                        'string',
                    ],
                    'ConnectionName': 'string',
                    'EventQueueArn': 'string',
                    'DlqEventQueueArn': 'string'
                },
            ],
            'DeltaTargets': [
                {
                    'DeltaTables': [
                        'string',
                    ],
                    'ConnectionName': 'string',
                    'WriteManifest': True|False,
                    'CreateNativeDeltaTable': True|False
                },
            ],
            'IcebergTargets': [
                {
                    'Paths': [
                        'string',
                    ],
                    'ConnectionName': 'string',
                    'Exclusions': [
                        'string',
                    ],
                    'MaximumTraversalDepth': 123
                },
            ],
            'HudiTargets': [
                {
                    'Paths': [
                        'string',
                    ],
                    'ConnectionName': 'string',
                    'Exclusions': [
                        'string',
                    ],
                    'MaximumTraversalDepth': 123
                },
            ],
            'LineageTargets': [
                {
                    'ConnectionName': 'string'
                },
            ]
        },
        'DatabaseName': 'string',
        'Description': 'string',
        'Classifiers': [
            'string',
        ],
        'RecrawlPolicy': {
            'RecrawlBehavior': 'CRAWL_EVERYTHING'|'CRAWL_NEW_FOLDERS_ONLY'|'CRAWL_EVENT_MODE'
        },
        'SchemaChangePolicy': {
            'UpdateBehavior': 'LOG'|'UPDATE_IN_DATABASE',
            'DeleteBehavior': 'LOG'|'DELETE_FROM_DATABASE'|'DEPRECATE_IN_DATABASE'
        },
        'LineageConfiguration': {
            'CrawlerLineageSettings': 'ENABLE'|'DISABLE'
        },
        'State': 'READY'|'RUNNING'|'STOPPING',
        'TablePrefix': 'string',
        'Schedule': {
            'ScheduleExpression': 'string',
            'State': 'SCHEDULED'|'NOT_SCHEDULED'|'TRANSITIONING'
        },
        'CrawlElapsedTime': 123,
        'CreationTime': datetime(2015, 1, 1),
        'LastUpdated': datetime(2015, 1, 1),
        'LastCrawl': {
            'Status': 'SUCCEEDED'|'CANCELLED'|'FAILED',
            'ErrorMessage': 'string',
            'LogGroup': 'string',
            'LogStream': 'string',
            'MessagePrefix': 'string',
            'StartTime': datetime(2015, 1, 1)
        },
        'Version': 123,
        'Configuration': 'string',
        'CrawlerSecurityConfiguration': 'string',
        'LakeFormationConfiguration': {
            'UseLakeFormationCredentials': True|False,
            'AccountId': 'string'
        },
        'CatalogId': 'string'
    }
}

Response Structure

  • (dict) --

    • Crawler (dict) --

      The metadata for the specified crawler.

      • Name (string) --

        The name of the crawler.

      • Role (string) --

        The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.

      • Targets (dict) --

        A collection of targets to crawl.

        • S3Targets (list) --

          Specifies Amazon Simple Storage Service (Amazon S3) targets.

          • (dict) --

            Specifies a data store in Amazon Simple Storage Service (Amazon S3).

            • Path (string) --

              The path to the Amazon S3 target.

            • Exclusions (list) --

              A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

              • (string) --

            • ConnectionName (string) --

              The name of a connection which allows a job or crawler to access data in Amazon S3 within an Amazon Virtual Private Cloud environment (Amazon VPC).

            • SampleSize (integer) --

              Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.

            • EventQueueArn (string) --

              A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

            • DlqEventQueueArn (string) --

              A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

        • JdbcTargets (list) --

          Specifies JDBC targets.

          • (dict) --

            Specifies a JDBC data store to crawl.

            • ConnectionName (string) --

              The name of the connection to use to connect to the JDBC target.

            • Path (string) --

              The path of the JDBC target.

            • Exclusions (list) --

              A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

              • (string) --

            • EnableAdditionalMetadata (list) --

              Specify a value of RAWTYPES or COMMENTS to enable additional metadata in table responses. RAWTYPES provides the native-level datatype. COMMENTS provides comments associated with a column or table in the database.

              If you do not need additional metadata, keep the field empty.

              • (string) --

        • MongoDBTargets (list) --

          Specifies Amazon DocumentDB or MongoDB targets.

          • (dict) --

            Specifies an Amazon DocumentDB or MongoDB data store to crawl.

            • ConnectionName (string) --

              The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.

            • Path (string) --

              The path of the Amazon DocumentDB or MongoDB target (database/collection).

            • ScanAll (boolean) --

              Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

              A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

        • DynamoDBTargets (list) --

          Specifies Amazon DynamoDB targets.

          • (dict) --

            Specifies an Amazon DynamoDB table to crawl.

            • Path (string) --

              The name of the DynamoDB table to crawl.

            • scanAll (boolean) --

              Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

              A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

            • scanRate (float) --

              The percentage of the configured read capacity units to use by the Glue crawler. Read capacity units is a term defined by DynamoDB, and is a numeric value that acts as rate limiter for the number of reads that can be performed on that table per second.

              The valid values are null or a value between 0.1 to 1.5. A null value is used when user does not provide a value, and defaults to 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of the max configured Read Capacity Unit (for tables using on-demand mode).

        • CatalogTargets (list) --

          Specifies Glue Data Catalog targets.

          • (dict) --

            Specifies an Glue Data Catalog target.

            • DatabaseName (string) --

              The name of the database to be synchronized.

            • Tables (list) --

              A list of the tables to be synchronized.

              • (string) --

            • ConnectionName (string) --

              The name of the connection for an Amazon S3-backed Data Catalog table to be a target of the crawl when using a Catalog connection type paired with a NETWORK Connection type.

            • EventQueueArn (string) --

              A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

            • DlqEventQueueArn (string) --

              A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

        • DeltaTargets (list) --

          Specifies Delta data store targets.

          • (dict) --

            Specifies a Delta data store to crawl one or more Delta tables.

            • DeltaTables (list) --

              A list of the Amazon S3 paths to the Delta tables.

              • (string) --

            • ConnectionName (string) --

              The name of the connection to use to connect to the Delta table target.

            • WriteManifest (boolean) --

              Specifies whether to write the manifest files to the Delta table path.

            • CreateNativeDeltaTable (boolean) --

              Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly.

        • IcebergTargets (list) --

          Specifies Apache Iceberg data store targets.

          • (dict) --

            Specifies an Apache Iceberg data source where Iceberg tables are stored in Amazon S3.

            • Paths (list) --

              One or more Amazon S3 paths that contains Iceberg metadata folders as s3://bucket/prefix.

              • (string) --

            • ConnectionName (string) --

              The name of the connection to use to connect to the Iceberg target.

            • Exclusions (list) --

              A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

              • (string) --

            • MaximumTraversalDepth (integer) --

              The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Iceberg metadata folder in your Amazon S3 path. Used to limit the crawler run time.

        • HudiTargets (list) --

          Specifies Apache Hudi data store targets.

          • (dict) --

            Specifies an Apache Hudi data source.

            • Paths (list) --

              An array of Amazon S3 location strings for Hudi, each indicating the root folder with which the metadata files for a Hudi table resides. The Hudi folder may be located in a child folder of the root folder.

              The crawler will scan all folders underneath a path for a Hudi folder.

              • (string) --

            • ConnectionName (string) --

              The name of the connection to use to connect to the Hudi target. If your Hudi files are stored in buckets that require VPC authorization, you can set their connection properties here.

            • Exclusions (list) --

              A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

              • (string) --

            • MaximumTraversalDepth (integer) --

              The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Hudi metadata folder in your Amazon S3 path. Used to limit the crawler run time.

        • LineageTargets (list) --

          Specifies lineage targets.

          • (dict) --

            Specifies a lineage source from which the crawler synchronizes lineage.

            • ConnectionName (string) --

              The name of the connection to use to connect to the lineage source.

      • DatabaseName (string) --

        The name of the database in which the crawler's output is stored.

      • Description (string) --

        A description of the crawler.

      • Classifiers (list) --

        A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.

        • (string) --

      • RecrawlPolicy (dict) --

        A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.

        • RecrawlBehavior (string) --

          Specifies whether to crawl the entire dataset again or to crawl only folders that were added since the last crawler run.

          A value of CRAWL_EVERYTHING specifies crawling the entire dataset again.

          A value of CRAWL_NEW_FOLDERS_ONLY specifies crawling only folders that were added since the last crawler run.

          A value of CRAWL_EVENT_MODE specifies crawling only the changes identified by Amazon S3 events.

      • SchemaChangePolicy (dict) --

        The policy that specifies update and delete behaviors for the crawler.

        • UpdateBehavior (string) --

          The update behavior when the crawler finds a changed schema.

        • DeleteBehavior (string) --

          The deletion behavior when the crawler finds a deleted object.

      • LineageConfiguration (dict) --

        A configuration that specifies whether data lineage is enabled for the crawler.

        • CrawlerLineageSettings (string) --

          Specifies whether data lineage is enabled for the crawler. Valid values are:

          • ENABLE: enables data lineage for the crawler

          • DISABLE: disables data lineage for the crawler

      • State (string) --

        Indicates whether the crawler is running, or whether a run is pending.

      • TablePrefix (string) --

        The prefix added to the names of tables that are created.

      • Schedule (dict) --

        For scheduled crawlers, the schedule when the crawler runs.

        • ScheduleExpression (string) --

          A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

        • State (string) --

          The state of the schedule.

      • CrawlElapsedTime (integer) --

        If the crawler is running, contains the total time elapsed since the last crawl began.

      • CreationTime (datetime) --

        The time that the crawler was created.

      • LastUpdated (datetime) --

        The time that the crawler was last updated.

      • LastCrawl (dict) --

        The status of the last crawl, and potentially error information if an error occurred.

        • Status (string) --

          Status of the last crawl.

        • ErrorMessage (string) --

          If an error occurred, the error information about the last crawl.

        • LogGroup (string) --

          The log group for the last crawl.

        • LogStream (string) --

          The log stream for the last crawl.

        • MessagePrefix (string) --

          The prefix for a message about this crawl.

        • StartTime (datetime) --

          The time at which the crawl started.

      • Version (integer) --

        The version of the crawler.

      • Configuration (string) --

        Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.

      • CrawlerSecurityConfiguration (string) --

        The name of the SecurityConfiguration structure to be used by this crawler.

      • LakeFormationConfiguration (dict) --

        Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.

        • UseLakeFormationCredentials (boolean) --

          Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials.

        • AccountId (string) --

          Required for cross account crawls. For same account crawls as the target data, this can be left as null.

      • CatalogId (string) --

        The ID of the Data Catalog in which the crawler's output is stored.

GetCrawlerMetrics (updated) Link ¶
Changes (response)
{'CrawlerMetricsList': {'AssetsCreated': 'integer',
                        'AssetsDeleted': 'integer',
                        'AssetsUpdated': 'integer'}}

Retrieves metrics about specified crawlers.

See also: AWS API Documentation

Request Syntax

client.get_crawler_metrics(
    CrawlerNameList=[
        'string',
    ],
    MaxResults=123,
    NextToken='string'
)
type CrawlerNameList:

list

param CrawlerNameList:

A list of the names of crawlers about which to retrieve metrics.

  • (string) --

type MaxResults:

integer

param MaxResults:

The maximum size of a list to return.

type NextToken:

string

param NextToken:

A continuation token, if this is a continuation call.

rtype:

dict

returns:

Response Syntax

{
    'CrawlerMetricsList': [
        {
            'CrawlerName': 'string',
            'TimeLeftSeconds': 123.0,
            'StillEstimating': True|False,
            'LastRuntimeSeconds': 123.0,
            'MedianRuntimeSeconds': 123.0,
            'TablesCreated': 123,
            'TablesUpdated': 123,
            'TablesDeleted': 123,
            'AssetsCreated': 123,
            'AssetsUpdated': 123,
            'AssetsDeleted': 123
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • CrawlerMetricsList (list) --

      A list of metrics for the specified crawler.

      • (dict) --

        Metrics for a specified crawler.

        • CrawlerName (string) --

          The name of the crawler.

        • TimeLeftSeconds (float) --

          The estimated time left to complete a running crawl.

        • StillEstimating (boolean) --

          True if the crawler is still estimating how long it will take to complete this run.

        • LastRuntimeSeconds (float) --

          The duration of the crawler's most recent run, in seconds.

        • MedianRuntimeSeconds (float) --

          The median duration of this crawler's runs, in seconds.

        • TablesCreated (integer) --

          The number of tables created by this crawler.

        • TablesUpdated (integer) --

          The number of tables updated by this crawler.

        • TablesDeleted (integer) --

          The number of tables deleted by this crawler.

        • AssetsCreated (integer) --

          The number of assets created by this crawler.

        • AssetsUpdated (integer) --

          The number of assets updated by this crawler.

        • AssetsDeleted (integer) --

          The number of assets deleted by this crawler.

    • NextToken (string) --

      A continuation token, if the returned list does not contain the last metric available.

GetCrawlers (updated) Link ¶
Changes (response)
{'Crawlers': {'Targets': {'LineageTargets': [{'ConnectionName': 'string'}]}}}

Retrieves metadata for all crawlers defined in the customer account.

See also: AWS API Documentation

Request Syntax

client.get_crawlers(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The number of crawlers to return on each call.

type NextToken:

string

param NextToken:

A continuation token, if this is a continuation request.

rtype:

dict

returns:

Response Syntax

{
    'Crawlers': [
        {
            'Name': 'string',
            'Role': 'string',
            'Targets': {
                'S3Targets': [
                    {
                        'Path': 'string',
                        'Exclusions': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'SampleSize': 123,
                        'EventQueueArn': 'string',
                        'DlqEventQueueArn': 'string'
                    },
                ],
                'JdbcTargets': [
                    {
                        'ConnectionName': 'string',
                        'Path': 'string',
                        'Exclusions': [
                            'string',
                        ],
                        'EnableAdditionalMetadata': [
                            'COMMENTS'|'RAWTYPES',
                        ]
                    },
                ],
                'MongoDBTargets': [
                    {
                        'ConnectionName': 'string',
                        'Path': 'string',
                        'ScanAll': True|False
                    },
                ],
                'DynamoDBTargets': [
                    {
                        'Path': 'string',
                        'scanAll': True|False,
                        'scanRate': 123.0
                    },
                ],
                'CatalogTargets': [
                    {
                        'DatabaseName': 'string',
                        'Tables': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'EventQueueArn': 'string',
                        'DlqEventQueueArn': 'string'
                    },
                ],
                'DeltaTargets': [
                    {
                        'DeltaTables': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'WriteManifest': True|False,
                        'CreateNativeDeltaTable': True|False
                    },
                ],
                'IcebergTargets': [
                    {
                        'Paths': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'Exclusions': [
                            'string',
                        ],
                        'MaximumTraversalDepth': 123
                    },
                ],
                'HudiTargets': [
                    {
                        'Paths': [
                            'string',
                        ],
                        'ConnectionName': 'string',
                        'Exclusions': [
                            'string',
                        ],
                        'MaximumTraversalDepth': 123
                    },
                ],
                'LineageTargets': [
                    {
                        'ConnectionName': 'string'
                    },
                ]
            },
            'DatabaseName': 'string',
            'Description': 'string',
            'Classifiers': [
                'string',
            ],
            'RecrawlPolicy': {
                'RecrawlBehavior': 'CRAWL_EVERYTHING'|'CRAWL_NEW_FOLDERS_ONLY'|'CRAWL_EVENT_MODE'
            },
            'SchemaChangePolicy': {
                'UpdateBehavior': 'LOG'|'UPDATE_IN_DATABASE',
                'DeleteBehavior': 'LOG'|'DELETE_FROM_DATABASE'|'DEPRECATE_IN_DATABASE'
            },
            'LineageConfiguration': {
                'CrawlerLineageSettings': 'ENABLE'|'DISABLE'
            },
            'State': 'READY'|'RUNNING'|'STOPPING',
            'TablePrefix': 'string',
            'Schedule': {
                'ScheduleExpression': 'string',
                'State': 'SCHEDULED'|'NOT_SCHEDULED'|'TRANSITIONING'
            },
            'CrawlElapsedTime': 123,
            'CreationTime': datetime(2015, 1, 1),
            'LastUpdated': datetime(2015, 1, 1),
            'LastCrawl': {
                'Status': 'SUCCEEDED'|'CANCELLED'|'FAILED',
                'ErrorMessage': 'string',
                'LogGroup': 'string',
                'LogStream': 'string',
                'MessagePrefix': 'string',
                'StartTime': datetime(2015, 1, 1)
            },
            'Version': 123,
            'Configuration': 'string',
            'CrawlerSecurityConfiguration': 'string',
            'LakeFormationConfiguration': {
                'UseLakeFormationCredentials': True|False,
                'AccountId': 'string'
            },
            'CatalogId': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Crawlers (list) --

      A list of crawler metadata.

      • (dict) --

        Specifies a crawler program that examines a data source and uses classifiers to try to determine its schema. If successful, the crawler records metadata concerning the data source in the Glue Data Catalog.

        • Name (string) --

          The name of the crawler.

        • Role (string) --

          The Amazon Resource Name (ARN) of an IAM role that's used to access customer resources, such as Amazon Simple Storage Service (Amazon S3) data.

        • Targets (dict) --

          A collection of targets to crawl.

          • S3Targets (list) --

            Specifies Amazon Simple Storage Service (Amazon S3) targets.

            • (dict) --

              Specifies a data store in Amazon Simple Storage Service (Amazon S3).

              • Path (string) --

                The path to the Amazon S3 target.

              • Exclusions (list) --

                A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

                • (string) --

              • ConnectionName (string) --

                The name of a connection which allows a job or crawler to access data in Amazon S3 within an Amazon Virtual Private Cloud environment (Amazon VPC).

              • SampleSize (integer) --

                Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.

              • EventQueueArn (string) --

                A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

              • DlqEventQueueArn (string) --

                A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

          • JdbcTargets (list) --

            Specifies JDBC targets.

            • (dict) --

              Specifies a JDBC data store to crawl.

              • ConnectionName (string) --

                The name of the connection to use to connect to the JDBC target.

              • Path (string) --

                The path of the JDBC target.

              • Exclusions (list) --

                A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

                • (string) --

              • EnableAdditionalMetadata (list) --

                Specify a value of RAWTYPES or COMMENTS to enable additional metadata in table responses. RAWTYPES provides the native-level datatype. COMMENTS provides comments associated with a column or table in the database.

                If you do not need additional metadata, keep the field empty.

                • (string) --

          • MongoDBTargets (list) --

            Specifies Amazon DocumentDB or MongoDB targets.

            • (dict) --

              Specifies an Amazon DocumentDB or MongoDB data store to crawl.

              • ConnectionName (string) --

                The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.

              • Path (string) --

                The path of the Amazon DocumentDB or MongoDB target (database/collection).

              • ScanAll (boolean) --

                Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

                A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

          • DynamoDBTargets (list) --

            Specifies Amazon DynamoDB targets.

            • (dict) --

              Specifies an Amazon DynamoDB table to crawl.

              • Path (string) --

                The name of the DynamoDB table to crawl.

              • scanAll (boolean) --

                Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

                A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

              • scanRate (float) --

                The percentage of the configured read capacity units to use by the Glue crawler. Read capacity units is a term defined by DynamoDB, and is a numeric value that acts as rate limiter for the number of reads that can be performed on that table per second.

                The valid values are null or a value between 0.1 to 1.5. A null value is used when user does not provide a value, and defaults to 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of the max configured Read Capacity Unit (for tables using on-demand mode).

          • CatalogTargets (list) --

            Specifies Glue Data Catalog targets.

            • (dict) --

              Specifies an Glue Data Catalog target.

              • DatabaseName (string) --

                The name of the database to be synchronized.

              • Tables (list) --

                A list of the tables to be synchronized.

                • (string) --

              • ConnectionName (string) --

                The name of the connection for an Amazon S3-backed Data Catalog table to be a target of the crawl when using a Catalog connection type paired with a NETWORK Connection type.

              • EventQueueArn (string) --

                A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

              • DlqEventQueueArn (string) --

                A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

          • DeltaTargets (list) --

            Specifies Delta data store targets.

            • (dict) --

              Specifies a Delta data store to crawl one or more Delta tables.

              • DeltaTables (list) --

                A list of the Amazon S3 paths to the Delta tables.

                • (string) --

              • ConnectionName (string) --

                The name of the connection to use to connect to the Delta table target.

              • WriteManifest (boolean) --

                Specifies whether to write the manifest files to the Delta table path.

              • CreateNativeDeltaTable (boolean) --

                Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly.

          • IcebergTargets (list) --

            Specifies Apache Iceberg data store targets.

            • (dict) --

              Specifies an Apache Iceberg data source where Iceberg tables are stored in Amazon S3.

              • Paths (list) --

                One or more Amazon S3 paths that contains Iceberg metadata folders as s3://bucket/prefix.

                • (string) --

              • ConnectionName (string) --

                The name of the connection to use to connect to the Iceberg target.

              • Exclusions (list) --

                A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

                • (string) --

              • MaximumTraversalDepth (integer) --

                The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Iceberg metadata folder in your Amazon S3 path. Used to limit the crawler run time.

          • HudiTargets (list) --

            Specifies Apache Hudi data store targets.

            • (dict) --

              Specifies an Apache Hudi data source.

              • Paths (list) --

                An array of Amazon S3 location strings for Hudi, each indicating the root folder with which the metadata files for a Hudi table resides. The Hudi folder may be located in a child folder of the root folder.

                The crawler will scan all folders underneath a path for a Hudi folder.

                • (string) --

              • ConnectionName (string) --

                The name of the connection to use to connect to the Hudi target. If your Hudi files are stored in buckets that require VPC authorization, you can set their connection properties here.

              • Exclusions (list) --

                A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

                • (string) --

              • MaximumTraversalDepth (integer) --

                The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Hudi metadata folder in your Amazon S3 path. Used to limit the crawler run time.

          • LineageTargets (list) --

            Specifies lineage targets.

            • (dict) --

              Specifies a lineage source from which the crawler synchronizes lineage.

              • ConnectionName (string) --

                The name of the connection to use to connect to the lineage source.

        • DatabaseName (string) --

          The name of the database in which the crawler's output is stored.

        • Description (string) --

          A description of the crawler.

        • Classifiers (list) --

          A list of UTF-8 strings that specify the custom classifiers that are associated with the crawler.

          • (string) --

        • RecrawlPolicy (dict) --

          A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.

          • RecrawlBehavior (string) --

            Specifies whether to crawl the entire dataset again or to crawl only folders that were added since the last crawler run.

            A value of CRAWL_EVERYTHING specifies crawling the entire dataset again.

            A value of CRAWL_NEW_FOLDERS_ONLY specifies crawling only folders that were added since the last crawler run.

            A value of CRAWL_EVENT_MODE specifies crawling only the changes identified by Amazon S3 events.

        • SchemaChangePolicy (dict) --

          The policy that specifies update and delete behaviors for the crawler.

          • UpdateBehavior (string) --

            The update behavior when the crawler finds a changed schema.

          • DeleteBehavior (string) --

            The deletion behavior when the crawler finds a deleted object.

        • LineageConfiguration (dict) --

          A configuration that specifies whether data lineage is enabled for the crawler.

          • CrawlerLineageSettings (string) --

            Specifies whether data lineage is enabled for the crawler. Valid values are:

            • ENABLE: enables data lineage for the crawler

            • DISABLE: disables data lineage for the crawler

        • State (string) --

          Indicates whether the crawler is running, or whether a run is pending.

        • TablePrefix (string) --

          The prefix added to the names of tables that are created.

        • Schedule (dict) --

          For scheduled crawlers, the schedule when the crawler runs.

          • ScheduleExpression (string) --

            A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

          • State (string) --

            The state of the schedule.

        • CrawlElapsedTime (integer) --

          If the crawler is running, contains the total time elapsed since the last crawl began.

        • CreationTime (datetime) --

          The time that the crawler was created.

        • LastUpdated (datetime) --

          The time that the crawler was last updated.

        • LastCrawl (dict) --

          The status of the last crawl, and potentially error information if an error occurred.

          • Status (string) --

            Status of the last crawl.

          • ErrorMessage (string) --

            If an error occurred, the error information about the last crawl.

          • LogGroup (string) --

            The log group for the last crawl.

          • LogStream (string) --

            The log stream for the last crawl.

          • MessagePrefix (string) --

            The prefix for a message about this crawl.

          • StartTime (datetime) --

            The time at which the crawl started.

        • Version (integer) --

          The version of the crawler.

        • Configuration (string) --

          Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.

        • CrawlerSecurityConfiguration (string) --

          The name of the SecurityConfiguration structure to be used by this crawler.

        • LakeFormationConfiguration (dict) --

          Specifies whether the crawler should use Lake Formation credentials for the crawler instead of the IAM role credentials.

          • UseLakeFormationCredentials (boolean) --

            Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials.

          • AccountId (string) --

            Required for cross account crawls. For same account crawls as the target data, this can be left as null.

        • CatalogId (string) --

          The ID of the Data Catalog in which the crawler's output is stored.

    • NextToken (string) --

      A continuation token, if the returned list has not reached the end of those defined in this customer account.

GetDataCatalogExportConfiguration (updated) Link ¶
Changes (response)
{'DataQuality': {'S3TablesExport': 'ENABLED | DISABLED',
                 'S3TablesExportState': {'Status': 'ENABLING | ENABLED | '
                                                   'DISABLING | DISABLED | '
                                                   'FAILED'}},
 'Lineage': {'S3TablesExport': 'ENABLED | DISABLED',
             'S3TablesExportState': {'Status': 'ENABLING | ENABLED | DISABLING '
                                               '| DISABLED | FAILED'}}}

Retrieves the current export configuration for the Glue Data Catalog. The export configuration controls whether catalog metadata is exported to S3 Tables.

See also: AWS API Documentation

Request Syntax

client.get_data_catalog_export_configuration()
rtype:

dict

returns:

Response Syntax

{
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1),
    'S3TablesConfiguration': {
        'TableBucketArn': 'string',
        'EncryptionConfiguration': {
            'SseAlgorithm': 'string',
            'KmsKeyArn': 'string'
        }
    },
    'Assets': {
        'S3TablesExport': 'ENABLED'|'DISABLED',
        'S3TablesExportState': {
            'Status': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED'|'FAILED'
        }
    },
    'Lineage': {
        'S3TablesExport': 'ENABLED'|'DISABLED',
        'S3TablesExportState': {
            'Status': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED'|'FAILED'
        }
    },
    'DataQuality': {
        'S3TablesExport': 'ENABLED'|'DISABLED',
        'S3TablesExportState': {
            'Status': 'ENABLING'|'ENABLED'|'DISABLING'|'DISABLED'|'FAILED'
        }
    }
}

Response Structure

  • (dict) --

    The export configuration returned by the GetDataCatalogExportConfiguration operation.

    • CreatedAt (datetime) --

      The timestamp at which the export configuration was created.

    • UpdatedAt (datetime) --

      The timestamp at which the export configuration was last updated.

    • S3TablesConfiguration (dict) --

      The S3 Tables configuration for the export, including the table bucket that holds the exported catalog metadata and its encryption configuration.

      • TableBucketArn (string) --

        The ARN of the S3 table bucket that holds the exported catalog metadata.

      • EncryptionConfiguration (dict) --

        The encryption configuration for the table bucket that holds the exported catalog metadata.

        • SseAlgorithm (string) --

          The server-side encryption algorithm used for the exported data. Valid values are AES256 and aws:kms.

        • KmsKeyArn (string) --

          The ARN of the KMS key used to encrypt the exported data.

    • Assets (dict) --

      The export setting and current export state for asset metadata.

      • S3TablesExport (string) --

        Whether asset metadata is exported to S3 Tables. Valid values are ENABLED and DISABLED.

      • S3TablesExportState (dict) --

        The current state of the asset metadata export to S3 Tables.

        • Status (string) --

          The current status of the export. Valid values are ENABLING, ENABLED, DISABLING, DISABLED, and FAILED.

    • Lineage (dict) --

      The export setting and current export state for lineage events.

      • S3TablesExport (string) --

        Whether lineage events are exported to S3 Tables. Valid values are ENABLED and DISABLED.

      • S3TablesExportState (dict) --

        The current state of the lineage events export to S3 Tables.

        • Status (string) --

          The current status of the export. Valid values are ENABLING, ENABLED, DISABLING, DISABLED, and FAILED.

    • DataQuality (dict) --

      The export setting and current export state for data quality results.

      • S3TablesExport (string) --

        Whether data quality results are exported to S3 Tables. Valid values are ENABLED and DISABLED.

      • S3TablesExportState (dict) --

        The current state of the data quality results export to S3 Tables. Data quality results are exported as they are produced, so this export has no ENABLING state.

        • Status (string) --

          The current status of the export. Valid values are ENABLING, ENABLED, DISABLING, DISABLED, and FAILED.

GetDevEndpoint (updated) Link ¶
Changes (response)
{'DevEndpoint': {'WorkerType': {'G.12X.GRAVITON',
                                'G.16X.GRAVITON',
                                'G.1X.GRAVITON',
                                'G.2X.GRAVITON',
                                'G.4X.GRAVITON',
                                'G.8X.GRAVITON',
                                'R.1X.GRAVITON',
                                'R.2X.GRAVITON',
                                'R.4X.GRAVITON',
                                'R.8X.GRAVITON'}}}

Retrieves information about a specified development endpoint.

See also: AWS API Documentation

Request Syntax

client.get_dev_endpoint(
    EndpointName='string'
)
type EndpointName:

string

param EndpointName:

[REQUIRED]

Name of the DevEndpoint to retrieve information for.

rtype:

dict

returns:

Response Syntax

{
    'DevEndpoint': {
        'EndpointName': 'string',
        'RoleArn': 'string',
        'SecurityGroupIds': [
            'string',
        ],
        'SubnetId': 'string',
        'YarnEndpointAddress': 'string',
        'PrivateAddress': 'string',
        'ZeppelinRemoteSparkInterpreterPort': 123,
        'PublicAddress': 'string',
        'Status': 'string',
        'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
        'GlueVersion': 'string',
        'NumberOfWorkers': 123,
        'NumberOfNodes': 123,
        'AvailabilityZone': 'string',
        'VpcId': 'string',
        'ExtraPythonLibsS3Path': 'string',
        'ExtraJarsS3Path': 'string',
        'FailureReason': 'string',
        'LastUpdateStatus': 'string',
        'CreatedTimestamp': datetime(2015, 1, 1),
        'LastModifiedTimestamp': datetime(2015, 1, 1),
        'PublicKey': 'string',
        'PublicKeys': [
            'string',
        ],
        'SecurityConfiguration': 'string',
        'Arguments': {
            'string': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • DevEndpoint (dict) --

      A DevEndpoint definition.

      • EndpointName (string) --

        The name of the DevEndpoint.

      • RoleArn (string) --

        The Amazon Resource Name (ARN) of the IAM role used in this DevEndpoint.

      • SecurityGroupIds (list) --

        A list of security group identifiers used in this DevEndpoint.

        • (string) --

      • SubnetId (string) --

        The subnet ID for this DevEndpoint.

      • YarnEndpointAddress (string) --

        The YARN endpoint address used by this DevEndpoint.

      • PrivateAddress (string) --

        A private IP address to access the DevEndpoint within a VPC if the DevEndpoint is created within one. The PrivateAddress field is present only when you create the DevEndpoint within your VPC.

      • ZeppelinRemoteSparkInterpreterPort (integer) --

        The Apache Zeppelin port for the remote Apache Spark interpreter.

      • PublicAddress (string) --

        The public IP address used by this DevEndpoint. The PublicAddress field is present only when you create a non-virtual private cloud (VPC) DevEndpoint.

      • Status (string) --

        The current status of this DevEndpoint.

      • WorkerType (string) --

        The type of predefined worker that is allocated to the development endpoint. Accepts a value of Standard, G.1X, or G.2X.

        • For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.

        • For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.

        • For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.

        Known issue: when a development endpoint is created with the G.2X WorkerType configuration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk.

      • GlueVersion (string) --

        Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.

        For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

        Development endpoints that are created without specifying a Glue version default to Glue 0.9.

        You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

      • NumberOfWorkers (integer) --

        The number of workers of a defined workerType that are allocated to the development endpoint.

        The maximum number of workers you can define are 299 for G.1X, and 149 for G.2X.

      • NumberOfNodes (integer) --

        The number of Glue Data Processing Units (DPUs) allocated to this DevEndpoint.

      • AvailabilityZone (string) --

        The Amazon Web Services Availability Zone where this DevEndpoint is located.

      • VpcId (string) --

        The ID of the virtual private cloud (VPC) used by this DevEndpoint.

      • ExtraPythonLibsS3Path (string) --

        The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma.

      • ExtraJarsS3Path (string) --

        The path to one or more Java .jar files in an S3 bucket that should be loaded in your DevEndpoint.

      • FailureReason (string) --

        The reason for a current failure in this DevEndpoint.

      • LastUpdateStatus (string) --

        The status of the last update.

      • CreatedTimestamp (datetime) --

        The point in time at which this DevEndpoint was created.

      • LastModifiedTimestamp (datetime) --

        The point in time at which this DevEndpoint was last modified.

      • PublicKey (string) --

        The public key to be used by this DevEndpoint for authentication. This attribute is provided for backward compatibility because the recommended attribute to use is public keys.

      • PublicKeys (list) --

        A list of public keys to be used by the DevEndpoints for authentication. Using this attribute is preferred over a single public key because the public keys allow you to have a different private key per client.

        • (string) --

      • SecurityConfiguration (string) --

        The name of the SecurityConfiguration structure to be used with this DevEndpoint.

      • Arguments (dict) --

        A map of arguments used to configure the DevEndpoint.

        Valid arguments are:

        • "--enable-glue-datacatalog": ""

        You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

        • (string) --

          • (string) --

GetDevEndpoints (updated) Link ¶
Changes (response)
{'DevEndpoints': {'WorkerType': {'G.12X.GRAVITON',
                                 'G.16X.GRAVITON',
                                 'G.1X.GRAVITON',
                                 'G.2X.GRAVITON',
                                 'G.4X.GRAVITON',
                                 'G.8X.GRAVITON',
                                 'R.1X.GRAVITON',
                                 'R.2X.GRAVITON',
                                 'R.4X.GRAVITON',
                                 'R.8X.GRAVITON'}}}

Retrieves all the development endpoints in this Amazon Web Services account.

See also: AWS API Documentation

Request Syntax

client.get_dev_endpoints(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum size of information to return.

type NextToken:

string

param NextToken:

A continuation token, if this is a continuation call.

rtype:

dict

returns:

Response Syntax

{
    'DevEndpoints': [
        {
            'EndpointName': 'string',
            'RoleArn': 'string',
            'SecurityGroupIds': [
                'string',
            ],
            'SubnetId': 'string',
            'YarnEndpointAddress': 'string',
            'PrivateAddress': 'string',
            'ZeppelinRemoteSparkInterpreterPort': 123,
            'PublicAddress': 'string',
            'Status': 'string',
            'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
            'GlueVersion': 'string',
            'NumberOfWorkers': 123,
            'NumberOfNodes': 123,
            'AvailabilityZone': 'string',
            'VpcId': 'string',
            'ExtraPythonLibsS3Path': 'string',
            'ExtraJarsS3Path': 'string',
            'FailureReason': 'string',
            'LastUpdateStatus': 'string',
            'CreatedTimestamp': datetime(2015, 1, 1),
            'LastModifiedTimestamp': datetime(2015, 1, 1),
            'PublicKey': 'string',
            'PublicKeys': [
                'string',
            ],
            'SecurityConfiguration': 'string',
            'Arguments': {
                'string': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • DevEndpoints (list) --

      A list of DevEndpoint definitions.

      • (dict) --

        A development endpoint where a developer can remotely debug extract, transform, and load (ETL) scripts.

        • EndpointName (string) --

          The name of the DevEndpoint.

        • RoleArn (string) --

          The Amazon Resource Name (ARN) of the IAM role used in this DevEndpoint.

        • SecurityGroupIds (list) --

          A list of security group identifiers used in this DevEndpoint.

          • (string) --

        • SubnetId (string) --

          The subnet ID for this DevEndpoint.

        • YarnEndpointAddress (string) --

          The YARN endpoint address used by this DevEndpoint.

        • PrivateAddress (string) --

          A private IP address to access the DevEndpoint within a VPC if the DevEndpoint is created within one. The PrivateAddress field is present only when you create the DevEndpoint within your VPC.

        • ZeppelinRemoteSparkInterpreterPort (integer) --

          The Apache Zeppelin port for the remote Apache Spark interpreter.

        • PublicAddress (string) --

          The public IP address used by this DevEndpoint. The PublicAddress field is present only when you create a non-virtual private cloud (VPC) DevEndpoint.

        • Status (string) --

          The current status of this DevEndpoint.

        • WorkerType (string) --

          The type of predefined worker that is allocated to the development endpoint. Accepts a value of Standard, G.1X, or G.2X.

          • For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.

          • For the G.1X worker type, each worker maps to 1 DPU (4 vCPU, 16 GB of memory, 64 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.

          • For the G.2X worker type, each worker maps to 2 DPU (8 vCPU, 32 GB of memory, 128 GB disk), and provides 1 executor per worker. We recommend this worker type for memory-intensive jobs.

          Known issue: when a development endpoint is created with the G.2X WorkerType configuration, the Spark drivers for the development endpoint will run on 4 vCPU, 16 GB of memory, and a 64 GB disk.

        • GlueVersion (string) --

          Glue version determines the versions of Apache Spark and Python that Glue supports. The Python version indicates the version supported for running your ETL scripts on development endpoints.

          For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

          Development endpoints that are created without specifying a Glue version default to Glue 0.9.

          You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

        • NumberOfWorkers (integer) --

          The number of workers of a defined workerType that are allocated to the development endpoint.

          The maximum number of workers you can define are 299 for G.1X, and 149 for G.2X.

        • NumberOfNodes (integer) --

          The number of Glue Data Processing Units (DPUs) allocated to this DevEndpoint.

        • AvailabilityZone (string) --

          The Amazon Web Services Availability Zone where this DevEndpoint is located.

        • VpcId (string) --

          The ID of the virtual private cloud (VPC) used by this DevEndpoint.

        • ExtraPythonLibsS3Path (string) --

          The paths to one or more Python libraries in an Amazon S3 bucket that should be loaded in your DevEndpoint. Multiple values must be complete paths separated by a comma.

        • ExtraJarsS3Path (string) --

          The path to one or more Java .jar files in an S3 bucket that should be loaded in your DevEndpoint.

        • FailureReason (string) --

          The reason for a current failure in this DevEndpoint.

        • LastUpdateStatus (string) --

          The status of the last update.

        • CreatedTimestamp (datetime) --

          The point in time at which this DevEndpoint was created.

        • LastModifiedTimestamp (datetime) --

          The point in time at which this DevEndpoint was last modified.

        • PublicKey (string) --

          The public key to be used by this DevEndpoint for authentication. This attribute is provided for backward compatibility because the recommended attribute to use is public keys.

        • PublicKeys (list) --

          A list of public keys to be used by the DevEndpoints for authentication. Using this attribute is preferred over a single public key because the public keys allow you to have a different private key per client.

          • (string) --

        • SecurityConfiguration (string) --

          The name of the SecurityConfiguration structure to be used with this DevEndpoint.

        • Arguments (dict) --

          A map of arguments used to configure the DevEndpoint.

          Valid arguments are:

          • "--enable-glue-datacatalog": ""

          You can specify a version of Python support for development endpoints by using the Arguments parameter in the CreateDevEndpoint or UpdateDevEndpoint APIs. If no arguments are provided, the version defaults to Python 2.

          • (string) --

            • (string) --

    • NextToken (string) --

      A continuation token, if not all DevEndpoint definitions have yet been returned.

GetFormType (updated) Link ¶
Changes (response)
{'UpdatedAt': 'timestamp'}

Retrieves a form type in Glue Data Catalog by its identifier.

See also: AWS API Documentation

Request Syntax

client.get_form_type(
    Identifier='string'
)
type Identifier:

string

param Identifier:

[REQUIRED]

The identifier of the form type to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'Id': 'string',
    'Name': 'string',
    'Schema': 'string',
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • Id (string) --

      The identifier of the form type.

    • Name (string) --

      The name of the form type.

    • Schema (string) --

      The Smithy IDL schema of the form type.

    • UpdatedAt (datetime) --

      The timestamp at which the form type was last updated. This value is not returned for built-in form types.

GetGlossary (updated) Link ¶
Changes (response)
{'CreatedAt': 'timestamp', 'UpdatedAt': 'timestamp'}

Retrieves a business glossary in Glue Data Catalog by its identifier.

See also: AWS API Documentation

Request Syntax

client.get_glossary(
    Identifier='string'
)
type Identifier:

string

param Identifier:

[REQUIRED]

The unique identifier of the glossary to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'Id': 'string',
    'Name': 'string',
    'Description': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • Id (string) --

      The unique identifier of the glossary.

    • Name (string) --

      The name of the glossary.

    • Description (string) --

      The description of the glossary.

    • CreatedAt (datetime) --

      The timestamp at which the glossary was created.

    • UpdatedAt (datetime) --

      The timestamp at which the glossary was last updated.

GetGlossaryTerm (updated) Link ¶
Changes (response)
{'CreatedAt': 'timestamp', 'UpdatedAt': 'timestamp'}

Retrieves a glossary term in Glue Data Catalog by its identifier.

See also: AWS API Documentation

Request Syntax

client.get_glossary_term(
    Identifier='string'
)
type Identifier:

string

param Identifier:

[REQUIRED]

The unique identifier of the glossary term to retrieve.

rtype:

dict

returns:

Response Syntax

{
    'Id': 'string',
    'GlossaryId': 'string',
    'Name': 'string',
    'ShortDescription': 'string',
    'LongDescription': 'string',
    'CreatedAt': datetime(2015, 1, 1),
    'UpdatedAt': datetime(2015, 1, 1)
}

Response Structure

  • (dict) --

    • Id (string) --

      The unique identifier of the glossary term.

    • GlossaryId (string) --

      The unique identifier of the glossary containing this term.

    • Name (string) --

      The name of the glossary term.

    • ShortDescription (string) --

      The short description of the glossary term.

    • LongDescription (string) --

      The long description of the glossary term.

    • CreatedAt (datetime) --

      The timestamp at which the glossary term was created.

    • UpdatedAt (datetime) --

      The timestamp at which the glossary term was last updated.

GetJob (updated) Link ¶
Changes (response)
{'Job': {'WorkerType': {'G.12X.GRAVITON',
                        'G.16X.GRAVITON',
                        'G.1X.GRAVITON',
                        'G.2X.GRAVITON',
                        'G.4X.GRAVITON',
                        'G.8X.GRAVITON',
                        'R.1X.GRAVITON',
                        'R.2X.GRAVITON',
                        'R.4X.GRAVITON',
                        'R.8X.GRAVITON'}}}

Retrieves an existing job definition.

See also: AWS API Documentation

Request Syntax

client.get_job(
    JobName='string'
)
type JobName:

string

param JobName:

[REQUIRED]

The name of the job definition to retrieve.

rtype:

dict

returns:

Response Syntax

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

Response Structure

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

GetJobRun (updated) Link ¶
Changes (response)
{'JobRun': {'WorkerType': {'G.12X.GRAVITON',
                           'G.16X.GRAVITON',
                           'G.1X.GRAVITON',
                           'G.2X.GRAVITON',
                           'G.4X.GRAVITON',
                           'G.8X.GRAVITON',
                           'R.1X.GRAVITON',
                           'R.2X.GRAVITON',
                           'R.4X.GRAVITON',
                           'R.8X.GRAVITON'}}}

Retrieves the metadata for a given job run. Job run history is accessible for 365 days for your workflow and job run.

See also: AWS API Documentation

Request Syntax

client.get_job_run(
    JobName='string',
    RunId='string',
    PredecessorsIncluded=True|False
)
type JobName:

string

param JobName:

[REQUIRED]

Name of the job definition being run.

type RunId:

string

param RunId:

[REQUIRED]

The ID of the job run.

type PredecessorsIncluded:

boolean

param PredecessorsIncluded:

True if a list of predecessor runs should be returned.

rtype:

dict

returns:

Response Syntax

{
    'JobRun': {
        'Id': 'string',
        'Attempt': 123,
        'PreviousRunId': 'string',
        'TriggerName': 'string',
        'JobName': 'string',
        'JobMode': 'SCRIPT'|'VISUAL'|'NOTEBOOK',
        'JobRunQueuingEnabled': True|False,
        'StartedOn': datetime(2015, 1, 1),
        'LastModifiedOn': datetime(2015, 1, 1),
        'CompletedOn': datetime(2015, 1, 1),
        'JobRunState': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
        'Arguments': {
            'string': 'string'
        },
        'ErrorMessage': 'string',
        'PredecessorRuns': [
            {
                'JobName': 'string',
                'RunId': 'string'
            },
        ],
        'AllocatedCapacity': 123,
        'ExecutionTime': 123,
        'Timeout': 123,
        'MaxCapacity': 123.0,
        'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
        'NumberOfWorkers': 123,
        'SecurityConfiguration': 'string',
        'LogGroupName': 'string',
        'NotificationProperty': {
            'NotifyDelayAfter': 123
        },
        'GlueVersion': 'string',
        'DPUSeconds': 123.0,
        'ExecutionClass': 'FLEX'|'STANDARD',
        'MaintenanceWindow': 'string',
        'ProfileName': 'string',
        'StateDetail': 'string',
        'ExecutionRoleSessionPolicy': 'string'
    }
}

Response Structure

  • (dict) --

    • JobRun (dict) --

      The requested job-run metadata.

      • Id (string) --

        The ID of this job run.

      • Attempt (integer) --

        The number of the attempt to run this job.

      • PreviousRunId (string) --

        The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.

      • TriggerName (string) --

        The name of the trigger that started this job run.

      • JobName (string) --

        The name of the job definition being used in this run.

      • JobMode (string) --

        A mode that describes how a job was created. Valid values are:

        • SCRIPT - The job was created using the Glue Studio script editor.

        • VISUAL - The job was created using the Glue Studio visual editor.

        • NOTEBOOK - The job was created using an interactive sessions notebook.

        When the JobMode field is missing or null, SCRIPT is assigned as the default value.

      • JobRunQueuingEnabled (boolean) --

        Specifies whether job run queuing is enabled for the job run.

        A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.

      • StartedOn (datetime) --

        The date and time at which this job run was started.

      • LastModifiedOn (datetime) --

        The last time that this job run was modified.

      • CompletedOn (datetime) --

        The date and time that this job run completed.

      • JobRunState (string) --

        The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.

      • Arguments (dict) --

        The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.

        You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

        Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

        For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

        For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.

        For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.

        • (string) --

          • (string) --

      • ErrorMessage (string) --

        An error message associated with this job run.

      • PredecessorRuns (list) --

        A list of predecessors to this job run.

        • (dict) --

          A job run that was used in the predicate of a conditional trigger that triggered this job run.

          • JobName (string) --

            The name of the job definition used by the predecessor job run.

          • RunId (string) --

            The job-run ID of the predecessor job run.

      • AllocatedCapacity (integer) --

        This field is deprecated. Use MaxCapacity instead.

        The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

      • ExecutionTime (integer) --

        The amount of time (in seconds) that the job run consumed resources.

      • Timeout (integer) --

        The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

        Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

        When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

        Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

        For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

      • MaxCapacity (float) --

        For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

        For Glue version 2.0+ jobs, you cannot specify a Maximum capacity. Instead, you should specify a Worker type and the Number of workers.

        Do not set MaxCapacity if using WorkerType and NumberOfWorkers.

        The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:

        • When you specify a Python shell job ( ``JobCommand.Name``="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.

        • When you specify an Apache Spark ETL job ( ``JobCommand.Name``="glueetl") or Apache Spark streaming ETL job ( ``JobCommand.Name``="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.

      • WorkerType (string) --

        The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.

        • For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.

        • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

        • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

        • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

        • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

        • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

        • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

        • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

        • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

        • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

        • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

        • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

      • NumberOfWorkers (integer) --

        The number of workers of a defined workerType that are allocated when a job runs.

      • SecurityConfiguration (string) --

        The name of the SecurityConfiguration structure to be used with this job run.

      • LogGroupName (string) --

        The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be /aws-glue/jobs/, in which case the default encryption is NONE. If you add a role name and SecurityConfiguration name (in other words, /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.

      • NotificationProperty (dict) --

        Specifies configuration properties of a job run notification.

        • NotifyDelayAfter (integer) --

          After a job run starts, the number of minutes to wait before sending a job run delay notification.

      • GlueVersion (string) --

        In Spark jobs, GlueVersion determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.

        Ray jobs should set GlueVersion to 4.0 or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the Runtime parameter of the Job command.

        For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

        Jobs that are created without specifying a Glue version default to Glue 5.1.

      • DPUSeconds (float) --

        This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

      • ExecutionClass (string) --

        Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

        The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

        Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

      • MaintenanceWindow (string) --

        This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

        Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

      • ProfileName (string) --

        The name of an Glue usage profile associated with the job run.

      • StateDetail (string) --

        This field holds details that pertain to the state of a job run. The field is nullable.

        For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.

      • ExecutionRoleSessionPolicy (string) --

        This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

GetJobRuns (updated) Link ¶
Changes (response)
{'JobRuns': {'WorkerType': {'G.12X.GRAVITON',
                            'G.16X.GRAVITON',
                            'G.1X.GRAVITON',
                            'G.2X.GRAVITON',
                            'G.4X.GRAVITON',
                            'G.8X.GRAVITON',
                            'R.1X.GRAVITON',
                            'R.2X.GRAVITON',
                            'R.4X.GRAVITON',
                            'R.8X.GRAVITON'}}}

Retrieves metadata for all runs of a given job definition.

GetJobRuns returns the job runs in chronological order, with the newest jobs returned first.

See also: AWS API Documentation

Request Syntax

client.get_job_runs(
    JobName='string',
    NextToken='string',
    MaxResults=123
)
type JobName:

string

param JobName:

[REQUIRED]

The name of the job definition for which to retrieve all job runs.

type NextToken:

string

param NextToken:

A continuation token, if this is a continuation call.

type MaxResults:

integer

param MaxResults:

The maximum size of the response.

rtype:

dict

returns:

Response Syntax

{
    'JobRuns': [
        {
            'Id': 'string',
            'Attempt': 123,
            'PreviousRunId': 'string',
            'TriggerName': 'string',
            'JobName': 'string',
            'JobMode': 'SCRIPT'|'VISUAL'|'NOTEBOOK',
            'JobRunQueuingEnabled': True|False,
            'StartedOn': datetime(2015, 1, 1),
            'LastModifiedOn': datetime(2015, 1, 1),
            'CompletedOn': datetime(2015, 1, 1),
            'JobRunState': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
            'Arguments': {
                'string': 'string'
            },
            'ErrorMessage': 'string',
            'PredecessorRuns': [
                {
                    'JobName': 'string',
                    'RunId': 'string'
                },
            ],
            'AllocatedCapacity': 123,
            'ExecutionTime': 123,
            'Timeout': 123,
            'MaxCapacity': 123.0,
            'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
            'NumberOfWorkers': 123,
            'SecurityConfiguration': 'string',
            'LogGroupName': 'string',
            'NotificationProperty': {
                'NotifyDelayAfter': 123
            },
            'GlueVersion': 'string',
            'DPUSeconds': 123.0,
            'ExecutionClass': 'FLEX'|'STANDARD',
            'MaintenanceWindow': 'string',
            'ProfileName': 'string',
            'StateDetail': 'string',
            'ExecutionRoleSessionPolicy': 'string'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • JobRuns (list) --

      A list of job-run metadata objects.

      • (dict) --

        Contains information about a job run.

        • Id (string) --

          The ID of this job run.

        • Attempt (integer) --

          The number of the attempt to run this job.

        • PreviousRunId (string) --

          The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.

        • TriggerName (string) --

          The name of the trigger that started this job run.

        • JobName (string) --

          The name of the job definition being used in this run.

        • JobMode (string) --

          A mode that describes how a job was created. Valid values are:

          • SCRIPT - The job was created using the Glue Studio script editor.

          • VISUAL - The job was created using the Glue Studio visual editor.

          • NOTEBOOK - The job was created using an interactive sessions notebook.

          When the JobMode field is missing or null, SCRIPT is assigned as the default value.

        • JobRunQueuingEnabled (boolean) --

          Specifies whether job run queuing is enabled for the job run.

          A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.

        • StartedOn (datetime) --

          The date and time at which this job run was started.

        • LastModifiedOn (datetime) --

          The last time that this job run was modified.

        • CompletedOn (datetime) --

          The date and time that this job run completed.

        • JobRunState (string) --

          The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.

        • Arguments (dict) --

          The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.

          You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

          Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

          For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

          For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.

          For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.

          • (string) --

            • (string) --

        • ErrorMessage (string) --

          An error message associated with this job run.

        • PredecessorRuns (list) --

          A list of predecessors to this job run.

          • (dict) --

            A job run that was used in the predicate of a conditional trigger that triggered this job run.

            • JobName (string) --

              The name of the job definition used by the predecessor job run.

            • RunId (string) --

              The job-run ID of the predecessor job run.

        • AllocatedCapacity (integer) --

          This field is deprecated. Use MaxCapacity instead.

          The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

        • ExecutionTime (integer) --

          The amount of time (in seconds) that the job run consumed resources.

        • Timeout (integer) --

          The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

          Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

          When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

          Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

          For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

        • MaxCapacity (float) --

          For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

          For Glue version 2.0+ jobs, you cannot specify a Maximum capacity. Instead, you should specify a Worker type and the Number of workers.

          Do not set MaxCapacity if using WorkerType and NumberOfWorkers.

          The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:

          • When you specify a Python shell job ( ``JobCommand.Name``="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.

          • When you specify an Apache Spark ETL job ( ``JobCommand.Name``="glueetl") or Apache Spark streaming ETL job ( ``JobCommand.Name``="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.

        • WorkerType (string) --

          The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.

          • For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.

          • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

          • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

          • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

          • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

          • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

          • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

          • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

          • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

          • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

          • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

          • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

        • NumberOfWorkers (integer) --

          The number of workers of a defined workerType that are allocated when a job runs.

        • SecurityConfiguration (string) --

          The name of the SecurityConfiguration structure to be used with this job run.

        • LogGroupName (string) --

          The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be /aws-glue/jobs/, in which case the default encryption is NONE. If you add a role name and SecurityConfiguration name (in other words, /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.

        • NotificationProperty (dict) --

          Specifies configuration properties of a job run notification.

          • NotifyDelayAfter (integer) --

            After a job run starts, the number of minutes to wait before sending a job run delay notification.

        • GlueVersion (string) --

          In Spark jobs, GlueVersion determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.

          Ray jobs should set GlueVersion to 4.0 or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the Runtime parameter of the Job command.

          For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

          Jobs that are created without specifying a Glue version default to Glue 5.1.

        • DPUSeconds (float) --

          This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

        • ExecutionClass (string) --

          Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

          The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

          Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

        • MaintenanceWindow (string) --

          This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

          Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

        • ProfileName (string) --

          The name of an Glue usage profile associated with the job run.

        • StateDetail (string) --

          This field holds details that pertain to the state of a job run. The field is nullable.

          For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.

        • ExecutionRoleSessionPolicy (string) --

          This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

    • NextToken (string) --

      A continuation token, if not all requested job runs have been returned.

GetJobs (updated) Link ¶
Changes (response)
{'Jobs': {'WorkerType': {'G.12X.GRAVITON',
                         'G.16X.GRAVITON',
                         'G.1X.GRAVITON',
                         'G.2X.GRAVITON',
                         'G.4X.GRAVITON',
                         'G.8X.GRAVITON',
                         'R.1X.GRAVITON',
                         'R.2X.GRAVITON',
                         'R.4X.GRAVITON',
                         'R.8X.GRAVITON'}}}

Retrieves all current job definitions.

See also: AWS API Documentation

Request Syntax

client.get_jobs(
    NextToken='string',
    MaxResults=123
)
type NextToken:

string

param NextToken:

A continuation token, if this is a continuation call.

type MaxResults:

integer

param MaxResults:

The maximum size of the response.

rtype:

dict

returns:

Response Syntax

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

Response Structure

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

GetMLTransform (updated) Link ¶
Changes (response)
{'WorkerType': {'G.12X.GRAVITON',
                'G.16X.GRAVITON',
                'G.1X.GRAVITON',
                'G.2X.GRAVITON',
                'G.4X.GRAVITON',
                'G.8X.GRAVITON',
                'R.1X.GRAVITON',
                'R.2X.GRAVITON',
                'R.4X.GRAVITON',
                'R.8X.GRAVITON'}}

Gets an Glue machine learning transform artifact and all its corresponding metadata. Machine learning transforms are a special type of transform that use machine learning to learn the details of the transformation to be performed by learning from examples provided by humans. These transformations are then saved by Glue. You can retrieve their metadata by calling GetMLTransform.

See also: AWS API Documentation

Request Syntax

client.get_ml_transform(
    TransformId='string'
)
type TransformId:

string

param TransformId:

[REQUIRED]

The unique identifier of the transform, generated at the time that the transform was created.

rtype:

dict

returns:

Response Syntax

{
    'TransformId': 'string',
    'Name': 'string',
    'Description': 'string',
    'Status': 'NOT_READY'|'READY'|'DELETING',
    'CreatedOn': datetime(2015, 1, 1),
    'LastModifiedOn': datetime(2015, 1, 1),
    'InputRecordTables': [
        {
            'DatabaseName': 'string',
            'TableName': 'string',
            'CatalogId': 'string',
            'ConnectionName': 'string',
            'AdditionalOptions': {
                'string': 'string'
            }
        },
    ],
    'Parameters': {
        'TransformType': 'FIND_MATCHES',
        'FindMatchesParameters': {
            'PrimaryKeyColumnName': 'string',
            'PrecisionRecallTradeoff': 123.0,
            'AccuracyCostTradeoff': 123.0,
            'EnforceProvidedLabels': True|False
        }
    },
    'EvaluationMetrics': {
        'TransformType': 'FIND_MATCHES',
        'FindMatchesMetrics': {
            'AreaUnderPRCurve': 123.0,
            'Precision': 123.0,
            'Recall': 123.0,
            'F1': 123.0,
            'ConfusionMatrix': {
                'NumTruePositives': 123,
                'NumFalsePositives': 123,
                'NumTrueNegatives': 123,
                'NumFalseNegatives': 123
            },
            'ColumnImportances': [
                {
                    'ColumnName': 'string',
                    'Importance': 123.0
                },
            ]
        }
    },
    'LabelCount': 123,
    'Schema': [
        {
            'Name': 'string',
            'DataType': 'string'
        },
    ],
    'Role': 'string',
    'GlueVersion': 'string',
    'MaxCapacity': 123.0,
    'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
    'NumberOfWorkers': 123,
    'Timeout': 123,
    'MaxRetries': 123,
    'TransformEncryption': {
        'MlUserDataEncryption': {
            'MlUserDataEncryptionMode': 'DISABLED'|'SSE-KMS',
            'KmsKeyId': 'string'
        },
        'TaskRunSecurityConfigurationName': 'string'
    }
}

Response Structure

  • (dict) --

    • TransformId (string) --

      The unique identifier of the transform, generated at the time that the transform was created.

    • Name (string) --

      The unique name given to the transform when it was created.

    • Description (string) --

      A description of the transform.

    • Status (string) --

      The last known status of the transform (to indicate whether it can be used or not). One of "NOT_READY", "READY", or "DELETING".

    • CreatedOn (datetime) --

      The date and time when the transform was created.

    • LastModifiedOn (datetime) --

      The date and time when the transform was last modified.

    • InputRecordTables (list) --

      A list of Glue table definitions used by the transform.

      • (dict) --

        The database and table in the Glue Data Catalog that is used for input or output data.

        • DatabaseName (string) --

          A database name in the Glue Data Catalog.

        • TableName (string) --

          A table name in the Glue Data Catalog.

        • CatalogId (string) --

          A unique identifier for the Glue Data Catalog.

        • ConnectionName (string) --

          The name of the connection to the Glue Data Catalog.

        • AdditionalOptions (dict) --

          Additional options for the table. Currently there are two keys supported:

          • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

          • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

          • (string) --

            • (string) --

    • Parameters (dict) --

      The configuration parameters that are specific to the algorithm used.

      • TransformType (string) --

        The type of machine learning transform.

        For information about the types of machine learning transforms, see Creating Machine Learning Transforms.

      • FindMatchesParameters (dict) --

        The parameters for the find matches algorithm.

        • PrimaryKeyColumnName (string) --

          The name of a column that uniquely identifies rows in the source table. Used to help identify matching records.

        • PrecisionRecallTradeoff (float) --

          The value selected when tuning your transform for a balance between precision and recall. A value of 0.5 means no preference; a value of 1.0 means a bias purely for precision, and a value of 0.0 means a bias for recall. Because this is a tradeoff, choosing values close to 1.0 means very low recall, and choosing values close to 0.0 results in very low precision.

          The precision metric indicates how often your model is correct when it predicts a match.

          The recall metric indicates that for an actual match, how often your model predicts the match.

        • AccuracyCostTradeoff (float) --

          The value that is selected when tuning your transform for a balance between accuracy and cost. A value of 0.5 means that the system balances accuracy and cost concerns. A value of 1.0 means a bias purely for accuracy, which typically results in a higher cost, sometimes substantially higher. A value of 0.0 means a bias purely for cost, which results in a less accurate FindMatches transform, sometimes with unacceptable accuracy.

          Accuracy measures how well the transform finds true positives and true negatives. Increasing accuracy requires more machine resources and cost. But it also results in increased recall.

          Cost measures how many compute resources, and thus money, are consumed to run the transform.

        • EnforceProvidedLabels (boolean) --

          The value to switch on or off to force the output to match the provided labels from users. If the value is True, the find matches transform forces the output to match the provided labels. The results override the normal conflation results. If the value is False, the find matches transform does not ensure all the labels provided are respected, and the results rely on the trained model.

          Note that setting this value to true may increase the conflation execution time.

    • EvaluationMetrics (dict) --

      The latest evaluation metrics.

      • TransformType (string) --

        The type of machine learning transform.

      • FindMatchesMetrics (dict) --

        The evaluation metrics for the find matches algorithm.

        • AreaUnderPRCurve (float) --

          The area under the precision/recall curve (AUPRC) is a single number measuring the overall quality of the transform, that is independent of the choice made for precision vs. recall. Higher values indicate that you have a more attractive precision vs. recall tradeoff.

          For more information, see Precision and recall in Wikipedia.

        • Precision (float) --

          The precision metric indicates when often your transform is correct when it predicts a match. Specifically, it measures how well the transform finds true positives from the total true positives possible.

          For more information, see Precision and recall in Wikipedia.

        • Recall (float) --

          The recall metric indicates that for an actual match, how often your transform predicts the match. Specifically, it measures how well the transform finds true positives from the total records in the source data.

          For more information, see Precision and recall in Wikipedia.

        • F1 (float) --

          The maximum F1 metric indicates the transform's accuracy between 0 and 1, where 1 is the best accuracy.

          For more information, see F1 score in Wikipedia.

        • ConfusionMatrix (dict) --

          The confusion matrix shows you what your transform is predicting accurately and what types of errors it is making.

          For more information, see Confusion matrix in Wikipedia.

          • NumTruePositives (integer) --

            The number of matches in the data that the transform correctly found, in the confusion matrix for your transform.

          • NumFalsePositives (integer) --

            The number of nonmatches in the data that the transform incorrectly classified as a match, in the confusion matrix for your transform.

          • NumTrueNegatives (integer) --

            The number of nonmatches in the data that the transform correctly rejected, in the confusion matrix for your transform.

          • NumFalseNegatives (integer) --

            The number of matches in the data that the transform didn't find, in the confusion matrix for your transform.

        • ColumnImportances (list) --

          A list of ColumnImportance structures containing column importance metrics, sorted in order of descending importance.

          • (dict) --

            A structure containing the column name and column importance score for a column.

            Column importance helps you understand how columns contribute to your model, by identifying which columns in your records are more important than others.

            • ColumnName (string) --

              The name of a column.

            • Importance (float) --

              The column importance score for the column, as a decimal.

    • LabelCount (integer) --

      The number of labels available for this transform.

    • Schema (list) --

      The Map<Column, Type> object that represents the schema that this transform accepts. Has an upper bound of 100 columns.

      • (dict) --

        A key-value pair representing a column and data type that this transform can run against. The Schema parameter of the MLTransform may contain up to 100 of these structures.

        • Name (string) --

          The name of the column.

        • DataType (string) --

          The type of data in the column.

    • Role (string) --

      The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.

    • GlueVersion (string) --

      This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.

    • MaxCapacity (float) --

      The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

      When the WorkerType field is set to a value other than Standard, the MaxCapacity field is set automatically and becomes read-only.

    • WorkerType (string) --

      The type of predefined worker that is allocated when this task runs. Accepts a value of Standard, G.1X, or G.2X.

      • For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.

      • For the G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker.

      • For the G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.

    • NumberOfWorkers (integer) --

      The number of workers of a defined workerType that are allocated when this task runs.

    • Timeout (integer) --

      The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

    • MaxRetries (integer) --

      The maximum number of times to retry a task for this transform after a task run fails.

    • TransformEncryption (dict) --

      The encryption-at-rest settings of the transform that apply to accessing user data. Machine learning transforms can access user data encrypted in Amazon S3 using KMS.

      • MlUserDataEncryption (dict) --

        An MLUserDataEncryption object containing the encryption mode and customer-provided KMS key ID.

        • MlUserDataEncryptionMode (string) --

          The encryption mode applied to user data. Valid values are:

          • DISABLED: encryption is disabled

          • SSEKMS: use of server-side encryption with Key Management Service (SSE-KMS) for user data stored in Amazon S3.

        • KmsKeyId (string) --

          The ID for the customer-provided KMS key.

      • TaskRunSecurityConfigurationName (string) --

        The name of the security configuration.

GetMLTransforms (updated) Link ¶
Changes (response)
{'Transforms': {'WorkerType': {'G.12X.GRAVITON',
                               'G.16X.GRAVITON',
                               'G.1X.GRAVITON',
                               'G.2X.GRAVITON',
                               'G.4X.GRAVITON',
                               'G.8X.GRAVITON',
                               'R.1X.GRAVITON',
                               'R.2X.GRAVITON',
                               'R.4X.GRAVITON',
                               'R.8X.GRAVITON'}}}

Gets a sortable, filterable list of existing Glue machine learning transforms. Machine learning transforms are a special type of transform that use machine learning to learn the details of the transformation to be performed by learning from examples provided by humans. These transformations are then saved by Glue, and you can retrieve their metadata by calling GetMLTransforms.

See also: AWS API Documentation

Request Syntax

client.get_ml_transforms(
    NextToken='string',
    MaxResults=123,
    Filter={
        'Name': 'string',
        'TransformType': 'FIND_MATCHES',
        'Status': 'NOT_READY'|'READY'|'DELETING',
        'GlueVersion': 'string',
        'CreatedBefore': datetime(2015, 1, 1),
        'CreatedAfter': datetime(2015, 1, 1),
        'LastModifiedBefore': datetime(2015, 1, 1),
        'LastModifiedAfter': datetime(2015, 1, 1),
        'Schema': [
            {
                'Name': 'string',
                'DataType': 'string'
            },
        ]
    },
    Sort={
        'Column': 'NAME'|'TRANSFORM_TYPE'|'STATUS'|'CREATED'|'LAST_MODIFIED',
        'SortDirection': 'DESCENDING'|'ASCENDING'
    }
)
type NextToken:

string

param NextToken:

A paginated token to offset the results.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return.

type Filter:

dict

param Filter:

The filter transformation criteria.

  • Name (string) --

    A unique transform name that is used to filter the machine learning transforms.

  • TransformType (string) --

    The type of machine learning transform that is used to filter the machine learning transforms.

  • Status (string) --

    Filters the list of machine learning transforms by the last known status of the transforms (to indicate whether a transform can be used or not). One of "NOT_READY", "READY", or "DELETING".

  • GlueVersion (string) --

    This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.

  • CreatedBefore (datetime) --

    The time and date before which the transforms were created.

  • CreatedAfter (datetime) --

    The time and date after which the transforms were created.

  • LastModifiedBefore (datetime) --

    Filter on transforms last modified before this date.

  • LastModifiedAfter (datetime) --

    Filter on transforms last modified after this date.

  • Schema (list) --

    Filters on datasets with a specific schema. The Map<Column, Type> object is an array of key-value pairs representing the schema this transform accepts, where Column is the name of a column, and Type is the type of the data such as an integer or string. Has an upper bound of 100 columns.

    • (dict) --

      A key-value pair representing a column and data type that this transform can run against. The Schema parameter of the MLTransform may contain up to 100 of these structures.

      • Name (string) --

        The name of the column.

      • DataType (string) --

        The type of data in the column.

type Sort:

dict

param Sort:

The sorting criteria.

  • Column (string) -- [REQUIRED]

    The column to be used in the sorting criteria that are associated with the machine learning transform.

  • SortDirection (string) -- [REQUIRED]

    The sort direction to be used in the sorting criteria that are associated with the machine learning transform.

rtype:

dict

returns:

Response Syntax

{
    'Transforms': [
        {
            'TransformId': 'string',
            'Name': 'string',
            'Description': 'string',
            'Status': 'NOT_READY'|'READY'|'DELETING',
            'CreatedOn': datetime(2015, 1, 1),
            'LastModifiedOn': datetime(2015, 1, 1),
            'InputRecordTables': [
                {
                    'DatabaseName': 'string',
                    'TableName': 'string',
                    'CatalogId': 'string',
                    'ConnectionName': 'string',
                    'AdditionalOptions': {
                        'string': 'string'
                    }
                },
            ],
            'Parameters': {
                'TransformType': 'FIND_MATCHES',
                'FindMatchesParameters': {
                    'PrimaryKeyColumnName': 'string',
                    'PrecisionRecallTradeoff': 123.0,
                    'AccuracyCostTradeoff': 123.0,
                    'EnforceProvidedLabels': True|False
                }
            },
            'EvaluationMetrics': {
                'TransformType': 'FIND_MATCHES',
                'FindMatchesMetrics': {
                    'AreaUnderPRCurve': 123.0,
                    'Precision': 123.0,
                    'Recall': 123.0,
                    'F1': 123.0,
                    'ConfusionMatrix': {
                        'NumTruePositives': 123,
                        'NumFalsePositives': 123,
                        'NumTrueNegatives': 123,
                        'NumFalseNegatives': 123
                    },
                    'ColumnImportances': [
                        {
                            'ColumnName': 'string',
                            'Importance': 123.0
                        },
                    ]
                }
            },
            'LabelCount': 123,
            'Schema': [
                {
                    'Name': 'string',
                    'DataType': 'string'
                },
            ],
            'Role': 'string',
            'GlueVersion': 'string',
            'MaxCapacity': 123.0,
            'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
            'NumberOfWorkers': 123,
            'Timeout': 123,
            'MaxRetries': 123,
            'TransformEncryption': {
                'MlUserDataEncryption': {
                    'MlUserDataEncryptionMode': 'DISABLED'|'SSE-KMS',
                    'KmsKeyId': 'string'
                },
                'TaskRunSecurityConfigurationName': 'string'
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Transforms (list) --

      A list of machine learning transforms.

      • (dict) --

        A structure for a machine learning transform.

        • TransformId (string) --

          The unique transform ID that is generated for the machine learning transform. The ID is guaranteed to be unique and does not change.

        • Name (string) --

          A user-defined name for the machine learning transform. Names are not guaranteed unique and can be changed at any time.

        • Description (string) --

          A user-defined, long-form description text for the machine learning transform. Descriptions are not guaranteed to be unique and can be changed at any time.

        • Status (string) --

          The current status of the machine learning transform.

        • CreatedOn (datetime) --

          A timestamp. The time and date that this machine learning transform was created.

        • LastModifiedOn (datetime) --

          A timestamp. The last point in time when this machine learning transform was modified.

        • InputRecordTables (list) --

          A list of Glue table definitions used by the transform.

          • (dict) --

            The database and table in the Glue Data Catalog that is used for input or output data.

            • DatabaseName (string) --

              A database name in the Glue Data Catalog.

            • TableName (string) --

              A table name in the Glue Data Catalog.

            • CatalogId (string) --

              A unique identifier for the Glue Data Catalog.

            • ConnectionName (string) --

              The name of the connection to the Glue Data Catalog.

            • AdditionalOptions (dict) --

              Additional options for the table. Currently there are two keys supported:

              • pushDownPredicate: to filter on partitions without having to list and read all the files in your dataset.

              • catalogPartitionPredicate: to use server-side partition pruning using partition indexes in the Glue Data Catalog.

              • (string) --

                • (string) --

        • Parameters (dict) --

          A TransformParameters object. You can use parameters to tune (customize) the behavior of the machine learning transform by specifying what data it learns from and your preference on various tradeoffs (such as precious vs. recall, or accuracy vs. cost).

          • TransformType (string) --

            The type of machine learning transform.

            For information about the types of machine learning transforms, see Creating Machine Learning Transforms.

          • FindMatchesParameters (dict) --

            The parameters for the find matches algorithm.

            • PrimaryKeyColumnName (string) --

              The name of a column that uniquely identifies rows in the source table. Used to help identify matching records.

            • PrecisionRecallTradeoff (float) --

              The value selected when tuning your transform for a balance between precision and recall. A value of 0.5 means no preference; a value of 1.0 means a bias purely for precision, and a value of 0.0 means a bias for recall. Because this is a tradeoff, choosing values close to 1.0 means very low recall, and choosing values close to 0.0 results in very low precision.

              The precision metric indicates how often your model is correct when it predicts a match.

              The recall metric indicates that for an actual match, how often your model predicts the match.

            • AccuracyCostTradeoff (float) --

              The value that is selected when tuning your transform for a balance between accuracy and cost. A value of 0.5 means that the system balances accuracy and cost concerns. A value of 1.0 means a bias purely for accuracy, which typically results in a higher cost, sometimes substantially higher. A value of 0.0 means a bias purely for cost, which results in a less accurate FindMatches transform, sometimes with unacceptable accuracy.

              Accuracy measures how well the transform finds true positives and true negatives. Increasing accuracy requires more machine resources and cost. But it also results in increased recall.

              Cost measures how many compute resources, and thus money, are consumed to run the transform.

            • EnforceProvidedLabels (boolean) --

              The value to switch on or off to force the output to match the provided labels from users. If the value is True, the find matches transform forces the output to match the provided labels. The results override the normal conflation results. If the value is False, the find matches transform does not ensure all the labels provided are respected, and the results rely on the trained model.

              Note that setting this value to true may increase the conflation execution time.

        • EvaluationMetrics (dict) --

          An EvaluationMetrics object. Evaluation metrics provide an estimate of the quality of your machine learning transform.

          • TransformType (string) --

            The type of machine learning transform.

          • FindMatchesMetrics (dict) --

            The evaluation metrics for the find matches algorithm.

            • AreaUnderPRCurve (float) --

              The area under the precision/recall curve (AUPRC) is a single number measuring the overall quality of the transform, that is independent of the choice made for precision vs. recall. Higher values indicate that you have a more attractive precision vs. recall tradeoff.

              For more information, see Precision and recall in Wikipedia.

            • Precision (float) --

              The precision metric indicates when often your transform is correct when it predicts a match. Specifically, it measures how well the transform finds true positives from the total true positives possible.

              For more information, see Precision and recall in Wikipedia.

            • Recall (float) --

              The recall metric indicates that for an actual match, how often your transform predicts the match. Specifically, it measures how well the transform finds true positives from the total records in the source data.

              For more information, see Precision and recall in Wikipedia.

            • F1 (float) --

              The maximum F1 metric indicates the transform's accuracy between 0 and 1, where 1 is the best accuracy.

              For more information, see F1 score in Wikipedia.

            • ConfusionMatrix (dict) --

              The confusion matrix shows you what your transform is predicting accurately and what types of errors it is making.

              For more information, see Confusion matrix in Wikipedia.

              • NumTruePositives (integer) --

                The number of matches in the data that the transform correctly found, in the confusion matrix for your transform.

              • NumFalsePositives (integer) --

                The number of nonmatches in the data that the transform incorrectly classified as a match, in the confusion matrix for your transform.

              • NumTrueNegatives (integer) --

                The number of nonmatches in the data that the transform correctly rejected, in the confusion matrix for your transform.

              • NumFalseNegatives (integer) --

                The number of matches in the data that the transform didn't find, in the confusion matrix for your transform.

            • ColumnImportances (list) --

              A list of ColumnImportance structures containing column importance metrics, sorted in order of descending importance.

              • (dict) --

                A structure containing the column name and column importance score for a column.

                Column importance helps you understand how columns contribute to your model, by identifying which columns in your records are more important than others.

                • ColumnName (string) --

                  The name of a column.

                • Importance (float) --

                  The column importance score for the column, as a decimal.

        • LabelCount (integer) --

          A count identifier for the labeling files generated by Glue for this transform. As you create a better transform, you can iteratively download, label, and upload the labeling file.

        • Schema (list) --

          A map of key-value pairs representing the columns and data types that this transform can run against. Has an upper bound of 100 columns.

          • (dict) --

            A key-value pair representing a column and data type that this transform can run against. The Schema parameter of the MLTransform may contain up to 100 of these structures.

            • Name (string) --

              The name of the column.

            • DataType (string) --

              The type of data in the column.

        • Role (string) --

          The name or Amazon Resource Name (ARN) of the IAM role with the required permissions. The required permissions include both Glue service role permissions to Glue resources, and Amazon S3 permissions required by the transform.

          • This role needs Glue service role permissions to allow access to resources in Glue. See Attach a Policy to IAM Users That Access Glue.

          • This role needs permission to your Amazon Simple Storage Service (Amazon S3) sources, targets, temporary directory, scripts, and any libraries used by the task run for this transform.

        • GlueVersion (string) --

          This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.

        • MaxCapacity (float) --

          The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

          MaxCapacity is a mutually exclusive option with NumberOfWorkers and WorkerType.

          • If either NumberOfWorkers or WorkerType is set, then MaxCapacity cannot be set.

          • If MaxCapacity is set then neither NumberOfWorkers or WorkerType can be set.

          • If WorkerType is set, then NumberOfWorkers is required (and vice versa).

          • MaxCapacity and NumberOfWorkers must both be at least 1.

          When the WorkerType field is set to a value other than Standard, the MaxCapacity field is set automatically and becomes read-only.

        • WorkerType (string) --

          The type of predefined worker that is allocated when a task of this transform runs. Accepts a value of Standard, G.1X, or G.2X.

          • For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.

          • For the G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker.

          • For the G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.

          MaxCapacity is a mutually exclusive option with NumberOfWorkers and WorkerType.

          • If either NumberOfWorkers or WorkerType is set, then MaxCapacity cannot be set.

          • If MaxCapacity is set then neither NumberOfWorkers or WorkerType can be set.

          • If WorkerType is set, then NumberOfWorkers is required (and vice versa).

          • MaxCapacity and NumberOfWorkers must both be at least 1.

        • NumberOfWorkers (integer) --

          The number of workers of a defined workerType that are allocated when a task of the transform runs.

          If WorkerType is set, then NumberOfWorkers is required (and vice versa).

        • Timeout (integer) --

          The timeout in minutes of the machine learning transform.

        • MaxRetries (integer) --

          The maximum number of times to retry after an MLTaskRun of the machine learning transform fails.

        • TransformEncryption (dict) --

          The encryption-at-rest settings of the transform that apply to accessing user data. Machine learning transforms can access user data encrypted in Amazon S3 using KMS.

          • MlUserDataEncryption (dict) --

            An MLUserDataEncryption object containing the encryption mode and customer-provided KMS key ID.

            • MlUserDataEncryptionMode (string) --

              The encryption mode applied to user data. Valid values are:

              • DISABLED: encryption is disabled

              • SSEKMS: use of server-side encryption with Key Management Service (SSE-KMS) for user data stored in Amazon S3.

            • KmsKeyId (string) --

              The ID for the customer-provided KMS key.

          • TaskRunSecurityConfigurationName (string) --

            The name of the security configuration.

    • NextToken (string) --

      A pagination token, if more results are available.

GetSession (updated) Link ¶
Changes (response)
{'Session': {'WorkerType': {'G.12X.GRAVITON',
                            'G.16X.GRAVITON',
                            'G.1X.GRAVITON',
                            'G.2X.GRAVITON',
                            'G.4X.GRAVITON',
                            'G.8X.GRAVITON',
                            'R.1X.GRAVITON',
                            'R.2X.GRAVITON',
                            'R.4X.GRAVITON',
                            'R.8X.GRAVITON'}}}

Retrieves the session.

See also: AWS API Documentation

Request Syntax

client.get_session(
    Id='string',
    RequestOrigin='string'
)
type Id:

string

param Id:

[REQUIRED]

The ID of the session.

type RequestOrigin:

string

param RequestOrigin:

The origin of the request.

rtype:

dict

returns:

Response Syntax

{
    'Session': {
        'Id': 'string',
        'CreatedOn': datetime(2015, 1, 1),
        'Status': 'PROVISIONING'|'READY'|'FAILED'|'TIMEOUT'|'STOPPING'|'STOPPED',
        'ErrorMessage': 'string',
        'Description': 'string',
        'Role': 'string',
        'Command': {
            'Name': 'string',
            'PythonVersion': 'string'
        },
        'DefaultArguments': {
            'string': 'string'
        },
        'Connections': {
            'Connections': [
                'string',
            ]
        },
        'Progress': 123.0,
        'MaxCapacity': 123.0,
        'SecurityConfiguration': 'string',
        'GlueVersion': 'string',
        'NumberOfWorkers': 123,
        'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
        'CompletedOn': datetime(2015, 1, 1),
        'ExecutionTime': 123.0,
        'DPUSeconds': 123.0,
        'IdleTimeout': 123,
        'ProfileName': 'string',
        'SessionType': 'LIVY'|'SPARK_CONNECT'
    }
}

Response Structure

  • (dict) --

    • Session (dict) --

      The session object is returned in the response.

      • Id (string) --

        The ID of the session.

      • CreatedOn (datetime) --

        The time and date when the session was created.

      • Status (string) --

        The session status.

      • ErrorMessage (string) --

        The error message displayed during the session.

      • Description (string) --

        The description of the session.

      • Role (string) --

        The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.

      • Command (dict) --

        The command object.See SessionCommand.

        • Name (string) --

          Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.

        • PythonVersion (string) --

          Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.

      • DefaultArguments (dict) --

        A map array of key-value pairs. Max is 75 pairs.

        • (string) --

          • (string) --

      • Connections (dict) --

        The number of connections used for the session.

        • Connections (list) --

          A list of connections used by the job.

          • (string) --

      • Progress (float) --

        The code execution progress of the session.

      • MaxCapacity (float) --

        The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.

      • SecurityConfiguration (string) --

        The name of the SecurityConfiguration structure to be used with the session.

      • GlueVersion (string) --

        The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.

      • NumberOfWorkers (integer) --

        The number of workers of a defined WorkerType to use for the session.

      • WorkerType (string) --

        The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark sessions. Accepts the value Z.2X for Ray sessions.

        The G.12X, G.16X, and R.1X through R.8X worker types are available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

      • CompletedOn (datetime) --

        The date and time that this session is completed.

      • ExecutionTime (float) --

        The total time the session ran for.

      • DPUSeconds (float) --

        The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).

      • IdleTimeout (integer) --

        The number of minutes when idle before the session times out.

      • ProfileName (string) --

        The name of an Glue usage profile associated with the session.

      • SessionType (string) --

        The type of the session.

GetWorkflow (updated) Link ¶
Changes (response)
{'Workflow': {'Graph': {'Nodes': {'JobDetails': {'JobRuns': {'WorkerType': {'G.12X.GRAVITON',
                                                                            'G.16X.GRAVITON',
                                                                            'G.1X.GRAVITON',
                                                                            'G.2X.GRAVITON',
                                                                            'G.4X.GRAVITON',
                                                                            'G.8X.GRAVITON',
                                                                            'R.1X.GRAVITON',
                                                                            'R.2X.GRAVITON',
                                                                            'R.4X.GRAVITON',
                                                                            'R.8X.GRAVITON'}}}}},
              'LastRun': {'Graph': {'Nodes': {'JobDetails': {'JobRuns': {'WorkerType': {'G.12X.GRAVITON',
                                                                                        'G.16X.GRAVITON',
                                                                                        'G.1X.GRAVITON',
                                                                                        'G.2X.GRAVITON',
                                                                                        'G.4X.GRAVITON',
                                                                                        'G.8X.GRAVITON',
                                                                                        'R.1X.GRAVITON',
                                                                                        'R.2X.GRAVITON',
                                                                                        'R.4X.GRAVITON',
                                                                                        'R.8X.GRAVITON'}}}}}}}}

Retrieves resource metadata for a workflow.

See also: AWS API Documentation

Request Syntax

client.get_workflow(
    Name='string',
    IncludeGraph=True|False
)
type Name:

string

param Name:

[REQUIRED]

The name of the workflow to retrieve.

type IncludeGraph:

boolean

param IncludeGraph:

Specifies whether to include a graph when returning the workflow resource metadata.

rtype:

dict

returns:

Response Syntax

{
    'Workflow': {
        'Name': 'string',
        'Description': 'string',
        'DefaultRunProperties': {
            'string': 'string'
        },
        'CreatedOn': datetime(2015, 1, 1),
        'LastModifiedOn': datetime(2015, 1, 1),
        'LastRun': {
            'Name': 'string',
            'WorkflowRunId': 'string',
            'PreviousRunId': 'string',
            'WorkflowRunProperties': {
                'string': 'string'
            },
            'StartedOn': datetime(2015, 1, 1),
            'CompletedOn': datetime(2015, 1, 1),
            'Status': 'RUNNING'|'COMPLETED'|'STOPPING'|'STOPPED'|'ERROR',
            'ErrorMessage': 'string',
            'Statistics': {
                'TotalActions': 123,
                'TimeoutActions': 123,
                'FailedActions': 123,
                'StoppedActions': 123,
                'SucceededActions': 123,
                'RunningActions': 123,
                'ErroredActions': 123,
                'WaitingActions': 123
            },
            'Graph': {
                'Nodes': [
                    {
                        'Type': 'CRAWLER'|'JOB'|'TRIGGER',
                        'Name': 'string',
                        'UniqueId': 'string',
                        'TriggerDetails': {
                            'Trigger': {
                                'Name': 'string',
                                'WorkflowName': 'string',
                                'Id': 'string',
                                'Type': 'SCHEDULED'|'CONDITIONAL'|'ON_DEMAND'|'EVENT',
                                'State': 'CREATING'|'CREATED'|'ACTIVATING'|'ACTIVATED'|'DEACTIVATING'|'DEACTIVATED'|'DELETING'|'UPDATING',
                                'Description': 'string',
                                'Schedule': 'string',
                                'Actions': [
                                    {
                                        'JobName': 'string',
                                        'Arguments': {
                                            'string': 'string'
                                        },
                                        'Timeout': 123,
                                        'SecurityConfiguration': 'string',
                                        'NotificationProperty': {
                                            'NotifyDelayAfter': 123
                                        },
                                        'CrawlerName': 'string'
                                    },
                                ],
                                'Predicate': {
                                    'Logical': 'AND'|'ANY',
                                    'Conditions': [
                                        {
                                            'LogicalOperator': 'EQUALS',
                                            'JobName': 'string',
                                            'State': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                            'CrawlerName': 'string',
                                            'CrawlState': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR'
                                        },
                                    ]
                                },
                                'EventBatchingCondition': {
                                    'BatchSize': 123,
                                    'BatchWindow': 123
                                }
                            }
                        },
                        'JobDetails': {
                            'JobRuns': [
                                {
                                    'Id': 'string',
                                    'Attempt': 123,
                                    'PreviousRunId': 'string',
                                    'TriggerName': 'string',
                                    'JobName': 'string',
                                    'JobMode': 'SCRIPT'|'VISUAL'|'NOTEBOOK',
                                    'JobRunQueuingEnabled': True|False,
                                    'StartedOn': datetime(2015, 1, 1),
                                    'LastModifiedOn': datetime(2015, 1, 1),
                                    'CompletedOn': datetime(2015, 1, 1),
                                    'JobRunState': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                    'Arguments': {
                                        'string': 'string'
                                    },
                                    'ErrorMessage': 'string',
                                    'PredecessorRuns': [
                                        {
                                            'JobName': 'string',
                                            'RunId': 'string'
                                        },
                                    ],
                                    'AllocatedCapacity': 123,
                                    'ExecutionTime': 123,
                                    'Timeout': 123,
                                    'MaxCapacity': 123.0,
                                    'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
                                    'NumberOfWorkers': 123,
                                    'SecurityConfiguration': 'string',
                                    'LogGroupName': 'string',
                                    'NotificationProperty': {
                                        'NotifyDelayAfter': 123
                                    },
                                    'GlueVersion': 'string',
                                    'DPUSeconds': 123.0,
                                    'ExecutionClass': 'FLEX'|'STANDARD',
                                    'MaintenanceWindow': 'string',
                                    'ProfileName': 'string',
                                    'StateDetail': 'string',
                                    'ExecutionRoleSessionPolicy': 'string'
                                },
                            ]
                        },
                        'CrawlerDetails': {
                            'Crawls': [
                                {
                                    'State': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR',
                                    'StartedOn': datetime(2015, 1, 1),
                                    'CompletedOn': datetime(2015, 1, 1),
                                    'ErrorMessage': 'string',
                                    'LogGroup': 'string',
                                    'LogStream': 'string'
                                },
                            ]
                        }
                    },
                ],
                'Edges': [
                    {
                        'SourceId': 'string',
                        'DestinationId': 'string'
                    },
                ]
            },
            'StartingEventBatchCondition': {
                'BatchSize': 123,
                'BatchWindow': 123
            }
        },
        'Graph': {
            'Nodes': [
                {
                    'Type': 'CRAWLER'|'JOB'|'TRIGGER',
                    'Name': 'string',
                    'UniqueId': 'string',
                    'TriggerDetails': {
                        'Trigger': {
                            'Name': 'string',
                            'WorkflowName': 'string',
                            'Id': 'string',
                            'Type': 'SCHEDULED'|'CONDITIONAL'|'ON_DEMAND'|'EVENT',
                            'State': 'CREATING'|'CREATED'|'ACTIVATING'|'ACTIVATED'|'DEACTIVATING'|'DEACTIVATED'|'DELETING'|'UPDATING',
                            'Description': 'string',
                            'Schedule': 'string',
                            'Actions': [
                                {
                                    'JobName': 'string',
                                    'Arguments': {
                                        'string': 'string'
                                    },
                                    'Timeout': 123,
                                    'SecurityConfiguration': 'string',
                                    'NotificationProperty': {
                                        'NotifyDelayAfter': 123
                                    },
                                    'CrawlerName': 'string'
                                },
                            ],
                            'Predicate': {
                                'Logical': 'AND'|'ANY',
                                'Conditions': [
                                    {
                                        'LogicalOperator': 'EQUALS',
                                        'JobName': 'string',
                                        'State': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                        'CrawlerName': 'string',
                                        'CrawlState': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR'
                                    },
                                ]
                            },
                            'EventBatchingCondition': {
                                'BatchSize': 123,
                                'BatchWindow': 123
                            }
                        }
                    },
                    'JobDetails': {
                        'JobRuns': [
                            {
                                'Id': 'string',
                                'Attempt': 123,
                                'PreviousRunId': 'string',
                                'TriggerName': 'string',
                                'JobName': 'string',
                                'JobMode': 'SCRIPT'|'VISUAL'|'NOTEBOOK',
                                'JobRunQueuingEnabled': True|False,
                                'StartedOn': datetime(2015, 1, 1),
                                'LastModifiedOn': datetime(2015, 1, 1),
                                'CompletedOn': datetime(2015, 1, 1),
                                'JobRunState': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                'Arguments': {
                                    'string': 'string'
                                },
                                'ErrorMessage': 'string',
                                'PredecessorRuns': [
                                    {
                                        'JobName': 'string',
                                        'RunId': 'string'
                                    },
                                ],
                                'AllocatedCapacity': 123,
                                'ExecutionTime': 123,
                                'Timeout': 123,
                                'MaxCapacity': 123.0,
                                'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
                                'NumberOfWorkers': 123,
                                'SecurityConfiguration': 'string',
                                'LogGroupName': 'string',
                                'NotificationProperty': {
                                    'NotifyDelayAfter': 123
                                },
                                'GlueVersion': 'string',
                                'DPUSeconds': 123.0,
                                'ExecutionClass': 'FLEX'|'STANDARD',
                                'MaintenanceWindow': 'string',
                                'ProfileName': 'string',
                                'StateDetail': 'string',
                                'ExecutionRoleSessionPolicy': 'string'
                            },
                        ]
                    },
                    'CrawlerDetails': {
                        'Crawls': [
                            {
                                'State': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR',
                                'StartedOn': datetime(2015, 1, 1),
                                'CompletedOn': datetime(2015, 1, 1),
                                'ErrorMessage': 'string',
                                'LogGroup': 'string',
                                'LogStream': 'string'
                            },
                        ]
                    }
                },
            ],
            'Edges': [
                {
                    'SourceId': 'string',
                    'DestinationId': 'string'
                },
            ]
        },
        'MaxConcurrentRuns': 123,
        'BlueprintDetails': {
            'BlueprintName': 'string',
            'RunId': 'string'
        }
    }
}

Response Structure

  • (dict) --

    • Workflow (dict) --

      The resource metadata for the workflow.

      • Name (string) --

        The name of the workflow.

      • Description (string) --

        A description of the workflow.

      • DefaultRunProperties (dict) --

        A collection of properties to be used as part of each execution of the workflow. The run properties are made available to each job in the workflow. A job can modify the properties for the next jobs in the flow.

        • (string) --

          • (string) --

      • CreatedOn (datetime) --

        The date and time when the workflow was created.

      • LastModifiedOn (datetime) --

        The date and time when the workflow was last modified.

      • LastRun (dict) --

        The information about the last execution of the workflow.

        • Name (string) --

          Name of the workflow that was run.

        • WorkflowRunId (string) --

          The ID of this workflow run.

        • PreviousRunId (string) --

          The ID of the previous workflow run.

        • WorkflowRunProperties (dict) --

          The workflow run properties which were set during the run.

          • (string) --

            • (string) --

        • StartedOn (datetime) --

          The date and time when the workflow run was started.

        • CompletedOn (datetime) --

          The date and time when the workflow run completed.

        • Status (string) --

          The status of the workflow run.

        • ErrorMessage (string) --

          This error message describes any error that may have occurred in starting the workflow run. Currently the only error message is "Concurrent runs exceeded for workflow: foo."

        • Statistics (dict) --

          The statistics of the run.

          • TotalActions (integer) --

            Total number of Actions in the workflow run.

          • TimeoutActions (integer) --

            Total number of Actions that timed out.

          • FailedActions (integer) --

            Total number of Actions that have failed.

          • StoppedActions (integer) --

            Total number of Actions that have stopped.

          • SucceededActions (integer) --

            Total number of Actions that have succeeded.

          • RunningActions (integer) --

            Total number Actions in running state.

          • ErroredActions (integer) --

            Indicates the count of job runs in the ERROR state in the workflow run.

          • WaitingActions (integer) --

            Indicates the count of job runs in WAITING state in the workflow run.

        • Graph (dict) --

          The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.

          • Nodes (list) --

            A list of the the Glue components belong to the workflow represented as nodes.

            • (dict) --

              A node represents an Glue component (trigger, crawler, or job) on a workflow graph.

              • Type (string) --

                The type of Glue component represented by the node.

              • Name (string) --

                The name of the Glue component represented by the node.

              • UniqueId (string) --

                The unique Id assigned to the node within the workflow.

              • TriggerDetails (dict) --

                Details of the Trigger when the node represents a Trigger.

                • Trigger (dict) --

                  The information of the trigger represented by the trigger node.

                  • Name (string) --

                    The name of the trigger.

                  • WorkflowName (string) --

                    The name of the workflow associated with the trigger.

                  • Id (string) --

                    Reserved for future use.

                  • Type (string) --

                    The type of trigger that this is.

                  • State (string) --

                    The current state of the trigger.

                  • Description (string) --

                    A description of this trigger.

                  • Schedule (string) --

                    A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

                  • Actions (list) --

                    The actions initiated by this trigger.

                    • (dict) --

                      Defines an action to be initiated by a trigger.

                      • JobName (string) --

                        The name of a job to be run.

                      • Arguments (dict) --

                        The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.

                        You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                        For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                        For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

                        • (string) --

                          • (string) --

                      • Timeout (integer) --

                        The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This overrides the timeout value set in the parent job.

                        Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                        When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                        Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                        For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                      • SecurityConfiguration (string) --

                        The name of the SecurityConfiguration structure to be used with this action.

                      • NotificationProperty (dict) --

                        Specifies configuration properties of a job run notification.

                        • NotifyDelayAfter (integer) --

                          After a job run starts, the number of minutes to wait before sending a job run delay notification.

                      • CrawlerName (string) --

                        The name of the crawler to be used with this action.

                  • Predicate (dict) --

                    The predicate of this trigger, which defines when it will fire.

                    • Logical (string) --

                      An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.

                    • Conditions (list) --

                      A list of the conditions that determine when the trigger will fire.

                      • (dict) --

                        Defines a condition under which a trigger fires.

                        • LogicalOperator (string) --

                          A logical operator.

                        • JobName (string) --

                          The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

                        • State (string) --

                          The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

                        • CrawlerName (string) --

                          The name of the crawler to which this condition applies.

                        • CrawlState (string) --

                          The state of the crawler to which this condition applies.

                  • EventBatchingCondition (dict) --

                    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

                    • BatchSize (integer) --

                      Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.

                    • BatchWindow (integer) --

                      Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received.

              • JobDetails (dict) --

                Details of the Job when the node represents a Job.

                • JobRuns (list) --

                  The information for the job runs represented by the job node.

                  • (dict) --

                    Contains information about a job run.

                    • Id (string) --

                      The ID of this job run.

                    • Attempt (integer) --

                      The number of the attempt to run this job.

                    • PreviousRunId (string) --

                      The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.

                    • TriggerName (string) --

                      The name of the trigger that started this job run.

                    • JobName (string) --

                      The name of the job definition being used in this run.

                    • JobMode (string) --

                      A mode that describes how a job was created. Valid values are:

                      • SCRIPT - The job was created using the Glue Studio script editor.

                      • VISUAL - The job was created using the Glue Studio visual editor.

                      • NOTEBOOK - The job was created using an interactive sessions notebook.

                      When the JobMode field is missing or null, SCRIPT is assigned as the default value.

                    • JobRunQueuingEnabled (boolean) --

                      Specifies whether job run queuing is enabled for the job run.

                      A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.

                    • StartedOn (datetime) --

                      The date and time at which this job run was started.

                    • LastModifiedOn (datetime) --

                      The last time that this job run was modified.

                    • CompletedOn (datetime) --

                      The date and time that this job run completed.

                    • JobRunState (string) --

                      The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.

                    • Arguments (dict) --

                      The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.

                      You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                      Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

                      For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                      For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.

                      For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.

                      • (string) --

                        • (string) --

                    • ErrorMessage (string) --

                      An error message associated with this job run.

                    • PredecessorRuns (list) --

                      A list of predecessors to this job run.

                      • (dict) --

                        A job run that was used in the predicate of a conditional trigger that triggered this job run.

                        • JobName (string) --

                          The name of the job definition used by the predecessor job run.

                        • RunId (string) --

                          The job-run ID of the predecessor job run.

                    • AllocatedCapacity (integer) --

                      This field is deprecated. Use MaxCapacity instead.

                      The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                    • ExecutionTime (integer) --

                      The amount of time (in seconds) that the job run consumed resources.

                    • Timeout (integer) --

                      The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

                      Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                      When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                      Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                      For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                    • MaxCapacity (float) --

                      For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                      For Glue version 2.0+ jobs, you cannot specify a Maximum capacity. Instead, you should specify a Worker type and the Number of workers.

                      Do not set MaxCapacity if using WorkerType and NumberOfWorkers.

                      The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:

                      • When you specify a Python shell job ( ``JobCommand.Name``="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.

                      • When you specify an Apache Spark ETL job ( ``JobCommand.Name``="glueetl") or Apache Spark streaming ETL job ( ``JobCommand.Name``="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.

                    • WorkerType (string) --

                      The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.

                      • For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.

                      • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                      • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                      • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

                    • NumberOfWorkers (integer) --

                      The number of workers of a defined workerType that are allocated when a job runs.

                    • SecurityConfiguration (string) --

                      The name of the SecurityConfiguration structure to be used with this job run.

                    • LogGroupName (string) --

                      The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be /aws-glue/jobs/, in which case the default encryption is NONE. If you add a role name and SecurityConfiguration name (in other words, /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.

                    • NotificationProperty (dict) --

                      Specifies configuration properties of a job run notification.

                      • NotifyDelayAfter (integer) --

                        After a job run starts, the number of minutes to wait before sending a job run delay notification.

                    • GlueVersion (string) --

                      In Spark jobs, GlueVersion determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.

                      Ray jobs should set GlueVersion to 4.0 or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the Runtime parameter of the Job command.

                      For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

                      Jobs that are created without specifying a Glue version default to Glue 5.1.

                    • DPUSeconds (float) --

                      This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

                    • ExecutionClass (string) --

                      Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

                      The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

                      Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

                    • MaintenanceWindow (string) --

                      This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

                      Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

                    • ProfileName (string) --

                      The name of an Glue usage profile associated with the job run.

                    • StateDetail (string) --

                      This field holds details that pertain to the state of a job run. The field is nullable.

                      For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.

                    • ExecutionRoleSessionPolicy (string) --

                      This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

              • CrawlerDetails (dict) --

                Details of the crawler when the node represents a crawler.

                • Crawls (list) --

                  A list of crawls represented by the crawl node.

                  • (dict) --

                    The details of a crawl in the workflow.

                    • State (string) --

                      The state of the crawler.

                    • StartedOn (datetime) --

                      The date and time on which the crawl started.

                    • CompletedOn (datetime) --

                      The date and time on which the crawl completed.

                    • ErrorMessage (string) --

                      The error message associated with the crawl.

                    • LogGroup (string) --

                      The log group associated with the crawl.

                    • LogStream (string) --

                      The log stream associated with the crawl.

          • Edges (list) --

            A list of all the directed connections between the nodes belonging to the workflow.

            • (dict) --

              An edge represents a directed connection between two Glue components that are part of the workflow the edge belongs to.

              • SourceId (string) --

                The unique of the node within the workflow where the edge starts.

              • DestinationId (string) --

                The unique of the node within the workflow where the edge ends.

        • StartingEventBatchCondition (dict) --

          The batch condition that started the workflow run.

          • BatchSize (integer) --

            Number of events in the batch.

          • BatchWindow (integer) --

            Duration of the batch window in seconds.

      • Graph (dict) --

        The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.

        • Nodes (list) --

          A list of the the Glue components belong to the workflow represented as nodes.

          • (dict) --

            A node represents an Glue component (trigger, crawler, or job) on a workflow graph.

            • Type (string) --

              The type of Glue component represented by the node.

            • Name (string) --

              The name of the Glue component represented by the node.

            • UniqueId (string) --

              The unique Id assigned to the node within the workflow.

            • TriggerDetails (dict) --

              Details of the Trigger when the node represents a Trigger.

              • Trigger (dict) --

                The information of the trigger represented by the trigger node.

                • Name (string) --

                  The name of the trigger.

                • WorkflowName (string) --

                  The name of the workflow associated with the trigger.

                • Id (string) --

                  Reserved for future use.

                • Type (string) --

                  The type of trigger that this is.

                • State (string) --

                  The current state of the trigger.

                • Description (string) --

                  A description of this trigger.

                • Schedule (string) --

                  A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

                • Actions (list) --

                  The actions initiated by this trigger.

                  • (dict) --

                    Defines an action to be initiated by a trigger.

                    • JobName (string) --

                      The name of a job to be run.

                    • Arguments (dict) --

                      The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.

                      You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                      For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                      For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

                      • (string) --

                        • (string) --

                    • Timeout (integer) --

                      The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This overrides the timeout value set in the parent job.

                      Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                      When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                      Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                      For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                    • SecurityConfiguration (string) --

                      The name of the SecurityConfiguration structure to be used with this action.

                    • NotificationProperty (dict) --

                      Specifies configuration properties of a job run notification.

                      • NotifyDelayAfter (integer) --

                        After a job run starts, the number of minutes to wait before sending a job run delay notification.

                    • CrawlerName (string) --

                      The name of the crawler to be used with this action.

                • Predicate (dict) --

                  The predicate of this trigger, which defines when it will fire.

                  • Logical (string) --

                    An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.

                  • Conditions (list) --

                    A list of the conditions that determine when the trigger will fire.

                    • (dict) --

                      Defines a condition under which a trigger fires.

                      • LogicalOperator (string) --

                        A logical operator.

                      • JobName (string) --

                        The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

                      • State (string) --

                        The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

                      • CrawlerName (string) --

                        The name of the crawler to which this condition applies.

                      • CrawlState (string) --

                        The state of the crawler to which this condition applies.

                • EventBatchingCondition (dict) --

                  Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

                  • BatchSize (integer) --

                    Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.

                  • BatchWindow (integer) --

                    Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received.

            • JobDetails (dict) --

              Details of the Job when the node represents a Job.

              • JobRuns (list) --

                The information for the job runs represented by the job node.

                • (dict) --

                  Contains information about a job run.

                  • Id (string) --

                    The ID of this job run.

                  • Attempt (integer) --

                    The number of the attempt to run this job.

                  • PreviousRunId (string) --

                    The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.

                  • TriggerName (string) --

                    The name of the trigger that started this job run.

                  • JobName (string) --

                    The name of the job definition being used in this run.

                  • JobMode (string) --

                    A mode that describes how a job was created. Valid values are:

                    • SCRIPT - The job was created using the Glue Studio script editor.

                    • VISUAL - The job was created using the Glue Studio visual editor.

                    • NOTEBOOK - The job was created using an interactive sessions notebook.

                    When the JobMode field is missing or null, SCRIPT is assigned as the default value.

                  • JobRunQueuingEnabled (boolean) --

                    Specifies whether job run queuing is enabled for the job run.

                    A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.

                  • StartedOn (datetime) --

                    The date and time at which this job run was started.

                  • LastModifiedOn (datetime) --

                    The last time that this job run was modified.

                  • CompletedOn (datetime) --

                    The date and time that this job run completed.

                  • JobRunState (string) --

                    The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.

                  • Arguments (dict) --

                    The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.

                    You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                    Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

                    For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                    For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.

                    For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.

                    • (string) --

                      • (string) --

                  • ErrorMessage (string) --

                    An error message associated with this job run.

                  • PredecessorRuns (list) --

                    A list of predecessors to this job run.

                    • (dict) --

                      A job run that was used in the predicate of a conditional trigger that triggered this job run.

                      • JobName (string) --

                        The name of the job definition used by the predecessor job run.

                      • RunId (string) --

                        The job-run ID of the predecessor job run.

                  • AllocatedCapacity (integer) --

                    This field is deprecated. Use MaxCapacity instead.

                    The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                  • ExecutionTime (integer) --

                    The amount of time (in seconds) that the job run consumed resources.

                  • Timeout (integer) --

                    The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

                    Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                    When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                    Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                    For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                  • MaxCapacity (float) --

                    For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                    For Glue version 2.0+ jobs, you cannot specify a Maximum capacity. Instead, you should specify a Worker type and the Number of workers.

                    Do not set MaxCapacity if using WorkerType and NumberOfWorkers.

                    The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:

                    • When you specify a Python shell job ( ``JobCommand.Name``="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.

                    • When you specify an Apache Spark ETL job ( ``JobCommand.Name``="glueetl") or Apache Spark streaming ETL job ( ``JobCommand.Name``="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.

                  • WorkerType (string) --

                    The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.

                    • For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.

                    • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                    • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                    • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

                  • NumberOfWorkers (integer) --

                    The number of workers of a defined workerType that are allocated when a job runs.

                  • SecurityConfiguration (string) --

                    The name of the SecurityConfiguration structure to be used with this job run.

                  • LogGroupName (string) --

                    The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be /aws-glue/jobs/, in which case the default encryption is NONE. If you add a role name and SecurityConfiguration name (in other words, /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.

                  • NotificationProperty (dict) --

                    Specifies configuration properties of a job run notification.

                    • NotifyDelayAfter (integer) --

                      After a job run starts, the number of minutes to wait before sending a job run delay notification.

                  • GlueVersion (string) --

                    In Spark jobs, GlueVersion determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.

                    Ray jobs should set GlueVersion to 4.0 or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the Runtime parameter of the Job command.

                    For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

                    Jobs that are created without specifying a Glue version default to Glue 5.1.

                  • DPUSeconds (float) --

                    This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

                  • ExecutionClass (string) --

                    Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

                    The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

                    Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

                  • MaintenanceWindow (string) --

                    This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

                    Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

                  • ProfileName (string) --

                    The name of an Glue usage profile associated with the job run.

                  • StateDetail (string) --

                    This field holds details that pertain to the state of a job run. The field is nullable.

                    For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.

                  • ExecutionRoleSessionPolicy (string) --

                    This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

            • CrawlerDetails (dict) --

              Details of the crawler when the node represents a crawler.

              • Crawls (list) --

                A list of crawls represented by the crawl node.

                • (dict) --

                  The details of a crawl in the workflow.

                  • State (string) --

                    The state of the crawler.

                  • StartedOn (datetime) --

                    The date and time on which the crawl started.

                  • CompletedOn (datetime) --

                    The date and time on which the crawl completed.

                  • ErrorMessage (string) --

                    The error message associated with the crawl.

                  • LogGroup (string) --

                    The log group associated with the crawl.

                  • LogStream (string) --

                    The log stream associated with the crawl.

        • Edges (list) --

          A list of all the directed connections between the nodes belonging to the workflow.

          • (dict) --

            An edge represents a directed connection between two Glue components that are part of the workflow the edge belongs to.

            • SourceId (string) --

              The unique of the node within the workflow where the edge starts.

            • DestinationId (string) --

              The unique of the node within the workflow where the edge ends.

      • MaxConcurrentRuns (integer) --

        You can use this parameter to prevent unwanted multiple updates to data, to control costs, or in some cases, to prevent exceeding the maximum number of concurrent runs of any of the component jobs. If you leave this parameter blank, there is no limit to the number of concurrent workflow runs.

      • BlueprintDetails (dict) --

        This structure indicates the details of the blueprint that this particular workflow is created from.

        • BlueprintName (string) --

          The name of the blueprint.

        • RunId (string) --

          The run ID for this blueprint.

GetWorkflowRun (updated) Link ¶
Changes (response)
{'Run': {'Graph': {'Nodes': {'JobDetails': {'JobRuns': {'WorkerType': {'G.12X.GRAVITON',
                                                                       'G.16X.GRAVITON',
                                                                       'G.1X.GRAVITON',
                                                                       'G.2X.GRAVITON',
                                                                       'G.4X.GRAVITON',
                                                                       'G.8X.GRAVITON',
                                                                       'R.1X.GRAVITON',
                                                                       'R.2X.GRAVITON',
                                                                       'R.4X.GRAVITON',
                                                                       'R.8X.GRAVITON'}}}}}}}

Retrieves the metadata for a given workflow run. Job run history is accessible for 90 days for your workflow and job run.

See also: AWS API Documentation

Request Syntax

client.get_workflow_run(
    Name='string',
    RunId='string',
    IncludeGraph=True|False
)
type Name:

string

param Name:

[REQUIRED]

Name of the workflow being run.

type RunId:

string

param RunId:

[REQUIRED]

The ID of the workflow run.

type IncludeGraph:

boolean

param IncludeGraph:

Specifies whether to include the workflow graph in response or not.

rtype:

dict

returns:

Response Syntax

{
    'Run': {
        'Name': 'string',
        'WorkflowRunId': 'string',
        'PreviousRunId': 'string',
        'WorkflowRunProperties': {
            'string': 'string'
        },
        'StartedOn': datetime(2015, 1, 1),
        'CompletedOn': datetime(2015, 1, 1),
        'Status': 'RUNNING'|'COMPLETED'|'STOPPING'|'STOPPED'|'ERROR',
        'ErrorMessage': 'string',
        'Statistics': {
            'TotalActions': 123,
            'TimeoutActions': 123,
            'FailedActions': 123,
            'StoppedActions': 123,
            'SucceededActions': 123,
            'RunningActions': 123,
            'ErroredActions': 123,
            'WaitingActions': 123
        },
        'Graph': {
            'Nodes': [
                {
                    'Type': 'CRAWLER'|'JOB'|'TRIGGER',
                    'Name': 'string',
                    'UniqueId': 'string',
                    'TriggerDetails': {
                        'Trigger': {
                            'Name': 'string',
                            'WorkflowName': 'string',
                            'Id': 'string',
                            'Type': 'SCHEDULED'|'CONDITIONAL'|'ON_DEMAND'|'EVENT',
                            'State': 'CREATING'|'CREATED'|'ACTIVATING'|'ACTIVATED'|'DEACTIVATING'|'DEACTIVATED'|'DELETING'|'UPDATING',
                            'Description': 'string',
                            'Schedule': 'string',
                            'Actions': [
                                {
                                    'JobName': 'string',
                                    'Arguments': {
                                        'string': 'string'
                                    },
                                    'Timeout': 123,
                                    'SecurityConfiguration': 'string',
                                    'NotificationProperty': {
                                        'NotifyDelayAfter': 123
                                    },
                                    'CrawlerName': 'string'
                                },
                            ],
                            'Predicate': {
                                'Logical': 'AND'|'ANY',
                                'Conditions': [
                                    {
                                        'LogicalOperator': 'EQUALS',
                                        'JobName': 'string',
                                        'State': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                        'CrawlerName': 'string',
                                        'CrawlState': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR'
                                    },
                                ]
                            },
                            'EventBatchingCondition': {
                                'BatchSize': 123,
                                'BatchWindow': 123
                            }
                        }
                    },
                    'JobDetails': {
                        'JobRuns': [
                            {
                                'Id': 'string',
                                'Attempt': 123,
                                'PreviousRunId': 'string',
                                'TriggerName': 'string',
                                'JobName': 'string',
                                'JobMode': 'SCRIPT'|'VISUAL'|'NOTEBOOK',
                                'JobRunQueuingEnabled': True|False,
                                'StartedOn': datetime(2015, 1, 1),
                                'LastModifiedOn': datetime(2015, 1, 1),
                                'CompletedOn': datetime(2015, 1, 1),
                                'JobRunState': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                'Arguments': {
                                    'string': 'string'
                                },
                                'ErrorMessage': 'string',
                                'PredecessorRuns': [
                                    {
                                        'JobName': 'string',
                                        'RunId': 'string'
                                    },
                                ],
                                'AllocatedCapacity': 123,
                                'ExecutionTime': 123,
                                'Timeout': 123,
                                'MaxCapacity': 123.0,
                                'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
                                'NumberOfWorkers': 123,
                                'SecurityConfiguration': 'string',
                                'LogGroupName': 'string',
                                'NotificationProperty': {
                                    'NotifyDelayAfter': 123
                                },
                                'GlueVersion': 'string',
                                'DPUSeconds': 123.0,
                                'ExecutionClass': 'FLEX'|'STANDARD',
                                'MaintenanceWindow': 'string',
                                'ProfileName': 'string',
                                'StateDetail': 'string',
                                'ExecutionRoleSessionPolicy': 'string'
                            },
                        ]
                    },
                    'CrawlerDetails': {
                        'Crawls': [
                            {
                                'State': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR',
                                'StartedOn': datetime(2015, 1, 1),
                                'CompletedOn': datetime(2015, 1, 1),
                                'ErrorMessage': 'string',
                                'LogGroup': 'string',
                                'LogStream': 'string'
                            },
                        ]
                    }
                },
            ],
            'Edges': [
                {
                    'SourceId': 'string',
                    'DestinationId': 'string'
                },
            ]
        },
        'StartingEventBatchCondition': {
            'BatchSize': 123,
            'BatchWindow': 123
        }
    }
}

Response Structure

  • (dict) --

    • Run (dict) --

      The requested workflow run metadata.

      • Name (string) --

        Name of the workflow that was run.

      • WorkflowRunId (string) --

        The ID of this workflow run.

      • PreviousRunId (string) --

        The ID of the previous workflow run.

      • WorkflowRunProperties (dict) --

        The workflow run properties which were set during the run.

        • (string) --

          • (string) --

      • StartedOn (datetime) --

        The date and time when the workflow run was started.

      • CompletedOn (datetime) --

        The date and time when the workflow run completed.

      • Status (string) --

        The status of the workflow run.

      • ErrorMessage (string) --

        This error message describes any error that may have occurred in starting the workflow run. Currently the only error message is "Concurrent runs exceeded for workflow: foo."

      • Statistics (dict) --

        The statistics of the run.

        • TotalActions (integer) --

          Total number of Actions in the workflow run.

        • TimeoutActions (integer) --

          Total number of Actions that timed out.

        • FailedActions (integer) --

          Total number of Actions that have failed.

        • StoppedActions (integer) --

          Total number of Actions that have stopped.

        • SucceededActions (integer) --

          Total number of Actions that have succeeded.

        • RunningActions (integer) --

          Total number Actions in running state.

        • ErroredActions (integer) --

          Indicates the count of job runs in the ERROR state in the workflow run.

        • WaitingActions (integer) --

          Indicates the count of job runs in WAITING state in the workflow run.

      • Graph (dict) --

        The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.

        • Nodes (list) --

          A list of the the Glue components belong to the workflow represented as nodes.

          • (dict) --

            A node represents an Glue component (trigger, crawler, or job) on a workflow graph.

            • Type (string) --

              The type of Glue component represented by the node.

            • Name (string) --

              The name of the Glue component represented by the node.

            • UniqueId (string) --

              The unique Id assigned to the node within the workflow.

            • TriggerDetails (dict) --

              Details of the Trigger when the node represents a Trigger.

              • Trigger (dict) --

                The information of the trigger represented by the trigger node.

                • Name (string) --

                  The name of the trigger.

                • WorkflowName (string) --

                  The name of the workflow associated with the trigger.

                • Id (string) --

                  Reserved for future use.

                • Type (string) --

                  The type of trigger that this is.

                • State (string) --

                  The current state of the trigger.

                • Description (string) --

                  A description of this trigger.

                • Schedule (string) --

                  A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

                • Actions (list) --

                  The actions initiated by this trigger.

                  • (dict) --

                    Defines an action to be initiated by a trigger.

                    • JobName (string) --

                      The name of a job to be run.

                    • Arguments (dict) --

                      The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.

                      You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                      For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                      For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

                      • (string) --

                        • (string) --

                    • Timeout (integer) --

                      The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This overrides the timeout value set in the parent job.

                      Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                      When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                      Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                      For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                    • SecurityConfiguration (string) --

                      The name of the SecurityConfiguration structure to be used with this action.

                    • NotificationProperty (dict) --

                      Specifies configuration properties of a job run notification.

                      • NotifyDelayAfter (integer) --

                        After a job run starts, the number of minutes to wait before sending a job run delay notification.

                    • CrawlerName (string) --

                      The name of the crawler to be used with this action.

                • Predicate (dict) --

                  The predicate of this trigger, which defines when it will fire.

                  • Logical (string) --

                    An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.

                  • Conditions (list) --

                    A list of the conditions that determine when the trigger will fire.

                    • (dict) --

                      Defines a condition under which a trigger fires.

                      • LogicalOperator (string) --

                        A logical operator.

                      • JobName (string) --

                        The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

                      • State (string) --

                        The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

                      • CrawlerName (string) --

                        The name of the crawler to which this condition applies.

                      • CrawlState (string) --

                        The state of the crawler to which this condition applies.

                • EventBatchingCondition (dict) --

                  Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

                  • BatchSize (integer) --

                    Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.

                  • BatchWindow (integer) --

                    Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received.

            • JobDetails (dict) --

              Details of the Job when the node represents a Job.

              • JobRuns (list) --

                The information for the job runs represented by the job node.

                • (dict) --

                  Contains information about a job run.

                  • Id (string) --

                    The ID of this job run.

                  • Attempt (integer) --

                    The number of the attempt to run this job.

                  • PreviousRunId (string) --

                    The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.

                  • TriggerName (string) --

                    The name of the trigger that started this job run.

                  • JobName (string) --

                    The name of the job definition being used in this run.

                  • JobMode (string) --

                    A mode that describes how a job was created. Valid values are:

                    • SCRIPT - The job was created using the Glue Studio script editor.

                    • VISUAL - The job was created using the Glue Studio visual editor.

                    • NOTEBOOK - The job was created using an interactive sessions notebook.

                    When the JobMode field is missing or null, SCRIPT is assigned as the default value.

                  • JobRunQueuingEnabled (boolean) --

                    Specifies whether job run queuing is enabled for the job run.

                    A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.

                  • StartedOn (datetime) --

                    The date and time at which this job run was started.

                  • LastModifiedOn (datetime) --

                    The last time that this job run was modified.

                  • CompletedOn (datetime) --

                    The date and time that this job run completed.

                  • JobRunState (string) --

                    The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.

                  • Arguments (dict) --

                    The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.

                    You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                    Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

                    For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                    For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.

                    For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.

                    • (string) --

                      • (string) --

                  • ErrorMessage (string) --

                    An error message associated with this job run.

                  • PredecessorRuns (list) --

                    A list of predecessors to this job run.

                    • (dict) --

                      A job run that was used in the predicate of a conditional trigger that triggered this job run.

                      • JobName (string) --

                        The name of the job definition used by the predecessor job run.

                      • RunId (string) --

                        The job-run ID of the predecessor job run.

                  • AllocatedCapacity (integer) --

                    This field is deprecated. Use MaxCapacity instead.

                    The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                  • ExecutionTime (integer) --

                    The amount of time (in seconds) that the job run consumed resources.

                  • Timeout (integer) --

                    The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

                    Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                    When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                    Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                    For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                  • MaxCapacity (float) --

                    For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                    For Glue version 2.0+ jobs, you cannot specify a Maximum capacity. Instead, you should specify a Worker type and the Number of workers.

                    Do not set MaxCapacity if using WorkerType and NumberOfWorkers.

                    The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:

                    • When you specify a Python shell job ( ``JobCommand.Name``="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.

                    • When you specify an Apache Spark ETL job ( ``JobCommand.Name``="glueetl") or Apache Spark streaming ETL job ( ``JobCommand.Name``="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.

                  • WorkerType (string) --

                    The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.

                    • For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.

                    • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                    • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                    • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                    • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

                  • NumberOfWorkers (integer) --

                    The number of workers of a defined workerType that are allocated when a job runs.

                  • SecurityConfiguration (string) --

                    The name of the SecurityConfiguration structure to be used with this job run.

                  • LogGroupName (string) --

                    The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be /aws-glue/jobs/, in which case the default encryption is NONE. If you add a role name and SecurityConfiguration name (in other words, /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.

                  • NotificationProperty (dict) --

                    Specifies configuration properties of a job run notification.

                    • NotifyDelayAfter (integer) --

                      After a job run starts, the number of minutes to wait before sending a job run delay notification.

                  • GlueVersion (string) --

                    In Spark jobs, GlueVersion determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.

                    Ray jobs should set GlueVersion to 4.0 or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the Runtime parameter of the Job command.

                    For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

                    Jobs that are created without specifying a Glue version default to Glue 5.1.

                  • DPUSeconds (float) --

                    This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

                  • ExecutionClass (string) --

                    Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

                    The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

                    Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

                  • MaintenanceWindow (string) --

                    This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

                    Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

                  • ProfileName (string) --

                    The name of an Glue usage profile associated with the job run.

                  • StateDetail (string) --

                    This field holds details that pertain to the state of a job run. The field is nullable.

                    For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.

                  • ExecutionRoleSessionPolicy (string) --

                    This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

            • CrawlerDetails (dict) --

              Details of the crawler when the node represents a crawler.

              • Crawls (list) --

                A list of crawls represented by the crawl node.

                • (dict) --

                  The details of a crawl in the workflow.

                  • State (string) --

                    The state of the crawler.

                  • StartedOn (datetime) --

                    The date and time on which the crawl started.

                  • CompletedOn (datetime) --

                    The date and time on which the crawl completed.

                  • ErrorMessage (string) --

                    The error message associated with the crawl.

                  • LogGroup (string) --

                    The log group associated with the crawl.

                  • LogStream (string) --

                    The log stream associated with the crawl.

        • Edges (list) --

          A list of all the directed connections between the nodes belonging to the workflow.

          • (dict) --

            An edge represents a directed connection between two Glue components that are part of the workflow the edge belongs to.

            • SourceId (string) --

              The unique of the node within the workflow where the edge starts.

            • DestinationId (string) --

              The unique of the node within the workflow where the edge ends.

      • StartingEventBatchCondition (dict) --

        The batch condition that started the workflow run.

        • BatchSize (integer) --

          Number of events in the batch.

        • BatchWindow (integer) --

          Duration of the batch window in seconds.

GetWorkflowRuns (updated) Link ¶
Changes (response)
{'Runs': {'Graph': {'Nodes': {'JobDetails': {'JobRuns': {'WorkerType': {'G.12X.GRAVITON',
                                                                        'G.16X.GRAVITON',
                                                                        'G.1X.GRAVITON',
                                                                        'G.2X.GRAVITON',
                                                                        'G.4X.GRAVITON',
                                                                        'G.8X.GRAVITON',
                                                                        'R.1X.GRAVITON',
                                                                        'R.2X.GRAVITON',
                                                                        'R.4X.GRAVITON',
                                                                        'R.8X.GRAVITON'}}}}}}}

Retrieves metadata for all runs of a given workflow.

See also: AWS API Documentation

Request Syntax

client.get_workflow_runs(
    Name='string',
    IncludeGraph=True|False,
    NextToken='string',
    MaxResults=123
)
type Name:

string

param Name:

[REQUIRED]

Name of the workflow whose metadata of runs should be returned.

type IncludeGraph:

boolean

param IncludeGraph:

Specifies whether to include the workflow graph in response or not.

type NextToken:

string

param NextToken:

The maximum size of the response.

type MaxResults:

integer

param MaxResults:

The maximum number of workflow runs to be included in the response.

rtype:

dict

returns:

Response Syntax

{
    'Runs': [
        {
            'Name': 'string',
            'WorkflowRunId': 'string',
            'PreviousRunId': 'string',
            'WorkflowRunProperties': {
                'string': 'string'
            },
            'StartedOn': datetime(2015, 1, 1),
            'CompletedOn': datetime(2015, 1, 1),
            'Status': 'RUNNING'|'COMPLETED'|'STOPPING'|'STOPPED'|'ERROR',
            'ErrorMessage': 'string',
            'Statistics': {
                'TotalActions': 123,
                'TimeoutActions': 123,
                'FailedActions': 123,
                'StoppedActions': 123,
                'SucceededActions': 123,
                'RunningActions': 123,
                'ErroredActions': 123,
                'WaitingActions': 123
            },
            'Graph': {
                'Nodes': [
                    {
                        'Type': 'CRAWLER'|'JOB'|'TRIGGER',
                        'Name': 'string',
                        'UniqueId': 'string',
                        'TriggerDetails': {
                            'Trigger': {
                                'Name': 'string',
                                'WorkflowName': 'string',
                                'Id': 'string',
                                'Type': 'SCHEDULED'|'CONDITIONAL'|'ON_DEMAND'|'EVENT',
                                'State': 'CREATING'|'CREATED'|'ACTIVATING'|'ACTIVATED'|'DEACTIVATING'|'DEACTIVATED'|'DELETING'|'UPDATING',
                                'Description': 'string',
                                'Schedule': 'string',
                                'Actions': [
                                    {
                                        'JobName': 'string',
                                        'Arguments': {
                                            'string': 'string'
                                        },
                                        'Timeout': 123,
                                        'SecurityConfiguration': 'string',
                                        'NotificationProperty': {
                                            'NotifyDelayAfter': 123
                                        },
                                        'CrawlerName': 'string'
                                    },
                                ],
                                'Predicate': {
                                    'Logical': 'AND'|'ANY',
                                    'Conditions': [
                                        {
                                            'LogicalOperator': 'EQUALS',
                                            'JobName': 'string',
                                            'State': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                            'CrawlerName': 'string',
                                            'CrawlState': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR'
                                        },
                                    ]
                                },
                                'EventBatchingCondition': {
                                    'BatchSize': 123,
                                    'BatchWindow': 123
                                }
                            }
                        },
                        'JobDetails': {
                            'JobRuns': [
                                {
                                    'Id': 'string',
                                    'Attempt': 123,
                                    'PreviousRunId': 'string',
                                    'TriggerName': 'string',
                                    'JobName': 'string',
                                    'JobMode': 'SCRIPT'|'VISUAL'|'NOTEBOOK',
                                    'JobRunQueuingEnabled': True|False,
                                    'StartedOn': datetime(2015, 1, 1),
                                    'LastModifiedOn': datetime(2015, 1, 1),
                                    'CompletedOn': datetime(2015, 1, 1),
                                    'JobRunState': 'STARTING'|'RUNNING'|'STOPPING'|'STOPPED'|'SUCCEEDED'|'FAILED'|'TIMEOUT'|'ERROR'|'WAITING'|'EXPIRED',
                                    'Arguments': {
                                        'string': 'string'
                                    },
                                    'ErrorMessage': 'string',
                                    'PredecessorRuns': [
                                        {
                                            'JobName': 'string',
                                            'RunId': 'string'
                                        },
                                    ],
                                    'AllocatedCapacity': 123,
                                    'ExecutionTime': 123,
                                    'Timeout': 123,
                                    'MaxCapacity': 123.0,
                                    'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
                                    'NumberOfWorkers': 123,
                                    'SecurityConfiguration': 'string',
                                    'LogGroupName': 'string',
                                    'NotificationProperty': {
                                        'NotifyDelayAfter': 123
                                    },
                                    'GlueVersion': 'string',
                                    'DPUSeconds': 123.0,
                                    'ExecutionClass': 'FLEX'|'STANDARD',
                                    'MaintenanceWindow': 'string',
                                    'ProfileName': 'string',
                                    'StateDetail': 'string',
                                    'ExecutionRoleSessionPolicy': 'string'
                                },
                            ]
                        },
                        'CrawlerDetails': {
                            'Crawls': [
                                {
                                    'State': 'RUNNING'|'CANCELLING'|'CANCELLED'|'SUCCEEDED'|'FAILED'|'ERROR',
                                    'StartedOn': datetime(2015, 1, 1),
                                    'CompletedOn': datetime(2015, 1, 1),
                                    'ErrorMessage': 'string',
                                    'LogGroup': 'string',
                                    'LogStream': 'string'
                                },
                            ]
                        }
                    },
                ],
                'Edges': [
                    {
                        'SourceId': 'string',
                        'DestinationId': 'string'
                    },
                ]
            },
            'StartingEventBatchCondition': {
                'BatchSize': 123,
                'BatchWindow': 123
            }
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Runs (list) --

      A list of workflow run metadata objects.

      • (dict) --

        A workflow run is an execution of a workflow providing all the runtime information.

        • Name (string) --

          Name of the workflow that was run.

        • WorkflowRunId (string) --

          The ID of this workflow run.

        • PreviousRunId (string) --

          The ID of the previous workflow run.

        • WorkflowRunProperties (dict) --

          The workflow run properties which were set during the run.

          • (string) --

            • (string) --

        • StartedOn (datetime) --

          The date and time when the workflow run was started.

        • CompletedOn (datetime) --

          The date and time when the workflow run completed.

        • Status (string) --

          The status of the workflow run.

        • ErrorMessage (string) --

          This error message describes any error that may have occurred in starting the workflow run. Currently the only error message is "Concurrent runs exceeded for workflow: foo."

        • Statistics (dict) --

          The statistics of the run.

          • TotalActions (integer) --

            Total number of Actions in the workflow run.

          • TimeoutActions (integer) --

            Total number of Actions that timed out.

          • FailedActions (integer) --

            Total number of Actions that have failed.

          • StoppedActions (integer) --

            Total number of Actions that have stopped.

          • SucceededActions (integer) --

            Total number of Actions that have succeeded.

          • RunningActions (integer) --

            Total number Actions in running state.

          • ErroredActions (integer) --

            Indicates the count of job runs in the ERROR state in the workflow run.

          • WaitingActions (integer) --

            Indicates the count of job runs in WAITING state in the workflow run.

        • Graph (dict) --

          The graph representing all the Glue components that belong to the workflow as nodes and directed connections between them as edges.

          • Nodes (list) --

            A list of the the Glue components belong to the workflow represented as nodes.

            • (dict) --

              A node represents an Glue component (trigger, crawler, or job) on a workflow graph.

              • Type (string) --

                The type of Glue component represented by the node.

              • Name (string) --

                The name of the Glue component represented by the node.

              • UniqueId (string) --

                The unique Id assigned to the node within the workflow.

              • TriggerDetails (dict) --

                Details of the Trigger when the node represents a Trigger.

                • Trigger (dict) --

                  The information of the trigger represented by the trigger node.

                  • Name (string) --

                    The name of the trigger.

                  • WorkflowName (string) --

                    The name of the workflow associated with the trigger.

                  • Id (string) --

                    Reserved for future use.

                  • Type (string) --

                    The type of trigger that this is.

                  • State (string) --

                    The current state of the trigger.

                  • Description (string) --

                    A description of this trigger.

                  • Schedule (string) --

                    A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

                  • Actions (list) --

                    The actions initiated by this trigger.

                    • (dict) --

                      Defines an action to be initiated by a trigger.

                      • JobName (string) --

                        The name of a job to be run.

                      • Arguments (dict) --

                        The job arguments used when this trigger fires. For this job run, they replace the default arguments set in the job definition itself.

                        You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                        For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                        For information about the key-value pairs that Glue consumes to set up your job, see the Special Parameters Used by Glue topic in the developer guide.

                        • (string) --

                          • (string) --

                      • Timeout (integer) --

                        The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This overrides the timeout value set in the parent job.

                        Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                        When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                        Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                        For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                      • SecurityConfiguration (string) --

                        The name of the SecurityConfiguration structure to be used with this action.

                      • NotificationProperty (dict) --

                        Specifies configuration properties of a job run notification.

                        • NotifyDelayAfter (integer) --

                          After a job run starts, the number of minutes to wait before sending a job run delay notification.

                      • CrawlerName (string) --

                        The name of the crawler to be used with this action.

                  • Predicate (dict) --

                    The predicate of this trigger, which defines when it will fire.

                    • Logical (string) --

                      An optional field if only one condition is listed. If multiple conditions are listed, then this field is required.

                    • Conditions (list) --

                      A list of the conditions that determine when the trigger will fire.

                      • (dict) --

                        Defines a condition under which a trigger fires.

                        • LogicalOperator (string) --

                          A logical operator.

                        • JobName (string) --

                          The name of the job whose JobRuns this condition applies to, and on which this trigger waits.

                        • State (string) --

                          The condition state. Currently, the only job states that a trigger can listen for are SUCCEEDED, STOPPED, FAILED, and TIMEOUT. The only crawler states that a trigger can listen for are SUCCEEDED, FAILED, and CANCELLED.

                        • CrawlerName (string) --

                          The name of the crawler to which this condition applies.

                        • CrawlState (string) --

                          The state of the crawler to which this condition applies.

                  • EventBatchingCondition (dict) --

                    Batch condition that must be met (specified number of events received or batch time window expired) before EventBridge event trigger fires.

                    • BatchSize (integer) --

                      Number of events that must be received from Amazon EventBridge before EventBridge event trigger fires.

                    • BatchWindow (integer) --

                      Window of time in seconds after which EventBridge event trigger fires. Window starts when first event is received.

              • JobDetails (dict) --

                Details of the Job when the node represents a Job.

                • JobRuns (list) --

                  The information for the job runs represented by the job node.

                  • (dict) --

                    Contains information about a job run.

                    • Id (string) --

                      The ID of this job run.

                    • Attempt (integer) --

                      The number of the attempt to run this job.

                    • PreviousRunId (string) --

                      The ID of the previous run of this job. For example, the JobRunId specified in the StartJobRun action.

                    • TriggerName (string) --

                      The name of the trigger that started this job run.

                    • JobName (string) --

                      The name of the job definition being used in this run.

                    • JobMode (string) --

                      A mode that describes how a job was created. Valid values are:

                      • SCRIPT - The job was created using the Glue Studio script editor.

                      • VISUAL - The job was created using the Glue Studio visual editor.

                      • NOTEBOOK - The job was created using an interactive sessions notebook.

                      When the JobMode field is missing or null, SCRIPT is assigned as the default value.

                    • JobRunQueuingEnabled (boolean) --

                      Specifies whether job run queuing is enabled for the job run.

                      A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.

                    • StartedOn (datetime) --

                      The date and time at which this job run was started.

                    • LastModifiedOn (datetime) --

                      The last time that this job run was modified.

                    • CompletedOn (datetime) --

                      The date and time that this job run completed.

                    • JobRunState (string) --

                      The current state of the job run. For more information about the statuses of jobs that have terminated abnormally, see Glue Job Run Statuses.

                    • Arguments (dict) --

                      The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.

                      You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

                      Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

                      For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

                      For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.

                      For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.

                      • (string) --

                        • (string) --

                    • ErrorMessage (string) --

                      An error message associated with this job run.

                    • PredecessorRuns (list) --

                      A list of predecessors to this job run.

                      • (dict) --

                        A job run that was used in the predicate of a conditional trigger that triggered this job run.

                        • JobName (string) --

                          The name of the job definition used by the predecessor job run.

                        • RunId (string) --

                          The job-run ID of the predecessor job run.

                    • AllocatedCapacity (integer) --

                      This field is deprecated. Use MaxCapacity instead.

                      The number of Glue data processing units (DPUs) allocated to this JobRun. From 2 to 100 DPUs can be allocated; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                    • ExecutionTime (integer) --

                      The amount of time (in seconds) that the job run consumed resources.

                    • Timeout (integer) --

                      The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

                      Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

                      When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

                      Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

                      For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

                    • MaxCapacity (float) --

                      For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

                      For Glue version 2.0+ jobs, you cannot specify a Maximum capacity. Instead, you should specify a Worker type and the Number of workers.

                      Do not set MaxCapacity if using WorkerType and NumberOfWorkers.

                      The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:

                      • When you specify a Python shell job ( ``JobCommand.Name``="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.

                      • When you specify an Apache Spark ETL job ( ``JobCommand.Name``="glueetl") or Apache Spark streaming ETL job ( ``JobCommand.Name``="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.

                    • WorkerType (string) --

                      The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.

                      • For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.

                      • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                      • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

                      • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

                      • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

                    • NumberOfWorkers (integer) --

                      The number of workers of a defined workerType that are allocated when a job runs.

                    • SecurityConfiguration (string) --

                      The name of the SecurityConfiguration structure to be used with this job run.

                    • LogGroupName (string) --

                      The name of the log group for secure logging that can be server-side encrypted in Amazon CloudWatch using KMS. This name can be /aws-glue/jobs/, in which case the default encryption is NONE. If you add a role name and SecurityConfiguration name (in other words, /aws-glue/jobs-yourRoleName-yourSecurityConfigurationName/), then that security configuration is used to encrypt the log group.

                    • NotificationProperty (dict) --

                      Specifies configuration properties of a job run notification.

                      • NotifyDelayAfter (integer) --

                        After a job run starts, the number of minutes to wait before sending a job run delay notification.

                    • GlueVersion (string) --

                      In Spark jobs, GlueVersion determines the versions of Apache Spark and Python that Glue available in a job. The Python version indicates the version supported for jobs of type Spark.

                      Ray jobs should set GlueVersion to 4.0 or greater. However, the versions of Ray, Python and additional libraries available in your Ray job are determined by the Runtime parameter of the Job command.

                      For more information about the available Glue versions and corresponding Spark and Python versions, see Glue version in the developer guide.

                      Jobs that are created without specifying a Glue version default to Glue 5.1.

                    • DPUSeconds (float) --

                      This field can be set for either job runs with execution class FLEX or when Auto Scaling is enabled, and represents the total time each executor ran during the lifecycle of a job run in seconds, multiplied by a DPU factor (1 for G.1X, 2 for G.2X, or 0.25 for G.025X workers). This value may be different than the executionEngineRuntime * MaxCapacity as in the case of Auto Scaling jobs, as the number of executors running at a given time may be less than the MaxCapacity. Therefore, it is possible that the value of DPUSeconds is less than executionEngineRuntime * MaxCapacity.

                    • ExecutionClass (string) --

                      Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

                      The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

                      Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

                    • MaintenanceWindow (string) --

                      This field specifies a day of the week and hour for a maintenance window for streaming jobs. Glue periodically performs maintenance activities. During these maintenance windows, Glue will need to restart your streaming jobs.

                      Glue will restart the job within 3 hours of the specified maintenance window. For instance, if you set up the maintenance window for Monday at 10:00AM GMT, your jobs will be restarted between 10:00AM GMT to 1:00PM GMT.

                    • ProfileName (string) --

                      The name of an Glue usage profile associated with the job run.

                    • StateDetail (string) --

                      This field holds details that pertain to the state of a job run. The field is nullable.

                      For example, when a job run is in a WAITING state as a result of job run queuing, the field has the reason why the job run is in that state.

                    • ExecutionRoleSessionPolicy (string) --

                      This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

              • CrawlerDetails (dict) --

                Details of the crawler when the node represents a crawler.

                • Crawls (list) --

                  A list of crawls represented by the crawl node.

                  • (dict) --

                    The details of a crawl in the workflow.

                    • State (string) --

                      The state of the crawler.

                    • StartedOn (datetime) --

                      The date and time on which the crawl started.

                    • CompletedOn (datetime) --

                      The date and time on which the crawl completed.

                    • ErrorMessage (string) --

                      The error message associated with the crawl.

                    • LogGroup (string) --

                      The log group associated with the crawl.

                    • LogStream (string) --

                      The log stream associated with the crawl.

          • Edges (list) --

            A list of all the directed connections between the nodes belonging to the workflow.

            • (dict) --

              An edge represents a directed connection between two Glue components that are part of the workflow the edge belongs to.

              • SourceId (string) --

                The unique of the node within the workflow where the edge starts.

              • DestinationId (string) --

                The unique of the node within the workflow where the edge ends.

        • StartingEventBatchCondition (dict) --

          The batch condition that started the workflow run.

          • BatchSize (integer) --

            Number of events in the batch.

          • BatchWindow (integer) --

            Duration of the batch window in seconds.

    • NextToken (string) --

      A continuation token, if not all requested workflow runs have been returned.

ListFormTypes (updated) Link ¶
Changes (response)
{'Items': {'UpdatedAt': 'timestamp'}}

Lists the form types defined in Glue Data Catalog.

See also: AWS API Documentation

Request Syntax

client.list_form_types(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return in the response.

type NextToken:

string

param NextToken:

A continuation token, if this is a continuation call.

rtype:

dict

returns:

Response Syntax

{
    'Items': [
        {
            'Id': 'string',
            'Name': 'string',
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Items (list) --

      The list of form type items.

      • (dict) --

        A summary of a form type.

        • Id (string) --

          The identifier of the form type.

        • Name (string) --

          The name of the form type.

        • UpdatedAt (datetime) --

          The timestamp at which the form type was last updated. This value is not returned for built-in form types.

    • NextToken (string) --

      A continuation token, present if the current segment is not the last.

ListGlossaries (updated) Link ¶
Changes (response)
{'Items': {'CreatedAt': 'timestamp', 'UpdatedAt': 'timestamp'}}

Lists business glossaries in Glue Data Catalog.

See also: AWS API Documentation

Request Syntax

client.list_glossaries(
    MaxResults=123,
    NextToken='string'
)
type MaxResults:

integer

param MaxResults:

The maximum number of results to return in the response.

type NextToken:

string

param NextToken:

A continuation token, if this is a continuation call.

rtype:

dict

returns:

Response Syntax

{
    'Items': [
        {
            'Id': 'string',
            'Name': 'string',
            'Description': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Items (list) --

      The list of glossary items.

      • (dict) --

        A summary of a business glossary.

        • Id (string) --

          The unique identifier of the glossary.

        • Name (string) --

          The name of the glossary.

        • Description (string) --

          The description of the glossary.

        • CreatedAt (datetime) --

          The timestamp at which the glossary was created.

        • UpdatedAt (datetime) --

          The timestamp at which the glossary was last updated.

    • NextToken (string) --

      A continuation token, present if the current segment is not the last.

ListGlossaryTerms (updated) Link ¶
Changes (response)
{'Items': {'CreatedAt': 'timestamp', 'UpdatedAt': 'timestamp'}}

Lists glossary terms within a business glossary in Glue Data Catalog.

See also: AWS API Documentation

Request Syntax

client.list_glossary_terms(
    GlossaryIdentifier='string',
    MaxResults=123,
    NextToken='string'
)
type GlossaryIdentifier:

string

param GlossaryIdentifier:

[REQUIRED]

The unique identifier of the glossary whose terms to list.

type MaxResults:

integer

param MaxResults:

The maximum number of results to return in the response.

type NextToken:

string

param NextToken:

A continuation token, if this is a continuation call.

rtype:

dict

returns:

Response Syntax

{
    'Items': [
        {
            'Id': 'string',
            'Name': 'string',
            'ShortDescription': 'string',
            'CreatedAt': datetime(2015, 1, 1),
            'UpdatedAt': datetime(2015, 1, 1)
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Items (list) --

      The list of glossary term items.

      • (dict) --

        A summary of a glossary term.

        • Id (string) --

          The unique identifier of the glossary term.

        • Name (string) --

          The name of the glossary term.

        • ShortDescription (string) --

          The short description of the glossary term.

        • CreatedAt (datetime) --

          The timestamp at which the glossary term was created.

        • UpdatedAt (datetime) --

          The timestamp at which the glossary term was last updated.

    • NextToken (string) --

      A continuation token, present if the current segment is not the last.

ListSessions (updated) Link ¶
Changes (response)
{'Sessions': {'WorkerType': {'G.12X.GRAVITON',
                             'G.16X.GRAVITON',
                             'G.1X.GRAVITON',
                             'G.2X.GRAVITON',
                             'G.4X.GRAVITON',
                             'G.8X.GRAVITON',
                             'R.1X.GRAVITON',
                             'R.2X.GRAVITON',
                             'R.4X.GRAVITON',
                             'R.8X.GRAVITON'}}}

Retrieve a list of sessions.

See also: AWS API Documentation

Request Syntax

client.list_sessions(
    NextToken='string',
    MaxResults=123,
    Tags={
        'string': 'string'
    },
    RequestOrigin='string'
)
type NextToken:

string

param NextToken:

The token for the next set of results, or null if there are no more result.

type MaxResults:

integer

param MaxResults:

The maximum number of results.

type Tags:

dict

param Tags:

Tags belonging to the session.

  • (string) --

    • (string) --

type RequestOrigin:

string

param RequestOrigin:

The origin of the request.

rtype:

dict

returns:

Response Syntax

{
    'Ids': [
        'string',
    ],
    'Sessions': [
        {
            'Id': 'string',
            'CreatedOn': datetime(2015, 1, 1),
            'Status': 'PROVISIONING'|'READY'|'FAILED'|'TIMEOUT'|'STOPPING'|'STOPPED',
            'ErrorMessage': 'string',
            'Description': 'string',
            'Role': 'string',
            'Command': {
                'Name': 'string',
                'PythonVersion': 'string'
            },
            'DefaultArguments': {
                'string': 'string'
            },
            'Connections': {
                'Connections': [
                    'string',
                ]
            },
            'Progress': 123.0,
            'MaxCapacity': 123.0,
            'SecurityConfiguration': 'string',
            'GlueVersion': 'string',
            'NumberOfWorkers': 123,
            'WorkerType': 'Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
            'CompletedOn': datetime(2015, 1, 1),
            'ExecutionTime': 123.0,
            'DPUSeconds': 123.0,
            'IdleTimeout': 123,
            'ProfileName': 'string',
            'SessionType': 'LIVY'|'SPARK_CONNECT'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --

    • Ids (list) --

      Returns the ID of the session.

      • (string) --

    • Sessions (list) --

      Returns the session object.

      • (dict) --

        The period in which a remote Spark runtime environment is running.

        • Id (string) --

          The ID of the session.

        • CreatedOn (datetime) --

          The time and date when the session was created.

        • Status (string) --

          The session status.

        • ErrorMessage (string) --

          The error message displayed during the session.

        • Description (string) --

          The description of the session.

        • Role (string) --

          The name or Amazon Resource Name (ARN) of the IAM role associated with the Session.

        • Command (dict) --

          The command object.See SessionCommand.

          • Name (string) --

            Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.

          • PythonVersion (string) --

            Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.

        • DefaultArguments (dict) --

          A map array of key-value pairs. Max is 75 pairs.

          • (string) --

            • (string) --

        • Connections (dict) --

          The number of connections used for the session.

          • Connections (list) --

            A list of connections used by the job.

            • (string) --

        • Progress (float) --

          The code execution progress of the session.

        • MaxCapacity (float) --

          The number of Glue data processing units (DPUs) that can be allocated when the job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB memory.

        • SecurityConfiguration (string) --

          The name of the SecurityConfiguration structure to be used with the session.

        • GlueVersion (string) --

          The Glue version determines the versions of Apache Spark and Python that Glue supports. The GlueVersion must be greater than 2.0.

        • NumberOfWorkers (integer) --

          The number of workers of a defined WorkerType to use for the session.

        • WorkerType (string) --

          The type of predefined worker that is allocated when a session runs. Accepts a value of G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark sessions. Accepts the value Z.2X for Ray sessions.

          The G.12X, G.16X, and R.1X through R.8X worker types are available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

        • CompletedOn (datetime) --

          The date and time that this session is completed.

        • ExecutionTime (float) --

          The total time the session ran for.

        • DPUSeconds (float) --

          The DPUs consumed by the session (formula: ExecutionTime * MaxCapacity).

        • IdleTimeout (integer) --

          The number of minutes when idle before the session times out.

        • ProfileName (string) --

          The name of an Glue usage profile associated with the session.

        • SessionType (string) --

          The type of the session.

    • NextToken (string) --

      The token for the next set of results, or null if there are no more result.

PutAttachment (updated) Link ¶
Changes (response)
{'Content': 'string'}

Attaches a form to an asset or an iterable form item in Glue Data Catalog. If an attachment with the same name already exists, it is overwritten.

See also: AWS API Documentation

Request Syntax

client.put_attachment(
    AssetIdentifier='string',
    IterableFormName='string',
    ItemIdentifier='string',
    AttachmentName='string',
    Content='string',
    FormTypeIdentifier='string',
    ClientToken='string'
)
type AssetIdentifier:

string

param AssetIdentifier:

[REQUIRED]

The unique identifier of the asset to attach the form to.

type IterableFormName:

string

param IterableFormName:

The name of the iterable form. When specified along with itemIdentifier, the attachment targets an item within the iterable form rather than the asset itself.

type ItemIdentifier:

string

param ItemIdentifier:

The identifier of the item within the iterable form. Required when iterableFormName is specified.

type AttachmentName:

string

param AttachmentName:

[REQUIRED]

The name of the attachment.

type Content:

string

param Content:

[REQUIRED]

The JSON content of the form, conforming to the schema of the specified form type.

type FormTypeIdentifier:

string

param FormTypeIdentifier:

The identifier of the form type for this attachment. This field is required.

type ClientToken:

string

param ClientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

This field is autopopulated if not provided.

rtype:

dict

returns:

Response Syntax

{
    'AssetId': 'string',
    'IterableFormName': 'string',
    'ItemId': 'string',
    'AttachmentName': 'string',
    'Content': 'string',
    'FormTypeId': 'string'
}

Response Structure

  • (dict) --

    • AssetId (string) --

      The unique identifier of the asset.

    • IterableFormName (string) --

      The name of the iterable form, if the attachment targets an item.

    • ItemId (string) --

      The identifier of the item within the iterable form, if applicable.

    • AttachmentName (string) --

      The name of the attachment.

    • Content (string) --

      The JSON content of the form that was attached.

    • FormTypeId (string) --

      The identifier of the form type for this attachment.

PutDataCatalogExportConfiguration (updated) Link ¶
Changes (both)
{'DataQuality': {'S3TablesExport': 'ENABLED | DISABLED'},
 'Lineage': {'S3TablesExport': 'ENABLED | DISABLED'}}

Creates or updates the export configuration for the Glue Data Catalog. Use this operation to enable or disable the export of catalog metadata to S3 Tables.

See also: AWS API Documentation

Request Syntax

client.put_data_catalog_export_configuration(
    ClientToken='string',
    S3TablesConfiguration={
        'EncryptionConfiguration': {
            'SseAlgorithm': 'string',
            'KmsKeyArn': 'string'
        }
    },
    Assets={
        'S3TablesExport': 'ENABLED'|'DISABLED'
    },
    Lineage={
        'S3TablesExport': 'ENABLED'|'DISABLED'
    },
    DataQuality={
        'S3TablesExport': 'ENABLED'|'DISABLED'
    }
)
type ClientToken:

string

param ClientToken:

A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

This field is autopopulated if not provided.

type S3TablesConfiguration:

dict

param S3TablesConfiguration:

The S3 Tables configuration for the export. The encryption configuration applies only when Glue creates the table bucket that holds the exported catalog metadata. If not specified, the default encryption settings are used.

  • EncryptionConfiguration (dict) --

    The encryption configuration for the table bucket that holds the exported catalog metadata. It applies only when Glue creates the table bucket.

    • SseAlgorithm (string) --

      The server-side encryption algorithm used for the exported data. Valid values are AES256 and aws:kms.

    • KmsKeyArn (string) --

      The ARN of the KMS key used to encrypt the exported data.

type Assets:

dict

param Assets:

The export setting for asset metadata. Set S3TablesExport to ENABLED to start exporting asset metadata to S3 Tables, or to DISABLED to stop exporting.

  • S3TablesExport (string) --

    Whether asset metadata is exported to S3 Tables. Valid values are ENABLED and DISABLED.

type Lineage:

dict

param Lineage:

The export setting for lineage events. Set S3TablesExport to ENABLED to start exporting lineage events to the lineage.events table in the same aws-catalog table bucket and with the same encryption configuration as the catalog metadata export, or to DISABLED to stop exporting.

  • S3TablesExport (string) --

    Whether lineage events are exported to S3 Tables. Valid values are ENABLED and DISABLED.

type DataQuality:

dict

param DataQuality:

The export setting for data quality results. Set S3TablesExport to ENABLED to start exporting Glue Data Quality results to tables in the same aws-catalog table bucket and with the same encryption configuration as the catalog metadata export, or to DISABLED to stop exporting. Results produced before the export is enabled are not exported.

  • S3TablesExport (string) --

    Whether data quality results are exported to S3 Tables. Valid values are ENABLED and DISABLED.

rtype:

dict

returns:

Response Syntax

{
    'S3TablesConfiguration': {
        'EncryptionConfiguration': {
            'SseAlgorithm': 'string',
            'KmsKeyArn': 'string'
        }
    },
    'Assets': {
        'S3TablesExport': 'ENABLED'|'DISABLED'
    },
    'Lineage': {
        'S3TablesExport': 'ENABLED'|'DISABLED'
    },
    'DataQuality': {
        'S3TablesExport': 'ENABLED'|'DISABLED'
    }
}

Response Structure

  • (dict) --

    The export configuration returned by the PutDataCatalogExportConfiguration operation.

    • S3TablesConfiguration (dict) --

      The S3 Tables configuration for the export.

      • EncryptionConfiguration (dict) --

        The encryption configuration for the table bucket that holds the exported catalog metadata. It applies only when Glue creates the table bucket.

        • SseAlgorithm (string) --

          The server-side encryption algorithm used for the exported data. Valid values are AES256 and aws:kms.

        • KmsKeyArn (string) --

          The ARN of the KMS key used to encrypt the exported data.

    • Assets (dict) --

      The export setting for asset metadata.

      • S3TablesExport (string) --

        Whether asset metadata is exported to S3 Tables. Valid values are ENABLED and DISABLED.

    • Lineage (dict) --

      The export setting for lineage events.

      • S3TablesExport (string) --

        Whether lineage events are exported to S3 Tables. Valid values are ENABLED and DISABLED.

    • DataQuality (dict) --

      The export setting for data quality results.

      • S3TablesExport (string) --

        Whether data quality results are exported to S3 Tables. Valid values are ENABLED and DISABLED.

StartJobRun (updated) Link ¶
Changes (request)
{'WorkerType': {'G.12X.GRAVITON',
                'G.16X.GRAVITON',
                'G.1X.GRAVITON',
                'G.2X.GRAVITON',
                'G.4X.GRAVITON',
                'G.8X.GRAVITON',
                'R.1X.GRAVITON',
                'R.2X.GRAVITON',
                'R.4X.GRAVITON',
                'R.8X.GRAVITON'}}

Starts a job run using a job definition.

See also: AWS API Documentation

Request Syntax

client.start_job_run(
    JobName='string',
    JobRunQueuingEnabled=True|False,
    JobRunId='string',
    Arguments={
        'string': 'string'
    },
    AllocatedCapacity=123,
    Timeout=123,
    MaxCapacity=123.0,
    SecurityConfiguration='string',
    NotificationProperty={
        'NotifyDelayAfter': 123
    },
    WorkerType='Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
    NumberOfWorkers=123,
    ExecutionClass='FLEX'|'STANDARD',
    ExecutionRoleSessionPolicy='string'
)
type JobName:

string

param JobName:

[REQUIRED]

The name of the job definition to use.

type JobRunQueuingEnabled:

boolean

param JobRunQueuingEnabled:

Specifies whether job run queuing is enabled for the job run.

A value of true means job run queuing is enabled for the job run. If false or not populated, the job run will not be considered for queueing.

type JobRunId:

string

param JobRunId:

The ID of a previous JobRun to retry.

type Arguments:

dict

param Arguments:

The job arguments associated with this run. For this job run, they replace the default arguments set in the job definition itself.

You can specify arguments here that your own job-execution script consumes, as well as arguments that Glue itself consumes.

Job arguments may be logged. Do not pass plaintext secrets as arguments. Retrieve secrets from a Glue Connection, Secrets Manager or other secret management mechanism if you intend to keep them within the Job.

For information about how to specify and consume your own Job arguments, see the Calling Glue APIs in Python topic in the developer guide.

For information about the arguments you can provide to this field when configuring Spark jobs, see the Special Parameters Used by Glue topic in the developer guide.

For information about the arguments you can provide to this field when configuring Ray jobs, see Using job parameters in Ray jobs in the developer guide.

  • (string) --

    • (string) --

type AllocatedCapacity:

integer

param AllocatedCapacity:

This field is deprecated. Use MaxCapacity instead.

The number of Glue data processing units (DPUs) to allocate to this JobRun. You can allocate a minimum of 2 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

type Timeout:

integer

param Timeout:

The JobRun timeout in minutes. This is the maximum time that a job run can consume resources before it is terminated and enters TIMEOUT status. This value overrides the timeout value set in the parent job.

Jobs must have timeout values less than 7 days or 10080 minutes. Otherwise, the jobs will throw an exception.

When the value is left blank, the timeout is defaulted to 2,880 minutes for Glue version 4.0 and earlier, or 480 minutes for Glue version 5.0 and later.

Any existing Glue jobs that had a timeout value greater than 7 days will be defaulted to 7 days. For instance if you have specified a timeout of 20 days for a batch job, it will be stopped on the 7th day.

For streaming jobs, if you have set up a maintenance window, it will be restarted during the maintenance window after 7 days.

type MaxCapacity:

float

param MaxCapacity:

For Glue version 1.0 or earlier jobs, using the standard worker type, the number of Glue data processing units (DPUs) that can be allocated when this job runs. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

For Glue version 2.0+ jobs, you cannot specify a Maximum capacity. Instead, you should specify a Worker type and the Number of workers.

Do not set MaxCapacity if using WorkerType and NumberOfWorkers.

The value that can be allocated for MaxCapacity depends on whether you are running a Python shell job, an Apache Spark ETL job, or an Apache Spark streaming ETL job:

  • When you specify a Python shell job ( ``JobCommand.Name``="pythonshell"), you can allocate either 0.0625 or 1 DPU. The default is 0.0625 DPU.

  • When you specify an Apache Spark ETL job ( ``JobCommand.Name``="glueetl") or Apache Spark streaming ETL job ( ``JobCommand.Name``="gluestreaming"), you can allocate from 2 to 100 DPUs. The default is 10 DPUs. This job type cannot have a fractional DPU allocation.

type SecurityConfiguration:

string

param SecurityConfiguration:

The name of the SecurityConfiguration structure to be used with this job run.

type NotificationProperty:

dict

param NotificationProperty:

Specifies configuration properties of a job run notification.

  • NotifyDelayAfter (integer) --

    After a job run starts, the number of minutes to wait before sending a job run delay notification.

type WorkerType:

string

param WorkerType:

The type of predefined worker that is allocated when a job runs. Accepts a value of G.025X, G.1X, G.2X, G.4X, G.8X, G.12X, G.16X, R.1X, R.2X, R.4X, or R.8X for Spark jobs. Accepts the value Z.2X for Ray jobs.

  • For the G.025X worker type, each worker maps to 0.25 DPU (2 vCPUs, 4 GB of memory) with 84GB disk, and provides 1 executor per worker. We recommend this worker type for low volume streaming jobs. This worker type is only available for Glue version 3.0 or later streaming jobs.

  • For the G.1X worker type, each worker maps to 1 DPU (4 vCPUs, 16 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

  • For the G.2X worker type, each worker maps to 2 DPU (8 vCPUs, 32 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for workloads such as data transforms, joins, and queries, to offers a scalable and cost effective way to run most jobs.

  • For the G.4X worker type, each worker maps to 4 DPU (16 vCPUs, 64 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the G.8X worker type, each worker maps to 8 DPU (32 vCPUs, 128 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for jobs whose workloads contain your most demanding transforms, aggregations, joins, and queries. This worker type is available only for Glue version 3.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the G.12X worker type, each worker maps to 12 DPU (48 vCPUs, 192 GB of memory) with 768GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the G.16X worker type, each worker maps to 16 DPU (64 vCPUs, 256 GB of memory) with 1024GB disk, and provides 1 executor per worker. We recommend this worker type for jobs with very large workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the R.1X worker type, each worker maps to 1 M-DPU (4 vCPUs, 32 GB of memory) with 94GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the R.2X worker type, each worker maps to 2 M-DPU (8 vCPUs, 64 GB of memory) with 138GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the R.4X worker type, each worker maps to 4 M-DPU (16 vCPUs, 128 GB of memory) with 256GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the R.8X worker type, each worker maps to 8 M-DPU (32 vCPUs, 256 GB of memory) with 512GB disk, and provides 1 executor per worker. We recommend this worker type for memory-intensive workloads. This worker type is available only for Glue version 4.0 or later Spark ETL jobs in select Amazon Web Services Regions. For the supported Regions, see Configuring job properties for Spark jobs in the developer guide.

  • For the Z.2X worker type, each worker maps to 2 M-DPU (8vCPUs, 64 GB of memory) with 128 GB disk, and provides up to 8 Ray workers based on the autoscaler.

type NumberOfWorkers:

integer

param NumberOfWorkers:

The number of workers of a defined workerType that are allocated when a job runs.

type ExecutionClass:

string

param ExecutionClass:

Indicates whether the job is run with a standard or flexible execution class. The standard execution-class is ideal for time-sensitive workloads that require fast job startup and dedicated resources.

The flexible execution class is appropriate for time-insensitive jobs whose start and completion times may vary.

Only jobs with Glue version 3.0 and above and command type glueetl will be allowed to set ExecutionClass to FLEX. The flexible execution class is available for Spark jobs.

type ExecutionRoleSessionPolicy:

string

param ExecutionRoleSessionPolicy:

This inline session policy to the StartJobRun API allows you to dynamically restrict the permissions of the specified execution role for the scope of the job, without requiring the creation of additional IAM roles.

rtype:

dict

returns:

Response Syntax

{
    'JobRunId': 'string'
}

Response Structure

  • (dict) --

    • JobRunId (string) --

      The ID assigned to this job run.

TestConnection (updated) Link ¶
Changes (request)
{'TestConnectionInput': {'AuthenticationConfiguration': {'CredentialBrokerProperties': {'CredentialProviderArn': 'string',
                                                                                        'OAuth2GrantType': 'AUTHORIZATION_CODE '
                                                                                                           '| '
                                                                                                           'CLIENT_CREDENTIALS '
                                                                                                           '| '
                                                                                                           'JWT_BEARER '
                                                                                                           '| '
                                                                                                           'REFRESH_TOKEN '
                                                                                                           '| '
                                                                                                           'TOKEN_EXCHANGE',
                                                                                        'Scopes': ['string']},
                                                         'OAuth2Properties': {'OAuth2GrantType': {'TOKEN_EXCHANGE'}}}}}

Tests a connection to a service to validate the service credentials that you provide.

You can either provide an existing connection name or a TestConnectionInput for testing a non-existing connection input. Providing both at the same time will cause an error.

If the action is successful, the service sends back an HTTP 200 response.

See also: AWS API Documentation

Request Syntax

client.test_connection(
    ConnectionName='string',
    CatalogId='string',
    TestConnectionInput={
        'ConnectionType': 'JDBC'|'SFTP'|'MONGODB'|'KAFKA'|'NETWORK'|'MARKETPLACE'|'CUSTOM'|'SALESFORCE'|'VIEW_VALIDATION_REDSHIFT'|'VIEW_VALIDATION_ATHENA'|'GOOGLEADS'|'GOOGLESHEETS'|'GOOGLEANALYTICS4'|'SERVICENOW'|'MARKETO'|'SAPODATA'|'ZENDESK'|'JIRACLOUD'|'NETSUITEERP'|'HUBSPOT'|'FACEBOOKADS'|'INSTAGRAMADS'|'ZOHOCRM'|'SALESFORCEPARDOT'|'SALESFORCEMARKETINGCLOUD'|'ADOBEANALYTICS'|'SLACK'|'LINKEDIN'|'MIXPANEL'|'ASANA'|'STRIPE'|'SMARTSHEET'|'DATADOG'|'WOOCOMMERCE'|'INTERCOM'|'SNAPCHATADS'|'PAYPAL'|'QUICKBOOKS'|'FACEBOOKPAGEINSIGHTS'|'FRESHDESK'|'TWILIO'|'DOCUSIGNMONITOR'|'FRESHSALES'|'ZOOM'|'GOOGLESEARCHCONSOLE'|'SALESFORCECOMMERCECLOUD'|'SAPCONCUR'|'DYNATRACE'|'MICROSOFTDYNAMIC365FINANCEANDOPS'|'MICROSOFTTEAMS'|'BLACKBAUDRAISEREDGENXT'|'MAILCHIMP'|'GITLAB'|'PENDO'|'PRODUCTBOARD'|'CIRCLECI'|'PIPEDIVE'|'SENDGRID'|'AZURECOSMOS'|'AZURESQL'|'BIGQUERY'|'BLACKBAUD'|'CLOUDERAHIVE'|'CLOUDERAIMPALA'|'CLOUDWATCH'|'CLOUDWATCHMETRICS'|'CMDB'|'DATALAKEGEN2'|'DB2'|'DB2AS400'|'DOCUMENTDB'|'DOMO'|'DYNAMODB'|'GOOGLECLOUDSTORAGE'|'HBASE'|'KUSTOMER'|'MICROSOFTDYNAMICS365CRM'|'MONDAY'|'MYSQL'|'OKTA'|'OPENSEARCH'|'ORACLE'|'PIPEDRIVE'|'POSTGRESQL'|'SAPHANA'|'SQLSERVER'|'SYNAPSE'|'TERADATA'|'TERADATANOS'|'TIMESTREAM'|'TPCDS'|'VERTICA',
        'ConnectionProperties': {
            'string': 'string'
        },
        'AuthenticationConfiguration': {
            'AuthenticationType': 'BASIC'|'OAUTH2'|'CUSTOM'|'IAM',
            'OAuth2Properties': {
                'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                'OAuth2ClientApplication': {
                    'UserManagedClientApplicationClientId': 'string',
                    'AWSManagedClientApplicationReference': 'string'
                },
                'TokenUrl': 'string',
                'TokenUrlParametersMap': {
                    'string': 'string'
                },
                'AuthorizationCodeProperties': {
                    'AuthorizationCode': 'string',
                    'RedirectUri': 'string'
                },
                'OAuth2Credentials': {
                    'UserManagedClientApplicationClientSecret': 'string',
                    'AccessToken': 'string',
                    'RefreshToken': 'string',
                    'JwtToken': 'string'
                }
            },
            'SecretArn': 'string',
            'KmsKeyArn': 'string',
            'CredentialBrokerProperties': {
                'CredentialProviderArn': 'string',
                'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                'Scopes': [
                    'string',
                ]
            },
            'BasicAuthenticationCredentials': {
                'Username': 'string',
                'Password': 'string'
            },
            'CustomAuthenticationCredentials': {
                'string': 'string'
            }
        }
    }
)
type ConnectionName:

string

param ConnectionName:

Optional. The name of the connection to test. If only name is provided, the operation will get the connection and use that for testing.

type CatalogId:

string

param CatalogId:

The catalog ID where the connection resides.

type TestConnectionInput:

dict

param TestConnectionInput:

A structure that is used to specify testing a connection to a service.

  • ConnectionType (string) -- [REQUIRED]

    The type of connection to test. This operation is only available for the JDBC or SALESFORCE connection types.

  • ConnectionProperties (dict) -- [REQUIRED]

    The key-value pairs that define parameters for the connection.

    JDBC connections use the following connection properties:

    • Required: All of ( HOST, PORT, JDBC_ENGINE) or JDBC_CONNECTION_URL.

    • Required: All of ( USERNAME, PASSWORD) or SECRET_ID.

    • Optional: JDBC_ENFORCE_SSL, CUSTOM_JDBC_CERT, CUSTOM_JDBC_CERT_STRING, SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to configure SSL with JDBC.

    SALESFORCE connections require the AuthenticationConfiguration member to be configured.

    • (string) --

      • (string) --

  • AuthenticationConfiguration (dict) --

    A structure containing the authentication configuration in the TestConnection request. Required for a connection to Salesforce using OAuth authentication.

    • AuthenticationType (string) --

      A structure containing the authentication configuration in the CreateConnection request.

    • OAuth2Properties (dict) --

      The properties for OAuth2 authentication in the CreateConnection request.

      • OAuth2GrantType (string) --

        The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE, JWT_BEARER, REFRESH_TOKEN, or CLIENT_CREDENTIALS.

      • OAuth2ClientApplication (dict) --

        The client application type in the CreateConnection request. For example, AWS_MANAGED or USER_MANAGED.

        • UserManagedClientApplicationClientId (string) --

          The client application clientID if the ClientAppType is USER_MANAGED.

        • AWSManagedClientApplicationReference (string) --

          The reference to the SaaS-side client app that is Amazon Web Services managed.

      • TokenUrl (string) --

        The URL of the provider's authentication server, to exchange an authorization code for an access token.

      • TokenUrlParametersMap (dict) --

        A map of parameters that are added to the token GET request.

        • (string) --

          • (string) --

      • AuthorizationCodeProperties (dict) --

        The set of properties required for the the OAuth2 AUTHORIZATION_CODE grant type.

        • AuthorizationCode (string) --

          An authorization code to be used in the third leg of the AUTHORIZATION_CODE grant workflow. This is a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable to have this value as a request parameter.

        • RedirectUri (string) --

          The redirect URI where the user gets redirected to by authorization server when issuing an authorization code. The URI is subsequently used when the authorization code is exchanged for an access token.

      • OAuth2Credentials (dict) --

        The credentials used when the authentication type is OAuth2 authentication.

        • UserManagedClientApplicationClientSecret (string) --

          The client application client secret if the client application is user managed.

        • AccessToken (string) --

          The access token used when the authentication type is OAuth2.

        • RefreshToken (string) --

          The refresh token used when the authentication type is OAuth2.

        • JwtToken (string) --

          The JSON Web Token (JWT) used when the authentication type is OAuth2.

    • SecretArn (string) --

      The secret manager ARN to store credentials in the CreateConnection request.

    • KmsKeyArn (string) --

      The ARN of the KMS key used to encrypt the connection. Only taken an as input in the request and stored in the Secret Manager.

    • CredentialBrokerProperties (dict) --

      Credential broker settings used to obtain OAuth tokens for this connection.

      • CredentialProviderArn (string) --

        The Amazon Resource Name (ARN) of the credential broker OAuth credential provider used to obtain credentials for this connection.

      • OAuth2GrantType (string) --

        The OAuth2 grant type the credential broker uses to obtain tokens. Must be one of CLIENT_CREDENTIALS, TOKEN_EXCHANGE, JWT_BEARER, or AUTHORIZATION_CODE.

      • Scopes (list) --

        The list of OAuth scopes requested from the credential broker. If omitted, the credential provider's default scopes are used.

        • (string) --

    • BasicAuthenticationCredentials (dict) --

      The credentials used when the authentication type is basic authentication.

      • Username (string) --

        The username to connect to the data source.

      • Password (string) --

        The password to connect to the data source.

    • CustomAuthenticationCredentials (dict) --

      The credentials used when the authentication type is custom authentication.

      • (string) --

        • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateCatalog (updated) Link ¶
Changes (request)
{'CatalogInput': {'FederatedCatalog': {'SyncConfiguration': {'AssetsSyncConfiguration': {'ManagedCrawlerDetails': {'CrawlerArn': 'string',
                                                                                                                   'Error': {'ErrorCode': 'string',
                                                                                                                             'ErrorMessage': 'string'},
                                                                                                                   'Status': 'PROVISIONING '
                                                                                                                             '| '
                                                                                                                             'PROVISIONED '
                                                                                                                             '| '
                                                                                                                             'FAILED'},
                                                                                         'RefreshIntervalMinutes': 'integer',
                                                                                         'Status': 'ENABLED '
                                                                                                   '| '
                                                                                                   'DISABLED'},
                                                             'LineageSyncConfiguration': {'ManagedCrawlerDetails': {'CrawlerArn': 'string',
                                                                                                                    'Error': {'ErrorCode': 'string',
                                                                                                                              'ErrorMessage': 'string'},
                                                                                                                    'Status': 'PROVISIONING '
                                                                                                                              '| '
                                                                                                                              'PROVISIONED '
                                                                                                                              '| '
                                                                                                                              'FAILED'},
                                                                                          'RefreshIntervalMinutes': 'integer',
                                                                                          'Status': 'ENABLED '
                                                                                                    '| '
                                                                                                    'DISABLED'},
                                                             'RoleArn': 'string'}}}}

Updates an existing catalog's properties in the Glue Data Catalog.

See also: AWS API Documentation

Request Syntax

client.update_catalog(
    CatalogId='string',
    CatalogInput={
        'Description': 'string',
        'FederatedCatalog': {
            'Identifier': 'string',
            'ConnectionName': 'string',
            'ConnectionType': 'string',
            'SyncConfiguration': {
                'RoleArn': 'string',
                'AssetsSyncConfiguration': {
                    'Status': 'ENABLED'|'DISABLED',
                    'RefreshIntervalMinutes': 123,
                    'ManagedCrawlerDetails': {
                        'CrawlerArn': 'string',
                        'Status': 'PROVISIONING'|'PROVISIONED'|'FAILED',
                        'Error': {
                            'ErrorCode': 'string',
                            'ErrorMessage': 'string'
                        }
                    }
                },
                'LineageSyncConfiguration': {
                    'Status': 'ENABLED'|'DISABLED',
                    'RefreshIntervalMinutes': 123,
                    'ManagedCrawlerDetails': {
                        'CrawlerArn': 'string',
                        'Status': 'PROVISIONING'|'PROVISIONED'|'FAILED',
                        'Error': {
                            'ErrorCode': 'string',
                            'ErrorMessage': 'string'
                        }
                    }
                }
            }
        },
        'Parameters': {
            'string': 'string'
        },
        'TargetRedshiftCatalog': {
            'CatalogArn': 'string'
        },
        'CatalogProperties': {
            'DataLakeAccessProperties': {
                'DataLakeAccess': True|False,
                'DataTransferRole': 'string',
                'KmsKey': 'string',
                'CatalogType': 'string'
            },
            'IcebergOptimizationProperties': {
                'RoleArn': 'string',
                'Compaction': {
                    'string': 'string'
                },
                'Retention': {
                    'string': 'string'
                },
                'OrphanFileDeletion': {
                    'string': 'string'
                }
            },
            'CustomProperties': {
                'string': 'string'
            }
        },
        'CreateTableDefaultPermissions': [
            {
                'Principal': {
                    'DataLakePrincipalIdentifier': 'string'
                },
                'Permissions': [
                    'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS',
                ]
            },
        ],
        'CreateDatabaseDefaultPermissions': [
            {
                'Principal': {
                    'DataLakePrincipalIdentifier': 'string'
                },
                'Permissions': [
                    'ALL'|'SELECT'|'ALTER'|'DROP'|'DELETE'|'INSERT'|'CREATE_DATABASE'|'CREATE_TABLE'|'DATA_LOCATION_ACCESS',
                ]
            },
        ],
        'AllowFullTableExternalDataAccess': 'True'|'False',
        'OverwriteChildResourcePermissionsWithDefault': 'Accept'|'Deny'
    }
)
type CatalogId:

string

param CatalogId:

[REQUIRED]

The ID of the catalog.

type CatalogInput:

dict

param CatalogInput:

[REQUIRED]

A CatalogInput object specifying the new properties of an existing catalog.

  • Description (string) --

    Description string, not more than 2048 bytes long, matching the URI address multi-line string pattern. A description of the catalog.

  • FederatedCatalog (dict) --

    A FederatedCatalog object. A FederatedCatalog structure that references an entity outside the Glue Data Catalog, for example a Redshift database.

    • Identifier (string) --

      A unique identifier for the federated catalog.

    • ConnectionName (string) --

      The name of the connection to an external data source, for example a Redshift-federated catalog.

    • ConnectionType (string) --

      The type of connection used to access the federated catalog, specifying the protocol or method for connection to the external data source.

    • SyncConfiguration (dict) --

      Configuration for synchronizing assets and lineage from the external data source into the federated catalog.

      • RoleArn (string) -- [REQUIRED]

        The ARN of the IAM role that Glue assumes to synchronize the federated catalog.

      • AssetsSyncConfiguration (dict) --

        Configuration for synchronizing assets, such as databases and tables.

        • Status (string) -- [REQUIRED]

          Whether assets synchronization is ENABLED or DISABLED.

        • RefreshIntervalMinutes (integer) --

          How often assets are synchronized, in minutes. The minimum is 1440 (one day) and the maximum is 10080 (seven days).

        • ManagedCrawlerDetails (dict) --

          Details of the managed crawler that performs assets synchronization.

          • CrawlerArn (string) --

            The ARN of the managed crawler.

          • Status (string) -- [REQUIRED]

            The provisioning status of the managed crawler: PROVISIONING, PROVISIONED, or FAILED.

          • Error (dict) --

            The error that occurred when provisioning the managed crawler failed.

            • ErrorCode (string) --

              The code associated with this error.

            • ErrorMessage (string) --

              A message describing the error.

      • LineageSyncConfiguration (dict) --

        Configuration for synchronizing lineage.

        • Status (string) -- [REQUIRED]

          Whether lineage synchronization is ENABLED or DISABLED.

        • RefreshIntervalMinutes (integer) --

          How often lineage is synchronized, in minutes. The minimum is 1440 (one day) and the maximum is 10080 (seven days).

        • ManagedCrawlerDetails (dict) --

          Details of the managed crawler that performs lineage synchronization.

          • CrawlerArn (string) --

            The ARN of the managed crawler.

          • Status (string) -- [REQUIRED]

            The provisioning status of the managed crawler: PROVISIONING, PROVISIONED, or FAILED.

          • Error (dict) --

            The error that occurred when provisioning the managed crawler failed.

            • ErrorCode (string) --

              The code associated with this error.

            • ErrorMessage (string) --

              A message describing the error.

  • Parameters (dict) --

    A map array of key-value pairs that define the parameters and properties of the catalog.

    • (string) --

      • (string) --

  • TargetRedshiftCatalog (dict) --

    A TargetRedshiftCatalog object that describes a target catalog for resource linking.

    • CatalogArn (string) -- [REQUIRED]

      The Amazon Resource Name (ARN) of the catalog resource.

  • CatalogProperties (dict) --

    A CatalogProperties object that specifies data lake access properties and other custom properties.

    • DataLakeAccessProperties (dict) --

      A DataLakeAccessProperties object that specifies properties to configure data lake access for your catalog resource in the Glue Data Catalog.

      • DataLakeAccess (boolean) --

        Turns on or off data lake access for Apache Spark applications that access Amazon Redshift databases in the Data Catalog from any non-Redshift engine, such as Amazon Athena, Amazon EMR, or Glue ETL.

      • DataTransferRole (string) --

        A role that will be assumed by Glue for transferring data into/out of the staging bucket during a query.

      • KmsKey (string) --

        An encryption key that will be used for the staging bucket that will be created along with the catalog.

      • CatalogType (string) --

        Specifies a federated catalog type for the native catalog resource. The currently supported type is aws:redshift.

    • IcebergOptimizationProperties (dict) --

      A structure that specifies Iceberg table optimization properties for the catalog. This includes configuration for compaction, retention, and orphan file deletion operations that can be applied to Iceberg tables in this catalog.

      • RoleArn (string) --

        The Amazon Resource Name (ARN) of the IAM role that will be assumed to perform Iceberg table optimization operations.

      • Compaction (dict) --

        A map of key-value pairs that specify configuration parameters for Iceberg table compaction operations, which optimize the layout of data files to improve query performance.

        • (string) --

          • (string) --

      • Retention (dict) --

        A map of key-value pairs that specify configuration parameters for Iceberg table retention operations, which manage the lifecycle of table snapshots to control storage costs.

        • (string) --

          • (string) --

      • OrphanFileDeletion (dict) --

        A map of key-value pairs that specify configuration parameters for Iceberg orphan file deletion operations, which identify and remove files that are no longer referenced by the table metadata.

        • (string) --

          • (string) --

    • CustomProperties (dict) --

      Additional key-value properties for the catalog, such as column statistics optimizations.

      • (string) --

        • (string) --

  • CreateTableDefaultPermissions (list) --

    An array of PrincipalPermissions objects. Creates a set of default permissions on the table(s) for principals. Used by Amazon Web Services Lake Formation. Typically should be explicitly set as an empty list.

    • (dict) --

      Permissions granted to a principal.

      • Principal (dict) --

        The principal who is granted permissions.

        • DataLakePrincipalIdentifier (string) --

          An identifier for the Lake Formation principal.

      • Permissions (list) --

        The permissions that are granted to the principal.

        • (string) --

  • CreateDatabaseDefaultPermissions (list) --

    An array of PrincipalPermissions objects. Creates a set of default permissions on the database(s) for principals. Used by Amazon Web Services Lake Formation. Typically should be explicitly set as an empty list.

    • (dict) --

      Permissions granted to a principal.

      • Principal (dict) --

        The principal who is granted permissions.

        • DataLakePrincipalIdentifier (string) --

          An identifier for the Lake Formation principal.

      • Permissions (list) --

        The permissions that are granted to the principal.

        • (string) --

  • AllowFullTableExternalDataAccess (string) --

    Allows third-party engines to access data in Amazon S3 locations that are registered with Lake Formation.

  • OverwriteChildResourcePermissionsWithDefault (string) --

    Overwrites existing Amazon Web Services Lake Formation permissions with CatalogInput$CreateTableDefaultPermissions and CatalogInput$CreateDatabaseDefaultPermissions for all child resources.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateConnection (updated) Link ¶
Changes (request)
{'ConnectionInput': {'AuthenticationConfiguration': {'CredentialBrokerProperties': {'CredentialProviderArn': 'string',
                                                                                    'OAuth2GrantType': 'AUTHORIZATION_CODE '
                                                                                                       '| '
                                                                                                       'CLIENT_CREDENTIALS '
                                                                                                       '| '
                                                                                                       'JWT_BEARER '
                                                                                                       '| '
                                                                                                       'REFRESH_TOKEN '
                                                                                                       '| '
                                                                                                       'TOKEN_EXCHANGE',
                                                                                    'Scopes': ['string']},
                                                     'OAuth2Properties': {'OAuth2GrantType': {'TOKEN_EXCHANGE'}}}}}

Updates a connection definition in the Data Catalog.

See also: AWS API Documentation

Request Syntax

client.update_connection(
    CatalogId='string',
    Name='string',
    ConnectionInput={
        'Name': 'string',
        'Description': 'string',
        'ConnectionType': 'JDBC'|'SFTP'|'MONGODB'|'KAFKA'|'NETWORK'|'MARKETPLACE'|'CUSTOM'|'SALESFORCE'|'VIEW_VALIDATION_REDSHIFT'|'VIEW_VALIDATION_ATHENA'|'GOOGLEADS'|'GOOGLESHEETS'|'GOOGLEANALYTICS4'|'SERVICENOW'|'MARKETO'|'SAPODATA'|'ZENDESK'|'JIRACLOUD'|'NETSUITEERP'|'HUBSPOT'|'FACEBOOKADS'|'INSTAGRAMADS'|'ZOHOCRM'|'SALESFORCEPARDOT'|'SALESFORCEMARKETINGCLOUD'|'ADOBEANALYTICS'|'SLACK'|'LINKEDIN'|'MIXPANEL'|'ASANA'|'STRIPE'|'SMARTSHEET'|'DATADOG'|'WOOCOMMERCE'|'INTERCOM'|'SNAPCHATADS'|'PAYPAL'|'QUICKBOOKS'|'FACEBOOKPAGEINSIGHTS'|'FRESHDESK'|'TWILIO'|'DOCUSIGNMONITOR'|'FRESHSALES'|'ZOOM'|'GOOGLESEARCHCONSOLE'|'SALESFORCECOMMERCECLOUD'|'SAPCONCUR'|'DYNATRACE'|'MICROSOFTDYNAMIC365FINANCEANDOPS'|'MICROSOFTTEAMS'|'BLACKBAUDRAISEREDGENXT'|'MAILCHIMP'|'GITLAB'|'PENDO'|'PRODUCTBOARD'|'CIRCLECI'|'PIPEDIVE'|'SENDGRID'|'AZURECOSMOS'|'AZURESQL'|'BIGQUERY'|'BLACKBAUD'|'CLOUDERAHIVE'|'CLOUDERAIMPALA'|'CLOUDWATCH'|'CLOUDWATCHMETRICS'|'CMDB'|'DATALAKEGEN2'|'DB2'|'DB2AS400'|'DOCUMENTDB'|'DOMO'|'DYNAMODB'|'GOOGLECLOUDSTORAGE'|'HBASE'|'KUSTOMER'|'MICROSOFTDYNAMICS365CRM'|'MONDAY'|'MYSQL'|'OKTA'|'OPENSEARCH'|'ORACLE'|'PIPEDRIVE'|'POSTGRESQL'|'SAPHANA'|'SQLSERVER'|'SYNAPSE'|'TERADATA'|'TERADATANOS'|'TIMESTREAM'|'TPCDS'|'VERTICA',
        'MatchCriteria': [
            'string',
        ],
        'ConnectionProperties': {
            'string': 'string'
        },
        'SparkProperties': {
            'string': 'string'
        },
        'AthenaProperties': {
            'string': 'string'
        },
        'PythonProperties': {
            'string': 'string'
        },
        'PhysicalConnectionRequirements': {
            'SubnetId': 'string',
            'SecurityGroupIdList': [
                'string',
            ],
            'AvailabilityZone': 'string'
        },
        'AuthenticationConfiguration': {
            'AuthenticationType': 'BASIC'|'OAUTH2'|'CUSTOM'|'IAM',
            'OAuth2Properties': {
                'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                'OAuth2ClientApplication': {
                    'UserManagedClientApplicationClientId': 'string',
                    'AWSManagedClientApplicationReference': 'string'
                },
                'TokenUrl': 'string',
                'TokenUrlParametersMap': {
                    'string': 'string'
                },
                'AuthorizationCodeProperties': {
                    'AuthorizationCode': 'string',
                    'RedirectUri': 'string'
                },
                'OAuth2Credentials': {
                    'UserManagedClientApplicationClientSecret': 'string',
                    'AccessToken': 'string',
                    'RefreshToken': 'string',
                    'JwtToken': 'string'
                }
            },
            'SecretArn': 'string',
            'KmsKeyArn': 'string',
            'CredentialBrokerProperties': {
                'CredentialProviderArn': 'string',
                'OAuth2GrantType': 'AUTHORIZATION_CODE'|'CLIENT_CREDENTIALS'|'JWT_BEARER'|'REFRESH_TOKEN'|'TOKEN_EXCHANGE',
                'Scopes': [
                    'string',
                ]
            },
            'BasicAuthenticationCredentials': {
                'Username': 'string',
                'Password': 'string'
            },
            'CustomAuthenticationCredentials': {
                'string': 'string'
            }
        },
        'ValidateCredentials': True|False,
        'ValidateForComputeEnvironments': [
            'SPARK'|'ATHENA'|'PYTHON',
        ]
    }
)
type CatalogId:

string

param CatalogId:

The ID of the Data Catalog in which the connection resides. If none is provided, the Amazon Web Services account ID is used by default.

type Name:

string

param Name:

[REQUIRED]

The name of the connection definition to update.

type ConnectionInput:

dict

param ConnectionInput:

[REQUIRED]

A ConnectionInput object that redefines the connection in question.

  • Name (string) -- [REQUIRED]

    The name of the connection.

  • Description (string) --

    The description of the connection.

  • ConnectionType (string) -- [REQUIRED]

    The type of the connection. Currently, these types are supported:

    • JDBC - Designates a connection to a database through Java Database Connectivity (JDBC). JDBC Connections use the following ConnectionParameters.

      • Required: All of ( HOST, PORT, JDBC_ENGINE) or JDBC_CONNECTION_URL.

      • Required: All of ( USERNAME, PASSWORD) or SECRET_ID.

      • Optional: JDBC_ENFORCE_SSL, CUSTOM_JDBC_CERT, CUSTOM_JDBC_CERT_STRING, SKIP_CUSTOM_JDBC_CERT_VALIDATION. These parameters are used to configure SSL with JDBC.

    • KAFKA - Designates a connection to an Apache Kafka streaming platform. KAFKA Connections use the following ConnectionParameters.

      • Required: KAFKA_BOOTSTRAP_SERVERS.

      • Optional: KAFKA_SSL_ENABLED, KAFKA_CUSTOM_CERT, KAFKA_SKIP_CUSTOM_CERT_VALIDATION. These parameters are used to configure SSL with KAFKA.

      • Optional: KAFKA_CLIENT_KEYSTORE, KAFKA_CLIENT_KEYSTORE_PASSWORD, KAFKA_CLIENT_KEY_PASSWORD, ENCRYPTED_KAFKA_CLIENT_KEYSTORE_PASSWORD, ENCRYPTED_KAFKA_CLIENT_KEY_PASSWORD. These parameters are used to configure TLS client configuration with SSL in KAFKA.

      • Optional: KAFKA_SASL_MECHANISM. Can be specified as SCRAM-SHA-512, GSSAPI, or AWS_MSK_IAM.

      • Optional: KAFKA_SASL_SCRAM_USERNAME, KAFKA_SASL_SCRAM_PASSWORD, ENCRYPTED_KAFKA_SASL_SCRAM_PASSWORD. These parameters are used to configure SASL/SCRAM-SHA-512 authentication with KAFKA.

      • Optional: KAFKA_SASL_GSSAPI_KEYTAB, KAFKA_SASL_GSSAPI_KRB5_CONF, KAFKA_SASL_GSSAPI_SERVICE, KAFKA_SASL_GSSAPI_PRINCIPAL. These parameters are used to configure SASL/GSSAPI authentication with KAFKA.

    • MONGODB - Designates a connection to a MongoDB document database. MONGODB Connections use the following ConnectionParameters.

      • Required: CONNECTION_URL.

      • Required: All of ( USERNAME, PASSWORD) or SECRET_ID.

    • VIEW_VALIDATION_REDSHIFT - Designates a connection used for view validation by Amazon Redshift.

    • VIEW_VALIDATION_ATHENA - Designates a connection used for view validation by Amazon Athena.

    • NETWORK - Designates a network connection to a data source within an Amazon Virtual Private Cloud environment (Amazon VPC). NETWORK Connections do not require ConnectionParameters. Instead, provide a PhysicalConnectionRequirements.

    • MARKETPLACE - Uses configuration settings contained in a connector purchased from Amazon Web Services Marketplace to read from and write to data stores that are not natively supported by Glue. MARKETPLACE Connections use the following ConnectionParameters.

      • Required: CONNECTOR_TYPE, CONNECTOR_URL, CONNECTOR_CLASS_NAME, CONNECTION_URL.

      • Required for JDBC CONNECTOR_TYPE connections: All of ( USERNAME, PASSWORD) or SECRET_ID.

    • CUSTOM - Uses configuration settings contained in a custom connector to read from and write to data stores that are not natively supported by Glue.

    For more information on the connection parameters needed for a particular connector, see the documentation for the connector in `Adding an Glue connection <https://docs.aws.amazon.com/glue/latest/dg/console-connections.html>`__in the Glue User Guide.

    SFTP is not supported.

    For more information about how optional ConnectionProperties are used to configure features in Glue, consult Glue connection properties.

    For more information about how optional ConnectionProperties are used to configure features in Glue Studio, consult Using connectors and connections.

  • MatchCriteria (list) --

    A list of criteria that can be used in selecting this connection.

    • (string) --

  • ConnectionProperties (dict) -- [REQUIRED]

    These key-value pairs define parameters for the connection.

    • (string) --

      • (string) --

  • SparkProperties (dict) --

    Connection properties specific to the Spark compute environment.

    • (string) --

      • (string) --

  • AthenaProperties (dict) --

    Connection properties specific to the Athena compute environment.

    • (string) --

      • (string) --

  • PythonProperties (dict) --

    Connection properties specific to the Python compute environment.

    • (string) --

      • (string) --

  • PhysicalConnectionRequirements (dict) --

    The physical connection requirements, such as virtual private cloud (VPC) and SecurityGroup, that are needed to successfully make this connection.

    • SubnetId (string) --

      The subnet ID used by the connection.

    • SecurityGroupIdList (list) --

      The security group ID list used by the connection.

      • (string) --

    • AvailabilityZone (string) --

      The connection's Availability Zone.

  • AuthenticationConfiguration (dict) --

    The authentication properties of the connection.

    • AuthenticationType (string) --

      A structure containing the authentication configuration in the CreateConnection request.

    • OAuth2Properties (dict) --

      The properties for OAuth2 authentication in the CreateConnection request.

      • OAuth2GrantType (string) --

        The OAuth2 grant type in the CreateConnection request. For example, AUTHORIZATION_CODE, JWT_BEARER, REFRESH_TOKEN, or CLIENT_CREDENTIALS.

      • OAuth2ClientApplication (dict) --

        The client application type in the CreateConnection request. For example, AWS_MANAGED or USER_MANAGED.

        • UserManagedClientApplicationClientId (string) --

          The client application clientID if the ClientAppType is USER_MANAGED.

        • AWSManagedClientApplicationReference (string) --

          The reference to the SaaS-side client app that is Amazon Web Services managed.

      • TokenUrl (string) --

        The URL of the provider's authentication server, to exchange an authorization code for an access token.

      • TokenUrlParametersMap (dict) --

        A map of parameters that are added to the token GET request.

        • (string) --

          • (string) --

      • AuthorizationCodeProperties (dict) --

        The set of properties required for the the OAuth2 AUTHORIZATION_CODE grant type.

        • AuthorizationCode (string) --

          An authorization code to be used in the third leg of the AUTHORIZATION_CODE grant workflow. This is a single-use code which becomes invalid once exchanged for an access token, thus it is acceptable to have this value as a request parameter.

        • RedirectUri (string) --

          The redirect URI where the user gets redirected to by authorization server when issuing an authorization code. The URI is subsequently used when the authorization code is exchanged for an access token.

      • OAuth2Credentials (dict) --

        The credentials used when the authentication type is OAuth2 authentication.

        • UserManagedClientApplicationClientSecret (string) --

          The client application client secret if the client application is user managed.

        • AccessToken (string) --

          The access token used when the authentication type is OAuth2.

        • RefreshToken (string) --

          The refresh token used when the authentication type is OAuth2.

        • JwtToken (string) --

          The JSON Web Token (JWT) used when the authentication type is OAuth2.

    • SecretArn (string) --

      The secret manager ARN to store credentials in the CreateConnection request.

    • KmsKeyArn (string) --

      The ARN of the KMS key used to encrypt the connection. Only taken an as input in the request and stored in the Secret Manager.

    • CredentialBrokerProperties (dict) --

      Credential broker settings used to obtain OAuth tokens for this connection.

      • CredentialProviderArn (string) --

        The Amazon Resource Name (ARN) of the credential broker OAuth credential provider used to obtain credentials for this connection.

      • OAuth2GrantType (string) --

        The OAuth2 grant type the credential broker uses to obtain tokens. Must be one of CLIENT_CREDENTIALS, TOKEN_EXCHANGE, JWT_BEARER, or AUTHORIZATION_CODE.

      • Scopes (list) --

        The list of OAuth scopes requested from the credential broker. If omitted, the credential provider's default scopes are used.

        • (string) --

    • BasicAuthenticationCredentials (dict) --

      The credentials used when the authentication type is basic authentication.

      • Username (string) --

        The username to connect to the data source.

      • Password (string) --

        The password to connect to the data source.

    • CustomAuthenticationCredentials (dict) --

      The credentials used when the authentication type is custom authentication.

      • (string) --

        • (string) --

  • ValidateCredentials (boolean) --

    A flag to validate the credentials during create connection. Default is true.

  • ValidateForComputeEnvironments (list) --

    The compute environments that the specified connection properties are validated against.

    • (string) --

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateCrawler (updated) Link ¶
Changes (request)
{'Targets': {'LineageTargets': [{'ConnectionName': 'string'}]}}

Updates a crawler. If a crawler is running, you must stop it using StopCrawler before updating it.

See also: AWS API Documentation

Request Syntax

client.update_crawler(
    Name='string',
    Role='string',
    DatabaseName='string',
    Description='string',
    Targets={
        'S3Targets': [
            {
                'Path': 'string',
                'Exclusions': [
                    'string',
                ],
                'ConnectionName': 'string',
                'SampleSize': 123,
                'EventQueueArn': 'string',
                'DlqEventQueueArn': 'string'
            },
        ],
        'JdbcTargets': [
            {
                'ConnectionName': 'string',
                'Path': 'string',
                'Exclusions': [
                    'string',
                ],
                'EnableAdditionalMetadata': [
                    'COMMENTS'|'RAWTYPES',
                ]
            },
        ],
        'MongoDBTargets': [
            {
                'ConnectionName': 'string',
                'Path': 'string',
                'ScanAll': True|False
            },
        ],
        'DynamoDBTargets': [
            {
                'Path': 'string',
                'scanAll': True|False,
                'scanRate': 123.0
            },
        ],
        'CatalogTargets': [
            {
                'DatabaseName': 'string',
                'Tables': [
                    'string',
                ],
                'ConnectionName': 'string',
                'EventQueueArn': 'string',
                'DlqEventQueueArn': 'string'
            },
        ],
        'DeltaTargets': [
            {
                'DeltaTables': [
                    'string',
                ],
                'ConnectionName': 'string',
                'WriteManifest': True|False,
                'CreateNativeDeltaTable': True|False
            },
        ],
        'IcebergTargets': [
            {
                'Paths': [
                    'string',
                ],
                'ConnectionName': 'string',
                'Exclusions': [
                    'string',
                ],
                'MaximumTraversalDepth': 123
            },
        ],
        'HudiTargets': [
            {
                'Paths': [
                    'string',
                ],
                'ConnectionName': 'string',
                'Exclusions': [
                    'string',
                ],
                'MaximumTraversalDepth': 123
            },
        ],
        'LineageTargets': [
            {
                'ConnectionName': 'string'
            },
        ]
    },
    Schedule='string',
    Classifiers=[
        'string',
    ],
    TablePrefix='string',
    SchemaChangePolicy={
        'UpdateBehavior': 'LOG'|'UPDATE_IN_DATABASE',
        'DeleteBehavior': 'LOG'|'DELETE_FROM_DATABASE'|'DEPRECATE_IN_DATABASE'
    },
    RecrawlPolicy={
        'RecrawlBehavior': 'CRAWL_EVERYTHING'|'CRAWL_NEW_FOLDERS_ONLY'|'CRAWL_EVENT_MODE'
    },
    LineageConfiguration={
        'CrawlerLineageSettings': 'ENABLE'|'DISABLE'
    },
    LakeFormationConfiguration={
        'UseLakeFormationCredentials': True|False,
        'AccountId': 'string'
    },
    Configuration='string',
    CrawlerSecurityConfiguration='string',
    CatalogId='string'
)
type Name:

string

param Name:

[REQUIRED]

Name of the new crawler.

type Role:

string

param Role:

The IAM role or Amazon Resource Name (ARN) of an IAM role that is used by the new crawler to access customer resources.

type DatabaseName:

string

param DatabaseName:

The Glue database where results are stored, such as: arn:aws:daylight:us-east-1::database/sometable/*.

type Description:

string

param Description:

A description of the new crawler.

type Targets:

dict

param Targets:

A list of targets to crawl.

  • S3Targets (list) --

    Specifies Amazon Simple Storage Service (Amazon S3) targets.

    • (dict) --

      Specifies a data store in Amazon Simple Storage Service (Amazon S3).

      • Path (string) --

        The path to the Amazon S3 target.

      • Exclusions (list) --

        A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • (string) --

      • ConnectionName (string) --

        The name of a connection which allows a job or crawler to access data in Amazon S3 within an Amazon Virtual Private Cloud environment (Amazon VPC).

      • SampleSize (integer) --

        Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.

      • EventQueueArn (string) --

        A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

      • DlqEventQueueArn (string) --

        A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

  • JdbcTargets (list) --

    Specifies JDBC targets.

    • (dict) --

      Specifies a JDBC data store to crawl.

      • ConnectionName (string) --

        The name of the connection to use to connect to the JDBC target.

      • Path (string) --

        The path of the JDBC target.

      • Exclusions (list) --

        A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • (string) --

      • EnableAdditionalMetadata (list) --

        Specify a value of RAWTYPES or COMMENTS to enable additional metadata in table responses. RAWTYPES provides the native-level datatype. COMMENTS provides comments associated with a column or table in the database.

        If you do not need additional metadata, keep the field empty.

        • (string) --

  • MongoDBTargets (list) --

    Specifies Amazon DocumentDB or MongoDB targets.

    • (dict) --

      Specifies an Amazon DocumentDB or MongoDB data store to crawl.

      • ConnectionName (string) --

        The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.

      • Path (string) --

        The path of the Amazon DocumentDB or MongoDB target (database/collection).

      • ScanAll (boolean) --

        Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

        A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

  • DynamoDBTargets (list) --

    Specifies Amazon DynamoDB targets.

    • (dict) --

      Specifies an Amazon DynamoDB table to crawl.

      • Path (string) --

        The name of the DynamoDB table to crawl.

      • scanAll (boolean) --

        Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.

        A value of true means to scan all records, while a value of false means to sample the records. If no value is specified, the value defaults to true.

      • scanRate (float) --

        The percentage of the configured read capacity units to use by the Glue crawler. Read capacity units is a term defined by DynamoDB, and is a numeric value that acts as rate limiter for the number of reads that can be performed on that table per second.

        The valid values are null or a value between 0.1 to 1.5. A null value is used when user does not provide a value, and defaults to 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of the max configured Read Capacity Unit (for tables using on-demand mode).

  • CatalogTargets (list) --

    Specifies Glue Data Catalog targets.

    • (dict) --

      Specifies an Glue Data Catalog target.

      • DatabaseName (string) -- [REQUIRED]

        The name of the database to be synchronized.

      • Tables (list) -- [REQUIRED]

        A list of the tables to be synchronized.

        • (string) --

      • ConnectionName (string) --

        The name of the connection for an Amazon S3-backed Data Catalog table to be a target of the crawl when using a Catalog connection type paired with a NETWORK Connection type.

      • EventQueueArn (string) --

        A valid Amazon SQS ARN. For example, arn:aws:sqs:region:account:sqs.

      • DlqEventQueueArn (string) --

        A valid Amazon dead-letter SQS ARN. For example, arn:aws:sqs:region:account:deadLetterQueue.

  • DeltaTargets (list) --

    Specifies Delta data store targets.

    • (dict) --

      Specifies a Delta data store to crawl one or more Delta tables.

      • DeltaTables (list) --

        A list of the Amazon S3 paths to the Delta tables.

        • (string) --

      • ConnectionName (string) --

        The name of the connection to use to connect to the Delta table target.

      • WriteManifest (boolean) --

        Specifies whether to write the manifest files to the Delta table path.

      • CreateNativeDeltaTable (boolean) --

        Specifies whether the crawler will create native tables, to allow integration with query engines that support querying of the Delta transaction log directly.

  • IcebergTargets (list) --

    Specifies Apache Iceberg data store targets.

    • (dict) --

      Specifies an Apache Iceberg data source where Iceberg tables are stored in Amazon S3.

      • Paths (list) --

        One or more Amazon S3 paths that contains Iceberg metadata folders as s3://bucket/prefix.

        • (string) --

      • ConnectionName (string) --

        The name of the connection to use to connect to the Iceberg target.

      • Exclusions (list) --

        A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • (string) --

      • MaximumTraversalDepth (integer) --

        The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Iceberg metadata folder in your Amazon S3 path. Used to limit the crawler run time.

  • HudiTargets (list) --

    Specifies Apache Hudi data store targets.

    • (dict) --

      Specifies an Apache Hudi data source.

      • Paths (list) --

        An array of Amazon S3 location strings for Hudi, each indicating the root folder with which the metadata files for a Hudi table resides. The Hudi folder may be located in a child folder of the root folder.

        The crawler will scan all folders underneath a path for a Hudi folder.

        • (string) --

      • ConnectionName (string) --

        The name of the connection to use to connect to the Hudi target. If your Hudi files are stored in buckets that require VPC authorization, you can set their connection properties here.

      • Exclusions (list) --

        A list of glob patterns used to exclude from the crawl. For more information, see Catalog Tables with a Crawler.

        • (string) --

      • MaximumTraversalDepth (integer) --

        The maximum depth of Amazon S3 paths that the crawler can traverse to discover the Hudi metadata folder in your Amazon S3 path. Used to limit the crawler run time.

  • LineageTargets (list) --

    Specifies lineage targets.

    • (dict) --

      Specifies a lineage source from which the crawler synchronizes lineage.

      • ConnectionName (string) -- [REQUIRED]

        The name of the connection to use to connect to the lineage source.

type Schedule:

string

param Schedule:

A cron expression used to specify the schedule (see Time-Based Schedules for Jobs and Crawlers. For example, to run something every day at 12:15 UTC, you would specify: cron(15 12 * * ? *).

type Classifiers:

list

param Classifiers:

A list of custom classifiers that the user has registered. By default, all built-in classifiers are included in a crawl, but these custom classifiers always override the default classifiers for a given classification.

  • (string) --

type TablePrefix:

string

param TablePrefix:

The table prefix used for catalog tables that are created.

type SchemaChangePolicy:

dict

param SchemaChangePolicy:

The policy for the crawler's update and deletion behavior.

  • UpdateBehavior (string) --

    The update behavior when the crawler finds a changed schema.

  • DeleteBehavior (string) --

    The deletion behavior when the crawler finds a deleted object.

type RecrawlPolicy:

dict

param RecrawlPolicy:

A policy that specifies whether to crawl the entire dataset again, or to crawl only folders that were added since the last crawler run.

  • RecrawlBehavior (string) --

    Specifies whether to crawl the entire dataset again or to crawl only folders that were added since the last crawler run.

    A value of CRAWL_EVERYTHING specifies crawling the entire dataset again.

    A value of CRAWL_NEW_FOLDERS_ONLY specifies crawling only folders that were added since the last crawler run.

    A value of CRAWL_EVENT_MODE specifies crawling only the changes identified by Amazon S3 events.

type LineageConfiguration:

dict

param LineageConfiguration:

Specifies data lineage configuration settings for the crawler.

  • CrawlerLineageSettings (string) --

    Specifies whether data lineage is enabled for the crawler. Valid values are:

    • ENABLE: enables data lineage for the crawler

    • DISABLE: disables data lineage for the crawler

type LakeFormationConfiguration:

dict

param LakeFormationConfiguration:

Specifies Lake Formation configuration settings for the crawler.

  • UseLakeFormationCredentials (boolean) --

    Specifies whether to use Lake Formation credentials for the crawler instead of the IAM role credentials.

  • AccountId (string) --

    Required for cross account crawls. For same account crawls as the target data, this can be left as null.

type Configuration:

string

param Configuration:

Crawler configuration information. This versioned JSON string allows users to specify aspects of a crawler's behavior. For more information, see Setting crawler configuration options.

type CrawlerSecurityConfiguration:

string

param CrawlerSecurityConfiguration:

The name of the SecurityConfiguration structure to be used by this crawler.

type CatalogId:

string

param CatalogId:

The ID of the Data Catalog in which to store the crawler's output. If you omit this value, the existing value on the crawler is preserved.

rtype:

dict

returns:

Response Syntax

{}

Response Structure

  • (dict) --

UpdateJob (updated) Link ¶
Changes (request)
{'JobUpdate': {'WorkerType': {'G.12X.GRAVITON',
                              'G.16X.GRAVITON',
                              'G.1X.GRAVITON',
                              'G.2X.GRAVITON',
                              'G.4X.GRAVITON',
                              'G.8X.GRAVITON',
                              'R.1X.GRAVITON',
                              'R.2X.GRAVITON',
                              'R.4X.GRAVITON',
                              'R.8X.GRAVITON'}}}

Updates an existing job definition. The previous job definition is completely overwritten by this information.

See also: AWS API Documentation

Request Syntax

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

Parameters

# This section is too large to render.
# Please see the AWS API Documentation linked below.

AWS API Documentation

rtype:

dict

returns:

Response Syntax

{
    'JobName': 'string'
}

Response Structure

  • (dict) --

    • JobName (string) --

      Returns the name of the updated job definition.

UpdateMLTransform (updated) Link ¶
Changes (request)
{'WorkerType': {'G.12X.GRAVITON',
                'G.16X.GRAVITON',
                'G.1X.GRAVITON',
                'G.2X.GRAVITON',
                'G.4X.GRAVITON',
                'G.8X.GRAVITON',
                'R.1X.GRAVITON',
                'R.2X.GRAVITON',
                'R.4X.GRAVITON',
                'R.8X.GRAVITON'}}

Updates an existing machine learning transform. Call this operation to tune the algorithm parameters to achieve better results.

After calling this operation, you can call the StartMLEvaluationTaskRun operation to assess how well your new parameters achieved your goals (such as improving the quality of your machine learning transform, or making it more cost-effective).

See also: AWS API Documentation

Request Syntax

client.update_ml_transform(
    TransformId='string',
    Name='string',
    Description='string',
    Parameters={
        'TransformType': 'FIND_MATCHES',
        'FindMatchesParameters': {
            'PrimaryKeyColumnName': 'string',
            'PrecisionRecallTradeoff': 123.0,
            'AccuracyCostTradeoff': 123.0,
            'EnforceProvidedLabels': True|False
        }
    },
    Role='string',
    GlueVersion='string',
    MaxCapacity=123.0,
    WorkerType='Standard'|'G.1X'|'G.2X'|'G.4X'|'G.8X'|'G.025X'|'Z.2X'|'G.12X'|'G.16X'|'R.1X'|'R.2X'|'R.4X'|'R.8X'|'G.1X.GRAVITON'|'G.2X.GRAVITON'|'G.4X.GRAVITON'|'G.8X.GRAVITON'|'G.12X.GRAVITON'|'G.16X.GRAVITON'|'R.1X.GRAVITON'|'R.2X.GRAVITON'|'R.4X.GRAVITON'|'R.8X.GRAVITON',
    NumberOfWorkers=123,
    Timeout=123,
    MaxRetries=123
)
type TransformId:

string

param TransformId:

[REQUIRED]

A unique identifier that was generated when the transform was created.

type Name:

string

param Name:

The unique name that you gave the transform when you created it.

type Description:

string

param Description:

A description of the transform. The default is an empty string.

type Parameters:

dict

param Parameters:

The configuration parameters that are specific to the transform type (algorithm) used. Conditionally dependent on the transform type.

  • TransformType (string) -- [REQUIRED]

    The type of machine learning transform.

    For information about the types of machine learning transforms, see Creating Machine Learning Transforms.

  • FindMatchesParameters (dict) --

    The parameters for the find matches algorithm.

    • PrimaryKeyColumnName (string) --

      The name of a column that uniquely identifies rows in the source table. Used to help identify matching records.

    • PrecisionRecallTradeoff (float) --

      The value selected when tuning your transform for a balance between precision and recall. A value of 0.5 means no preference; a value of 1.0 means a bias purely for precision, and a value of 0.0 means a bias for recall. Because this is a tradeoff, choosing values close to 1.0 means very low recall, and choosing values close to 0.0 results in very low precision.

      The precision metric indicates how often your model is correct when it predicts a match.

      The recall metric indicates that for an actual match, how often your model predicts the match.

    • AccuracyCostTradeoff (float) --

      The value that is selected when tuning your transform for a balance between accuracy and cost. A value of 0.5 means that the system balances accuracy and cost concerns. A value of 1.0 means a bias purely for accuracy, which typically results in a higher cost, sometimes substantially higher. A value of 0.0 means a bias purely for cost, which results in a less accurate FindMatches transform, sometimes with unacceptable accuracy.

      Accuracy measures how well the transform finds true positives and true negatives. Increasing accuracy requires more machine resources and cost. But it also results in increased recall.

      Cost measures how many compute resources, and thus money, are consumed to run the transform.

    • EnforceProvidedLabels (boolean) --

      The value to switch on or off to force the output to match the provided labels from users. If the value is True, the find matches transform forces the output to match the provided labels. The results override the normal conflation results. If the value is False, the find matches transform does not ensure all the labels provided are respected, and the results rely on the trained model.

      Note that setting this value to true may increase the conflation execution time.

type Role:

string

param Role:

The name or Amazon Resource Name (ARN) of the IAM role with the required permissions.

type GlueVersion:

string

param GlueVersion:

This value determines which version of Glue this machine learning transform is compatible with. Glue 1.0 is recommended for most customers. If the value is not set, the Glue compatibility defaults to Glue 0.9. For more information, see Glue Versions in the developer guide.

type MaxCapacity:

float

param MaxCapacity:

The number of Glue data processing units (DPUs) that are allocated to task runs for this transform. You can allocate from 2 to 100 DPUs; the default is 10. A DPU is a relative measure of processing power that consists of 4 vCPUs of compute capacity and 16 GB of memory. For more information, see the Glue pricing page.

When the WorkerType field is set to a value other than Standard, the MaxCapacity field is set automatically and becomes read-only.

type WorkerType:

string

param WorkerType:

The type of predefined worker that is allocated when this task runs. Accepts a value of Standard, G.1X, or G.2X.

  • For the Standard worker type, each worker provides 4 vCPU, 16 GB of memory and a 50GB disk, and 2 executors per worker.

  • For the G.1X worker type, each worker provides 4 vCPU, 16 GB of memory and a 64GB disk, and 1 executor per worker.

  • For the G.2X worker type, each worker provides 8 vCPU, 32 GB of memory and a 128GB disk, and 1 executor per worker.

type NumberOfWorkers:

integer

param NumberOfWorkers:

The number of workers of a defined workerType that are allocated when this task runs.

type Timeout:

integer

param Timeout:

The timeout for a task run for this transform in minutes. This is the maximum time that a task run for this transform can consume resources before it is terminated and enters TIMEOUT status. The default is 2,880 minutes (48 hours).

type MaxRetries:

integer

param MaxRetries:

The maximum number of times to retry a task for this transform after a task run fails.

rtype:

dict

returns:

Response Syntax

{
    'TransformId': 'string'
}

Response Structure

  • (dict) --

    • TransformId (string) --

      The unique identifier for the transform that was updated.