Class: AWSCDK::Wisdom::CfnKnowledgeBase::RenderingConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Wisdom::CfnKnowledgeBase::RenderingConfigurationProperty
- Defined in:
- wisdom/cfn_knowledge_base.rb
Overview
Information about how to render the content.
Instance Attribute Summary collapse
-
#template_uri ⇒ String?
readonly
A URI template containing exactly one variable in
${variableName}format.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(template_uri: nil) ⇒ RenderingConfigurationProperty
constructor
A new instance of RenderingConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(template_uri: nil) ⇒ RenderingConfigurationProperty
Returns a new instance of RenderingConfigurationProperty.
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_uri ⇒ String? (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, orIsDeleted - ServiceNow:
number,short_description,sys_mod_count,workflow_state, oractive - Zendesk:
id,title,updated_at, ordraft
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_properties ⇒ Object
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_jsii ⇒ Object
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 |