Skip to content

put_data_catalog_export_configuration

put_data_catalog_export_configuration(
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    client_token: Optional[HashString] = None,
    s3_tables_configuration: Optional[S3TablesConfiguration] = None,
    assets: Optional[AssetsExport] = None,
    lineage: Optional[LineageExport] = None,
    data_quality: Optional[DataQualityExport] = None,
) -> PutDataCatalogExportConfigurationOutput

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.

Parameters:

  • client_token (Optional[HashString], default: None ) –

    A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.

  • s3_tables_configuration (Optional[S3TablesConfiguration], default: None ) –

    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.

  • assets (Optional[AssetsExport], default: None ) –

    The export setting for asset metadata. Set S3TablesExport to ENABLED to start exporting asset metadata to S3 Tables, or to DISABLED to stop exporting.

  • lineage (Optional[LineageExport], default: None ) –

    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.

  • data_quality (Optional[DataQualityExport], default: None ) –

    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.

Raises:

Source code in docs_src/capo_glue/_services/glue.py
def put_data_catalog_export_configuration(
    self,
    *,
    config_overrides: Optional[GlueClientConfig] = None,
    client_token: Optional["capo_glue.types.hash_string.HashString"] = None,
    s3_tables_configuration: Optional[
        "capo_glue.types.s3_tables_configuration.S3TablesConfiguration"
    ] = None,
    assets: Optional["capo_glue.types.assets_export.AssetsExport"] = None,
    lineage: Optional["capo_glue.types.lineage_export.LineageExport"] = None,
    data_quality: Optional[
        "capo_glue.types.data_quality_export.DataQualityExport"
    ] = None,
) -> "capo_glue.types.put_data_catalog_export_configuration_output.PutDataCatalogExportConfigurationOutput":
    """<p>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.</p>

    Args:
        client_token: <p>A unique, case-sensitive identifier that you provide to ensure the idempotency of the request.</p>
        s3_tables_configuration: <p>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.</p>
        assets: <p>The export setting for asset metadata. Set <code>S3TablesExport</code> to <code>ENABLED</code> to start exporting asset metadata to S3 Tables, or to <code>DISABLED</code> to stop exporting.</p>
        lineage: <p>The export setting for lineage events. Set <code>S3TablesExport</code> to <code>ENABLED</code> to start exporting lineage events to the <code>lineage.events</code> table in the same <code>aws-catalog</code> table bucket and with the same encryption configuration as the catalog metadata export, or to <code>DISABLED</code> to stop exporting.</p>
        data_quality: <p>The export setting for data quality results. Set <code>S3TablesExport</code> to <code>ENABLED</code> to start exporting Glue Data Quality results to tables in the same <code>aws-catalog</code> table bucket and with the same encryption configuration as the catalog metadata export, or to <code>DISABLED</code> to stop exporting. Results produced before the export is enabled are not exported.</p>

    Raises:
        capo_glue.errors.access_denied_exception.AccessDeniedException: <p>Access to a resource was denied.</p>
        capo_glue.errors.conflict_exception.ConflictException: <p>The <code>CreatePartitions</code> API was called on a table that has indexes enabled. </p>
        capo_glue.errors.internal_service_exception.InternalServiceException: <p>An internal service error occurred.</p>
        capo_glue.errors.invalid_input_exception.InvalidInputException: <p>The input provided was not valid.</p>
        capo_glue.errors.throttling_exception.ThrottlingException: <p>The throttling threshhold was exceeded.</p>
        capo_glue.errors.UnknownServiceError: The service returned an error code this client does not model.
    """

    def _handler(
        req: "OperationRequest[capo_glue.types.put_data_catalog_export_configuration_input.PutDataCatalogExportConfigurationInput]",
    ) -> OperationResponse[
        "capo_glue.types.put_data_catalog_export_configuration_output.PutDataCatalogExportConfigurationOutput"
    ]:
        import capo_glue._operations.aws_glue.put_data_catalog_export_configuration

        output, http_response = (
            capo_glue._operations.aws_glue.put_data_catalog_export_configuration.put_data_catalog_export_configuration(
                req.options, req.input
            )
        )
        return OperationResponse(output=output, response=http_response)

    interceptors_, options_ = self.operation_options(
        config_overrides, OperationLogging("PutDataCatalogExportConfiguration")
    )
    input_: capo_glue.types.put_data_catalog_export_configuration_input.PutDataCatalogExportConfigurationInput = {}
    if client_token is None:
        client_token = str(uuid.uuid4())
    input_["client_token"] = client_token
    if s3_tables_configuration is not None:
        input_["s3_tables_configuration"] = s3_tables_configuration
    if assets is not None:
        input_["assets"] = assets
    if lineage is not None:
        input_["lineage"] = lineage
    if data_quality is not None:
        input_["data_quality"] = data_quality

    response = execute_pipeline(
        OperationRequest(input=input_, options=options_),
        handler=_handler,
        interceptors=list(interceptors_),
    )
    response.response.close()
    return response.output