CloudwatchLogOptionsSpecificationProperty Struct
Options for sending VPN tunnel logs to CloudWatch.
| 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 cloudwatchLogOptionsSpecificationProperty: ec2.CfnVPNConnection.CloudwatchLogOptionsSpecificationProperty = {
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
cloudwatch_log_options_specification_property = 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.*;
CloudwatchLogOptionsSpecificationProperty cloudwatchLogOptionsSpecificationProperty = CloudwatchLogOptionsSpecificationProperty.builder()
.bgpLogEnabled(false)
.bgpLogGroupArn("bgpLogGroupArn")
.bgpLogOutputFormat("bgpLogOutputFormat")
.logEnabled(false)
.logGroupArn("logGroupArn")
.logOutputFormat("logOutputFormat")
.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 cloudwatchLogOptionsSpecificationProperty = 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"
cloudwatchLogOptionsSpecificationProperty := &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
bgpLogEnabledoptionalboolean | IResolvablebgp_log_enabledoptionaltyping.Union[bool, IResolvable]bgpLogEnabledoptionalBooleanBgpLogEnabledoptionalboolBgpLogEnabledoptionalinterface{} #Specifies whether to enable BGP logging for the VPN connection. Default value is `False` .
Valid values: True | False
bgpLogGroupArnoptionalstringbgp_log_group_arnoptionalstrbgpLogGroupArnoptionalStringBgpLogGroupArnoptionalstringBgpLogGroupArnoptional*string #The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.
bgpLogOutputFormatoptionalstringbgp_log_output_formatoptionalstrbgpLogOutputFormatoptionalStringBgpLogOutputFormatoptionalstringBgpLogOutputFormatoptional*string #The desired output format for BGP logs to be sent to CloudWatch. Default format is `json` .
Valid values: json | text
logEnabledoptionalboolean | IResolvablelog_enabledoptionaltyping.Union[bool, IResolvable]logEnabledoptionalBooleanLogEnabledoptionalboolLogEnabledoptionalinterface{} #Enable or disable VPN tunnel logging feature. Default value is `False` .
Valid values: True | False
logGroupArnoptionalstringlog_group_arnoptionalstrlogGroupArnoptionalStringLogGroupArnoptionalstringLogGroupArnoptional*string #The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
logOutputFormatoptionalstringlog_output_formatoptionalstrlogOutputFormatoptionalStringLogOutputFormatoptionalstringLogOutputFormatoptional*string #Set log format. Default format is `json` .
Valid values: json | text