update_data_catalog
async
¶
update_data_catalog(
name: CatalogNameString,
type: DataCatalogType,
*,
config_overrides: Optional[AsyncAthenaClientConfig] = None,
description: Optional[DescriptionString] = None,
parameters: Optional[ParametersMap] = None,
) -> UpdateDataCatalogOutput
Updates the data catalog that has the specified name.
Parameters:
-
name(CatalogNameString) –The name of the data catalog to update. The catalog name must be unique for the Amazon Web Services account and can use a maximum of 127 alphanumeric, underscore, at sign, or hyphen characters. The remainder of the length constraint of 256 is reserved for use by Athena.
-
type(DataCatalogType) –Specifies the type of data catalog to update. Specify
LAMBDAfor a federated catalog,HIVEfor an external hive metastore, orGLUEfor an Glue Data Catalog. -
description(Optional[DescriptionString], default:None) –New or modified text that describes the data catalog.
-
parameters(Optional[ParametersMap], default:None) –Specifies the Lambda function or functions to use for updating the data catalog. This is a mapping whose values depend on the catalog type.
-
For the
HIVEdata catalog type, use the following syntax. Themetadata-functionparameter is required.The sdk-versionparameter is optional and defaults to the currently supported version.metadata-function=lambda_arn, sdk-version=version_number -
For the
LAMBDAdata catalog type, use one of the following sets of required parameters, but not both.-
If you have one Lambda function that processes metadata and another for reading the actual data, use the following syntax. Both parameters are required.
metadata-function=lambda_arn, record-function=lambda_arn -
If you have a composite Lambda function that processes both metadata and data, use the following syntax to specify your Lambda function.
function=lambda_arn
-
-
Raises:
-
InternalServerException–Indicates a platform issue, which may be due to a transient condition or outage.
-
InvalidRequestException–Indicates that something is wrong with the input to the request. For example, a required parameter may be missing or out of range.
-
UnknownServiceError–The service returned an error code this client does not model.