Skip to content
v2.274.0

CfnTypeProps Struct ​

Properties for defining a CfnType.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_cassandra as cassandra } from 'aws-cdk-lib';
const cfnTypeProps: cassandra.CfnTypeProps = {
  fields: [{
    fieldName: 'fieldName',
    fieldType: 'fieldType',
  }],
  keyspaceName: 'keyspaceName',
  typeName: 'typeName',
};

Properties ​

fieldsIResolvable | IResolvable | CfnType.FieldProperty[]fieldstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, FieldProperty]]]fieldsIResolvableFieldsIResolvableFieldsinterface{}required#
A list of fields that define this type.
keyspaceNamestringkeyspace_namestrkeyspaceNameStringKeyspaceNamestringKeyspaceName*stringrequired#
The name of the keyspace to create the type in.

The keyspace must already exist.

typeNamestringtype_namestrtypeNameStringTypeNamestringTypeName*stringrequired#
The name of the user-defined type.
notes

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 in the Amazon Keyspaces Developer Guide .