TransformerOptions Struct
Properties for Transformer created from LogGroup.
| Source | aws-logs/lib/log-group.ts |
|---|---|
| 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';
declare const processor: logs.IProcessor;
const transformerOptions: logs.TransformerOptions = {
transformerConfig: [processor],
transformerName: 'transformerName',
};
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
# processor: logs.IProcessor
transformer_options = logs.TransformerOptions(
transformer_config=[processor],
transformer_name="transformerName"
)
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.*;
IProcessor processor;
TransformerOptions transformerOptions = TransformerOptions.builder()
.transformerConfig(List.of(processor))
.transformerName("transformerName")
.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;
IProcessor processor;
var transformerOptions = new TransformerOptions {
TransformerConfig = new [] { processor },
TransformerName = "transformerName"
};
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"
var processor IProcessor
transformerOptions := &TransformerOptions{
TransformerConfig: []IProcessor{
processor,
},
TransformerName: jsii.String("transformerName"),
}
Properties
transformerConfigIProcessor[]transformer_configtyping.List[IProcessor]transformerConfigList<IProcessor>TransformerConfigIProcessor[]TransformerConfig*[]IProcessor required #List of processors in a transformer.
transformerNamestringtransformer_namestrtransformerNameStringTransformerNamestringTransformerName*string required #Name of the transformer.