# FilesLimitProperty

Represents a limit imposed on number of Amazon S3 files that should be selected for a dataset from a connected Amazon S3 path.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_databrew as databrew } from 'aws-cdk-lib';
const filesLimitProperty: databrew.CfnDataset.FilesLimitProperty = {
  maxFiles: 123,

  // the properties below are optional
  order: 'order',
  orderedBy: 'orderedBy',
};
```

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_databrew as databrew

files_limit_property = databrew.CfnDataset.FilesLimitProperty(
    max_files=123,

    # the properties below are optional
    order="order",
    ordered_by="orderedBy"
)
```

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

FilesLimitProperty filesLimitProperty = FilesLimitProperty.builder()
        .maxFiles(123)

        // the properties below are optional
        .order("order")
        .orderedBy("orderedBy")
        .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.DataBrew;

var filesLimitProperty = new FilesLimitProperty {
    MaxFiles = 123,

    // the properties below are optional
    Order = "order",
    OrderedBy = "orderedBy"
};
```

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"

filesLimitProperty := &FilesLimitProperty{
	MaxFiles: jsii.Number(123),

	// the properties below are optional
	Order: jsii.String("order"),
	OrderedBy: jsii.String("orderedBy"),
}
```

## Properties

- `maxFiles`: number (required) — The number of Amazon S3 files to select.

- `order`: string — A criteria to use for Amazon S3 files sorting before their selection.

  By default uses DESCENDING order, i.e. most recent files are selected first. Anotherpossible value is ASCENDING.

- `orderedBy`: string — A criteria to use for Amazon S3 files sorting before their selection.

  By default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only allowed value.
