import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { EventBridgeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../EventBridgeClient"; import type { DeactivateEventSourceRequest } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link DeactivateEventSourceCommand}. */ export interface DeactivateEventSourceCommandInput extends DeactivateEventSourceRequest { } /** * @public * * The output of {@link DeactivateEventSourceCommand}. */ export interface DeactivateEventSourceCommandOutput extends __MetadataBearer { } declare const DeactivateEventSourceCommand_base: { new (input: DeactivateEventSourceCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: DeactivateEventSourceCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

You can use this operation to temporarily stop receiving events from the specified partner * event source. The matching event bus is not deleted.

*

When you deactivate a partner event source, the source goes into PENDING state. If it * remains in PENDING state for more than two weeks, it is deleted.

*

To activate a deactivated partner event source, use ActivateEventSource.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, DeactivateEventSourceCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, DeactivateEventSourceCommand } = require("@aws-sdk/client-eventbridge"); // CommonJS import * // import type { EventBridgeClientConfig } from "@aws-sdk/client-eventbridge"; * const config = {}; // type is EventBridgeClientConfig * const client = new EventBridgeClient(config); * const input = { // DeactivateEventSourceRequest * Name: "STRING_VALUE", // required * }; * const command = new DeactivateEventSourceCommand(input); * const response = await client.send(command); * // {}; * * ``` * * @param DeactivateEventSourceCommandInput - {@link DeactivateEventSourceCommandInput} * @returns {@link DeactivateEventSourceCommandOutput} * @see {@link DeactivateEventSourceCommandInput} for command's `input` shape. * @see {@link DeactivateEventSourceCommandOutput} for command's `response` shape. * @see {@link EventBridgeClientResolvedConfig | config} for EventBridgeClient's `config` shape. * * @throws {@link ConcurrentModificationException} (client fault) *

There is concurrent modification on a rule, target, archive, or replay.

* * @throws {@link InternalException} (server fault) *

This exception occurs due to unexpected causes.

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

The specified state is not a valid state for an event source.

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

The operation you are attempting is not available in this region.

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

An entity that you specified does not exist.

* * @throws {@link EventBridgeServiceException} *

Base exception class for all service exceptions from EventBridge service.

* * * @public */ export declare class DeactivateEventSourceCommand extends DeactivateEventSourceCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: DeactivateEventSourceRequest; output: {}; }; sdk: { input: DeactivateEventSourceCommandInput; output: DeactivateEventSourceCommandOutput; }; }; }