list_stream_consumers
async
¶
list_stream_consumers(
stream_arn: StreamARN,
*,
config_overrides: Optional[AsyncKinesisClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[ListStreamConsumersInputLimit] = None,
stream_creation_timestamp: Optional[Timestamp] = None,
stream_id: Optional[StreamId] = None,
) -> ListStreamConsumersOutput
Lists the consumers registered to receive data from a stream using enhanced fan-out, and provides information about each consumer.
This operation has a limit of 5 transactions per second per stream.
Parameters:
-
stream_arn(StreamARN) –The ARN of the Kinesis data stream for which you want to list the registered consumers. For more information, see Amazon Resource Names (ARNs) and Amazon Web Services Service Namespaces.
-
next_token(Optional[NextToken], default:None) –When the number of consumers that are registered with the data stream is greater than the default value for the
MaxResultsparameter, or if you explicitly specify a value forMaxResultsthat is less than the number of consumers that are registered with the data stream, the response includes a pagination token namedNextToken. You can specify thisNextTokenvalue in a subsequent call toListStreamConsumersto list the next set of registered consumers.Don't specify
StreamNameorStreamCreationTimestampif you specifyNextTokenbecause the latter unambiguously identifies the stream.You can optionally specify a value for the
MaxResultsparameter when you specifyNextToken. If you specify aMaxResultsvalue that is less than the number of consumers that the operation returns if you don't specifyMaxResults, the response will contain a newNextTokenvalue. You can use the newNextTokenvalue in a subsequent call to theListStreamConsumersoperation to list the next set of consumers.Tokens expire after 300 seconds. When you obtain a value for
NextTokenin the response to a call toListStreamConsumers, you have 300 seconds to use that value. If you specify an expired token in a call toListStreamConsumers, you getExpiredNextTokenException. -
max_results(Optional[ListStreamConsumersInputLimit], default:None) –The maximum number of consumers that you want a single call of
ListStreamConsumersto return. The default value is 100. If you specify a value greater than 100, at most 100 results are returned. -
stream_creation_timestamp(Optional[Timestamp], default:None) –Specify this input parameter to distinguish data streams that have the same name. For example, if you create a data stream and then delete it, and you later create another data stream with the same name, you can use this input parameter to specify which of the two streams you want to list the consumers for.
You can't specify this parameter if you specify the NextToken parameter.
-
stream_id(Optional[StreamId], default:None) –Not Implemented. Reserved for future use.
Raises:
-
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.
-
ResourceInUseException–The resource is not available for this operation. For successful operation, the resource must be in the
ACTIVEstate. -
ResourceNotFoundException–The requested resource could not be found. The stream might not be specified correctly.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kinesis/_services/async_kinesis.py
1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 | |