list_kafka_versions

Kafka.Client.list_kafka_versions(**kwargs)

Returns a list of Apache Kafka versions.

See also: AWS API Documentation

Request Syntax

response = client.list_kafka_versions(
    MaxResults=123,
    NextToken='string'
)
Parameters
  • MaxResults (integer) -- The maximum number of results to return in the response. If there are more results, the response includes a NextToken parameter.
  • NextToken (string) -- 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.
Return type

dict

Returns

Response Syntax

{
    'KafkaVersions': [
        {
            'Version': 'string',
            'Status': 'ACTIVE'|'DEPRECATED'
        },
    ],
    'NextToken': 'string'
}

Response Structure

  • (dict) --
    • KafkaVersions (list) --
      • (dict) --
        • Version (string) --
        • Status (string) --
    • NextToken (string) --

Exceptions

  • Kafka.Client.exceptions.BadRequestException
  • Kafka.Client.exceptions.UnauthorizedException
  • Kafka.Client.exceptions.InternalServerErrorException
  • Kafka.Client.exceptions.ForbiddenException