Glue / Client / update_catalog

update_catalog#

Glue.Client.update_catalog(**kwargs)#

Updates an existing catalog’s properties in the Glue Data Catalog.

See also: AWS API Documentation

Request Syntax

response = client.update_catalog(
    CatalogId='string',
    CatalogInput={
        'Description': 'string',
        'FederatedCatalog': {
            'Identifier': 'string',
            'ConnectionName': 'string'
        },
        'Parameters': {
            'string': 'string'
        },
        'TargetRedshiftCatalog': {
            'CatalogArn': 'string'
        },
        'CatalogProperties': {
            'DataLakeAccessProperties': {
                'DataLakeAccess': True|False,
                'DataTransferRole': 'string',
                'KmsKey': 'string',
                'CatalogType': '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',
                ]
            },
        ]
    }
)
Parameters:
  • CatalogId (string) –

    [REQUIRED]

    The ID of the catalog.

  • CatalogInput (dict) –

    [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.

    • 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.

      • 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) –

Return type:

dict

Returns:

Response Syntax

{}

Response Structure

  • (dict) –

Exceptions