Class: AWSCDK::Wisdom::CfnKnowledgeBase::SeedURLProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
wisdom/cfn_knowledge_base.rb

Overview

A URL for crawling.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(url: nil) ⇒ SeedURLProperty

Returns a new instance of SeedURLProperty.

Parameters:

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

    URL for crawling.



1129
1130
1131
1132
# File 'wisdom/cfn_knowledge_base.rb', line 1129

def initialize(url: nil)
  @url = url
  Jsii::Type.check_type(@url, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "url") unless @url.nil?
end

Instance Attribute Details

#urlString? (readonly)

URL for crawling.



1138
1139
1140
# File 'wisdom/cfn_knowledge_base.rb', line 1138

def url
  @url
end

Class Method Details

.jsii_propertiesObject



1140
1141
1142
1143
1144
# File 'wisdom/cfn_knowledge_base.rb', line 1140

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

Instance Method Details

#to_jsiiObject



1146
1147
1148
1149
1150
1151
1152
# File 'wisdom/cfn_knowledge_base.rb', line 1146

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