Class: AWSCDK::Wisdom::CfnKnowledgeBase::RenderingConfigurationProperty

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

Overview

Information about how to render the content.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(template_uri: nil) ⇒ RenderingConfigurationProperty

Returns a new instance of RenderingConfigurationProperty.

Parameters:

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

    A URI template containing exactly one variable in ${variableName} format.



1088
1089
1090
1091
# File 'wisdom/cfn_knowledge_base.rb', line 1088

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

Instance Attribute Details

#template_uriString? (readonly)

A URI template containing exactly one variable in ${variableName} format.

This can only be set for EXTERNAL knowledge bases. For Salesforce, ServiceNow, and Zendesk, the variable must be one of the following:

  • Salesforce: Id , ArticleNumber , VersionNumber , Title , PublishStatus , or IsDeleted
  • ServiceNow: number , short_description , sys_mod_count , workflow_state , or active
  • Zendesk: id , title , updated_at , or draft

The variable is replaced with the actual value for a piece of content when calling GetContent .



1105
1106
1107
# File 'wisdom/cfn_knowledge_base.rb', line 1105

def template_uri
  @template_uri
end

Class Method Details

.jsii_propertiesObject



1107
1108
1109
1110
1111
# File 'wisdom/cfn_knowledge_base.rb', line 1107

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

Instance Method Details

#to_jsiiObject



1113
1114
1115
1116
1117
1118
1119
# File 'wisdom/cfn_knowledge_base.rb', line 1113

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