get_catalogs
async
¶
get_catalogs(
*,
config_overrides: Optional[AsyncGlueClientConfig] = None,
parent_catalog_id: Optional[CatalogIdString] = None,
next_token: Optional[Token] = None,
max_results: Optional[PageSize] = None,
recursive: Optional[Boolean] = None,
include_root: Optional[NullableBoolean] = None,
has_databases: Optional[NullableBoolean] = None,
) -> GetCatalogsResponse
Retrieves all catalogs defined in a catalog in the Glue Data Catalog. For a Redshift-federated catalog use case, this operation returns the list of catalogs mapped to Redshift databases in the Redshift namespace catalog.
Parameters:
-
parent_catalog_id(Optional[CatalogIdString], default:None) –The ID of the parent catalog in which the catalog resides. If none is provided, the Amazon Web Services Account Number is used by default.
-
next_token(Optional[Token], default:None) –A continuation token, if this is a continuation call.
-
max_results(Optional[PageSize], default:None) –The maximum number of catalogs to return in one response.
-
recursive(Optional[Boolean], default:None) –Whether to list all catalogs across the catalog hierarchy, starting from the
ParentCatalogId. Defaults tofalse. Whentrue, all catalog objects in theParentCatalogIDhierarchy are enumerated in the response. -
include_root(Optional[NullableBoolean], default:None) –Whether to list the default catalog in the account and region in the response. Defaults to
false. WhentrueandParentCatalogId = NULL | Amazon Web Services Account ID, all catalogs and the default catalog are enumerated in the response.When the
ParentCatalogIdis not equal to null, and this attribute is passed asfalseortrue, anInvalidInputExceptionis thrown. -
has_databases(Optional[NullableBoolean], default:None) –When
true, the response only includes catalogs that can contain databases. Some catalogs are organizational containers that hold only other catalogs, not databases. When this parameter is set totrue, those container-only catalogs are excluded, and only catalogs capable of containing databases are returned. Defaults tofalse.
Raises:
-
AccessDeniedException–Access to a resource was denied.
-
EntityNotFoundException–A specified entity does not exist
-
FederationSourceException–A federation source failed.
-
FederationSourceRetryableException–A federation source failed, but the operation may be retried.
-
GlueEncryptionException–An encryption operation failed.
-
InternalServiceException–An internal service error occurred.
-
InvalidInputException–The input provided was not valid.
-
OperationTimeoutException–The operation timed out.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_glue/_services/async_glue.py
7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976 7977 7978 7979 7980 7981 7982 7983 7984 7985 7986 7987 7988 7989 7990 7991 7992 7993 7994 7995 7996 7997 7998 7999 8000 8001 8002 8003 8004 8005 8006 8007 8008 8009 8010 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 | |