get_catalogs
¶
get_catalogs(
*,
config_overrides: Optional[GlueClientConfig] = 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/glue.py
8055 8056 8057 8058 8059 8060 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071 8072 8073 8074 8075 8076 8077 8078 8079 8080 8081 8082 8083 8084 8085 8086 8087 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 | |