Skip to content
v2.278.0

ConnectionLogOptionsProperty Struct ​

Describes the client connection logging options for the Client VPN endpoint.

Example ​

ts
// The code below shows an example of how to instantiate this type.
// The values are placeholders you should change.
import { aws_ec2 as ec2 } from 'aws-cdk-lib';
const connectionLogOptionsProperty: ec2.CfnClientVpnEndpoint.ConnectionLogOptionsProperty = {
  enabled: false,

  // the properties below are optional
  cloudwatchLogGroup: 'cloudwatchLogGroup',
  cloudwatchLogStream: 'cloudwatchLogStream',
  includeAuthorizationPolicyContext: false,
};
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_ec2 as ec2

connection_log_options_property = ec2.CfnClientVpnEndpoint.ConnectionLogOptionsProperty(
    enabled=False,

    # the properties below are optional
    cloudwatch_log_group="cloudwatchLogGroup",
    cloudwatch_log_stream="cloudwatchLogStream",
    include_authorization_policy_context=False
)
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.ec2.*;

ConnectionLogOptionsProperty connectionLogOptionsProperty = ConnectionLogOptionsProperty.builder()
        .enabled(false)

        // the properties below are optional
        .cloudwatchLogGroup("cloudwatchLogGroup")
        .cloudwatchLogStream("cloudwatchLogStream")
        .includeAuthorizationPolicyContext(false)
        .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.EC2;

var connectionLogOptionsProperty = new ConnectionLogOptionsProperty {
    Enabled = false,

    // the properties below are optional
    CloudwatchLogGroup = "cloudwatchLogGroup",
    CloudwatchLogStream = "cloudwatchLogStream",
    IncludeAuthorizationPolicyContext = false
};
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"

connectionLogOptionsProperty := &ConnectionLogOptionsProperty{
	Enabled: jsii.Boolean(false),

	// the properties below are optional
	CloudwatchLogGroup: jsii.String("cloudwatchLogGroup"),
	CloudwatchLogStream: jsii.String("cloudwatchLogStream"),
	IncludeAuthorizationPolicyContext: jsii.Boolean(false),
}

Properties ​

cloudwatchLogGroupoptionalstringcloudwatch_log_groupoptionalstrcloudwatchLogGroupoptionalStringCloudwatchLogGroupoptionalstringCloudwatchLogGroupoptional*string #
The name of the CloudWatch Logs log group.

Required if connection logging is enabled.

cloudwatchLogStreamoptionalstringcloudwatch_log_streamoptionalstrcloudwatchLogStreamoptionalStringCloudwatchLogStreamoptionalstringCloudwatchLogStreamoptional*string #
The name of the CloudWatch Logs log stream to which the connection data is published.
enabledboolean | IResolvableenabledtyping.Union[bool, IResolvable]enabledBooleanEnabledboolEnabledinterface{} required #
Indicates whether connection logging is enabled.
includeAuthorizationPolicyContextoptionalboolean | IResolvableinclude_authorization_policy_contextoptionaltyping.Union[bool, IResolvable]includeAuthorizationPolicyContextoptionalBooleanIncludeAuthorizationPolicyContextoptionalboolIncludeAuthorizationPolicyContextoptionalinterface{} #
Indicates whether authorization-policy evaluation context is included in the connection logs.