Class: AWSCDK::Glue::CfnClassifier::JsonClassifierProperty

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

Overview

A classifier for JSON content.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(json_path:, name: nil) ⇒ JsonClassifierProperty

Returns a new instance of JsonClassifierProperty.

Parameters:

  • json_path (String)

    A JsonPath string defining the JSON data for the classifier to classify.

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

    The name of the classifier.



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_pathString (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

#nameString? (readonly)

The name of the classifier.



752
753
754
# File 'glue/cfn_classifier.rb', line 752

def name
  @name
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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