# 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 code
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

```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',
};
```

## 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.
