This is the new Amazon CloudFormation Template Reference Guide. Please update your bookmarks and links. For help getting started with CloudFormation, see the Amazon CloudFormation User Guide.
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 Amazon CloudFormation template, use the following syntax:
JSON
{ "Locale" :String, "MatchPatterns" :[ String, ... ], "Source" :String, "SourceTimezone" :String, "Target" :String, "TargetFormat" :String, "TargetTimezone" :String}
YAML
Locale:StringMatchPatterns:- StringSource:StringSourceTimezone:StringTarget:StringTargetFormat:StringTargetTimezone:String
Properties
Locale-
The locale of the source field. If you omit this, the default of
locale.ROOTis used.Required: No
Type: String
Minimum:
1Update requires: No interruption
MatchPatterns-
A list of patterns to match against the
sourcefield.Required: Yes
Type: Array of String
Minimum:
1Maximum:
5Update 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:
1Update requires: No interruption
Target-
The JSON field to store the result in.
Required: Yes
Type: String
Pattern:
^.*[a-zA-Z0-9]+.*$Maximum:
128Update 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'Zis used.Required: No
Type: String
Minimum:
1Maximum:
64Update 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:
1Update requires: No interruption