Class: AWSCDK::EC2::CfnClientVpnEndpoint::ConnectionLogOptionsProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::EC2::CfnClientVpnEndpoint::ConnectionLogOptionsProperty
- Defined in:
- ec2/cfn_client_vpn_endpoint.rb
Overview
Describes the client connection logging options for the Client VPN endpoint.
Instance Attribute Summary collapse
-
#cloudwatch_log_group ⇒ String?
readonly
The name of the CloudWatch Logs log group.
-
#cloudwatch_log_stream ⇒ String?
readonly
The name of the CloudWatch Logs log stream to which the connection data is published.
-
#enabled ⇒ Boolean, AWSCDK::IResolvable
readonly
Indicates whether connection logging is enabled.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled:, cloudwatch_log_group: nil, cloudwatch_log_stream: nil) ⇒ ConnectionLogOptionsProperty
constructor
A new instance of ConnectionLogOptionsProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled:, cloudwatch_log_group: nil, cloudwatch_log_stream: nil) ⇒ ConnectionLogOptionsProperty
Returns a new instance of ConnectionLogOptionsProperty.
1028 1029 1030 1031 1032 1033 1034 1035 |
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1028 def initialize(enabled:, cloudwatch_log_group: nil, cloudwatch_log_stream: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") @cloudwatch_log_group = cloudwatch_log_group Jsii::Type.check_type(@cloudwatch_log_group, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudwatchLogGroup") unless @cloudwatch_log_group.nil? @cloudwatch_log_stream = cloudwatch_log_stream Jsii::Type.check_type(@cloudwatch_log_stream, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "cloudwatchLogStream") unless @cloudwatch_log_stream.nil? end |
Instance Attribute Details
#cloudwatch_log_group ⇒ String? (readonly)
The name of the CloudWatch Logs log group.
Required if connection logging is enabled.
1048 1049 1050 |
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1048 def cloudwatch_log_group @cloudwatch_log_group end |
#cloudwatch_log_stream ⇒ String? (readonly)
The name of the CloudWatch Logs log stream to which the connection data is published.
1053 1054 1055 |
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1053 def cloudwatch_log_stream @cloudwatch_log_stream end |
#enabled ⇒ Boolean, AWSCDK::IResolvable (readonly)
Indicates whether connection logging is enabled.
1041 1042 1043 |
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1041 def enabled @enabled end |
Class Method Details
.jsii_properties ⇒ Object
1055 1056 1057 1058 1059 1060 1061 |
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1055 def self.jsii_properties { :enabled => "enabled", :cloudwatch_log_group => "cloudwatchLogGroup", :cloudwatch_log_stream => "cloudwatchLogStream", } end |
Instance Method Details
#to_jsii ⇒ Object
1063 1064 1065 1066 1067 1068 1069 1070 1071 |
# File 'ec2/cfn_client_vpn_endpoint.rb', line 1063 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "cloudwatchLogGroup" => @cloudwatch_log_group, "cloudwatchLogStream" => @cloudwatch_log_stream, }) result.compact end |