Interface DateTimeConverterProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
DateTimeConverterProperty.Jsii$Proxy
@Generated(value="jsii-pacmak/1.112.0 (build de1bc80)",
date="2025-07-24T11:33:17.273Z")
@Stability(Stable)
public interface 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.services.logs.*; DateTimeConverterProperty dateTimeConverterProperty = DateTimeConverterProperty.builder() .locale("locale") .matchPatterns(List.of("matchPatterns")) .source("source") .target("target") // the properties below are optional .sourceTimezone("sourceTimezone") .targetFormat("targetFormat") .targetTimezone("targetTimezone") .build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class
A builder forDateTimeConverterProperty
static final class
An implementation forDateTimeConverterProperty
-
Method Summary
Modifier and TypeMethodDescriptionbuilder()
The locale of the source field.A list of patterns to match against the source field.The key to apply the date conversion to.default String
The time zone of the source field.The JSON field to store the result in.default String
The datetime format to use for the converted data in the target field.default String
The 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. -
getMatchPatterns
A list of patterns to match against the source field. -
getSource
The key to apply the date conversion to. -
getTarget
The JSON field to store the result in. -
getSourceTimezone
The time zone of the source field.Default: UTC
-
getTargetFormat
The datetime format to use for the converted data in the target field.Default: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
-
getTargetTimezone
The time zone of the target field.Default: UTC
-
builder
- Returns:
- a
DateTimeConverterProperty.Builder
ofDateTimeConverterProperty
-