interface AddKeyEntryProperty
Language | Type name |
---|---|
![]() | Amazon.CDK.AWS.Logs.AddKeyEntryProperty |
![]() | github.com/aws/aws-cdk-go/awscdk/v2/awslogs#AddKeyEntryProperty |
![]() | software.amazon.awscdk.services.logs.AddKeyEntryProperty |
![]() | aws_cdk.aws_logs.AddKeyEntryProperty |
![]() | aws-cdk-lib » aws_logs » AddKeyEntryProperty |
This object defines one key that will be added with the addKeys processor.
Example
// 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 addKeyEntryProperty: logs.AddKeyEntryProperty = {
key: 'key',
value: 'value',
// the properties below are optional
overwriteIfExists: false,
};
Properties
Name | Type | Description |
---|---|---|
key | string | The key of the new entry to be added to the log event. |
value | string | The value of the new entry to be added to the log event. |
overwrite | boolean | Specifies whether to overwrite the value if the key already exists. |
key
Type:
string
The key of the new entry to be added to the log event.
value
Type:
string
The value of the new entry to be added to the log event.
overwriteIfExists?
Type:
boolean
(optional, default: false)
Specifies whether to overwrite the value if the key already exists.