list_topics
async
¶
list_topics(
cluster_arn: __string,
*,
config_overrides: Optional[AsyncKafkaClientConfig] = None,
max_results: Optional[MaxResults] = None,
next_token: Optional[__string] = None,
topic_name_filter: Optional[__string] = None,
) -> ListTopicsResponse
List topics in a MSK cluster.
Parameters:
-
cluster_arn(__string) –The Amazon Resource Name (ARN) that uniquely identifies the cluster.
-
max_results(Optional[MaxResults], default:None) –The maximum number of results to return in the response. If there are more results, the response includes a NextToken parameter.
-
next_token(Optional[__string], default:None) –The paginated results marker. When the result of the operation is truncated, the call returns NextToken in the response. To get the next batch, provide this token in your next request.
-
topic_name_filter(Optional[__string], default:None) –Returns topics starting with given name.
Raises:
-
BadRequestException–Returns information about an error.
-
ForbiddenException–Returns information about an error.
-
InternalServerErrorException–Returns information about an error.
-
ServiceUnavailableException–Returns information about an error.
-
UnauthorizedException–Returns information about an error.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_kafka/_services/async_kafka.py
3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 | |