Class: AWSCDK::ObservabilityAdmin::CfnOrganizationTelemetryRule::VPCFlowLogParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
observability_admin/cfn_organization_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).



1367
1368
1369
1370
1371
1372
1373
1374
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1367

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.



1380
1381
1382
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1380

def log_format
  @log_format
end

#max_aggregation_intervalNumeric? (readonly)

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



1385
1386
1387
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1385

def max_aggregation_interval
  @max_aggregation_interval
end

#traffic_typeString? (readonly)

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



1390
1391
1392
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1390

def traffic_type
  @traffic_type
end

Class Method Details

.jsii_propertiesObject



1392
1393
1394
1395
1396
1397
1398
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1392

def self.jsii_properties
  {
    :log_format => "logFormat",
    :max_aggregation_interval => "maxAggregationInterval",
    :traffic_type => "trafficType",
  }
end

Instance Method Details

#to_jsiiObject



1400
1401
1402
1403
1404
1405
1406
1407
1408
# File 'observability_admin/cfn_organization_telemetry_rule.rb', line 1400

def to_jsii
  result = {}
  result.merge!({
    "logFormat" => @log_format,
    "maxAggregationInterval" => @max_aggregation_interval,
    "trafficType" => @traffic_type,
  })
  result.compact
end