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();
 
  • Method Details

    • getLocale

      @Stability(Stable) @NotNull String getLocale()
      The locale of the source field.
    • getMatchPatterns

      @Stability(Stable) @NotNull List<String> getMatchPatterns()
      A list of patterns to match against the source field.
    • getSource

      @Stability(Stable) @NotNull String getSource()
      The key to apply the date conversion to.
    • getTarget

      @Stability(Stable) @NotNull String getTarget()
      The JSON field to store the result in.
    • getSourceTimezone

      @Stability(Stable) @Nullable default String getSourceTimezone()
      The time zone of the source field.

      Default: UTC

    • getTargetFormat

      @Stability(Stable) @Nullable default String 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

      @Stability(Stable) @Nullable default String getTargetTimezone()
      The time zone of the target field.

      Default: UTC

    • builder

      @Stability(Stable) static DateTimeConverterProperty.Builder builder()
      Returns:
      a DateTimeConverterProperty.Builder of DateTimeConverterProperty