Skip to content
v2.278.0

OrderProperty Struct ​

Specifies the sort order of a sorted column.

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 orderProperty: glue.CfnPartition.OrderProperty = {
  column: 'column',

  // the properties below are optional
  sortOrder: 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

order_property = glue.CfnPartition.OrderProperty(
    column="column",

    # the properties below are optional
    sort_order=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.*;

OrderProperty orderProperty = OrderProperty.builder()
        .column("column")

        // the properties below are optional
        .sortOrder(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 orderProperty = new OrderProperty {
    Column = "column",

    // the properties below are optional
    SortOrder = 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"

orderProperty := &OrderProperty{
	Column: jsii.String("column"),

	// the properties below are optional
	SortOrder: jsii.Number(123),
}

Properties ​

columnstringcolumnstrcolumnStringColumnstringColumn*string required #
The name of the column.
sortOrderoptionalnumbersort_orderoptionalint | floatsortOrderoptionalNumberSortOrderoptionaldoubleSortOrderoptional*float64 #
Indicates that the column is sorted in ascending order ( `== 1` ), or in descending order ( `==0` ).