import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { DescribeEndpointAuthorizationMessage, EndpointAuthorizationList } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DescribeEndpointAuthorizationCommand}. */ export interface DescribeEndpointAuthorizationCommandInput extends DescribeEndpointAuthorizationMessage { } /** * @public * * The output of {@link DescribeEndpointAuthorizationCommand}. */ export interface DescribeEndpointAuthorizationCommandOutput extends EndpointAuthorizationList, __MetadataBearer { } declare const DescribeEndpointAuthorizationCommand_base: { new (input: DescribeEndpointAuthorizationCommandInput): import("@smithy/smithy-client").CommandImpl; new (...[input]: [] | [DescribeEndpointAuthorizationCommandInput]): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Describes an endpoint authorization.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, DescribeEndpointAuthorizationCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, DescribeEndpointAuthorizationCommand } = require("@aws-sdk/client-redshift"); // CommonJS import * // import type { RedshiftClientConfig } from "@aws-sdk/client-redshift"; * const config = {}; // type is RedshiftClientConfig * const client = new RedshiftClient(config); * const input = { // DescribeEndpointAuthorizationMessage * ClusterIdentifier: "STRING_VALUE", * Account: "STRING_VALUE", * Grantee: true || false, * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * }; * const command = new DescribeEndpointAuthorizationCommand(input); * const response = await client.send(command); * // { // EndpointAuthorizationList * // EndpointAuthorizationList: [ // EndpointAuthorizations * // { // EndpointAuthorization * // Grantor: "STRING_VALUE", * // Grantee: "STRING_VALUE", * // ClusterIdentifier: "STRING_VALUE", * // AuthorizeTime: new Date("TIMESTAMP"), * // ClusterStatus: "STRING_VALUE", * // Status: "Authorized" || "Revoking", * // AllowedAllVPCs: true || false, * // AllowedVPCs: [ // VpcIdentifierList * // "STRING_VALUE", * // ], * // EndpointCount: Number("int"), * // }, * // ], * // Marker: "STRING_VALUE", * // }; * * ``` * * @param DescribeEndpointAuthorizationCommandInput - {@link DescribeEndpointAuthorizationCommandInput} * @returns {@link DescribeEndpointAuthorizationCommandOutput} * @see {@link DescribeEndpointAuthorizationCommandInput} for command's `input` shape. * @see {@link DescribeEndpointAuthorizationCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link ClusterNotFoundFault} (client fault) *

The ClusterIdentifier parameter does not refer to an existing cluster. *

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

The requested operation isn't supported.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class DescribeEndpointAuthorizationCommand extends DescribeEndpointAuthorizationCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeEndpointAuthorizationMessage; output: EndpointAuthorizationList; }; sdk: { input: DescribeEndpointAuthorizationCommandInput; output: DescribeEndpointAuthorizationCommandOutput; }; }; }