Class CfnDataset
java.lang.Object
software.amazon.jsii.JsiiObject
software.constructs.Construct
software.amazon.awscdk.CfnElement
software.amazon.awscdk.CfnRefElement
software.amazon.awscdk.CfnResource
software.amazon.awscdk.services.databrew.CfnDataset
- All Implemented Interfaces:
IInspectable,ITaggable,IDatasetRef,software.amazon.jsii.JsiiSerializable,software.constructs.IConstruct,software.constructs.IDependable
@Generated(value="jsii-pacmak/1.116.0 (build 0eddcff)",
date="2025-10-29T11:15:35.877Z")
@Stability(Stable)
public class CfnDataset
extends CfnResource
implements IInspectable, IDatasetRef, ITaggable
Specifies a new DataBrew dataset.
Example:
// 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.*;
CfnDataset cfnDataset = CfnDataset.Builder.create(this, "MyCfnDataset")
.input(InputProperty.builder()
.databaseInputDefinition(DatabaseInputDefinitionProperty.builder()
.glueConnectionName("glueConnectionName")
// the properties below are optional
.databaseTableName("databaseTableName")
.queryString("queryString")
.tempDirectory(S3LocationProperty.builder()
.bucket("bucket")
// the properties below are optional
.bucketOwner("bucketOwner")
.key("key")
.build())
.build())
.dataCatalogInputDefinition(DataCatalogInputDefinitionProperty.builder()
.catalogId("catalogId")
.databaseName("databaseName")
.tableName("tableName")
.tempDirectory(S3LocationProperty.builder()
.bucket("bucket")
// the properties below are optional
.bucketOwner("bucketOwner")
.key("key")
.build())
.build())
.metadata(MetadataProperty.builder()
.sourceArn("sourceArn")
.build())
.s3InputDefinition(S3LocationProperty.builder()
.bucket("bucket")
// the properties below are optional
.bucketOwner("bucketOwner")
.key("key")
.build())
.build())
.name("name")
// the properties below are optional
.format("format")
.formatOptions(FormatOptionsProperty.builder()
.csv(CsvOptionsProperty.builder()
.delimiter("delimiter")
.headerRow(false)
.build())
.excel(ExcelOptionsProperty.builder()
.headerRow(false)
.sheetIndexes(List.of(123))
.sheetNames(List.of("sheetNames"))
.build())
.json(JsonOptionsProperty.builder()
.multiLine(false)
.build())
.build())
.pathOptions(PathOptionsProperty.builder()
.filesLimit(FilesLimitProperty.builder()
.maxFiles(123)
// the properties below are optional
.order("order")
.orderedBy("orderedBy")
.build())
.lastModifiedDateCondition(FilterExpressionProperty.builder()
.expression("expression")
.valuesMap(List.of(FilterValueProperty.builder()
.value("value")
.valueReference("valueReference")
.build()))
.build())
.parameters(List.of(PathParameterProperty.builder()
.datasetParameter(DatasetParameterProperty.builder()
.name("name")
.type("type")
// the properties below are optional
.createColumn(false)
.datetimeOptions(DatetimeOptionsProperty.builder()
.format("format")
// the properties below are optional
.localeCode("localeCode")
.timezoneOffset("timezoneOffset")
.build())
.filter(FilterExpressionProperty.builder()
.expression("expression")
.valuesMap(List.of(FilterValueProperty.builder()
.value("value")
.valueReference("valueReference")
.build()))
.build())
.build())
.pathParameterName("pathParameterName")
.build()))
.build())
.source("source")
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA fluent builder forCfnDataset.static interfaceRepresents a set of options that define how DataBrew will read a comma-separated value (CSV) file when creating a dataset from that file.static interfaceConnection information for dataset input files stored in a database.static interfaceRepresents how metadata stored in the AWS Glue Data Catalog is defined in a DataBrew dataset.static interfaceRepresents a dataset paramater that defines type and conditions for a parameter in the Amazon S3 path of the dataset.static interfaceRepresents additional options for correct interpretation of datetime parameters used in the Amazon S3 path of a dataset.static interfaceRepresents a set of options that define how DataBrew will interpret a Microsoft Excel file when creating a dataset from that file.static interfaceRepresents a limit imposed on number of Amazon S3 files that should be selected for a dataset from a connected Amazon S3 path.static interfaceRepresents a structure for defining parameter conditions.static interfaceRepresents a single entry in theValuesMapof aFilterExpression.static interfaceRepresents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.static interfaceRepresents information on how DataBrew can find data, in either the AWS Glue Data Catalog or Amazon S3.static interfaceRepresents the JSON-specific options that define how input is to be interpreted by AWS Glue DataBrew .static interfaceContains additional resource information needed for specific datasets.static interfaceRepresents a set of options that define how DataBrew selects files for a given Amazon S3 path in a dataset.static interfaceRepresents a single entry in the path parameters of a dataset.static interfaceRepresents an Amazon S3 location (bucket name, bucket owner, and object key) where DataBrew can read input data, or write output from a job.Nested classes/interfaces inherited from class software.amazon.jsii.JsiiObject
software.amazon.jsii.JsiiObject.InitializationModeNested classes/interfaces inherited from interface software.constructs.IConstruct
software.constructs.IConstruct.Jsii$DefaultNested classes/interfaces inherited from interface software.amazon.awscdk.services.databrew.IDatasetRef
IDatasetRef.Jsii$Default, IDatasetRef.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.IInspectable
IInspectable.Jsii$Default, IInspectable.Jsii$ProxyNested classes/interfaces inherited from interface software.amazon.awscdk.ITaggable
ITaggable.Jsii$Default, ITaggable.Jsii$Proxy -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe CloudFormation resource type name for this resource class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedCfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) protectedCfnDataset(software.amazon.jsii.JsiiObjectRef objRef) CfnDataset(software.constructs.Construct scope, String id, CfnDatasetProps props) -
Method Summary
Modifier and TypeMethodDescriptionA reference to a Dataset resource.The file format of a dataset that is created from an Amazon S3 file or folder.A set of options that define how DataBrew interprets the data in the dataset.getInput()Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3 .getName()The unique name of the dataset.A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.The location of the data for the dataset, either Amazon S3 or the AWS Glue Data Catalog .getTags()Tag Manager which manages the tags for this resource.Metadata tags that have been applied to the dataset.voidinspect(TreeInspector inspector) Examines the CloudFormation resource and discloses attributes.renderProperties(Map<String, Object> props) voidThe file format of a dataset that is created from an Amazon S3 file or folder.voidsetFormatOptions(IResolvable value) A set of options that define how DataBrew interprets the data in the dataset.voidA set of options that define how DataBrew interprets the data in the dataset.voidsetInput(IResolvable value) Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3 .voidsetInput(CfnDataset.InputProperty value) Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3 .voidThe unique name of the dataset.voidsetPathOptions(IResolvable value) A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.voidA set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.voidThe location of the data for the dataset, either Amazon S3 or the AWS Glue Data Catalog .voidsetTagsRaw(List<CfnTag> value) Metadata tags that have been applied to the dataset.Methods inherited from class software.amazon.awscdk.CfnResource
addDeletionOverride, addDependency, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, obtainDependencies, obtainResourceDependencies, removeDependency, replaceDependency, shouldSynthesize, toString, validatePropertiesMethods inherited from class software.amazon.awscdk.CfnRefElement
getRefMethods inherited from class software.amazon.awscdk.CfnElement
getCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdMethods inherited from class software.constructs.Construct
getNode, isConstructMethods inherited from class software.amazon.jsii.JsiiObject
jsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface software.constructs.IConstruct
getNodeMethods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Field Details
-
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
-
-
Constructor Details
-
CfnDataset
protected CfnDataset(software.amazon.jsii.JsiiObjectRef objRef) -
CfnDataset
protected CfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) -
CfnDataset
@Stability(Stable) public CfnDataset(@NotNull software.constructs.Construct scope, @NotNull String id, @NotNull CfnDatasetProps props) - Parameters:
scope- Scope in which this resource is defined. This parameter is required.id- Construct identifier for this resource (unique in its scope). This parameter is required.props- Resource properties. This parameter is required.
-
-
Method Details
-
inspect
Examines the CloudFormation resource and discloses attributes.- Specified by:
inspectin interfaceIInspectable- Parameters:
inspector- tree inspector to collect and process attributes. This parameter is required.
-
renderProperties
@Stability(Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String, Object> props) - Overrides:
renderPropertiesin classCfnResource- Parameters:
props- This parameter is required.
-
getCfnProperties
- Overrides:
getCfnPropertiesin classCfnResource
-
getDatasetRef
A reference to a Dataset resource.- Specified by:
getDatasetRefin interfaceIDatasetRef
-
getTags
Tag Manager which manages the tags for this resource. -
getInput
Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3 .Returns union: either
IResolvableorCfnDataset.InputProperty -
setInput
Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3 . -
setInput
Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3 . -
getName
The unique name of the dataset. -
setName
The unique name of the dataset. -
getFormat
The file format of a dataset that is created from an Amazon S3 file or folder. -
setFormat
The file format of a dataset that is created from an Amazon S3 file or folder. -
getFormatOptions
A set of options that define how DataBrew interprets the data in the dataset.Returns union: either
IResolvableorCfnDataset.FormatOptionsProperty -
setFormatOptions
A set of options that define how DataBrew interprets the data in the dataset. -
setFormatOptions
A set of options that define how DataBrew interprets the data in the dataset. -
getPathOptions
A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.Returns union: either
IResolvableorCfnDataset.PathOptionsProperty -
setPathOptions
A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset. -
setPathOptions
A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset. -
getSource
The location of the data for the dataset, either Amazon S3 or the AWS Glue Data Catalog . -
setSource
The location of the data for the dataset, either Amazon S3 or the AWS Glue Data Catalog . -
getTagsRaw
Metadata tags that have been applied to the dataset. -
setTagsRaw
Metadata tags that have been applied to the dataset.
-