Class: AWSCDK::ObservabilityAdmin::CfnTelemetryRule::VPCFlowLogParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ObservabilityAdmin::CfnTelemetryRule::VPCFlowLogParametersProperty
- Defined in:
- observability_admin/cfn_telemetry_rule.rb
Overview
Configuration parameters specific to VPC Flow Logs.
Instance Attribute Summary collapse
-
#log_format ⇒ String?
readonly
The format in which VPC Flow Log entries should be logged.
-
#max_aggregation_interval ⇒ Numeric?
readonly
The maximum interval in seconds between the capture of flow log records.
-
#traffic_type ⇒ String?
readonly
The type of traffic to log (ACCEPT, REJECT, or ALL).
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_format: nil, max_aggregation_interval: nil, traffic_type: nil) ⇒ VPCFlowLogParametersProperty
constructor
A new instance of VPCFlowLogParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_format: nil, max_aggregation_interval: nil, traffic_type: nil) ⇒ VPCFlowLogParametersProperty
Returns a new instance of VPCFlowLogParametersProperty.
1357 1358 1359 1360 1361 1362 1363 1364 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 1357 def initialize(log_format: nil, max_aggregation_interval: nil, traffic_type: nil) @log_format = log_format Jsii::Type.check_type(@log_format, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logFormat") unless @log_format.nil? @max_aggregation_interval = max_aggregation_interval Jsii::Type.check_type(@max_aggregation_interval, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maxAggregationInterval") unless @max_aggregation_interval.nil? @traffic_type = traffic_type Jsii::Type.check_type(@traffic_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "trafficType") unless @traffic_type.nil? end |
Instance Attribute Details
#log_format ⇒ String? (readonly)
The format in which VPC Flow Log entries should be logged.
1370 1371 1372 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 1370 def log_format @log_format end |
#max_aggregation_interval ⇒ Numeric? (readonly)
The maximum interval in seconds between the capture of flow log records.
1375 1376 1377 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 1375 def max_aggregation_interval @max_aggregation_interval end |
#traffic_type ⇒ String? (readonly)
The type of traffic to log (ACCEPT, REJECT, or ALL).
1380 1381 1382 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 1380 def traffic_type @traffic_type end |
Class Method Details
.jsii_properties ⇒ Object
1382 1383 1384 1385 1386 1387 1388 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 1382 def self.jsii_properties { :log_format => "logFormat", :max_aggregation_interval => "maxAggregationInterval", :traffic_type => "trafficType", } end |
Instance Method Details
#to_jsii ⇒ Object
1390 1391 1392 1393 1394 1395 1396 1397 1398 |
# File 'observability_admin/cfn_telemetry_rule.rb', line 1390 def to_jsii result = {} result.merge!({ "logFormat" => @log_format, "maxAggregationInterval" => @max_aggregation_interval, "trafficType" => @traffic_type, }) result.compact end |