list_topics
¶
list_topics(
cluster_arn: __string,
*,
config_overrides: Optional[KafkaClientConfig] = 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.