# JobSampleProperty

A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run.

If a `JobSample` value isn't provided, the default is used. The default value is CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter.

- 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 jobSampleProperty: databrew.CfnJob.JobSampleProperty = {
  mode: 'mode',
  size: 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_databrew as databrew

job_sample_property = databrew.CfnJob.JobSampleProperty(
    mode="mode",
    size=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.databrew.*;

JobSampleProperty jobSampleProperty = JobSampleProperty.builder()
        .mode("mode")
        .size(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.DataBrew;

var jobSampleProperty = new JobSampleProperty {
    Mode = "mode",
    Size = 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"

jobSampleProperty := &JobSampleProperty{
	Mode: jsii.String("mode"),
	Size: jsii.Number(123),
}
```

## Properties

- `mode`: string — A value that determines whether the profile job is run on the entire dataset or a specified number of rows.

  This value must be one of the following:

  - FULL_DATASET - The profile job is run on the entire dataset.
  - CUSTOM_ROWS - The profile job is run on the number of rows specified in the `Size` parameter.

- `size`: number — The `Size` parameter is only required when the mode is CUSTOM_ROWS.

  The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.

  Long.MAX_VALUE = 9223372036854775807
