import { Command as $Command } from "@smithy/core/client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { GlueClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../GlueClient"; import type { GetDatabasesRequest, GetDatabasesResponse } from "../models/models_1"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link GetDatabasesCommand}. */ export interface GetDatabasesCommandInput extends GetDatabasesRequest { } /** * @public * * The output of {@link GetDatabasesCommand}. */ export interface GetDatabasesCommandOutput extends GetDatabasesResponse, __MetadataBearer { } declare const GetDatabasesCommand_base: { new (input: GetDatabasesCommandInput): import("@smithy/core/client").CommandImpl; new (...[input]: [] | [GetDatabasesCommandInput]): import("@smithy/core/client").CommandImpl; getEndpointParameterInstructions(): { [x: string]: unknown; }; }; /** *

Retrieves all databases defined in a given Data Catalog.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { GlueClient, GetDatabasesCommand } from "@aws-sdk/client-glue"; // ES Modules import * // const { GlueClient, GetDatabasesCommand } = require("@aws-sdk/client-glue"); // CommonJS import * // import type { GlueClientConfig } from "@aws-sdk/client-glue"; * const config = {}; // type is GlueClientConfig * const client = new GlueClient(config); * const input = { // GetDatabasesRequest * CatalogId: "STRING_VALUE", * NextToken: "STRING_VALUE", * MaxResults: Number("int"), * ResourceShareType: "FOREIGN" || "ALL" || "FEDERATED", * AttributesToGet: [ // DatabaseAttributesList * "NAME" || "TARGET_DATABASE", * ], * }; * const command = new GetDatabasesCommand(input); * const response = await client.send(command); * // { // GetDatabasesResponse * // DatabaseList: [ // DatabaseList // required * // { // Database * // Name: "STRING_VALUE", // required * // Description: "STRING_VALUE", * // LocationUri: "STRING_VALUE", * // Parameters: { // ParametersMap * // "": "STRING_VALUE", * // }, * // CreateTime: new Date("TIMESTAMP"), * // CreateTableDefaultPermissions: [ // PrincipalPermissionsList * // { // PrincipalPermissions * // Principal: { // DataLakePrincipal * // DataLakePrincipalIdentifier: "STRING_VALUE", * // }, * // Permissions: [ // PermissionList * // "ALL" || "SELECT" || "ALTER" || "DROP" || "DELETE" || "INSERT" || "CREATE_DATABASE" || "CREATE_TABLE" || "DATA_LOCATION_ACCESS", * // ], * // }, * // ], * // TargetDatabase: { // DatabaseIdentifier * // CatalogId: "STRING_VALUE", * // DatabaseName: "STRING_VALUE", * // Region: "STRING_VALUE", * // }, * // CatalogId: "STRING_VALUE", * // FederatedDatabase: { // FederatedDatabase * // Identifier: "STRING_VALUE", * // ConnectionName: "STRING_VALUE", * // ConnectionType: "STRING_VALUE", * // }, * // }, * // ], * // NextToken: "STRING_VALUE", * // }; * * ``` * * @param GetDatabasesCommandInput - {@link GetDatabasesCommandInput} * @returns {@link GetDatabasesCommandOutput} * @see {@link GetDatabasesCommandInput} for command's `input` shape. * @see {@link GetDatabasesCommandOutput} for command's `response` shape. * @see {@link GlueClientResolvedConfig | config} for GlueClient's `config` shape. * * @throws {@link EntityNotFoundException} (client fault) *

A specified entity does not exist

* * @throws {@link FederationSourceException} (client fault) *

A federation source failed.

* * @throws {@link FederationSourceRetryableException} (client fault) *

A federation source failed, but the operation may be retried.

* * @throws {@link GlueEncryptionException} (client fault) *

An encryption operation failed.

* * @throws {@link InternalServiceException} (server fault) *

An internal service error occurred.

* * @throws {@link InvalidInputException} (client fault) *

The input provided was not valid.

* * @throws {@link OperationTimeoutException} (client fault) *

The operation timed out.

* * @throws {@link GlueServiceException} *

Base exception class for all service exceptions from Glue service.

* * * @public */ export declare class GetDatabasesCommand extends GetDatabasesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: GetDatabasesRequest; output: GetDatabasesResponse; }; sdk: { input: GetDatabasesCommandInput; output: GetDatabasesCommandOutput; }; }; }