Skip to content

CloudTrail  >  Operations  >  list_channels

list_channels

Operation

list_channels async

list_channels(input: ListChannelsInput, plugins: list[Plugin] | None = None) -> ListChannelsOutput

Lists the channels in the current account, and their source names.

Parameters:

Name Type Description Default
input ListChannelsInput

An instance of ListChannelsInput.

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 ListChannelsOutput.

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
channels: list[Channel] | None = None

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.