Class: AWSCDK::EC2::CfnVPNConnection::CloudwatchLogOptionsSpecificationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnVPNConnection::CloudwatchLogOptionsSpecificationProperty
- Defined in:
- ec2/cfn_vpn_connection.rb
Overview
Options for sending VPN tunnel logs to CloudWatch.
Instance Attribute Summary collapse
-
#bgp_log_enabled ⇒ Boolean, ...
readonly
Specifies whether to enable BGP logging for the VPN connection.
-
#bgp_log_group_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.
-
#bgp_log_output_format ⇒ String?
readonly
The desired output format for BGP logs to be sent to CloudWatch.
-
#log_enabled ⇒ Boolean, ...
readonly
Enable or disable VPN tunnel logging feature.
-
#log_group_arn ⇒ String?
readonly
The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
-
#log_output_format ⇒ String?
readonly
Set log format.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bgp_log_enabled: nil, bgp_log_group_arn: nil, bgp_log_output_format: nil, log_enabled: nil, log_group_arn: nil, log_output_format: nil) ⇒ CloudwatchLogOptionsSpecificationProperty
constructor
A new instance of CloudwatchLogOptionsSpecificationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bgp_log_enabled: nil, bgp_log_group_arn: nil, bgp_log_output_format: nil, log_enabled: nil, log_group_arn: nil, log_output_format: nil) ⇒ CloudwatchLogOptionsSpecificationProperty
Returns a new instance of CloudwatchLogOptionsSpecificationProperty.
762 763 764 765 766 767 768 769 770 771 772 773 774 775 |
# File 'ec2/cfn_vpn_connection.rb', line 762 def initialize(bgp_log_enabled: nil, bgp_log_group_arn: nil, bgp_log_output_format: nil, log_enabled: nil, log_group_arn: nil, log_output_format: nil) @bgp_log_enabled = bgp_log_enabled Jsii::Type.check_type(@bgp_log_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "bgpLogEnabled") unless @bgp_log_enabled.nil? @bgp_log_group_arn = bgp_log_group_arn Jsii::Type.check_type(@bgp_log_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bgpLogGroupArn") unless @bgp_log_group_arn.nil? @bgp_log_output_format = bgp_log_output_format Jsii::Type.check_type(@bgp_log_output_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "bgpLogOutputFormat") unless @bgp_log_output_format.nil? @log_enabled = log_enabled Jsii::Type.check_type(@log_enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "logEnabled") unless @log_enabled.nil? @log_group_arn = log_group_arn Jsii::Type.check_type(@log_group_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupArn") unless @log_group_arn.nil? @log_output_format = log_output_format Jsii::Type.check_type(@log_output_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logOutputFormat") unless @log_output_format.nil? end |
Instance Attribute Details
#bgp_log_enabled ⇒ Boolean, ... (readonly)
Specifies whether to enable BGP logging for the VPN connection. Default value is False .
Valid values: True | False
783 784 785 |
# File 'ec2/cfn_vpn_connection.rb', line 783 def bgp_log_enabled @bgp_log_enabled end |
#bgp_log_group_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the CloudWatch log group where BGP logs will be sent.
788 789 790 |
# File 'ec2/cfn_vpn_connection.rb', line 788 def bgp_log_group_arn @bgp_log_group_arn end |
#bgp_log_output_format ⇒ String? (readonly)
The desired output format for BGP logs to be sent to CloudWatch. Default format is json .
Valid values: json | text
795 796 797 |
# File 'ec2/cfn_vpn_connection.rb', line 795 def bgp_log_output_format @bgp_log_output_format end |
#log_enabled ⇒ Boolean, ... (readonly)
Enable or disable VPN tunnel logging feature. Default value is False .
Valid values: True | False
802 803 804 |
# File 'ec2/cfn_vpn_connection.rb', line 802 def log_enabled @log_enabled end |
#log_group_arn ⇒ String? (readonly)
The Amazon Resource Name (ARN) of the CloudWatch log group to send logs to.
807 808 809 |
# File 'ec2/cfn_vpn_connection.rb', line 807 def log_group_arn @log_group_arn end |
#log_output_format ⇒ String? (readonly)
Set log format. Default format is json .
Valid values: json | text
814 815 816 |
# File 'ec2/cfn_vpn_connection.rb', line 814 def log_output_format @log_output_format end |
Class Method Details
.jsii_properties ⇒ Object
816 817 818 819 820 821 822 823 824 825 |
# File 'ec2/cfn_vpn_connection.rb', line 816 def self.jsii_properties { :bgp_log_enabled => "bgpLogEnabled", :bgp_log_group_arn => "bgpLogGroupArn", :bgp_log_output_format => "bgpLogOutputFormat", :log_enabled => "logEnabled", :log_group_arn => "logGroupArn", :log_output_format => "logOutputFormat", } end |
Instance Method Details
#to_jsii ⇒ Object
827 828 829 830 831 832 833 834 835 836 837 838 |
# File 'ec2/cfn_vpn_connection.rb', line 827 def to_jsii result = {} result.merge!({ "bgpLogEnabled" => @bgp_log_enabled, "bgpLogGroupArn" => @bgp_log_group_arn, "bgpLogOutputFormat" => @bgp_log_output_format, "logEnabled" => @log_enabled, "logGroupArn" => @log_group_arn, "logOutputFormat" => @log_output_format, }) result.compact end |