ListChannels
Lists the channels in your account. You can filter the results by source stream. The results are paginated. Use the NextToken value returned in the response to retrieve additional results.
Use this operation to find channels before deleting a stream, or to audit the channels configured in an AWS Region.
This operation has a call limit of 5 transactions per second (TPS) for each AWS account. Exceeding 5 TPS results in a LimitExceededException.
Request Syntax
{
"MaxResults": number,
"NextToken": "string",
"StreamFilter": [
{
"StreamARN": "string",
"StreamCreationTimestamp": number
}
]
}
Request Parameters
The request accepts the following data in JSON format.
- MaxResults
-
The maximum number of channels to return in a single call. The default value is 100. If you specify a value greater than 100, at most 100 results are returned.
Type: Integer
Valid Range: Minimum value of 1. Maximum value of 10000.
Required: No
- NextToken
-
The pagination token returned by a previous call. Specify this token to retrieve the next page of results.
Type: String
Length Constraints: Minimum length of 1. Maximum length of 1048576.
Required: No
- StreamFilter
-
Filters the results to channels associated with the specified streams.
Type: Array of StreamFilter objects
Array Members: Minimum number of 1 item. Maximum number of 10000 items.
Required: No
Response Syntax
{
"ChannelSummaries": [
{
"ChannelARN": "string",
"ChannelCreationTimestamp": number,
"ChannelDestinationType": "string",
"ChannelId": "string",
"ChannelName": "string",
"ChannelStatus": "string",
"ChannelStatusReason": "string",
"Streams": [
{
"StreamARN": "string",
"StreamCreationTimestamp": number
}
]
}
],
"NextToken": "string"
}
Response Elements
If the action is successful, the service sends back an HTTP 200 response.
The following data is returned in JSON format by the service.
- ChannelSummaries
-
A list of channel summaries.
Type: Array of ChannelSummary objects
- NextToken
-
The pagination token to use in a subsequent call to retrieve the next page of results. This value is
nullwhen there are no more results to return.Type: String
Length Constraints: Minimum length of 1. Maximum length of 1048576.
Errors
For information about the errors that are common to all actions, see Common Error Types.
- AccessDeniedException
-
Specifies that you do not have the permissions required to perform this operation.
HTTP Status Code: 400
- ExpiredNextTokenException
-
The pagination token passed to the operation is expired.
HTTP Status Code: 400
- InvalidArgumentException
-
A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.
- message
-
A message that provides information about the error.
HTTP Status Code: 400
- LimitExceededException
-
The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
- message
-
A message that provides information about the error.
HTTP Status Code: 400
- ValidationException
-
Specifies that you tried to invoke this API for a data stream with the on-demand capacity mode. This API is only supported for data streams with the provisioned capacity mode.
HTTP Status Code: 400
See Also
For more information about using this API in one of the language-specific AWS SDKs, see the following: