SubstituteStringProperty

class aws_cdk.aws_logs.SubstituteStringProperty(*, entries)

Bases: object

This processor matches a key’s value against a regular expression and replaces all matches with a replacement string.

For more information about this processor including examples, see substituteString in the CloudWatch Logs User Guide.

Parameters:

entries (Sequence[Union[SubstituteStringEntryProperty, Dict[str, Any]]]) – An array of objects, where each object contains information about one key to match and replace.

ExampleMetadata:

fixture=_generated

Example:

# 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

substitute_string_property = logs.SubstituteStringProperty(
    entries=[logs.SubstituteStringEntryProperty(
        from="from",
        source="source",
        to="to"
    )]
)

Attributes

entries

An array of objects, where each object contains information about one key to match and replace.