AWS Fundamentals Logo
AWS Fundamentals
L1 ConstructAWS::Cassandra::Type

CfnType

The `CreateType` operation creates a new user-defined type in the specified keyspace. To configure the required permissions, see [Permissions to create a UDT](https://docs.aws.amazon.com/keyspaces/latest/devguide/configure-udt-permissions.html#udt-permissions-create) in the *Amazon Keyspaces Developer Guide* . For more information, see [User-defined types (UDTs)](https://docs.aws.amazon.com/keyspaces/latest/devguide/udts.html) in the *Amazon Keyspaces Developer Guide* .

Import

import { CfnType } from 'aws-cdk-lib/aws-cassandra';

Or use the module namespace:

import * as cassandra from 'aws-cdk-lib/aws-cassandra';
// cassandra.CfnType

Properties

Configuration passed to the constructor as CfnTypeProps.

fieldsRequired
IResolvable | IResolvable | FieldProperty[]

A list of fields that define this type.

keyspaceNameRequired
string

The name of the keyspace to create the type in. The keyspace must already exist.

typeNameRequired
string

The name of the user-defined type. UDT names must contain 48 characters or less, must begin with an alphabetic character, and can only contain alpha-numeric characters and underscores. Amazon Keyspaces converts upper case characters automatically into lower case characters. For more information, see [Create a user-defined type (UDT) in Amazon Keyspaces](https://docs.aws.amazon.com/keyspaces/latest/devguide/keyspaces-create-udt.html) in the *Amazon Keyspaces Developer Guide* .

CloudFormation Resource

This L1 construct maps directly to the following CloudFormation resource type.

Learn AWS the Practical Way

Our bi-weekly newsletter teaches hands-on AWS fundamentals. No certification fluff - just practical knowledge.

Subscribe to Newsletter

Quick Facts

LevelL1 (CloudFormation)
Moduleaws-cassandra
CFN TypeAWS::Cassandra::Type
Properties3

Related Constructs

External Links