importCatalogToGlue method

Future<void> importCatalogToGlue({
  1. String? catalogId,
})

Imports an existing Amazon Athena Data Catalog to AWS Glue

May throw InternalServiceException. May throw OperationTimeoutException.

Parameter catalogId : The ID of the catalog to import. Currently, this should be the AWS account ID.

Implementation

Future<void> importCatalogToGlue({
  String? catalogId,
}) async {
  _s.validateStringLength(
    'catalogId',
    catalogId,
    1,
    255,
  );
  final headers = <String, String>{
    'Content-Type': 'application/x-amz-json-1.1',
    'X-Amz-Target': 'AWSGlue.ImportCatalogToGlue'
  };
  await _protocol.send(
    method: 'POST',
    requestUri: '/',
    exceptionFnMap: _exceptionFns,
    // TODO queryParams
    headers: headers,
    payload: {
      if (catalogId != null) 'CatalogId': catalogId,
    },
  );
}