Kafka / Client / get_cluster_policy

get_cluster_policy#

Kafka.Client.get_cluster_policy(**kwargs)#

Get the MSK cluster policy specified by the Amazon Resource Name (ARN) in the request.

See also: AWS API Documentation

Request Syntax

response = client.get_cluster_policy(
    ClusterArn='string'
)
Parameters:

ClusterArn (string) –

[REQUIRED]

The Amazon Resource Name (ARN) of the cluster.

Return type:

dict

Returns:

Response Syntax

{
    'CurrentVersion': 'string',
    'Policy': 'string'
}

Response Structure

  • (dict) –

    Successful response.

    • CurrentVersion (string) –

      The version of cluster policy.

    • Policy (string) –

      The cluster policy.

Exceptions

  • Kafka.Client.exceptions.NotFoundException

  • Kafka.Client.exceptions.BadRequestException

  • Kafka.Client.exceptions.InternalServerErrorException

  • Kafka.Client.exceptions.ForbiddenException