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

Creates a channel for CloudTrail to ingest events from a partner or external source. * After you create a channel, a CloudTrail Lake event data store can log events * from the partner or source that you specify.

* @example * Use a bare-bones client and the command you need to make an API call. * ```javascript * import { CloudTrailClient, CreateChannelCommand } from "@aws-sdk/client-cloudtrail"; // ES Modules import * // const { CloudTrailClient, CreateChannelCommand } = 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 = { // CreateChannelRequest * Name: "STRING_VALUE", // required * Source: "STRING_VALUE", // required * Destinations: [ // Destinations // required * { // Destination * Type: "EVENT_DATA_STORE" || "AWS_SERVICE", // required * Location: "STRING_VALUE", // required * }, * ], * Tags: [ // TagsList * { // Tag * Key: "STRING_VALUE", // required * Value: "STRING_VALUE", * }, * ], * }; * const command = new CreateChannelCommand(input); * const response = await client.send(command); * // { // CreateChannelResponse * // ChannelArn: "STRING_VALUE", * // Name: "STRING_VALUE", * // Source: "STRING_VALUE", * // Destinations: [ // Destinations * // { // Destination * // Type: "EVENT_DATA_STORE" || "AWS_SERVICE", // required * // Location: "STRING_VALUE", // required * // }, * // ], * // Tags: [ // TagsList * // { // Tag * // Key: "STRING_VALUE", // required * // Value: "STRING_VALUE", * // }, * // ], * // }; * * ``` * * @param CreateChannelCommandInput - {@link CreateChannelCommandInput} * @returns {@link CreateChannelCommandOutput} * @see {@link CreateChannelCommandInput} for command's `input` shape. * @see {@link CreateChannelCommandOutput} 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 ChannelMaxLimitExceededException} (client fault) *

* This exception is thrown when the maximum number of channels limit is exceeded. *

* * @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 InvalidSourceException} (client fault) *

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

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

This exception is thrown when the specified tag key or values are not valid. It can also * occur if there are duplicate tags or too many tags on the resource.

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

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

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

The number of tags per trail, event data store, dashboard, or channel has exceeded the permitted amount. Currently, the limit is * 50.

* * @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 CreateChannelCommand extends CreateChannelCommand_base { /** @internal type navigation helper, not in runtime. */ protected static __types: { api: { input: CreateChannelRequest; output: CreateChannelResponse; }; sdk: { input: CreateChannelCommandInput; output: CreateChannelCommandOutput; }; }; }