# LoggingFormatProperty

An object that represents the format for the logs.

- Source: Generated at build time
- Type last changed: v2.93.0 · 23 Aug 2023

## Example

TypeScript:

```ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_appmesh as appmesh } from 'aws-cdk-lib';
const loggingFormatProperty: appmesh.CfnVirtualNode.LoggingFormatProperty = {
  json: [{
    key: 'key',
    value: 'value',
  }],
  text: 'text',
};
```

Python:

```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_appmesh as appmesh

logging_format_property = appmesh.CfnVirtualNode.LoggingFormatProperty(
    json=[appmesh.CfnVirtualNode.JsonFormatRefProperty(
        key="key",
        value="value"
    )],
    text="text"
)
```

Java:

```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.appmesh.*;

LoggingFormatProperty loggingFormatProperty = LoggingFormatProperty.builder()
        .json(List.of(JsonFormatRefProperty.builder()
                .key("key")
                .value("value")
                .build()))
        .text("text")
        .build();
```

C# / .NET:

```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.AppMesh;

var loggingFormatProperty = new LoggingFormatProperty {
    Json = new [] { new JsonFormatRefProperty {
        Key = "key",
        Value = "value"
    } },
    Text = "text"
};
```

Golang:

```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"

loggingFormatProperty := &LoggingFormatProperty{
	Json: []interface{}{
		&JsonFormatRefProperty{
			Key: jsii.String("key"),
			Value: jsii.String("value"),
		},
	},
	Text: jsii.String("text"),
}
```

## Properties

- `json`: [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [IResolvable](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.IResolvable.html) | [CfnVirtualNode.JsonFormatRefProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.JsonFormatRefProperty.html)[] — The logging format for JSON.

- `text`: string — The logging format for text.
