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 { UpdateArchiveRequest, UpdateArchiveResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateArchiveCommand}. */ export interface UpdateArchiveCommandInput extends UpdateArchiveRequest { } /** * @public * * The output of {@link UpdateArchiveCommand}. */ export interface UpdateArchiveCommandOutput extends UpdateArchiveResponse, __MetadataBearer { } declare const UpdateArchiveCommand_base: { new (input: UpdateArchiveCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateArchiveCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Updates the specified archive.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { EventBridgeClient, UpdateArchiveCommand } from "@aws-sdk/client-eventbridge"; // ES Modules import * // const { EventBridgeClient, UpdateArchiveCommand } = 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 = { // UpdateArchiveRequest * ArchiveName: "STRING_VALUE", // required * Description: "STRING_VALUE", * EventPattern: "STRING_VALUE", * RetentionDays: Number("int"), * KmsKeyIdentifier: "STRING_VALUE", * }; * const command = new UpdateArchiveCommand(input); * const response = await client.send(command); * // { // UpdateArchiveResponse * // ArchiveArn: "STRING_VALUE", * // State: "ENABLED" || "DISABLED" || "CREATING" || "UPDATING" || "CREATE_FAILED" || "UPDATE_FAILED", * // StateReason: "STRING_VALUE", * // CreationTime: new Date("TIMESTAMP"), * // }; * * ``` * * @param UpdateArchiveCommandInput - {@link UpdateArchiveCommandInput} * @returns {@link UpdateArchiveCommandOutput} * @see {@link UpdateArchiveCommandInput} for command's `input` shape. * @see {@link UpdateArchiveCommandOutput} 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 InvalidEventPatternException} (client fault) *

The event pattern is not valid.

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

The request failed because it attempted to create resource beyond the allowed service * quota.

* * @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 UpdateArchiveCommand extends UpdateArchiveCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateArchiveRequest; output: UpdateArchiveResponse; }; sdk: { input: UpdateArchiveCommandInput; output: UpdateArchiveCommandOutput; }; }; }