# IcebergSortOrderProperty

The sort order for an Iceberg table.

- Source: Generated at build time
- Type last changed: v2.253.0 · 6 May 2026

## Example

TypeScript:

```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 icebergSortOrderProperty: glue.CfnTable.IcebergSortOrderProperty = {
  fields: [{
    direction: 'direction',
    nullOrder: 'nullOrder',
    sourceId: 123,
    transform: 'transform',
  }],
  orderId: 123,
};
```

Python:

```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_sort_order_property = glue.CfnTable.IcebergSortOrderProperty(
    fields=[glue.CfnTable.IcebergSortFieldProperty(
        direction="direction",
        null_order="nullOrder",
        source_id=123,
        transform="transform"
    )],
    order_id=123
)
```

Java:

```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.*;

IcebergSortOrderProperty icebergSortOrderProperty = IcebergSortOrderProperty.builder()
        .fields(List.of(IcebergSortFieldProperty.builder()
                .direction("direction")
                .nullOrder("nullOrder")
                .sourceId(123)
                .transform("transform")
                .build()))
        .orderId(123)
        .build();
```

C# / .NET:

```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 icebergSortOrderProperty = new IcebergSortOrderProperty {
    Fields = new [] { new IcebergSortFieldProperty {
        Direction = "direction",
        NullOrder = "nullOrder",
        SourceId = 123,
        Transform = "transform"
    } },
    OrderId = 123
};
```

Golang:

```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"

icebergSortOrderProperty := &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

- `fields`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTable.IcebergSortFieldProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_glue.CfnTable.IcebergSortFieldProperty.html)[] (required) — The sort fields.

- `orderId`: number (required) — The order ID.
