AccessLogConfig

class aws_cdk.aws_appmesh.AccessLogConfig(*, virtual_gateway_access_log=None, virtual_node_access_log=None)

Bases: object

All Properties for Envoy Access logs for mesh endpoints.

Parameters:
  • virtual_gateway_access_log (Union[VirtualGatewayAccessLogProperty, Dict[str, Any], None]) – VirtualGateway CFN configuration for Access Logging. Default: - no access logging

  • virtual_node_access_log (Union[AccessLogProperty, Dict[str, Any], None]) – VirtualNode CFN configuration for Access Logging. Default: - no access logging

ExampleMetadata:

fixture=_generated

Example:

# 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

access_log_config = appmesh.AccessLogConfig(
    virtual_gateway_access_log=appmesh.CfnVirtualGateway.VirtualGatewayAccessLogProperty(
        file=appmesh.CfnVirtualGateway.VirtualGatewayFileAccessLogProperty(
            path="path",

            # the properties below are optional
            format=appmesh.CfnVirtualGateway.LoggingFormatProperty(
                json=[appmesh.CfnVirtualGateway.JsonFormatRefProperty(
                    key="key",
                    value="value"
                )],
                text="text"
            )
        )
    ),
    virtual_node_access_log=appmesh.CfnVirtualNode.AccessLogProperty(
        file=appmesh.CfnVirtualNode.FileAccessLogProperty(
            path="path",

            # the properties below are optional
            format=appmesh.CfnVirtualNode.LoggingFormatProperty(
                json=[appmesh.CfnVirtualNode.JsonFormatRefProperty(
                    key="key",
                    value="value"
                )],
                text="text"
            )
        )
    )
)

Attributes

virtual_gateway_access_log

VirtualGateway CFN configuration for Access Logging.

Default:
  • no access logging

virtual_node_access_log

VirtualNode CFN configuration for Access Logging.

Default:
  • no access logging