Class: AWSCDK::DataBrew::CfnProject::SampleProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnProject::SampleProperty
- 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
-
#size ⇒ Numeric?
readonly
The number of rows in the sample.
-
#type ⇒ String
readonly
The way in which DataBrew obtains rows from a dataset.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(type:, size: nil) ⇒ SampleProperty
constructor
A new instance of SampleProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(type:, size: nil) ⇒ SampleProperty
Returns a new instance of SampleProperty.
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
#size ⇒ Numeric? (readonly)
The number of rows in the sample.
585 586 587 |
# File 'data_brew/cfn_project.rb', line 585 def size @size end |
#type ⇒ String (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_properties ⇒ Object
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_jsii ⇒ Object
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 |