Skip to content
v2.278.0

RenameKeyEntryProperty Struct ​

This object defines one key that will be renamed with the renameKey processor.

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 renameKeyEntryProperty: logs.RenameKeyEntryProperty = {
  key: 'key',
  renameTo: 'renameTo',

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

rename_key_entry_property = logs.RenameKeyEntryProperty(
    key="key",
    rename_to="renameTo",

    # 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.*;

RenameKeyEntryProperty renameKeyEntryProperty = RenameKeyEntryProperty.builder()
        .key("key")
        .renameTo("renameTo")

        // the properties below are optional
        .overwriteIfExists(false)
        .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 renameKeyEntryProperty = new RenameKeyEntryProperty {
    Key = "key",
    RenameTo = "renameTo",

    // 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"

renameKeyEntryProperty := &RenameKeyEntryProperty{
	Key: jsii.String("key"),
	RenameTo: jsii.String("renameTo"),

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

Properties ​

keystringkeystrkeyStringKeystringKey*string required #
The key to rename.
overwriteIfExistsoptionalbooleanoverwrite_if_existsoptionalbooloverwriteIfExistsoptionalBooleanOverwriteIfExistsoptionalboolOverwriteIfExistsoptional*bool = false #
Whether to overwrite the target key if it already exists.
renameTostringrename_tostrrenameToStringRenameTostringRenameTo*string required #
The string to use for the new key name.