Class: AWSCDK::DataBrew::CfnJob::ColumnSelectorProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::DataBrew::CfnJob::ColumnSelectorProperty
- Defined in:
- data_brew/cfn_job.rb
Overview
Selector of a column from a dataset for profile job configuration.
One selector includes either a column name or a regular expression.
Instance Attribute Summary collapse
-
#name ⇒ String?
readonly
The name of a column from a dataset.
-
#regex ⇒ String?
readonly
A regular expression for selecting a column from a dataset.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(name: nil, regex: nil) ⇒ ColumnSelectorProperty
constructor
A new instance of ColumnSelectorProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(name: nil, regex: nil) ⇒ ColumnSelectorProperty
Returns a new instance of ColumnSelectorProperty.
791 792 793 794 795 796 |
# File 'data_brew/cfn_job.rb', line 791 def initialize(name: nil, regex: nil) @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? @regex = regex Jsii::Type.check_type(@regex, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "regex") unless @regex.nil? end |
Instance Attribute Details
#name ⇒ String? (readonly)
The name of a column from a dataset.
802 803 804 |
# File 'data_brew/cfn_job.rb', line 802 def name @name end |
#regex ⇒ String? (readonly)
A regular expression for selecting a column from a dataset.
807 808 809 |
# File 'data_brew/cfn_job.rb', line 807 def regex @regex end |
Class Method Details
.jsii_properties ⇒ Object
809 810 811 812 813 814 |
# File 'data_brew/cfn_job.rb', line 809 def self.jsii_properties { :name => "name", :regex => "regex", } end |
Instance Method Details
#to_jsii ⇒ Object
816 817 818 819 820 821 822 823 |
# File 'data_brew/cfn_job.rb', line 816 def to_jsii result = {} result.merge!({ "name" => @name, "regex" => @regex, }) result.compact end |