Skip to content

DateTimeConverter

Source code in docs_src/capo_cloudwatch_logs/types/date_time_converter.py
class DateTimeConverter(TypedDict, closed=True):
    source: "capo_cloudwatch_logs.types.source.Source"
    """<p>The key to apply the date conversion to.</p>"""
    target: "capo_cloudwatch_logs.types.target.Target"
    """<p>The JSON field to store the result in.</p>"""
    target_format: NotRequired["capo_cloudwatch_logs.types.target_format.TargetFormat"]
    """<p>The datetime format to use for the converted data in the target field.</p> <p>If you omit this, the default of <code> yyyy-MM-dd'T'HH:mm:ss.SSS'Z</code> is used.</p>"""
    match_patterns: "capo_cloudwatch_logs.types.match_patterns.MatchPatterns"
    """<p>A list of patterns to match against the <code>source</code> field.</p>"""
    source_timezone: NotRequired[
        "capo_cloudwatch_logs.types.source_timezone.SourceTimezone"
    ]
    """<p>The time zone of the source field. If you omit this, the default used is the UTC zone.</p>"""
    target_timezone: NotRequired[
        "capo_cloudwatch_logs.types.target_timezone.TargetTimezone"
    ]
    """<p>The time zone of the target field. If you omit this, the default used is the UTC zone.</p>"""
    locale: NotRequired["capo_cloudwatch_logs.types.locale.Locale"]
    """<p>The locale of the source field. If you omit this, the default of <code>locale.ROOT</code> is used.</p>"""

locale instance-attribute

locale: NotRequired[Locale]

The locale of the source field. If you omit this, the default of locale.ROOT is used.

match_patterns instance-attribute

match_patterns: MatchPatterns

A list of patterns to match against the source field.

source instance-attribute

source: Source

The key to apply the date conversion to.

source_timezone instance-attribute

source_timezone: NotRequired[SourceTimezone]

The time zone of the source field. If you omit this, the default used is the UTC zone.

target instance-attribute

target: Target

The JSON field to store the result in.

target_format instance-attribute

target_format: NotRequired[TargetFormat]

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'Z is used.

target_timezone instance-attribute

target_timezone: NotRequired[TargetTimezone]

The time zone of the target field. If you omit this, the default used is the UTC zone.