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

From a datashare producer account, removes authorization from the specified datashare.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, DeauthorizeDataShareCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, DeauthorizeDataShareCommand } = 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 = { // DeauthorizeDataShareMessage * DataShareArn: "STRING_VALUE", // required * ConsumerIdentifier: "STRING_VALUE", // required * }; * const command = new DeauthorizeDataShareCommand(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 DeauthorizeDataShareCommandInput - {@link DeauthorizeDataShareCommandInput} * @returns {@link DeauthorizeDataShareCommandOutput} * @see {@link DeauthorizeDataShareCommandInput} for command's `input` shape. * @see {@link DeauthorizeDataShareCommandOutput} 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 DeauthorizeDataShareCommand extends DeauthorizeDataShareCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeauthorizeDataShareMessage; output: DataShare; }; sdk: { input: DeauthorizeDataShareCommandInput; output: DeauthorizeDataShareCommandOutput; }; }; }