create_channel
async
¶
create_channel(
name: ChannelName,
source: Source,
destinations: Destinations,
*,
config_overrides: Optional[AsyncCloudTrailClientConfig] = None,
tags: Optional[TagsList] = None,
) -> CreateChannelResponse
CloudTrail Lake will no longer be open to new customers starting May 31, 2026. If you would like to use CloudTrail Lake, sign up prior to that date. Existing customers can continue to use the service as normal. For more information, see CloudTrail Lake availability change.
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.
Parameters:
-
name(ChannelName) –The name of the channel.
-
source(Source) –The name of the partner or external event source. You cannot change this name after you create the channel. A maximum of one channel is allowed per source.
A source can be either
Customfor all valid non-Amazon Web Services events, or the name of a partner event source. For information about the source names for available partners, see Additional information about integration partners in the CloudTrail User Guide. -
destinations(Destinations) –One or more event data stores to which events arriving through a channel will be logged.
Raises:
-
ChannelAlreadyExistsException–This exception is thrown when the provided channel already exists.
-
ChannelMaxLimitExceededException–This exception is thrown when the maximum number of channels limit is exceeded.
-
EventDataStoreARNInvalidException–The specified event data store ARN is not valid or does not map to an event data store in your account.
-
EventDataStoreNotFoundException–The specified event data store was not found.
-
InactiveEventDataStoreException–The event data store is inactive.
-
InvalidEventDataStoreCategoryException–This exception is thrown when event categories of specified event data stores are not valid.
-
InvalidParameterException–The request includes a parameter that is not valid.
-
InvalidSourceException–This exception is thrown when the specified value of
Sourceis not valid. -
InvalidTagParameterException–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.
-
OperationNotPermittedException–This exception is thrown when the requested operation is not permitted.
-
TagsLimitExceededException–The number of tags per trail, event data store, dashboard, or channel has exceeded the permitted amount. Currently, the limit is 50.
-
UnsupportedOperationException–This exception is thrown when the requested operation is not supported.
-
UnknownServiceError–The service returned an error code this client does not model.