@Generated(value="jsii-pacmak/1.67.0 (build 2c027f5)", date="2022-09-19T20:26:37.813Z") @Stability(value=Stable) public class CfnDataset extends CfnResource implements IInspectable
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
.key("key")
.build())
.build())
.dataCatalogInputDefinition(DataCatalogInputDefinitionProperty.builder()
.catalogId("catalogId")
.databaseName("databaseName")
.tableName("tableName")
.tempDirectory(S3LocationProperty.builder()
.bucket("bucket")
// the properties below are optional
.key("key")
.build())
.build())
.metadata(MetadataProperty.builder()
.sourceArn("sourceArn")
.build())
.s3InputDefinition(S3LocationProperty.builder()
.bucket("bucket")
// the properties below are optional
.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())
.tags(List.of(CfnTag.builder()
.key("key")
.value("value")
.build()))
.build();
| Modifier and Type | Class and Description |
|---|---|
static class |
CfnDataset.Builder
A fluent builder for
CfnDataset. |
static interface |
CfnDataset.CsvOptionsProperty
Represents a set of options that define how DataBrew will read a comma-separated value (CSV) file when creating a dataset from that file.
|
static interface |
CfnDataset.DatabaseInputDefinitionProperty
Connection information for dataset input files stored in a database.
|
static interface |
CfnDataset.DataCatalogInputDefinitionProperty
Represents how metadata stored in the AWS Glue Data Catalog is defined in a DataBrew dataset.
|
static interface |
CfnDataset.DatasetParameterProperty
Represents a dataset paramater that defines type and conditions for a parameter in the Amazon S3 path of the dataset.
|
static interface |
CfnDataset.DatetimeOptionsProperty
Represents additional options for correct interpretation of datetime parameters used in the Amazon S3 path of a dataset.
|
static interface |
CfnDataset.ExcelOptionsProperty
Represents a set of options that define how DataBrew will interpret a Microsoft Excel file when creating a dataset from that file.
|
static interface |
CfnDataset.FilesLimitProperty
Represents a limit imposed on number of Amazon S3 files that should be selected for a dataset from a connected Amazon S3 path.
|
static interface |
CfnDataset.FilterExpressionProperty
Represents a structure for defining parameter conditions.
|
static interface |
CfnDataset.FilterValueProperty
Represents a single entry in the `ValuesMap` of a `FilterExpression` .
|
static interface |
CfnDataset.FormatOptionsProperty
Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.
|
static interface |
CfnDataset.InputProperty
Represents information on how DataBrew can find data, in either the AWS Glue Data Catalog or Amazon S3.
|
static interface |
CfnDataset.JsonOptionsProperty
Represents the JSON-specific options that define how input is to be interpreted by AWS Glue DataBrew .
|
static interface |
CfnDataset.MetadataProperty
Contains additional resource information needed for specific datasets.
|
static interface |
CfnDataset.PathOptionsProperty
Represents a set of options that define how DataBrew selects files for a given Amazon S3 path in a dataset.
|
static interface |
CfnDataset.PathParameterProperty
Represents a single entry in the path parameters of a dataset.
|
static interface |
CfnDataset.S3LocationProperty
Represents an Amazon S3 location (bucket name, bucket owner, and object key) where DataBrew can read input data, or write output from a job.
|
software.amazon.jsii.JsiiObject.InitializationModeIInspectable.Jsii$Default, IInspectable.Jsii$Proxy| Modifier and Type | Field and Description |
|---|---|
static String |
CFN_RESOURCE_TYPE_NAME
The CloudFormation resource type name for this resource class.
|
| Modifier | Constructor and Description |
|---|---|
|
CfnDataset(software.constructs.Construct scope,
String id,
CfnDatasetProps props)
Create a new `AWS::DataBrew::Dataset`.
|
protected |
CfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode) |
protected |
CfnDataset(software.amazon.jsii.JsiiObjectRef objRef) |
| Modifier and Type | Method and Description |
|---|---|
protected Map<String,Object> |
getCfnProperties() |
String |
getFormat()
The file format of a dataset that is created from an Amazon S3 file or folder.
|
Object |
getFormatOptions()
A set of options that define how DataBrew interprets the data in the dataset.
|
Object |
getInput()
Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3 .
|
String |
getName()
The unique name of the dataset.
|
Object |
getPathOptions()
A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.
|
TagManager |
getTags()
Metadata tags that have been applied to the dataset.
|
void |
inspect(TreeInspector inspector)
Examines the CloudFormation resource and discloses attributes.
|
protected Map<String,Object> |
renderProperties(Map<String,Object> props) |
void |
setFormat(String value)
The file format of a dataset that is created from an Amazon S3 file or folder.
|
void |
setFormatOptions(CfnDataset.FormatOptionsProperty value)
A set of options that define how DataBrew interprets the data in the dataset.
|
void |
setFormatOptions(IResolvable value)
A set of options that define how DataBrew interprets the data in the dataset.
|
void |
setInput(CfnDataset.InputProperty value)
Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3 .
|
void |
setInput(IResolvable value)
Information on how DataBrew can find the dataset, in either the AWS Glue Data Catalog or Amazon S3 .
|
void |
setName(String value)
The unique name of the dataset.
|
void |
setPathOptions(CfnDataset.PathOptionsProperty value)
A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.
|
void |
setPathOptions(IResolvable value)
A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.
|
addDeletionOverride, addDependsOn, addMetadata, addOverride, addPropertyDeletionOverride, addPropertyOverride, applyRemovalPolicy, applyRemovalPolicy, applyRemovalPolicy, getAtt, getCfnOptions, getCfnResourceType, getMetadata, getUpdatedProperites, getUpdatedProperties, isCfnResource, shouldSynthesize, toString, validatePropertiesgetRefgetCreationStack, getLogicalId, getStack, isCfnElement, overrideLogicalIdjsiiAsyncCall, jsiiAsyncCall, jsiiCall, jsiiCall, jsiiGet, jsiiGet, jsiiSet, jsiiStaticCall, jsiiStaticCall, jsiiStaticGet, jsiiStaticGet, jsiiStaticSet, jsiiStaticSet@Stability(value=Stable) public static final String CFN_RESOURCE_TYPE_NAME
protected CfnDataset(software.amazon.jsii.JsiiObjectRef objRef)
protected CfnDataset(software.amazon.jsii.JsiiObject.InitializationMode initializationMode)
@Stability(value=Stable)
public CfnDataset(@NotNull
software.constructs.Construct scope,
@NotNull
String id,
@NotNull
CfnDatasetProps props)
scope - - scope in which this resource is defined. This parameter is required.id - - scoped id of the resource. This parameter is required.props - - resource properties. This parameter is required.@Stability(value=Stable)
public void inspect(@NotNull
TreeInspector inspector)
inspect in interface IInspectableinspector - - tree inspector to collect and process attributes. This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> renderProperties(@NotNull Map<String,Object> props)
renderProperties in class CfnResourceprops - This parameter is required.@Stability(value=Stable) @NotNull protected Map<String,Object> getCfnProperties()
getCfnProperties in class CfnResource@Stability(value=Stable) @NotNull public TagManager getTags()
@Stability(value=Stable) @NotNull public Object getInput()
@Stability(value=Stable)
public void setInput(@NotNull
CfnDataset.InputProperty value)
@Stability(value=Stable)
public void setInput(@NotNull
IResolvable value)
@Stability(value=Stable) @NotNull public String getName()
@Stability(value=Stable)
public void setName(@NotNull
String value)
@Stability(value=Stable) @Nullable public String getFormat()
@Stability(value=Stable)
public void setFormat(@Nullable
String value)
@Stability(value=Stable) @Nullable public Object getFormatOptions()
@Stability(value=Stable)
public void setFormatOptions(@Nullable
CfnDataset.FormatOptionsProperty value)
@Stability(value=Stable)
public void setFormatOptions(@Nullable
IResolvable value)
@Stability(value=Stable) @Nullable public Object getPathOptions()
@Stability(value=Stable)
public void setPathOptions(@Nullable
CfnDataset.PathOptionsProperty value)
@Stability(value=Stable)
public void setPathOptions(@Nullable
IResolvable value)
Copyright © 2022. All rights reserved.