Skip to content
v2.278.0

MoveKeysProperty Struct ​

This processor moves a key from one field to another.

The original key is deleted. For more information about this processor including examples, see moveKeys in the CloudWatch Logs User Guide.

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 moveKeysProperty: logs.MoveKeysProperty = {
  entries: [{
    source: 'source',
    target: 'target',

    // the properties below are optional
    overwriteIfExists: false,
  }],
};
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

move_keys_property = logs.MoveKeysProperty(
    entries=[logs.MoveKeyEntryProperty(
        source="source",
        target="target",

        # the properties below are optional
        overwrite_if_exists=False
    )]
)
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.*;

MoveKeysProperty moveKeysProperty = MoveKeysProperty.builder()
        .entries(List.of(MoveKeyEntryProperty.builder()
                .source("source")
                .target("target")

                // the properties below are optional
                .overwriteIfExists(false)
                .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 moveKeysProperty = new MoveKeysProperty {
    Entries = new [] { new MoveKeyEntryProperty {
        Source = "source",
        Target = "target",

        // the properties below are optional
        OverwriteIfExists = false
    } }
};
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"

moveKeysProperty := &MoveKeysProperty{
	Entries: []MoveKeyEntryProperty{
		&MoveKeyEntryProperty{
			Source: jsii.String("source"),
			Target: jsii.String("target"),

			// the properties below are optional
			OverwriteIfExists: jsii.Boolean(false),
		},
	},
}

Properties ​

entriesMoveKeyEntryProperty[]entriestyping.List[MoveKeyEntryProperty]entriesList<MoveKeyEntryProperty>EntriesMoveKeyEntryProperty[]Entries*[]MoveKeyEntryProperty required #
An array of objects, where each object contains information about one key to move.