Skip to main content

cluster_operations

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

Overview

Namecluster_operations
TypeResource
Idaws.kafka.cluster_operations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
client_request_idstringThe ID of the API request that triggered this operation.
cluster_arnstringARN of the cluster.
creation_timestring (date-time)The time that the operation was created.
end_timestring (date-time)The time at which the operation finished.
error_infoobjectDescribes the error if the operation fails.
operation_arnstringARN of the cluster operation.
operation_statestringState of the cluster operation.
operation_stepsarraySteps completed during the operation.
operation_typestringType of the cluster operation.
source_cluster_infoobjectInformation about cluster attributes before a cluster is updated.
target_cluster_infoobjectInformation about cluster attributes after a cluster is updated.
vpc_connection_infoobjectDescription of the VPC connection for CreateVpcConnection and DeleteVpcConnection operations.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_cluster_operationselectcluster_operation_arn, regionReturns a description of the cluster operation specified by the ARN.
list_cluster_operationsselectcluster_arn, regionmaxResults, nextTokenReturns a list of all the operations that have been performed on the specified 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.
cluster_operation_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the MSK cluster operation.
regionstringAWS region (default: us-east-1)
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 description of the cluster operation specified by the ARN.

SELECT
client_request_id,
cluster_arn,
creation_time,
end_time,
error_info,
operation_arn,
operation_state,
operation_steps,
operation_type,
source_cluster_info,
target_cluster_info,
vpc_connection_info
FROM aws.kafka.cluster_operations
WHERE cluster_operation_arn = '{{ cluster_operation_arn }}' -- required
AND region = '{{ region }}' -- required
;