DateTimeConverterProperty
- class aws_cdk.aws_logs.DateTimeConverterProperty(*, locale, match_patterns, source, target, source_timezone=None, target_format=None, target_timezone=None)
Bases:
object
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.
- Parameters:
locale (
str
) – The locale of the source field.match_patterns (
Sequence
[str
]) – A list of patterns to match against the source field.source (
str
) – The key to apply the date conversion to.target (
str
) – The JSON field to store the result in.source_timezone (
Optional
[str
]) – The time zone of the source field. Default: UTCtarget_format (
Optional
[str
]) – The datetime format to use for the converted data in the target field. Default: “yyyy-MM-dd’T’HH:mm:ss.SSS’Z’”target_timezone (
Optional
[str
]) – The time zone of the target field. Default: UTC
- ExampleMetadata:
fixture=_generated
Example:
# The code below shows an example of how to instantiate this type. # The values are placeholders you should change. from aws_cdk import aws_logs as logs date_time_converter_property = logs.DateTimeConverterProperty( locale="locale", match_patterns=["matchPatterns"], source="source", target="target", # the properties below are optional source_timezone="sourceTimezone", target_format="targetFormat", target_timezone="targetTimezone" )
Attributes
- locale
The locale of the source field.
- match_patterns
A list of patterns to match against the source field.
- source
The key to apply the date conversion to.
- source_timezone
The time zone of the source field.
- Default:
UTC
- target
The JSON field to store the result in.
- target_format
The datetime format to use for the converted data in the target field.
- Default:
“yyyy-MM-dd’T’HH:mm:ss.SSS’Z’”
- target_timezone
The time zone of the target field.
- Default:
UTC