list_channels¶
Operation¶
list_channels
async
¶
list_channels(input: ListChannelsInput, plugins: list[Plugin] | None = None) -> ListChannelsOutput
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.
Lists the channels in the current account, and their source names.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
input
|
ListChannelsInput
|
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 |
|---|---|
ListChannelsOutput
|
An instance of |
Input¶
ListChannelsInput
dataclass
¶
Dataclass for ListChannelsInput structure.
Attributes¶
max_results
class-attribute
instance-attribute
¶
max_results: int | None = None
The maximum number of CloudTrail channels to display on a single page.
next_token
class-attribute
instance-attribute
¶
next_token: str | None = None
The token to use to get the next page of results after a previous API call. This token must be passed in with the same parameters that were specified in the original call. For example, if the original call specified an AttributeKey of 'Username' with a value of 'root', the call with NextToken should include those same parameters.
Output¶
ListChannelsOutput
dataclass
¶
Dataclass for ListChannelsOutput structure.
Attributes¶
channels
class-attribute
instance-attribute
¶
The list of channels in the account.
next_token
class-attribute
instance-attribute
¶
next_token: str | None = None
The token to use to get the next page of results after a previous API call.
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.