SplitStringProperty Struct
Use this processor to split a field into an array of strings using a delimiting character.
For more information about this processor including examples, see splitString in the CloudWatch Logs User Guide.
| Source | aws-logs/lib/transformer.ts |
|---|---|
| Type last changed |
Example
ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_logs as logs } from 'aws-cdk-lib';
const splitStringProperty: logs.SplitStringProperty = {
entries: [{
delimiter: logs.DelimiterCharacter.COMMA,
source: 'source',
}],
};
python
# The code below shows an example of how to instantiate this type.
# The values are placeholders you should change.
from aws_cdk import aws_logs as logs
split_string_property = logs.SplitStringProperty(
entries=[logs.SplitStringEntryProperty(
delimiter=logs.DelimiterCharacter.COMMA,
source="source"
)]
)
java
// 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.*;
SplitStringProperty splitStringProperty = SplitStringProperty.builder()
.entries(List.of(SplitStringEntryProperty.builder()
.delimiter(DelimiterCharacter.COMMA)
.source("source")
.build()))
.build();
csharp
// Install: dotnet add package Amazon.CDK.Lib
// 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 splitStringProperty = new SplitStringProperty {
Entries = new [] { new SplitStringEntryProperty {
Delimiter = DelimiterCharacter.COMMA,
Source = "source"
} }
};
go
// Install: go get github.com/aws/aws-cdk-go/awscdk/v2
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import "github.com/aws/aws-cdk-go/awscdk"
splitStringProperty := &SplitStringProperty{
Entries: []SplitStringEntryProperty{
&SplitStringEntryProperty{
Delimiter: awscdk.Aws_logs.DelimiterCharacter_COMMA,
Source: jsii.String("source"),
},
},
}
Properties
entriesSplitStringEntryProperty[]entriestyping.List[SplitStringEntryProperty]entriesList<SplitStringEntryProperty>EntriesSplitStringEntryProperty[]Entries*[]SplitStringEntryProperty required #An array of SplitStringEntry objects, where each object contains information about one field to split.