Skip to content
v2.278.0

CfnProjectProps Struct ​

Properties for defining a CfnProject.

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 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
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
// 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();
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"
    } }
};
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 ​

datasetNamestringdataset_namestrdatasetNameStringDatasetNamestringDatasetName*string required #
The dataset that the project is to act upon.
namestringnamestrnameStringNamestringName*string required #
The unique name of a project.
recipeNamestringrecipe_namestrrecipeNameStringRecipeNamestringRecipeName*string required #
The name of a recipe that will be developed during a project session.
roleArnstringrole_arnstrroleArnStringRoleArnstringRoleArn*string required #
The Amazon Resource Name (ARN) of the role that will be assumed for this project.
sampleoptionalIResolvable | CfnProject.SamplePropertysampleoptionaltyping.Union[IResolvable, SampleProperty]sampleoptionalIResolvableSampleoptionalIResolvableSampleoptionalinterface{} #
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.

tagsoptionalCfnTag[]tagsoptionaltyping.List[CfnTag]tagsoptionalList<CfnTag>TagsoptionalCfnTag[]Tagsoptional*[]CfnTag #
Metadata tags that have been applied to the project.