updateCatalog method

Future<void> updateCatalog({
  1. required String catalogId,
  2. required CatalogInput catalogInput,
})

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

May throw AccessDeniedException. May throw ConcurrentModificationException. May throw EntityNotFoundException. May throw FederationSourceException. May throw GlueEncryptionException. May throw InternalServiceException. May throw InvalidInputException. May throw OperationTimeoutException.

Parameter catalogId : The ID of the catalog.

Parameter catalogInput : A CatalogInput object specifying the new properties of an existing catalog.

Implementation

Future<void> updateCatalog({
  required String catalogId,
  required CatalogInput catalogInput,
}) async {
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.UpdateCatalog'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      'CatalogId': catalogId,
      'CatalogInput': catalogInput,
    },
  );
}