Skip to content
v2.274.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,
};

Properties ​

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