DatasetParameterProperty Struct
Represents a dataset paramater that defines type and conditions for a parameter in the Amazon S3 path of the dataset.
| Source | |
|---|---|
| Type last changed |
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 datasetParameterProperty: databrew.CfnDataset.DatasetParameterProperty = {
name: 'name',
type: 'type',
// the properties below are optional
createColumn: false,
datetimeOptions: {
format: 'format',
// the properties below are optional
localeCode: 'localeCode',
timezoneOffset: 'timezoneOffset',
},
filter: {
expression: 'expression',
valuesMap: [{
value: 'value',
valueReference: 'valueReference',
}],
},
};
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
dataset_parameter_property = databrew.CfnDataset.DatasetParameterProperty(
name="name",
type="type",
# the properties below are optional
create_column=False,
datetime_options=databrew.CfnDataset.DatetimeOptionsProperty(
format="format",
# the properties below are optional
locale_code="localeCode",
timezone_offset="timezoneOffset"
),
filter=databrew.CfnDataset.FilterExpressionProperty(
expression="expression",
values_map=[databrew.CfnDataset.FilterValueProperty(
value="value",
value_reference="valueReference"
)]
)
)
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.*;
DatasetParameterProperty datasetParameterProperty = 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();
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 datasetParameterProperty = new DatasetParameterProperty {
Name = "name",
Type = "type",
// the properties below are optional
CreateColumn = false,
DatetimeOptions = new DatetimeOptionsProperty {
Format = "format",
// the properties below are optional
LocaleCode = "localeCode",
TimezoneOffset = "timezoneOffset"
},
Filter = new FilterExpressionProperty {
Expression = "expression",
ValuesMap = new [] { new FilterValueProperty {
Value = "value",
ValueReference = "valueReference"
} }
}
};
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"
datasetParameterProperty := &DatasetParameterProperty{
Name: jsii.String("name"),
Type: jsii.String("type"),
// the properties below are optional
CreateColumn: jsii.Boolean(false),
DatetimeOptions: &DatetimeOptionsProperty{
Format: jsii.String("format"),
// the properties below are optional
LocaleCode: jsii.String("localeCode"),
TimezoneOffset: jsii.String("timezoneOffset"),
},
Filter: &FilterExpressionProperty{
Expression: jsii.String("expression"),
ValuesMap: []interface{}{
&FilterValueProperty{
Value: jsii.String("value"),
ValueReference: jsii.String("valueReference"),
},
},
},
}
Properties
createColumnoptionalboolean | IResolvablecreate_columnoptionaltyping.Union[bool, IResolvable]createColumnoptionalBooleanCreateColumnoptionalboolCreateColumnoptionalinterface{} #Optional boolean value that defines whether the captured value of this parameter should be loaded as an additional column in the dataset.
datetimeOptionsoptionalIResolvable | CfnDataset.datetime_optionsoptionaltyping.Union[IResolvable, DatetimeOptionsProperty]datetimeOptionsoptionalIResolvableDatetimeOptionsoptionalIResolvableDatetimeOptionsoptionalinterface{} #Additional parameter options such as a format and a timezone.
Required for datetime parameters.
filteroptionalIResolvable | CfnDataset.filteroptionaltyping.Union[IResolvable, FilterExpressionProperty]filteroptionalIResolvableFilteroptionalIResolvableFilteroptionalinterface{} #The optional filter expression structure to apply additional matching criteria to the parameter.
The name of the parameter that is used in the dataset's Amazon S3 path.
The type of the dataset parameter, can be one of a 'String', 'Number' or 'Datetime'.