Class: AWSCDK::Interfaces::AWSWisdom::AIPromptReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSWisdom::AIPromptReference
- Defined in:
- interfaces/aws_wisdom/ai_prompt_reference.rb
Overview
A reference to a AIPrompt resource.
Instance Attribute Summary collapse
-
#ai_prompt_arn ⇒ String
readonly
The ARN of the AIPrompt resource.
-
#ai_prompt_id ⇒ String
readonly
The AIPromptId of the AIPrompt resource.
-
#assistant_id ⇒ String
readonly
The AssistantId of the AIPrompt resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(ai_prompt_arn:, ai_prompt_id:, assistant_id:) ⇒ AIPromptReference
constructor
A new instance of AIPromptReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(ai_prompt_arn:, ai_prompt_id:, assistant_id:) ⇒ AIPromptReference
Returns a new instance of AIPromptReference.
10 11 12 13 14 15 16 17 |
# File 'interfaces/aws_wisdom/ai_prompt_reference.rb', line 10 def initialize(ai_prompt_arn:, ai_prompt_id:, assistant_id:) @ai_prompt_arn = ai_prompt_arn Jsii::Type.check_type(@ai_prompt_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aiPromptArn") @ai_prompt_id = ai_prompt_id Jsii::Type.check_type(@ai_prompt_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aiPromptId") @assistant_id = assistant_id Jsii::Type.check_type(@assistant_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assistantId") end |
Instance Attribute Details
#ai_prompt_arn ⇒ String (readonly)
The ARN of the AIPrompt resource.
22 23 24 |
# File 'interfaces/aws_wisdom/ai_prompt_reference.rb', line 22 def ai_prompt_arn @ai_prompt_arn end |
#ai_prompt_id ⇒ String (readonly)
The AIPromptId of the AIPrompt resource.
26 27 28 |
# File 'interfaces/aws_wisdom/ai_prompt_reference.rb', line 26 def ai_prompt_id @ai_prompt_id end |
#assistant_id ⇒ String (readonly)
The AssistantId of the AIPrompt resource.
30 31 32 |
# File 'interfaces/aws_wisdom/ai_prompt_reference.rb', line 30 def assistant_id @assistant_id end |
Class Method Details
.jsii_properties ⇒ Object
32 33 34 35 36 37 38 |
# File 'interfaces/aws_wisdom/ai_prompt_reference.rb', line 32 def self.jsii_properties { :ai_prompt_arn => "aiPromptArn", :ai_prompt_id => "aiPromptId", :assistant_id => "assistantId", } end |
Instance Method Details
#to_jsii ⇒ Object
40 41 42 43 44 45 46 47 48 |
# File 'interfaces/aws_wisdom/ai_prompt_reference.rb', line 40 def to_jsii result = {} result.merge!({ "aiPromptArn" => @ai_prompt_arn, "aiPromptId" => @ai_prompt_id, "assistantId" => @assistant_id, }) result.compact end |