import { Command as $Command } from "@smithy/smithy-client"; import type { MetadataBearer as __MetadataBearer } from "@smithy/types"; import type { CloudTrailClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../CloudTrailClient"; import type { UpdateChannelRequest, UpdateChannelResponse } from "../models/models_0"; /** * @public */ export type { __MetadataBearer }; export { $Command }; /** * @public * * The input for {@link UpdateChannelCommand}. */ export interface UpdateChannelCommandInput extends UpdateChannelRequest { } /** * @public * * The output of {@link UpdateChannelCommand}. */ export interface UpdateChannelCommandOutput extends UpdateChannelResponse, __MetadataBearer { } declare const UpdateChannelCommand_base: { new (input: UpdateChannelCommandInput): import("@smithy/smithy-client").CommandImpl; new (input: UpdateChannelCommandInput): import("@smithy/smithy-client").CommandImpl; getEndpointParameterInstructions(): import("@smithy/middleware-endpoint").EndpointParameterInstructions; }; /** *

Updates a channel specified by a required channel ARN or UUID.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, UpdateChannelCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, UpdateChannelCommand } = require("@aws-sdk/client-cloudtrail"); // CommonJS import * // import type { CloudTrailClientConfig } from "@aws-sdk/client-cloudtrail"; * const config = {}; // type is CloudTrailClientConfig * const client = new CloudTrailClient(config); * const input = { // UpdateChannelRequest * Channel: "STRING_VALUE", // required * Destinations: [ // Destinations * { // Destination * Type: "EVENT_DATA_STORE" || "AWS_SERVICE", // required * Location: "STRING_VALUE", // required * }, * ], * Name: "STRING_VALUE", * }; * const command = new UpdateChannelCommand(input); * const response = await client.send(command); * // { // UpdateChannelResponse * // ChannelArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // Source: "STRING_VALUE", * // Destinations: [ // Destinations * // { // Destination * // Type: "EVENT_DATA_STORE" || "AWS_SERVICE", // required * // Location: "STRING_VALUE", // required * // }, * // ], * // }; * * ``` * * @param UpdateChannelCommandInput - {@link UpdateChannelCommandInput} * @returns {@link UpdateChannelCommandOutput} * @see {@link UpdateChannelCommandInput} for command's `input` shape. * @see {@link UpdateChannelCommandOutput} for command's `response` shape. * @see {@link CloudTrailClientResolvedConfig | config} for CloudTrailClient's `config` shape. * * @throws {@link ChannelAlreadyExistsException} (client fault) *

* This exception is thrown when the provided channel already exists. *

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

This exception is thrown when the specified value of ChannelARN is not * valid.

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

This exception is thrown when CloudTrail cannot find the specified channel.

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

The specified event data store ARN is not valid or does not map to an event data store * in your account.

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

The specified event data store was not found.

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

The event data store is inactive.

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

This exception is thrown when event categories of specified event data stores are not * valid.

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

The request includes a parameter that is not valid.

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

This exception is thrown when the requested operation is not permitted.

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

This exception is thrown when the requested operation is not supported.

* * @throws {@link CloudTrailServiceException} *

Base exception class for all service exceptions from CloudTrail service.

* * * @public */ export declare class UpdateChannelCommand extends UpdateChannelCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: UpdateChannelRequest; output: UpdateChannelResponse; }; sdk: { input: UpdateChannelCommandInput; output: UpdateChannelCommandOutput; }; }; }