list_stream_consumers
¶
list_stream_consumers(
stream_arn: StreamARN,
*,
config_overrides: Optional[KinesisClientConfig] = 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/kinesis.py
2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 | |