Skip to content
v2.278.0

DatetimeOptionsProperty Struct ​

Represents additional options for correct interpretation of datetime parameters used in the Amazon S3 path of a dataset.

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 datetimeOptionsProperty: databrew.CfnDataset.DatetimeOptionsProperty = {
  format: 'format',

  // the properties below are optional
  localeCode: 'localeCode',
  timezoneOffset: 'timezoneOffset',
};
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

datetime_options_property = databrew.CfnDataset.DatetimeOptionsProperty(
    format="format",

    # the properties below are optional
    locale_code="localeCode",
    timezone_offset="timezoneOffset"
)
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.*;

DatetimeOptionsProperty datetimeOptionsProperty = DatetimeOptionsProperty.builder()
        .format("format")

        // the properties below are optional
        .localeCode("localeCode")
        .timezoneOffset("timezoneOffset")
        .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 datetimeOptionsProperty = new DatetimeOptionsProperty {
    Format = "format",

    // the properties below are optional
    LocaleCode = "localeCode",
    TimezoneOffset = "timezoneOffset"
};
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"

datetimeOptionsProperty := &DatetimeOptionsProperty{
	Format: jsii.String("format"),

	// the properties below are optional
	LocaleCode: jsii.String("localeCode"),
	TimezoneOffset: jsii.String("timezoneOffset"),
}

Properties ​

formatstringformatstrformatStringFormatstringFormat*string required #
Required option, that defines the datetime format used for a date parameter in the Amazon S3 path.

Should use only supported datetime specifiers and separation characters, all litera a-z or A-Z character should be escaped with single quotes. E.g. "MM.dd.yyyy-'at'-HH:mm".

localeCodeoptionalstringlocale_codeoptionalstrlocaleCodeoptionalStringLocaleCodeoptionalstringLocaleCodeoptional*string #
Optional value for a non-US locale code, needed for correct interpretation of some date formats.
timezoneOffsetoptionalstringtimezone_offsetoptionalstrtimezoneOffsetoptionalStringTimezoneOffsetoptionalstringTimezoneOffsetoptional*string #
Optional value for a timezone offset of the datetime parameter value in the Amazon S3 path.

Shouldn't be used if Format for this parameter includes timezone fields. If no offset specified, UTC is assumed.