Class: AWSCDK::Glue::CfnClassifier::GrokClassifierProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Glue::CfnClassifier::GrokClassifierProperty
- Defined in:
- glue/cfn_classifier.rb
Overview
A classifier that uses grok patterns.
Instance Attribute Summary collapse
-
#classification ⇒ String
readonly
An identifier of the data format that the classifier matches, such as Twitter, JSON, Omniture logs, and so on.
-
#custom_patterns ⇒ String?
readonly
Optional custom grok patterns defined by this classifier.
-
#grok_pattern ⇒ String
readonly
The grok pattern applied to a data store by this classifier.
-
#name ⇒ String?
readonly
The name of the classifier.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(classification:, grok_pattern:, custom_patterns: nil, name: nil) ⇒ GrokClassifierProperty
constructor
A new instance of GrokClassifierProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(classification:, grok_pattern:, custom_patterns: nil, name: nil) ⇒ GrokClassifierProperty
Returns a new instance of GrokClassifierProperty.
669 670 671 672 673 674 675 676 677 678 |
# File 'glue/cfn_classifier.rb', line 669 def initialize(classification:, grok_pattern:, custom_patterns: nil, name: nil) @classification = classification Jsii::Type.check_type(@classification, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "classification") @grok_pattern = grok_pattern Jsii::Type.check_type(@grok_pattern, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "grokPattern") @custom_patterns = custom_patterns Jsii::Type.check_type(@custom_patterns, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "customPatterns") unless @custom_patterns.nil? @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, such as Twitter, JSON, Omniture logs, and so on.
684 685 686 |
# File 'glue/cfn_classifier.rb', line 684 def classification @classification end |
#custom_patterns ⇒ String? (readonly)
Optional custom grok patterns defined by this classifier.
For more information, see custom patterns in Writing Custom Classifiers .
698 699 700 |
# File 'glue/cfn_classifier.rb', line 698 def custom_patterns @custom_patterns end |
#grok_pattern ⇒ String (readonly)
The grok pattern applied to a data store by this classifier.
For more information, see built-in patterns in Writing Custom Classifiers .
691 692 693 |
# File 'glue/cfn_classifier.rb', line 691 def grok_pattern @grok_pattern end |
#name ⇒ String? (readonly)
The name of the classifier.
703 704 705 |
# File 'glue/cfn_classifier.rb', line 703 def name @name end |
Class Method Details
.jsii_properties ⇒ Object
705 706 707 708 709 710 711 712 |
# File 'glue/cfn_classifier.rb', line 705 def self.jsii_properties { :classification => "classification", :grok_pattern => "grokPattern", :custom_patterns => "customPatterns", :name => "name", } end |
Instance Method Details
#to_jsii ⇒ Object
714 715 716 717 718 719 720 721 722 723 |
# File 'glue/cfn_classifier.rb', line 714 def to_jsii result = {} result.merge!({ "classification" => @classification, "grokPattern" => @grok_pattern, "customPatterns" => @custom_patterns, "name" => @name, }) result.compact end |