Skip to main content

cluster_v2s

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

Overview

Namecluster_v2s
TypeResource
Idaws.kafka.cluster_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
describe_cluster_v2selectcluster_arn, regionReturns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.
create_cluster_v2insertregion, ClusterNameCreates a new MSK cluster.

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
cluster_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the cluster.
regionstringAWS region (default: us-east-1)

SELECT examples

Returns a description of the MSK cluster whose Amazon Resource Name (ARN) is specified in the request.

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

INSERT examples

Creates a new MSK cluster.

INSERT INTO aws.kafka.cluster_v2s (
ClusterName,
Tags,
Provisioned,
Serverless,
region
)
SELECT
'{{ ClusterName }}' /* required */,
'{{ Tags }}',
'{{ Provisioned }}',
'{{ Serverless }}',
'{{ region }}'
RETURNING
cluster_arn,
cluster_name,
cluster_type,
state
;