Type

class aws_cdk.aws_glue.Type(*, input_string, is_primitive)

Bases: object

(experimental) Represents a type of a column in a table schema.

Parameters:
  • input_string (str) – (experimental) Glue InputString for this type.

  • is_primitive (bool) – (experimental) Indicates whether this type is a primitive data type.

Stability:

experimental

ExampleMetadata:

infused

Example:

# my_database: glue.Database

glue.Table(self, "MyTable",
    database=my_database,
    table_name="my_table",
    columns=[glue.Column(
        name="col1",
        type=glue.Schema.STRING
    )],
    partition_keys=[glue.Column(
        name="year",
        type=glue.Schema.SMALL_INT
    ), glue.Column(
        name="month",
        type=glue.Schema.SMALL_INT
    )],
    data_format=glue.DataFormat.JSON
)

Attributes

input_string

(experimental) Glue InputString for this type.

Stability:

experimental

is_primitive

(experimental) Indicates whether this type is a primitive data type.

Stability:

experimental