Class: AWSCDK::Comprehend::CfnFlywheel::EntityTypesListItemProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
comprehend/cfn_flywheel.rb

Overview

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(type:) ⇒ EntityTypesListItemProperty

Returns a new instance of EntityTypesListItemProperty.

Parameters:

  • type (String)

    An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.



766
767
768
769
# File 'comprehend/cfn_flywheel.rb', line 766

def initialize(type:)
  @type = type
  Jsii::Type.check_type(@type, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "type")
end

Instance Attribute Details

#typeString (readonly)

An entity type within a labeled training dataset that Amazon Comprehend uses to train a custom entity recognizer.

Entity types must not contain the following invalid characters: \n (line break), \n (escaped line break, \r (carriage return), \r (escaped carriage return), \t (tab), \t (escaped tab), and , (comma).



777
778
779
# File 'comprehend/cfn_flywheel.rb', line 777

def type
  @type
end

Class Method Details

.jsii_propertiesObject



779
780
781
782
783
# File 'comprehend/cfn_flywheel.rb', line 779

def self.jsii_properties
  {
    :type => "type",
  }
end

Instance Method Details

#to_jsiiObject



785
786
787
788
789
790
791
# File 'comprehend/cfn_flywheel.rb', line 785

def to_jsii
  result = {}
  result.merge!({
    "type" => @type,
  })
  result.compact
end