# LoggingFormatConfig

All Properties for Envoy Access Logging Format for mesh endpoints.

Returned by: [LoggingFormat.bind](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.LoggingFormat.html#bind)

- Source: [`aws-appmesh/lib/shared-interfaces.ts`](https://github.com/aws/aws-cdk/blob/v2.278.0/packages/aws-cdk-lib/aws-appmesh/lib/shared-interfaces.ts#L179)
- Type last changed: v2.80.0 · 20 May 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 loggingFormatConfig: appmesh.LoggingFormatConfig = {
  formatConfig: {
    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_config = appmesh.LoggingFormatConfig(
    format_config=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.*;

LoggingFormatConfig loggingFormatConfig = LoggingFormatConfig.builder()
        .formatConfig(LoggingFormatProperty.builder()
                .json(List.of(JsonFormatRefProperty.builder()
                        .key("key")
                        .value("value")
                        .build()))
                .text("text")
                .build())
        .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 loggingFormatConfig = new LoggingFormatConfig {
    FormatConfig = 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"

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

## Properties

- `formatConfig`: [CfnVirtualNode.LoggingFormatProperty](https://docs.aws.amazon.com/cdk/api/v2/docs/aws-cdk-lib.aws_appmesh.CfnVirtualNode.LoggingFormatProperty.html) — CFN configuration for Access Logging Format.

  **Default:** no access logging format
