SplitStringProperty
Struct External
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 | |
|---|---|
| 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.CfnTransformer.SplitStringProperty = {
entries: [{
delimiter: 'delimiter',
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.CfnTransformer.SplitStringProperty(
entries=[logs.CfnTransformer.SplitStringEntryProperty(
delimiter="delimiter",
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("delimiter")
.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 = "delimiter",
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: []interface{}{
&SplitStringEntryProperty{
Delimiter: jsii.String("delimiter"),
Source: jsii.String("source"),
},
},
}
Properties
entriesIResolvable | IResolvable | CfnTransformer.entriestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, SplitStringEntryProperty]]]entriesIResolvableEntriesIResolvableEntriesinterface{} required #An array of `SplitStringEntry` objects, where each object contains the information about one field to split.