interface DatePartitionProjectionConfigurationProps
| Language | Type name |
|---|---|
.NET | Amazon.CDK.AWS.Glue.Alpha.DatePartitionProjectionConfigurationProps |
Go | github.com/aws/aws-cdk-go/awscdkgluealpha/v2#DatePartitionProjectionConfigurationProps |
Java | software.amazon.awscdk.services.glue.alpha.DatePartitionProjectionConfigurationProps |
Python | aws_cdk.aws_glue_alpha.DatePartitionProjectionConfigurationProps |
TypeScript (source) | @aws-cdk/aws-glue-alpha » DatePartitionProjectionConfigurationProps |
⚠️ Deprecated: undefined
Properties for DATE partition projection configuration.
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: '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: { interval: 1, intervalUnit: glue.DateIntervalUnit.DAYS },
}),
},
});
Properties
| Name | Type | Description |
|---|---|---|
| format | string | Date format for partition values. |
| max | string | End date for the partition range (inclusive). |
| min | string | Start date for the partition range (inclusive). |
| step? | Date | Interval step (interval + intervalUnit) between partition values. |
format
⚠️ Deprecated: undefined
Type:
string
Date format for partition values.
Uses Java SimpleDateFormat patterns.
See also: https://docs.oracle.com/javase/8/docs/api/java/text/SimpleDateFormat.html
max
⚠️ Deprecated: undefined
Type:
string
End date for the partition range (inclusive).
Can be either:
- Fixed date in the format specified by
formatproperty - Relative date using NOW syntax
Same format constraints as min.
min
⚠️ Deprecated: undefined
Type:
string
Start date for the partition range (inclusive).
Can be either:
- Fixed date in the format specified by
formatproperty (e.g., '2020-01-01' for format 'yyyy-MM-dd') - Relative date using NOW syntax (e.g., 'NOW', 'NOW-3YEARS', 'NOW+1MONTH')
step?
⚠️ Deprecated: undefined
Type:
Date
(optional, default: Athena's default step for the format's precision; required when format is sub-day precision)
Interval step (interval + intervalUnit) between partition values.
The two are supplied together, so a partial step cannot be expressed.
Required when format carries sub-day precision — a field finer than a
day, such as hours or AM/PM; at day or coarser precision Athena defaults
the step, so it may be omitted.

.NET
Go
Java
Python
TypeScript (