Class: AWSCDK::DataBrew::CfnProject::SampleProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
data_brew/cfn_project.rb

Overview

Represents the sample size and sampling type for DataBrew to use for interactive data analysis.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:, size: nil) ⇒ SampleProperty

Returns a new instance of SampleProperty.

Parameters:

  • type (String)

    The way in which DataBrew obtains rows from a dataset.

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

    The number of rows in the sample.



569
570
571
572
573
574
# File 'data_brew/cfn_project.rb', line 569

def initialize(type:, size: nil)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
  @size = size
  Jsii::Type.check_type(@size, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "size") unless @size.nil?
end

Instance Attribute Details

#sizeNumeric? (readonly)

The number of rows in the sample.



585
586
587
# File 'data_brew/cfn_project.rb', line 585

def size
  @size
end

#typeString (readonly)

The way in which DataBrew obtains rows from a dataset.



580
581
582
# File 'data_brew/cfn_project.rb', line 580

def type
  @type
end

Class Method Details

.jsii_propertiesObject



587
588
589
590
591
592
# File 'data_brew/cfn_project.rb', line 587

def self.jsii_properties
  {
    :type => "type",
    :size => "size",
  }
end

Instance Method Details

#to_jsiiObject



594
595
596
597
598
599
600
601
# File 'data_brew/cfn_project.rb', line 594

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
    "size" => @size,
  })
  result.compact
end