Class: AWSCDK::ObservabilityAdmin::CfnTelemetryRule::VPCFlowLogParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
observability_admin/cfn_telemetry_rule.rb

Overview

Configuration parameters specific to VPC Flow Logs.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_format: nil, max_aggregation_interval: nil, traffic_type: nil) ⇒ VPCFlowLogParametersProperty

Returns a new instance of VPCFlowLogParametersProperty.

Parameters:

  • log_format (String, nil) (defaults to: nil)

    The format in which VPC Flow Log entries should be logged.

  • max_aggregation_interval (Numeric, nil) (defaults to: nil)

    The maximum interval in seconds between the capture of flow log records.

  • traffic_type (String, nil) (defaults to: nil)

    The type of traffic to log (ACCEPT, REJECT, or ALL).



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_formatString? (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_intervalNumeric? (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_typeString? (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_propertiesObject



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_jsiiObject



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