Class: AWSCDK::AppFlow::CfnFlow::AggregationConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
app_flow/cfn_flow.rb

Overview

The aggregation settings that you can use to customize the output format of your flow data.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(aggregation_type: nil, target_file_size: nil) ⇒ AggregationConfigProperty

Returns a new instance of AggregationConfigProperty.

Parameters:

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

    Specifies whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated.

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

    The desired file size, in MB, for each output file that Amazon AppFlow writes to the flow destination.



668
669
670
671
672
673
# File 'app_flow/cfn_flow.rb', line 668

def initialize(aggregation_type: nil, target_file_size: nil)
  @aggregation_type = aggregation_type
  Jsii::Type.check_type(@aggregation_type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aggregationType") unless @aggregation_type.nil?
  @target_file_size = target_file_size
  Jsii::Type.check_type(@target_file_size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "targetFileSize") unless @target_file_size.nil?
end

Instance Attribute Details

#aggregation_typeString? (readonly)

Specifies whether Amazon AppFlow aggregates the flow records into a single file, or leave them unaggregated.



679
680
681
# File 'app_flow/cfn_flow.rb', line 679

def aggregation_type
  @aggregation_type
end

#target_file_sizeNumeric? (readonly)

The desired file size, in MB, for each output file that Amazon AppFlow writes to the flow destination.

For each file, Amazon AppFlow attempts to achieve the size that you specify. The actual file sizes might differ from this target based on the number and size of the records that each file contains.



686
687
688
# File 'app_flow/cfn_flow.rb', line 686

def target_file_size
  @target_file_size
end

Class Method Details

.jsii_propertiesObject



688
689
690
691
692
693
# File 'app_flow/cfn_flow.rb', line 688

def self.jsii_properties
  {
    :aggregation_type => "aggregationType",
    :target_file_size => "targetFileSize",
  }
end

Instance Method Details

#to_jsiiObject



695
696
697
698
699
700
701
702
# File 'app_flow/cfn_flow.rb', line 695

def to_jsii
  result = {}
  result.merge!({
    "aggregationType" => @aggregation_type,
    "targetFileSize" => @target_file_size,
  })
  result.compact
end