Kafka.Client.
describe_cluster_v2
(**kwargs)¶Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
See also: AWS API Documentation
Request Syntax
response = client.describe_cluster_v2(
ClusterArn='string'
)
[REQUIRED]
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
{
'ClusterInfo': {
'ActiveOperationArn': 'string',
'ClusterType': 'PROVISIONED'|'SERVERLESS',
'ClusterArn': 'string',
'ClusterName': 'string',
'CreationTime': datetime(2015, 1, 1),
'CurrentVersion': 'string',
'State': 'ACTIVE'|'CREATING'|'DELETING'|'FAILED'|'HEALING'|'MAINTENANCE'|'REBOOTING_BROKER'|'UPDATING',
'StateInfo': {
'Code': 'string',
'Message': 'string'
},
'Tags': {
'string': 'string'
},
'Provisioned': {
'BrokerNodeGroupInfo': {
'BrokerAZDistribution': 'DEFAULT',
'ClientSubnets': [
'string',
],
'InstanceType': 'string',
'SecurityGroups': [
'string',
],
'StorageInfo': {
'EbsStorageInfo': {
'ProvisionedThroughput': {
'Enabled': True|False,
'VolumeThroughput': 123
},
'VolumeSize': 123
}
},
'ConnectivityInfo': {
'PublicAccess': {
'Type': 'string'
}
}
},
'CurrentBrokerSoftwareInfo': {
'ConfigurationArn': 'string',
'ConfigurationRevision': 123,
'KafkaVersion': 'string'
},
'ClientAuthentication': {
'Sasl': {
'Scram': {
'Enabled': True|False
},
'Iam': {
'Enabled': True|False
}
},
'Tls': {
'CertificateAuthorityArnList': [
'string',
],
'Enabled': True|False
},
'Unauthenticated': {
'Enabled': True|False
}
},
'EncryptionInfo': {
'EncryptionAtRest': {
'DataVolumeKMSKeyId': 'string'
},
'EncryptionInTransit': {
'ClientBroker': 'TLS'|'TLS_PLAINTEXT'|'PLAINTEXT',
'InCluster': True|False
}
},
'EnhancedMonitoring': 'DEFAULT'|'PER_BROKER'|'PER_TOPIC_PER_BROKER'|'PER_TOPIC_PER_PARTITION',
'OpenMonitoring': {
'Prometheus': {
'JmxExporter': {
'EnabledInBroker': True|False
},
'NodeExporter': {
'EnabledInBroker': True|False
}
}
},
'LoggingInfo': {
'BrokerLogs': {
'CloudWatchLogs': {
'Enabled': True|False,
'LogGroup': 'string'
},
'Firehose': {
'DeliveryStream': 'string',
'Enabled': True|False
},
'S3': {
'Bucket': 'string',
'Enabled': True|False,
'Prefix': 'string'
}
}
},
'NumberOfBrokerNodes': 123,
'ZookeeperConnectString': 'string',
'ZookeeperConnectStringTls': 'string',
'StorageMode': 'LOCAL'|'TIERED'
},
'Serverless': {
'VpcConfigs': [
{
'SubnetIds': [
'string',
],
'SecurityGroupIds': [
'string',
]
},
],
'ClientAuthentication': {
'Sasl': {
'Iam': {
'Enabled': True|False
}
}
}
}
}
}
Response Structure
Successful response.
The cluster information.
The Amazon Resource Name (ARN) that uniquely identifies a cluster operation.
Cluster Type.
The Amazon Resource Name (ARN) that uniquely identifies the cluster.
The name of the cluster.
The time when the cluster was created.
The current version of the MSK cluster.
The state of the cluster. The possible states are ACTIVE, CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and UPDATING.
State Info for the Amazon MSK cluster.
Tags attached to the cluster.
Information about the provisioned cluster.
Information about the brokers.
The distribution of broker nodes across Availability Zones. This is an optional parameter. If you don't specify it, Amazon MSK gives it the value DEFAULT. You can also explicitly set this parameter to the value DEFAULT. No other values are currently allowed.
Amazon MSK distributes the broker nodes evenly across the Availability Zones that correspond to the subnets you provide when you create the cluster.
The list of subnets to connect to in the client virtual private cloud (VPC). AWS creates elastic network interfaces inside these subnets. Client applications use elastic network interfaces to produce and consume data. Client subnets can't occupy the Availability Zone with ID use use1-az3.
The type of Amazon EC2 instances to use for Apache Kafka brokers. The following instance types are allowed: kafka.m5.large, kafka.m5.xlarge, kafka.m5.2xlarge, kafka.m5.4xlarge, kafka.m5.12xlarge, and kafka.m5.24xlarge.
The AWS security groups to associate with the elastic network interfaces in order to specify who can connect to and communicate with the Amazon MSK cluster. If you don't specify a security group, Amazon MSK uses the default security group associated with the VPC.
Contains information about storage volumes attached to MSK broker nodes.
EBS volume information.
EBS volume provisioned throughput information.
Provisioned throughput is enabled or not.
Throughput value of the EBS volumes for the data drive on each kafka broker node in MiB per second.
The size in GiB of the EBS volume for the data drive on each broker node.
Information about the broker access configuration.
Public access control for brokers.
The value DISABLED indicates that public access is turned off. SERVICE_PROVIDED_EIPS indicates that public access is turned on.
Information about the Apache Kafka version deployed on the brokers.
The Amazon Resource Name (ARN) of the configuration used for the cluster. This field isn't visible in this preview release.
The revision of the configuration to use. This field isn't visible in this preview release.
The version of Apache Kafka.
Includes all client authentication information.
Details for ClientAuthentication using SASL.
Details for SASL/SCRAM client authentication.
SASL/SCRAM authentication is enabled or not.
Indicates whether IAM access control is enabled.
Indicates whether IAM access control is enabled.
Details for ClientAuthentication using TLS.
List of ACM Certificate Authority ARNs.
Specifies whether you want to turn on or turn off TLS authentication.
Contains information about unauthenticated traffic to the cluster.
Specifies whether you want to turn on or turn off unauthenticated traffic to your cluster.
Includes all encryption-related information.
The data-volume encryption details.
The ARN of the AWS KMS key for encrypting data at rest. If you don't specify a KMS key, MSK creates one for you and uses it.
The details for encryption in transit.
Indicates the encryption setting for data in transit between clients and brokers. The following are the possible values.
TLS means that client-broker communication is enabled with TLS only.
TLS_PLAINTEXT means that client-broker communication is enabled for both TLS-encrypted, as well as plaintext data.
PLAINTEXT means that client-broker communication is enabled in plaintext only.
The default value is TLS_PLAINTEXT.
When set to true, it indicates that data communication among the broker nodes of the cluster is encrypted. When set to false, the communication happens in plaintext.
The default value is true.
Specifies the level of monitoring for the MSK cluster. The possible values are DEFAULT, PER_BROKER, PER_TOPIC_PER_BROKER, and PER_TOPIC_PER_PARTITION.
The settings for open monitoring.
Prometheus settings.
Indicates whether you want to turn on or turn off the JMX Exporter.
Indicates whether you want to turn on or turn off the JMX Exporter.
Indicates whether you want to turn on or turn off the Node Exporter.
Indicates whether you want to turn on or turn off the Node Exporter.
Log delivery information for the cluster.
The number of broker nodes in the cluster.
The connection string to use to connect to the Apache ZooKeeper cluster.
The connection string to use to connect to the Apache ZooKeeper cluster on a TLS port.
This controls storage mode for supported storage tiers.
Information about the serverless cluster.
The configuration of the Amazon VPCs for the cluster.
The configuration of the Amazon VPCs for the cluster.
The IDs of the subnets associated with the cluster.
The IDs of the security groups associated with the cluster.
Includes all client authentication information.
Details for ClientAuthentication using SASL.
Indicates whether IAM access control is enabled.
Indicates whether IAM access control is enabled.
Exceptions
Kafka.Client.exceptions.NotFoundException
Kafka.Client.exceptions.BadRequestException
Kafka.Client.exceptions.UnauthorizedException
Kafka.Client.exceptions.InternalServerErrorException
Kafka.Client.exceptions.ForbiddenException