Interface CfnTransformer.CsvProperty
- All Superinterfaces:
software.amazon.jsii.JsiiSerializable
- All Known Implementing Classes:
CfnTransformer.CsvProperty.Jsii$Proxy
- Enclosing class:
CfnTransformer
@Stability(Stable)
public static interface CfnTransformer.CsvProperty
extends software.amazon.jsii.JsiiSerializable
The
CSV processor parses comma-separated values (CSV) from the log events into columns.
For more information about this processor including examples, see csv in the CloudWatch Logs User Guide .
Example:
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import software.amazon.awscdk.services.logs.*;
CsvProperty csvProperty = CsvProperty.builder()
.columns(List.of("columns"))
.delimiter("delimiter")
.quoteCharacter("quoteCharacter")
.source("source")
.build();
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final classA builder forCfnTransformer.CsvPropertystatic final classAn implementation forCfnTransformer.CsvProperty -
Method Summary
Modifier and TypeMethodDescriptionbuilder()An array of names to use for the columns in the transformed log event.default StringThe character used to separate each column in the original comma-separated value log event.default StringThe character used used as a text qualifier for a single column of data.default StringThe path to the field in the log event that has the comma separated values to be parsed.Methods inherited from interface software.amazon.jsii.JsiiSerializable
$jsii$toJson
-
Method Details
-
getColumns
An array of names to use for the columns in the transformed log event.If you omit this, default column names (
[column_1, column_2 ...]) are used.- See Also:
-
getDelimiter
The character used to separate each column in the original comma-separated value log event.If you omit this, the processor looks for the comma
,character as the delimiter.- See Also:
-
getQuoteCharacter
The character used used as a text qualifier for a single column of data.If you omit this, the double quotation mark
"character is used.- See Also:
-
getSource
The path to the field in the log event that has the comma separated values to be parsed.If you omit this value, the whole log message is processed.
- See Also:
-
builder
- Returns:
- a
CfnTransformer.CsvProperty.BuilderofCfnTransformer.CsvProperty
-