Class: AWSCDK::Glue::CfnClassifier::JsonClassifierProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnClassifier::JsonClassifierProperty
- Defined in:
- glue/cfn_classifier.rb
Overview
A classifier for JSON content.
Instance Attribute Summary collapse
-
#json_path ⇒ String
readonly
A
JsonPathstring defining the JSON data for the classifier to classify. -
#name ⇒ String?
readonly
The name of the classifier.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(json_path:, name: nil) ⇒ JsonClassifierProperty
constructor
A new instance of JsonClassifierProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(json_path:, name: nil) ⇒ JsonClassifierProperty
Returns a new instance of JsonClassifierProperty.
734 735 736 737 738 739 |
# File 'glue/cfn_classifier.rb', line 734 def initialize(json_path:, name: nil) @json_path = json_path Jsii::Type.check_type(@json_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "jsonPath") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#json_path ⇒ String (readonly)
A JsonPath string defining the JSON data for the classifier to classify.
AWS Glue supports a subset of JsonPath , as described in Writing JsonPath Custom Classifiers .
747 748 749 |
# File 'glue/cfn_classifier.rb', line 747 def json_path @json_path end |
#name ⇒ String? (readonly)
The name of the classifier.
752 753 754 |
# File 'glue/cfn_classifier.rb', line 752 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
754 755 756 757 758 759 |
# File 'glue/cfn_classifier.rb', line 754 def self.jsii_properties { :json_path => "jsonPath", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
761 762 763 764 765 766 767 768 |
# File 'glue/cfn_classifier.rb', line 761 def to_jsii result = {} result.merge!({ "jsonPath" => @json_path, "name" => @name, }) result.compact end |