IcebergPartitionSpecProperty Struct
The partition spec for an Iceberg table.
| Source | |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_glue as glue } from 'aws-cdk-lib';
const icebergPartitionSpecProperty: glue.CfnTable.IcebergPartitionSpecProperty = {
fields: [{
name: 'name',
sourceId: 123,
transform: 'transform',
// the properties below are optional
fieldId: 123,
}],
// the properties below are optional
specId: 123,
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_glue as glue
iceberg_partition_spec_property = glue.CfnTable.IcebergPartitionSpecProperty(
fields=[glue.CfnTable.IcebergPartitionFieldProperty(
name="name",
source_id=123,
transform="transform",
# the properties below are optional
field_id=123
)],
# the properties below are optional
spec_id=123
)
java
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.glue.*;
IcebergPartitionSpecProperty icebergPartitionSpecProperty = IcebergPartitionSpecProperty.builder()
.fields(List.of(IcebergPartitionFieldProperty.builder()
.name("name")
.sourceId(123)
.transform("transform")
// the properties below are optional
.fieldId(123)
.build()))
// the properties below are optional
.specId(123)
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Glue;
var icebergPartitionSpecProperty = new IcebergPartitionSpecProperty {
Fields = new [] { new IcebergPartitionFieldProperty {
Name = "name",
SourceId = 123,
Transform = "transform",
// the properties below are optional
FieldId = 123
} },
// the properties below are optional
SpecId = 123
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
icebergPartitionSpecProperty := &IcebergPartitionSpecProperty{
Fields: []interface{}{
&IcebergPartitionFieldProperty{
Name: jsii.String("name"),
SourceId: jsii.Number(123),
Transform: jsii.String("transform"),
// the properties below are optional
FieldId: jsii.Number(123),
},
},
// the properties below are optional
SpecId: jsii.Number(123),
}
Properties
fieldsIResolvable | IResolvable | CfnTable.fieldstyping.Union[IResolvable, typing.List[typing.Union[IResolvable, IcebergPartitionFieldProperty]]]fieldsIResolvableFieldsIResolvableFieldsinterface{} required #The partition fields.
specIdoptionalnumberspec_idoptionalint | floatspecIdoptionalNumberSpecIdoptionaldoubleSpecIdoptional*float64 #The spec ID.