Class: AWSCDK::Glue::CfnClassifier::XMLClassifierProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnClassifier::XMLClassifierProperty
- Defined in:
- glue/cfn_classifier.rb
Overview
A classifier for XML content.
Instance Attribute Summary collapse
-
#classification ⇒ String
readonly
An identifier of the data format that the classifier matches.
-
#name ⇒ String?
readonly
The name of the classifier.
-
#row_tag ⇒ String
readonly
The XML tag designating the element that contains each record in an XML document being parsed.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(classification:, row_tag:, name: nil) ⇒ XMLClassifierProperty
constructor
A new instance of XMLClassifierProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(classification:, row_tag:, name: nil) ⇒ XMLClassifierProperty
Returns a new instance of XMLClassifierProperty.
780 781 782 783 784 785 786 787 |
# File 'glue/cfn_classifier.rb', line 780 def initialize(classification:, row_tag:, name: nil) @classification = classification Jsii::Type.check_type(@classification, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "classification") @row_tag = row_tag Jsii::Type.check_type(@row_tag, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "rowTag") @name = name Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name") unless @name.nil? end |
Instance Attribute Details
#classification ⇒ String (readonly)
An identifier of the data format that the classifier matches.
793 794 795 |
# File 'glue/cfn_classifier.rb', line 793 def classification @classification end |
#name ⇒ String? (readonly)
The name of the classifier.
805 806 807 |
# File 'glue/cfn_classifier.rb', line 805 def name @name end |
#row_tag ⇒ String (readonly)
The XML tag designating the element that contains each record in an XML document being parsed.
This can't identify a self-closing element (closed by /> ). An empty row element that contains only attributes can be parsed as long as it ends with a closing tag (for example, <row item_a="A" item_b="B"></row> is okay, but <row item_a="A" item_b="B" /> is not).
800 801 802 |
# File 'glue/cfn_classifier.rb', line 800 def row_tag @row_tag end |
Class Method Details
.jsii_properties ⇒ Object
807 808 809 810 811 812 813 |
# File 'glue/cfn_classifier.rb', line 807 def self.jsii_properties { :classification => "classification", :row_tag => "rowTag", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
815 816 817 818 819 820 821 822 823 |
# File 'glue/cfn_classifier.rb', line 815 def to_jsii result = {} result.merge!({ "classification" => @classification, "rowTag" => @row_tag, "name" => @name, }) result.compact end |