# 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](https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/CloudWatch-Logs-Transformation-Processors.html#CloudWatch-Logs-Transformation-splitString) in the *CloudWatch Logs User Guide* .

- Source: Generated at build time
- Type last changed: v2.174.0 · 4 Jan 2025

## Example

TypeScript:

```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:

```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:

```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();
```

C#:

```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:

```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

- `entries`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnTransformer.SplitStringEntryProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_logs.CfnTransformer.SplitStringEntryProperty.html)[] (required) — An array of `SplitStringEntry` objects, where each object contains the information about one field to split.
