AWS::Logs::Transformer DateTimeConverter - AWS CloudFormation

AWS::Logs::Transformer DateTimeConverter

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.

Syntax

To declare this entity in your AWS CloudFormation template, use the following syntax:

JSON

{ "Locale" : String, "MatchPatterns" : [ String, ... ], "Source" : String, "SourceTimezone" : String, "Target" : String, "TargetFormat" : String, "TargetTimezone" : String }

YAML

Locale: String MatchPatterns: - String Source: String SourceTimezone: String Target: String TargetFormat: String TargetTimezone: String

Properties

Locale

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

Required: No

Type: String

Minimum: 1

Update requires: No interruption

MatchPatterns

A list of patterns to match against the source field.

Required: Yes

Type: Array of String

Minimum: 1

Maximum: 5

Update requires: No interruption

Source

The key to apply the date conversion to.

Required: Yes

Type: String

Pattern: ^.*[a-zA-Z0-9]+.*$

Update requires: No interruption

SourceTimezone

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

Required: No

Type: String

Minimum: 1

Update requires: No interruption

Target

The JSON field to store the result in.

Required: Yes

Type: String

Pattern: ^.*[a-zA-Z0-9]+.*$

Maximum: 128

Update requires: No interruption

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.

Required: No

Type: String

Minimum: 1

Maximum: 64

Update requires: No interruption

TargetTimezone

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

Required: No

Type: String

Minimum: 1

Update requires: No interruption