create_channel¶
Operation¶
create_channel
async
¶
create_channel(input: CreateChannelInput, plugins: list[Plugin] | None = None) -> CreateChannelOutput
Warning
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 | Type | Description | Default |
|---|---|---|---|
input
|
CreateChannelInput
|
An instance of |
required |
plugins
|
list[Plugin] | None
|
A list of callables that modify the configuration dynamically. Changes made by these plugins only apply for the duration of the operation execution and will not affect any other operation invocations. |
None
|
Returns:
| Type | Description |
|---|---|
CreateChannelOutput
|
An instance of |
Input¶
CreateChannelInput
dataclass
¶
Dataclass for CreateChannelInput structure.
Attributes¶
destinations
class-attribute
instance-attribute
¶
destinations: list[Destination] | None = None
One or more event data stores to which events arriving through a channel will be logged.
source
class-attribute
instance-attribute
¶
source: str | None = None
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 Custom for 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.
Output¶
CreateChannelOutput
dataclass
¶
Dataclass for CreateChannelOutput structure.
Attributes¶
channel_arn
class-attribute
instance-attribute
¶
channel_arn: str | None = None
The Amazon Resource Name (ARN) of the new channel.
destinations
class-attribute
instance-attribute
¶
destinations: list[Destination] | None = None
The event data stores that log the events arriving through the channel.
response_metadata
class-attribute
instance-attribute
¶
response_metadata: ResponseMetadata = field(default=EMPTY_RESPONSE_METADATA, repr=False, compare=False)
Metadata about the response that produced this output. Use this to recover the request identifiers a service's support team needs in order to investigate a call. Members of the metadata are individually optional.