import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { AssociateDataShareConsumerMessage, DataShare } from "../models/models_0"; import type { RedshiftClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../RedshiftClient"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link AssociateDataShareConsumerCommand}. */ export interface AssociateDataShareConsumerCommandInput extends AssociateDataShareConsumerMessage { } /** * @public * * The output of {@link AssociateDataShareConsumerCommand}. */ export interface AssociateDataShareConsumerCommandOutput extends DataShare, __MetadataBearer { } declare const AssociateDataShareConsumerCommand_base: { new (input: AssociateDataShareConsumerCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: AssociateDataShareConsumerCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

From a datashare consumer account, associates a datashare with the * account (AssociateEntireAccount) or the specified namespace (ConsumerArn). If you make this association, the consumer * can consume the datashare.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, AssociateDataShareConsumerCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, AssociateDataShareConsumerCommand } = 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 = { // AssociateDataShareConsumerMessage * DataShareArn: "STRING_VALUE", // required * AssociateEntireAccount: true || false, * ConsumerArn: "STRING_VALUE", * ConsumerRegion: "STRING_VALUE", * AllowWrites: true || false, * }; * const command = new AssociateDataShareConsumerCommand(input); * const response = await client.send(command); * // { // 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", * // }; * * ``` * * @param AssociateDataShareConsumerCommandInput - {@link AssociateDataShareConsumerCommandInput} * @returns {@link AssociateDataShareConsumerCommandOutput} * @see {@link AssociateDataShareConsumerCommandInput} for command's `input` shape. * @see {@link AssociateDataShareConsumerCommandOutput} 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 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 AssociateDataShareConsumerCommand extends AssociateDataShareConsumerCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: AssociateDataShareConsumerMessage; output: DataShare; }; sdk: { input: AssociateDataShareConsumerCommandInput; output: AssociateDataShareConsumerCommandOutput; }; }; }