Skip to main content

configurations

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

Overview

Nameconfigurations
TypeResource
Idaws.kafka.configurations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
arnstringThe Amazon Resource Name (ARN) of the configuration.
creation_timestring (date-time)The time when the configuration was created.
descriptionstringThe description of the configuration.
kafka_versionsarrayThe versions of Apache Kafka with which you can use this MSK configuration.
latest_revisionobjectLatest revision of the configuration.
namestringThe name of the configuration.
statestringThe state of the configuration. The possible states are ACTIVE, DELETING, and DELETE_FAILED. (ACTIVE, DELETING, DELETE_FAILED)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
describe_configurationselectarn, regionReturns a description of this MSK configuration.
list_configurationsselectregionmaxResults, nextTokenReturns a list of all the MSK configurations in this Region.
create_configurationinsertregion, ServerPropertiesCreates a new MSK configuration.
update_cluster_configurationupdatecluster_arn, region, ConfigurationInfo, CurrentVersionUpdates the cluster with the configuration that is specified in the request body.
update_configurationupdatearn, region, ServerPropertiesUpdates an MSK configuration.
delete_configurationdeletearn, regionDeletes an MSK Configuration.

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
arnstringThe Amazon Resource Name (ARN) that uniquely identifies an MSK configuration.
cluster_arnstringThe Amazon Resource Name (ARN) that uniquely identifies the cluster.
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 this MSK configuration.

SELECT
arn,
creation_time,
description,
kafka_versions,
latest_revision,
name,
state
FROM aws.kafka.configurations
WHERE arn = '{{ arn }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

Creates a new MSK configuration.

INSERT INTO aws.kafka.configurations (
Description,
KafkaVersions,
Name,
ServerProperties,
region
)
SELECT
'{{ Description }}',
'{{ KafkaVersions }}',
'{{ Name }}',
'{{ ServerProperties }}' /* required */,
'{{ region }}'
RETURNING
arn,
creation_time,
latest_revision,
name,
state
;

UPDATE examples

Updates the cluster with the configuration that is specified in the request body.

UPDATE aws.kafka.configurations
SET
ConfigurationInfo = '{{ ConfigurationInfo }}',
CurrentVersion = '{{ CurrentVersion }}'
WHERE
cluster_arn = '{{ cluster_arn }}' --required
AND region = '{{ region }}' --required
AND ConfigurationInfo = '{{ ConfigurationInfo }}' --required
AND CurrentVersion = '{{ CurrentVersion }}' --required
RETURNING
cluster_arn,
cluster_operation_arn;

DELETE examples

Deletes an MSK Configuration.

DELETE FROM aws.kafka.configurations
WHERE arn = '{{ arn }}' --required
AND region = '{{ region }}' --required
;