AWS SDK Version 4 for .NET
API Reference

AWS services or capabilities described in AWS Documentation may vary by region/location. Click Getting Started with Amazon AWS to see specific differences applicable to the China (Beijing) Region.

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.

Inheritance Hierarchy

System.Object
  Amazon.CloudWatchLogs.Model.DateTimeConverter

Namespace: Amazon.CloudWatchLogs.Model
Assembly: AWSSDK.CloudWatchLogs.dll
Version: 3.x.y.z

Syntax

C#
public class DateTimeConverter

The DateTimeConverter type exposes the following members

Constructors

NameDescription
Public Method DateTimeConverter()

Properties

NameTypeDescription
Public Property Locale System.String

Gets and sets the property Locale.

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

Public Property MatchPatterns System.Collections.Generic.List<System.String>

Gets and sets the property MatchPatterns.

A list of patterns to match against the source field.

Starting with version 4 of the SDK this property will default to null. If no data for this property is returned from the service the property will also be null. This was changed to improve performance and allow the SDK and caller to distinguish between a property not set or a property being empty to clear out a value. To retain the previous SDK behavior set the AWSConfigs.InitializeCollections static property to true.

Public Property Source System.String

Gets and sets the property Source.

The key to apply the date conversion to.

Public Property SourceTimezone System.String

Gets and sets the property SourceTimezone.

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

Public Property Target System.String

Gets and sets the property Target.

The JSON field to store the result in.

Public Property TargetFormat System.String

Gets and sets the property 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.

Public Property TargetTimezone System.String

Gets and sets the property TargetTimezone.

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

Version Information

.NET:
Supported in: 8.0 and newer, Core 3.1

.NET Standard:
Supported in: 2.0

.NET Framework:
Supported in: 4.7.2 and newer