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

Adds a partner integration to a cluster. * This operation authorizes a partner to push status updates for the specified database. * To complete the integration, you also set up the integration on the partner website.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { RedshiftClient, AddPartnerCommand } from "@aws-sdk/client-redshift"; // ES Modules import * // const { RedshiftClient, AddPartnerCommand } = 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 = { // PartnerIntegrationInputMessage * AccountId: "STRING_VALUE", // required * ClusterIdentifier: "STRING_VALUE", // required * DatabaseName: "STRING_VALUE", // required * PartnerName: "STRING_VALUE", // required * }; * const command = new AddPartnerCommand(input); * const response = await client.send(command); * // { // PartnerIntegrationOutputMessage * // DatabaseName: "STRING_VALUE", * // PartnerName: "STRING_VALUE", * // }; * * ``` * * @param AddPartnerCommandInput - {@link AddPartnerCommandInput} * @returns {@link AddPartnerCommandOutput} * @see {@link AddPartnerCommandInput} for command's `input` shape. * @see {@link AddPartnerCommandOutput} 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 PartnerNotFoundFault} (client fault) *

The name of the partner was not found.

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

The partner integration is not authorized.

* * @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 AddPartnerCommand extends AddPartnerCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: PartnerIntegrationInputMessage; output: PartnerIntegrationOutputMessage; }; sdk: { input: AddPartnerCommandInput; output: AddPartnerCommandOutput; }; }; }