> **Experimental**
>
> `@aws-cdk/aws-s3tables-alpha` is an [**experimental**](https://docs.aws.amazon.com/cdk/api/stability.html) (alpha) package: its API may change in any release, without a major version bump.
# IcebergSortField

Sort field definition for Iceberg table.

- Stability: [Experimental](https://docs.aws.amazon.com/cdk/api/stability.html)
- Source: [`lib/table.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/@aws-cdk/aws-s3tables-alpha/lib/table.ts#L466)

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import * as s3tables_alpha from '@aws-cdk/aws-s3tables-alpha';

declare const icebergTransform: s3tables_alpha.IcebergTransform;
const icebergSortField: s3tables_alpha.IcebergSortField = {
  direction: s3tables_alpha.SortDirection.ASC,
  nullOrder: s3tables_alpha.NullOrder.NULLS_FIRST,
  sourceId: 123,
  transform: icebergTransform,
};
```

Python:

```python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
import aws_cdk.aws_s3tables_alpha as s3tables_alpha

# iceberg_transform: s3tables_alpha.IcebergTransform

iceberg_sort_field = s3tables_alpha.IcebergSortField(
    direction=s3tables_alpha.SortDirection.ASC,
    null_order=s3tables_alpha.NullOrder.NULLS_FIRST,
    source_id=123,
    transform=iceberg_transform
)
```

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.s3tables.alpha.*;

IcebergTransform icebergTransform;

IcebergSortField icebergSortField = IcebergSortField.builder()
        .direction(SortDirection.ASC)
        .nullOrder(NullOrder.NULLS_FIRST)
        .sourceId(123)
        .transform(icebergTransform)
        .build();
```

C# / .NET:

```csharp
// Install: dotnet add package Amazon.CDK.AWS.S3Tables.Alpha
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.S3Tables.Alpha;

IcebergTransform icebergTransform;

var icebergSortField = new IcebergSortField {
    Direction = SortDirection.ASC,
    NullOrder = NullOrder.NULLS_FIRST,
    SourceId = 123,
    Transform = icebergTransform
};
```

Golang:

```go
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws-samples/dummy/awscdkawss3tablesalpha"

var icebergTransform IcebergTransform

icebergSortField := &IcebergSortField{
	Direction: s3tables_alpha.SortDirection_ASC,
	NullOrder: s3tables_alpha.NullOrder_NULLS_FIRST,
	SourceId: jsii.Number(123),
	Transform: icebergTransform,
}
```

## Properties

- `direction`: [SortDirection](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-s3tables-alpha.SortDirection.html) (required) — The sort direction.

- `nullOrder`: [NullOrder](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-s3tables-alpha.NullOrder.html) (required) — The null ordering.

- `sourceId`: number (required) — The source field ID from the schema.

- `transform`: [IcebergTransform](https://docs.aws.amazon.com/cdk/api/v2/docs/@aws-cdk_aws-s3tables-alpha.IcebergTransform.html) (required) — The sort transform function.

  Use `IcebergTransform` static properties for common transforms (e.g., `IcebergTransform.IDENTITY`)
  or methods for parameterized transforms (e.g., `IcebergTransform.bucket(16)`).
