list_channels
async
¶
list_channels(
*,
config_overrides: Optional[AsyncKinesisClientConfig] = None,
stream_filter: Optional[StreamFilterList] = None,
max_results: Optional[ListChannelsInputLimit] = None,
next_token: Optional[NextToken] = None,
) -> ListChannelsOutput
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 Amazon Web Services Region.
This operation has a call limit of 5 transactions per second (TPS) for each Amazon Web Services account. Exceeding 5 TPS results in a LimitExceededException.
Parameters:
-
stream_filter(Optional[StreamFilterList], default:None) –Filters the results to channels associated with the specified streams.
-
max_results(Optional[ListChannelsInputLimit], default:None) –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.
-
next_token(Optional[NextToken], default:None) –The pagination token returned by a previous call. Specify this token to retrieve the next page of results.
Raises:
-
AccessDeniedException–Specifies that you do not have the permissions required to perform this operation.
-
ExpiredNextTokenException–The pagination token passed to the operation is expired.
-
InvalidArgumentException–A specified parameter exceeds its restrictions, is not supported, or can't be used. For more information, see the returned message.
-
LimitExceededException–The requested resource exceeds the maximum number allowed, or the number of concurrent stream requests exceeds the maximum number allowed.
-
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.
-
UnknownServiceError–The service returned an error code this client does not model.
Examples:
To list channels
>>> await client.list_channels(stream_filter=[{'StreamARN': 'arn:aws:kinesis:us-east-1:123456789012:stream/my-stream-name'}], max_results=10)
Source code in docs_src/capo_kinesis/_services/async_kinesis.py
1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 | |