Skip to main content

clusters_v2s

Creates, updates, deletes, gets or lists a clusters_v2s resource.

Overview

Nameclusters_v2s
TypeResource
Idaws.kafka.clusters_v2s

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
active_operation_arnstringThe Amazon Resource Name (ARN) that uniquely identifies a cluster operation.
cluster_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the cluster.
cluster_namestringThe name of the cluster.
cluster_typestringCluster Type. (PROVISIONED, SERVERLESS)
creation_timestring (date-time)The time when the cluster was created.
current_versionstringThe current version of the MSK cluster.
provisionedobjectInformation about the provisioned cluster.
serverlessobjectInformation about the serverless cluster.
statestringThe state of the cluster. The possible states are ACTIVE, CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, and UPDATING. (ACTIVE, CREATING, DELETING, FAILED, HEALING, MAINTENANCE, REBOOTING_BROKER, UPDATING)
state_infoobjectState Info for the Amazon MSK cluster.
tagsobjectTags attached to the cluster.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_clusters_v2selectregionclusterNameFilter, clusterTypeFilter, maxResults, nextTokenReturns a list of all the MSK clusters in the current Region.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
regionstringAWS region (default: us-east-1)
clusterNameFilterstringSpecify a prefix of the names of the clusters that you want to list. The service lists all the clusters whose names start with this prefix.
clusterTypeFilterstringSpecify either PROVISIONED or SERVERLESS.
maxResultsintegerThe maximum number of results to return in the response. If there are more results, the response includes a NextToken parameter.
nextTokenstringThe 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.

SELECT examples

Returns a list of all the MSK clusters in the current Region.

SELECT
active_operation_arn,
cluster_arn,
cluster_name,
cluster_type,
creation_time,
current_version,
provisioned,
serverless,
state,
state_info,
tags
FROM aws.kafka.clusters_v2s
WHERE region = '{{ region }}' -- required
AND clusterNameFilter = '{{ clusterNameFilter }}'
AND clusterTypeFilter = '{{ clusterTypeFilter }}'
AND maxResults = '{{ maxResults }}'
AND nextToken = '{{ nextToken }}'
;