Class DateTimeConverterProperty
This processor converts a datetime string into a format that you specify.
Implements
Inherited Members
Namespace: Amazon.CDK.AWS.Logs
Assembly: Amazon.CDK.Lib.dll
Syntax (csharp)
public class DateTimeConverterProperty : IDateTimeConverterProperty
Syntax (vb)
Public Class DateTimeConverterProperty Implements IDateTimeConverterProperty
Remarks
For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;
var dateTimeConverterProperty = new DateTimeConverterProperty {
Locale = "locale",
MatchPatterns = new [] { "matchPatterns" },
Source = "source",
Target = "target",
// the properties below are optional
SourceTimezone = "sourceTimezone",
TargetFormat = "targetFormat",
TargetTimezone = "targetTimezone"
};
Synopsis
Constructors
DateTimeConverterProperty() | This processor converts a datetime string into a format that you specify. |
Properties
Locale | The locale of the source field. |
MatchPatterns | A list of patterns to match against the source field. |
Source | The key to apply the date conversion to. |
SourceTimezone | The time zone of the source field. |
Target | The JSON field to store the result in. |
TargetFormat | The datetime format to use for the converted data in the target field. |
TargetTimezone | The time zone of the target field. |
Constructors
DateTimeConverterProperty()
This processor converts a datetime string into a format that you specify.
public DateTimeConverterProperty()
Remarks
For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide.
ExampleMetadata: fixture=_generated
Examples
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
using Amazon.CDK.AWS.Logs;
var dateTimeConverterProperty = new DateTimeConverterProperty {
Locale = "locale",
MatchPatterns = new [] { "matchPatterns" },
Source = "source",
Target = "target",
// the properties below are optional
SourceTimezone = "sourceTimezone",
TargetFormat = "targetFormat",
TargetTimezone = "targetTimezone"
};
Properties
Locale
The locale of the source field.
public string Locale { get; set; }
Property Value
Remarks
For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide.
ExampleMetadata: fixture=_generated
MatchPatterns
A list of patterns to match against the source field.
public string[] MatchPatterns { get; set; }
Property Value
string[]
Remarks
For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide.
ExampleMetadata: fixture=_generated
Source
The key to apply the date conversion to.
public string Source { get; set; }
Property Value
Remarks
For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide.
ExampleMetadata: fixture=_generated
SourceTimezone
The time zone of the source field.
public string? SourceTimezone { get; set; }
Property Value
Remarks
Default: UTC
Target
The JSON field to store the result in.
public string Target { get; set; }
Property Value
Remarks
For more information about this processor including examples, see datetimeConverter in the CloudWatch Logs User Guide.
ExampleMetadata: fixture=_generated
TargetFormat
The datetime format to use for the converted data in the target field.
public string? TargetFormat { get; set; }
Property Value
Remarks
Default: "yyyy-MM-dd'T'HH:mm:ss.SSS'Z'"
TargetTimezone
The time zone of the target field.
public string? TargetTimezone { get; set; }
Property Value
Remarks
Default: UTC