Skip to main content

serverless_clusters

Creates, updates, deletes or gets a serverless_cluster resource or lists serverless_clusters in a region

Overview

Nameserverless_clusters
TypeResource
DescriptionResource Type definition for AWS::MSK::ServerlessCluster
Idawscc.msk.serverless_clusters

Fields

NameDatatypeDescription
arnstring
cluster_namestring
vpc_configsarray
client_authenticationobject
tagsobjectA key-value pair to associate with a resource.
regionstringAWS region.

For more information, see AWS::MSK::ServerlessCluster.

Methods

NameResourceAccessible byRequired Params
create_resourceserverless_clustersINSERTClusterName, VpcConfigs, ClientAuthentication, region
delete_resourceserverless_clustersDELETEIdentifier, region
list_resourcesserverless_clusters_list_onlySELECTregion
get_resourceserverless_clustersSELECTIdentifier, region

SELECT examples

Gets all properties from an individual serverless_cluster.

SELECT
region,
arn,
cluster_name,
vpc_configs,
client_authentication,
tags
FROM awscc.msk.serverless_clusters
WHERE
region = '{{ region }}' AND
Identifier = '{{ arn }}';

INSERT example

Use the following StackQL query and manifest file to create a new serverless_cluster resource, using stack-deploy.

/*+ create */
INSERT INTO awscc.msk.serverless_clusters (
ClusterName,
VpcConfigs,
ClientAuthentication,
region
)
SELECT
'{{ cluster_name }}',
'{{ vpc_configs }}',
'{{ client_authentication }}',
'{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

DELETE example

/*+ delete */
DELETE FROM awscc.msk.serverless_clusters
WHERE
Identifier = '{{ arn }}' AND
region = '{{ region }}'
RETURNING
ErrorCode,
EventTime,
Identifier,
Operation,
OperationStatus,
RequestToken,
ResourceModel,
RetryAfter,
StatusMessage,
TypeName
;

Additional Parameters

Mutable resources in the Cloud Control provider support additional optional parameters which can be supplied with INSERT, UPDATE, or DELETE operations. These include:

ParameterDescription
ClientToken
A unique identifier to ensure the idempotency of the resource request.This allows the provider to accurately distinguish between retries and new requests.
A client token is valid for 36 hours once used.
After that, a resource request with the same client token is treated as a new request.
If you do not specify a client token, one is generated for inclusion in the request.
RoleArn
The ARN of the IAM role used to perform this resource operation.The role specified must have the permissions required for this operation.
If you do not specify a role, a temporary session is created using your AWS user credentials.
TypeVersionId
For private resource types, the type version to use in this resource operation.If you do not specify a resource version, the default version is used.

Permissions

To operate on the serverless_clusters resource, the following permissions are required:

kafka:CreateClusterV2,
kafka:TagResource,
kafka:DescribeClusterV2,
ec2:CreateVpcEndpoint,
ec2:CreateTags,
ec2:DescribeVpcAttribute,
ec2:DescribeSubnets,
ec2:DescribeVpcEndpoints,
ec2:DescribeVpcs,
ec2:DescribeSecurityGroups