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

Shows the status of any inbound or outbound datashares available in the specified * account.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, DescribeDataSharesCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, DescribeDataSharesCommand } = 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 = { // DescribeDataSharesMessage * DataShareArn: "STRING_VALUE", * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * }; * const command = new DescribeDataSharesCommand(input); * const response = await client.send(command); * // { // DescribeDataSharesResult * // DataShares: [ // DataShareList * // { // DataShare * // DataShareArn: "STRING_VALUE", * // ProducerArn: "STRING_VALUE", * // AllowPubliclyAccessibleConsumers: true || false, * // DataShareAssociations: [ // DataShareAssociationList * // { // DataShareAssociation * // ConsumerIdentifier: "STRING_VALUE", * // Status: "ACTIVE" || "PENDING_AUTHORIZATION" || "AUTHORIZED" || "DEAUTHORIZED" || "REJECTED" || "AVAILABLE", * // ConsumerRegion: "STRING_VALUE", * // CreatedDate: new Date("TIMESTAMP"), * // StatusChangeDate: new Date("TIMESTAMP"), * // ProducerAllowedWrites: true || false, * // ConsumerAcceptedWrites: true || false, * // }, * // ], * // ManagedBy: "STRING_VALUE", * // DataShareType: "INTERNAL", * // }, * // ], * // Marker: "STRING_VALUE", * // }; * * ``` * * @param DescribeDataSharesCommandInput - {@link DescribeDataSharesCommandInput} * @returns {@link DescribeDataSharesCommandOutput} * @see {@link DescribeDataSharesCommandInput} for command's `input` shape. * @see {@link DescribeDataSharesCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link InvalidDataShareFault} (client fault) *

There is an error with the datashare.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class DescribeDataSharesCommand extends DescribeDataSharesCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeDataSharesMessage; output: DescribeDataSharesResult; }; sdk: { input: DescribeDataSharesCommandInput; output: DescribeDataSharesCommandOutput; }; }; }