# CfnProjectProps

Properties for defining a `CfnProject`.

Used as props by: [CfnProject](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_databrew.CfnProject.html)

- Source: Generated at build time

## 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 cfnProjectProps: databrew.CfnProjectProps = {
  datasetName: 'datasetName',
  name: 'name',
  recipeName: 'recipeName',
  roleArn: 'roleArn',

  // the properties below are optional
  sample: {
    type: 'type',

    // the properties below are optional
    size: 123,
  },
  tags: [{
    key: 'key',
    value: 'value',
  }],
};
```

Python:

```python
from aws_cdk import CfnTag
# 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

cfn_project_props = databrew.CfnProjectProps(
    dataset_name="datasetName",
    name="name",
    recipe_name="recipeName",
    role_arn="roleArn",

    # the properties below are optional
    sample=databrew.CfnProject.SampleProperty(
        type="type",

        # the properties below are optional
        size=123
    ),
    tags=[CfnTag(
        key="key",
        value="value"
    )]
)
```

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

CfnProjectProps cfnProjectProps = CfnProjectProps.builder()
        .datasetName("datasetName")
        .name("name")
        .recipeName("recipeName")
        .roleArn("roleArn")

        // the properties below are optional
        .sample(SampleProperty.builder()
                .type("type")

                // the properties below are optional
                .size(123)
                .build())
        .tags(List.of(CfnTag.builder()
                .key("key")
                .value("value")
                .build()))
        .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 cfnProjectProps = new CfnProjectProps {
    DatasetName = "datasetName",
    Name = "name",
    RecipeName = "recipeName",
    RoleArn = "roleArn",

    // the properties below are optional
    Sample = new SampleProperty {
        Type = "type",

        // the properties below are optional
        Size = 123
    },
    Tags = new [] { new CfnTag {
        Key = "key",
        Value = "value"
    } }
};
```

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"

cfnProjectProps := &CfnProjectProps{
	DatasetName: jsii.String("datasetName"),
	Name: jsii.String("name"),
	RecipeName: jsii.String("recipeName"),
	RoleArn: jsii.String("roleArn"),

	// the properties below are optional
	Sample: &SampleProperty{
		Type: jsii.String("type"),

		// the properties below are optional
		Size: jsii.Number(123),
	},
	Tags: []CfnTag{
		&CfnTag{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
}
```

## Properties

- `datasetName`: string (required) — The dataset that the project is to act upon.

- `name`: string (required) — The unique name of a project.

- `recipeName`: string (required) — The name of a recipe that will be developed during a project session.

- `roleArn`: string (required) — The Amazon Resource Name (ARN) of the role that will be assumed for this project.

- `sample`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnProject.SampleProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_databrew.CfnProject.SampleProperty.html) — The sample size and sampling type to apply to the data.

  If this parameter isn't specified, then the sample consists of the first 500 rows from the dataset.

- `tags`: [CfnTag](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.CfnTag.html)[] — Metadata tags that have been applied to the project.
