Interface CfnTransformerPropsMixin.DateTimeConverterProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTransformerPropsMixin.DateTimeConverterProperty.Jsii$Proxy
- Enclosing class:
CfnTransformerPropsMixin
@Stability(Stable)
public static interface CfnTransformerPropsMixin.DateTimeConverterProperty
extends software.amazon.jsii.JsiiSerializable
This processor converts a datetime string into a format that you specify.
For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.cfnpropertymixins.services.logs.*;
DateTimeConverterProperty dateTimeConverterProperty = DateTimeConverterProperty.builder()
.locale("locale")
.matchPatterns(List.of("matchPatterns"))
.source("source")
.sourceTimezone("sourceTimezone")
.target("target")
.targetFormat("targetFormat")
.targetTimezone("targetTimezone")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTransformerPropsMixin.DateTimeConverterPropertystatic final classAn implementation forCfnTransformerPropsMixin.DateTimeConverterProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()default StringThe locale of the source field.A list of patterns to match against thesourcefield.default StringThe key to apply the date conversion to.default StringThe time zone of the source field.default StringThe JSON field to store the result in.default StringThe datetime format to use for the converted data in the target field.default StringThe time zone of the target field.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getLocale
The locale of the source field.If you omit this, the default of
locale.ROOTis used.- See Also:
-
getMatchPatterns
A list of patterns to match against thesourcefield.- See Also:
-
getSource
The key to apply the date conversion to.- See Also:
-
getSourceTimezone
The time zone of the source field.If you omit this, the default used is the UTC zone.
- See Also:
-
getTarget
The JSON field to store the result in.- See Also:
-
getTargetFormat
The datetime format to use for the converted data in the target field.If you omit this, the default of
yyyy-MM-dd'T'HH:mm:ss.SSS'Zis used.- See Also:
-
getTargetTimezone
The time zone of the target field.If you omit this, the default used is the UTC zone.
- See Also:
-
builder
-