CopyValueProperty
Struct External
This processor copies values within a log event.
You can also use this processor to add metadata to log events by copying the values of the following metadata keys into the log events: @logGroupName , @logGroupStream , @accountId , @regionName .
For more information about this processor including examples, see copyValue in the CloudWatch Logs User Guide .
| Source | |
|---|---|
| Type last changed |
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 copyValueProperty: logs.CfnTransformer.CopyValueProperty = {
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
copy_value_property = logs.CfnTransformer.CopyValueProperty(
entries=[logs.CfnTransformer.CopyValueEntryProperty(
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.*;
CopyValueProperty copyValueProperty = CopyValueProperty.builder()
.entries(List.of(CopyValueEntryProperty.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 copyValueProperty = new CopyValueProperty {
Entries = new [] { new CopyValueEntryProperty {
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"
copyValueProperty := &CopyValueProperty{
Entries: []interface{}{
&CopyValueEntryProperty{
Source: jsii.String("source"),
Target: jsii.String("target"),
// the properties below are optional
OverwriteIfExists: jsii.Boolean(false),
},
},
}
Properties
entriesIResolvable | IResolvable | CfnTransformer.entriestyping.Union[IResolvable, typing.List[typing.Union[IResolvable, CopyValueEntryProperty]]]entriesIResolvableEntriesIResolvableEntriesinterface{} required #An array of `CopyValueEntry` objects, where each object contains the information about one field value to copy.