Class: AWSCDK::Glue::CfnClassifier::XMLClassifierProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
glue/cfn_classifier.rb

Overview

A classifier for XML content.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(classification:, row_tag:, name: nil) ⇒ XMLClassifierProperty

Returns a new instance of XMLClassifierProperty.

Parameters:

  • classification (String)

    An identifier of the data format that the classifier matches.

  • row_tag (String)

    The XML tag designating the element that contains each record in an XML document being parsed.

  • name (String, nil) (defaults to: nil)

    The name of the classifier.



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

#classificationString (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

#nameString? (readonly)

The name of the classifier.



805
806
807
# File 'glue/cfn_classifier.rb', line 805

def name
  @name
end

#row_tagString (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_propertiesObject



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_jsiiObject



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