Skip to content
v2.278.0

OpenTableFormatInputProperty Struct ​

Specifies an OpenTableFormatInput structure when creating an open format table.

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 openTableFormatInputProperty: glue.CfnTable.OpenTableFormatInputProperty = {
  icebergInput: {
    icebergTableInput: {
      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,
      },
    },
    metadataOperation: 'metadataOperation',
    version: 'version',
  },
};
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

open_table_format_input_property = glue.CfnTable.OpenTableFormatInputProperty(
    iceberg_input=glue.CfnTable.IcebergInputProperty(
        iceberg_table_input=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
            )
        ),
        metadata_operation="metadataOperation",
        version="version"
    )
)
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.*;

OpenTableFormatInputProperty openTableFormatInputProperty = OpenTableFormatInputProperty.builder()
        .icebergInput(IcebergInputProperty.builder()
                .icebergTableInput(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())
                .metadataOperation("metadataOperation")
                .version("version")
                .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 openTableFormatInputProperty = new OpenTableFormatInputProperty {
    IcebergInput = new IcebergInputProperty {
        IcebergTableInput = 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
            }
        },
        MetadataOperation = "metadataOperation",
        Version = "version"
    }
};
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"

openTableFormatInputProperty := &OpenTableFormatInputProperty{
	IcebergInput: &IcebergInputProperty{
		IcebergTableInput: &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),
			},
		},
		MetadataOperation: jsii.String("metadataOperation"),
		Version: jsii.String("version"),
	},
}

Properties ​

icebergInputoptionalIResolvable | CfnTable.IcebergInputPropertyiceberg_inputoptionaltyping.Union[IResolvable, IcebergInputProperty]icebergInputoptionalIResolvableIcebergInputoptionalIResolvableIcebergInputoptionalinterface{} #
Specifies an `IcebergInput` structure that defines an Apache Iceberg metadata table.