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

Returns a list of datashares where the account identifier being called is a consumer account identifier.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, DescribeDataSharesForConsumerCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, DescribeDataSharesForConsumerCommand } = 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 = { // DescribeDataSharesForConsumerMessage * ConsumerArn: "STRING_VALUE", * Status: "ACTIVE" || "AVAILABLE", * MaxRecords: Number("int"), * Marker: "STRING_VALUE", * }; * const command = new DescribeDataSharesForConsumerCommand(input); * const response = await client.send(command); * // { // DescribeDataSharesForConsumerResult * // 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 DescribeDataSharesForConsumerCommandInput - {@link DescribeDataSharesForConsumerCommandInput} * @returns {@link DescribeDataSharesForConsumerCommandOutput} * @see {@link DescribeDataSharesForConsumerCommandInput} for command's `input` shape. * @see {@link DescribeDataSharesForConsumerCommandOutput} for command's `response` shape. * @see {@link RedshiftClientResolvedConfig | config} for RedshiftClient's `config` shape. * * @throws {@link InvalidNamespaceFault} (client fault) *

The namespace isn't valid because the namespace doesn't exist. Provide a valid namespace.

* * @throws {@link RedshiftServiceException} *

Base exception class for all service exceptions from Redshift service.

* * * @public */ export declare class DescribeDataSharesForConsumerCommand extends DescribeDataSharesForConsumerCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DescribeDataSharesForConsumerMessage; output: DescribeDataSharesForConsumerResult; }; sdk: { input: DescribeDataSharesForConsumerCommandInput; output: DescribeDataSharesForConsumerCommandOutput; }; }; }