DateIntervalUnit

class aws_cdk.aws_glue_alpha.DateIntervalUnit(*values)

Bases: Enum

(deprecated) Date interval unit for partition projection.

See:

https://docs.aws.amazon.com/athena/latest/ug/partition-projection-supported-types.html#partition-projection-date-type

Stability:

deprecated

ExampleMetadata:

infused

Example:

# my_database: glue.Database

glue.S3Table(self, "MyTable",
    database=my_database,
    columns=[glue.Column(
        name="data",
        type=glue.Schema.STRING
    )],
    partition_keys=[glue.Column(
        name="date",
        type=glue.Schema.STRING
    )],
    data_format=glue.DataFormat.JSON,
    partition_projection={
        "date": glue.PartitionProjectionConfiguration.date(
            min="2020-01-01",
            max="2023-12-31",
            format="yyyy-MM-dd",
            # `step` bundles interval + unit (supply both or neither). Optional at day
            # precision or coarser; required when the format is sub-day (e.g. hours).
            step=glue.DateProjectionStep(interval=1, interval_unit=glue.DateIntervalUnit.DAYS)
        )
    }
)

Attributes

DAYS

(deprecated) Day interval (default).

Stability:

deprecated

HOURS

(deprecated) Hour interval.

Stability:

deprecated

MINUTES

(deprecated) Minute interval.

Stability:

deprecated

MONTHS

(deprecated) Month interval.

Stability:

deprecated

SECONDS

(deprecated) Second interval.

Stability:

deprecated

WEEKS

(deprecated) Week interval.

Stability:

deprecated

YEARS

(deprecated) Year interval.

Stability:

deprecated