class Type
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.Type |
Go | github.com/aws/aws-cdk-go/awscdk/v2/awsglue#Type |
Java | software.amazon.awscdk.services.glue.Type |
Python | aws_cdk.aws_glue.Type |
TypeScript (source) | aws-cdk-lib » aws_glue » Type |
The type of a column in a table schema.
Instances are opaque: obtain one from a Schema factory (for example
Schema.STRING, Schema.decimal(...), Schema.array(...)) or, for a type the
Schema factories don't model, from Schema.custom(...).
Example
declare const myDatabase: glue.Database;
new glue.S3Table(this, 'MyTable', {
database: myDatabase,
columns: [{
name: 'data',
type: glue.Schema.STRING,
}],
partitionKeys: [{
name: 'date',
type: glue.Schema.STRING,
}],
dataFormat: glue.DataFormat.JSON,
partitionProjection: {
date: glue.PartitionProjectionConfiguration.date({
min: 'NOW-3YEARS',
max: 'NOW',
format: 'yyyy-MM-dd',
}),
},
});
Properties
| Name | Type | Description |
|---|---|---|
| input | string | Glue InputString for this type. |
| is | boolean | Indicates whether this type is a primitive data type. |
inputString
Type:
string
Glue InputString for this type.
isPrimitive
Type:
boolean
Indicates whether this type is a primitive data type.

.NET
Go
Java
Python
TypeScript (