Skip to content
v2.278.0

IcebergTableInputProperty Struct ​

Specifies the Iceberg table configuration.

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 icebergTableInputProperty: glue.CfnTable.IcebergTableInputProperty = {
  location: 'location',
  schema: {
    fields: [{
      id: 123,
      name: 'name',
      required: false,
      type: 'type',

      // the properties below are optional
      doc: 'doc',
    }],

    // the properties below are optional
    identifierFieldIds: [123],
    schemaId: 123,
    type: 'type',
  },

  // the properties below are optional
  partitionSpec: {
    fields: [{
      name: 'name',
      sourceId: 123,
      transform: 'transform',

      // the properties below are optional
      fieldId: 123,
    }],

    // the properties below are optional
    specId: 123,
  },
  properties: {
    propertiesKey: 'properties',
  },
  writeOrder: {
    fields: [{
      direction: 'direction',
      nullOrder: 'nullOrder',
      sourceId: 123,
      transform: 'transform',
    }],
    orderId: 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_table_input_property = glue.CfnTable.IcebergTableInputProperty(
    location="location",
    schema=glue.CfnTable.IcebergSchemaProperty(
        fields=[glue.CfnTable.IcebergStructFieldProperty(
            id=123,
            name="name",
            required=False,
            type="type",

            # the properties below are optional
            doc="doc"
        )],

        # the properties below are optional
        identifier_field_ids=[123],
        schema_id=123,
        type="type"
    ),

    # the properties below are optional
    partition_spec=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
    ),
    properties={
        "properties_key": "properties"
    },
    write_order=glue.CfnTable.IcebergSortOrderProperty(
        fields=[glue.CfnTable.IcebergSortFieldProperty(
            direction="direction",
            null_order="nullOrder",
            source_id=123,
            transform="transform"
        )],
        order_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.*;

IcebergTableInputProperty icebergTableInputProperty = IcebergTableInputProperty.builder()
        .location("location")
        .schema(IcebergSchemaProperty.builder()
                .fields(List.of(IcebergStructFieldProperty.builder()
                        .id(123)
                        .name("name")
                        .required(false)
                        .type("type")

                        // the properties below are optional
                        .doc("doc")
                        .build()))

                // the properties below are optional
                .identifierFieldIds(List.of(123))
                .schemaId(123)
                .type("type")
                .build())

        // the properties below are optional
        .partitionSpec(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())
        .properties(Map.of(
                "propertiesKey", "properties"))
        .writeOrder(IcebergSortOrderProperty.builder()
                .fields(List.of(IcebergSortFieldProperty.builder()
                        .direction("direction")
                        .nullOrder("nullOrder")
                        .sourceId(123)
                        .transform("transform")
                        .build()))
                .orderId(123)
                .build())
        .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 icebergTableInputProperty = new IcebergTableInputProperty {
    Location = "location",
    Schema = new IcebergSchemaProperty {
        Fields = new [] { new IcebergStructFieldProperty {
            Id = 123,
            Name = "name",
            Required = false,
            Type = "type",

            // the properties below are optional
            Doc = "doc"
        } },

        // the properties below are optional
        IdentifierFieldIds = new [] { 123 },
        SchemaId = 123,
        Type = "type"
    },

    // the properties below are optional
    PartitionSpec = 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
    },
    Properties = new Dictionary<string, string> {
        { "propertiesKey", "properties" }
    },
    WriteOrder = new IcebergSortOrderProperty {
        Fields = new [] { new IcebergSortFieldProperty {
            Direction = "direction",
            NullOrder = "nullOrder",
            SourceId = 123,
            Transform = "transform"
        } },
        OrderId = 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"

icebergTableInputProperty := &IcebergTableInputProperty{
	Location: jsii.String("location"),
	Schema: &IcebergSchemaProperty{
		Fields: []interface{}{
			&IcebergStructFieldProperty{
				Id: jsii.Number(123),
				Name: jsii.String("name"),
				Required: jsii.Boolean(false),
				Type: jsii.String("type"),

				// the properties below are optional
				Doc: jsii.String("doc"),
			},
		},

		// the properties below are optional
		IdentifierFieldIds: []interface{}{
			jsii.Number(123),
		},
		SchemaId: jsii.Number(123),
		Type: jsii.String("type"),
	},

	// the properties below are optional
	PartitionSpec: &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: map[string]*string{
		"propertiesKey": jsii.String("properties"),
	},
	WriteOrder: &IcebergSortOrderProperty{
		Fields: []interface{}{
			&IcebergSortFieldProperty{
				Direction: jsii.String("direction"),
				NullOrder: jsii.String("nullOrder"),
				SourceId: jsii.Number(123),
				Transform: jsii.String("transform"),
			},
		},
		OrderId: jsii.Number(123),
	},
}

Properties ​

locationstringlocationstrlocationStringLocationstringLocation*string required #
The location of the Iceberg table.
partitionSpecoptionalIResolvable | CfnTable.IcebergPartitionSpecPropertypartition_specoptionaltyping.Union[IResolvable, IcebergPartitionSpecProperty]partitionSpecoptionalIResolvablePartitionSpecoptionalIResolvablePartitionSpecoptionalinterface{} #
The partition spec for an Iceberg table.
propertiesoptionalIResolvable | { [key: string]: string }propertiesoptionaltyping.Union[IResolvable, typing.Mapping[str, str]]propertiesoptionalIResolvablePropertiesoptionalIResolvablePropertiesoptionalinterface{} #
The properties for the Iceberg table.
schemaIResolvable | CfnTable.IcebergSchemaPropertyschematyping.Union[IResolvable, IcebergSchemaProperty]schemaIResolvableSchemaIResolvableSchemainterface{} required #
The schema for an Iceberg table.
writeOrderoptionalIResolvable | CfnTable.IcebergSortOrderPropertywrite_orderoptionaltyping.Union[IResolvable, IcebergSortOrderProperty]writeOrderoptionalIResolvableWriteOrderoptionalIResolvableWriteOrderoptionalinterface{} #
The sort order for an Iceberg table.