TypeConverterProperty Struct
Use this processor to convert a value type associated with the specified key to the specified type.
It's a casting processor that changes the types of the specified fields. For more information about this processor including examples, see typeConverter in the CloudWatch Logs User Guide.
| Source | aws-logs/lib/transformer.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';
const typeConverterProperty: logs.TypeConverterProperty = {
entries: [{
key: 'key',
type: logs.TypeConverterType.BOOLEAN,
}],
};
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
type_converter_property = logs.TypeConverterProperty(
entries=[logs.TypeConverterEntryProperty(
key="key",
type=logs.TypeConverterType.BOOLEAN
)]
)
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.*;
TypeConverterProperty typeConverterProperty = TypeConverterProperty.builder()
.entries(List.of(TypeConverterEntryProperty.builder()
.key("key")
.type(TypeConverterType.BOOLEAN)
.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 typeConverterProperty = new TypeConverterProperty {
Entries = new [] { new TypeConverterEntryProperty {
Key = "key",
Type = TypeConverterType.BOOLEAN
} }
};
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"
typeConverterProperty := &TypeConverterProperty{
Entries: []TypeConverterEntryProperty{
&TypeConverterEntryProperty{
Key: jsii.String("key"),
Type: awscdk.Aws_logs.TypeConverterType_BOOLEAN,
},
},
}
Properties
entriesTypeConverterEntryProperty[]entriestyping.List[TypeConverterEntryProperty]entriesList<TypeConverterEntryProperty>EntriesTypeConverterEntryProperty[]Entries*[]TypeConverterEntryProperty required #An array of TypeConverterEntry objects, where each object contains information about one field to change the type of.