CopyValueProperty

class aws_cdk.aws_logs.CopyValueProperty(*, entries)

Bases: object

Copy Value processor, copies values from source to target for each entry.

This processor copies values within a log event. You can also use this processor to add metadata to log events by copying values from metadata keys. For more information about this processor including examples, see copyValue in the CloudWatch Logs User Guide.

Parameters:

entries (Sequence[Union[CopyValueEntryProperty, Dict[str, Any]]]) – List of sources and target to copy. An array of CopyValueEntry objects, where each object contains information about one field value to copy.

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

copy_value_property = logs.CopyValueProperty(
    entries=[logs.CopyValueEntryProperty(
        source="source",
        target="target",

        # the properties below are optional
        overwrite_if_exists=False
    )]
)

Attributes

entries

List of sources and target to copy.

An array of CopyValueEntry objects, where each object contains information about one field value to copy.