VpnTunnelLogOptionsSpecificationProperty Struct
Options for logging VPN tunnel activity.
| Source | |
|---|---|
| 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_ec2 as ec2 } from 'aws-cdk-lib';
const vpnTunnelLogOptionsSpecificationProperty: ec2.CfnVPNConnection.VpnTunnelLogOptionsSpecificationProperty = {
cloudwatchLogOptions: {
bgpLogEnabled: false,
bgpLogGroupArn: 'bgpLogGroupArn',
bgpLogOutputFormat: 'bgpLogOutputFormat',
logEnabled: false,
logGroupArn: 'logGroupArn',
logOutputFormat: 'logOutputFormat',
},
};
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
vpn_tunnel_log_options_specification_property = ec2.CfnVPNConnection.VpnTunnelLogOptionsSpecificationProperty(
cloudwatch_log_options=ec2.CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty(
bgp_log_enabled=False,
bgp_log_group_arn="bgpLogGroupArn",
bgp_log_output_format="bgpLogOutputFormat",
log_enabled=False,
log_group_arn="logGroupArn",
log_output_format="logOutputFormat"
)
)
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.*;
VpnTunnelLogOptionsSpecificationProperty vpnTunnelLogOptionsSpecificationProperty = VpnTunnelLogOptionsSpecificationProperty.builder()
.cloudwatchLogOptions(CloudwatchLogOptionsSpecificationProperty.builder()
.bgpLogEnabled(false)
.bgpLogGroupArn("bgpLogGroupArn")
.bgpLogOutputFormat("bgpLogOutputFormat")
.logEnabled(false)
.logGroupArn("logGroupArn")
.logOutputFormat("logOutputFormat")
.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.EC2;
var vpnTunnelLogOptionsSpecificationProperty = new VpnTunnelLogOptionsSpecificationProperty {
CloudwatchLogOptions = new CloudwatchLogOptionsSpecificationProperty {
BgpLogEnabled = false,
BgpLogGroupArn = "bgpLogGroupArn",
BgpLogOutputFormat = "bgpLogOutputFormat",
LogEnabled = false,
LogGroupArn = "logGroupArn",
LogOutputFormat = "logOutputFormat"
}
};
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"
vpnTunnelLogOptionsSpecificationProperty := &VpnTunnelLogOptionsSpecificationProperty{
CloudwatchLogOptions: &CloudwatchLogOptionsSpecificationProperty{
BgpLogEnabled: jsii.Boolean(false),
BgpLogGroupArn: jsii.String("bgpLogGroupArn"),
BgpLogOutputFormat: jsii.String("bgpLogOutputFormat"),
LogEnabled: jsii.Boolean(false),
LogGroupArn: jsii.String("logGroupArn"),
LogOutputFormat: jsii.String("logOutputFormat"),
},
}
Properties
cloudwatchLogOptionsoptionalIResolvable | CfnVPNConnection.cloudwatch_log_optionsoptionaltyping.Union[IResolvable, CloudwatchLogOptionsSpecificationProperty]cloudwatchLogOptionsoptionalIResolvableCloudwatchLogOptionsoptionalIResolvableCloudwatchLogOptionsoptionalinterface{} #Options for sending VPN tunnel logs to CloudWatch.