Skip to main content

types

Creates, updates, deletes or gets a type resource or lists types in a region

Overview

Nametypes
TypeResource
DescriptionResource schema for AWS::Cassandra::Type
Idaws.cassandra.types

Fields

NameDatatypeDescription
keyspace_namestringName of the Keyspace which contains the User-Defined Type.
type_namestringName of the User-Defined Type.
fieldsarrayField definitions of the User-Defined Type
direct_referring_tablesarrayList of Tables that directly reference the User-Defined Type in their columns.
direct_parent_typesarrayList of parent User-Defined Types that directly reference the User-Defined Type in their fields.
max_nesting_depthintegerMaximum nesting depth of the User-Defined Type across the field types.
last_modified_timestampnumberTimestamp of the last time the User-Defined Type's meta data was modified.
keyspace_arnstringARN of the Keyspace which contains the User-Defined Type.
regionstringAWS region.

For more information, see AWS::Cassandra::Type.

Methods

NameAccessible byRequired Params
create_resourceINSERTKeyspaceName, TypeName, Fields, region
delete_resourceDELETEdata__Identifier, region
list_resourcesSELECTregion
get_resourceSELECTdata__Identifier, region

SELECT examples

Gets all types in a region.

SELECT
region,
keyspace_name,
type_name,
fields,
direct_referring_tables,
direct_parent_types,
max_nesting_depth,
last_modified_timestamp,
keyspace_arn
FROM aws.cassandra.types
WHERE region = 'us-east-1';

Gets all properties from an individual type.

SELECT
region,
keyspace_name,
type_name,
fields,
direct_referring_tables,
direct_parent_types,
max_nesting_depth,
last_modified_timestamp,
keyspace_arn
FROM aws.cassandra.types
WHERE region = 'us-east-1' AND data__Identifier = '<KeyspaceName>|<TypeName>';

INSERT example

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

/*+ create */
INSERT INTO aws.cassandra.types (
KeyspaceName,
TypeName,
Fields,
region
)
SELECT
'{{ KeyspaceName }}',
'{{ TypeName }}',
'{{ Fields }}',
'{{ region }}';

DELETE example

/*+ delete */
DELETE FROM aws.cassandra.types
WHERE data__Identifier = '<KeyspaceName|TypeName>'
AND region = 'us-east-1';

Permissions

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

Create

cassandra:Create,
cassandra:Select

Read

cassandra:Select

Delete

cassandra:Drop,
cassandra:Select

List

cassandra:Select