Class: AWSCDK::Bedrock::CfnPromptVersion::PromptAgentResourceProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Bedrock::CfnPromptVersion::PromptAgentResourceProperty
- Defined in:
- bedrock/cfn_prompt_version.rb
Overview
Contains specifications for an Amazon Bedrock agent with which to use the prompt.
For more information, see Create a prompt using Prompt management and Automate tasks in your application using conversational agents .
Instance Attribute Summary collapse
-
#agent_identifier ⇒ String
readonly
The ARN of the agent with which to use the prompt.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_identifier:) ⇒ PromptAgentResourceProperty
constructor
A new instance of PromptAgentResourceProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(agent_identifier:) ⇒ PromptAgentResourceProperty
Returns a new instance of PromptAgentResourceProperty.
801 802 803 804 |
# File 'bedrock/cfn_prompt_version.rb', line 801 def initialize(agent_identifier:) @agent_identifier = agent_identifier Jsii::Type.check_type(@agent_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentIdentifier") end |
Instance Attribute Details
#agent_identifier ⇒ String (readonly)
The ARN of the agent with which to use the prompt.
810 811 812 |
# File 'bedrock/cfn_prompt_version.rb', line 810 def agent_identifier @agent_identifier end |
Class Method Details
.jsii_properties ⇒ Object
812 813 814 815 816 |
# File 'bedrock/cfn_prompt_version.rb', line 812 def self.jsii_properties { :agent_identifier => "agentIdentifier", } end |
Instance Method Details
#to_jsii ⇒ Object
818 819 820 821 822 823 824 |
# File 'bedrock/cfn_prompt_version.rb', line 818 def to_jsii result = {} result.merge!({ "agentIdentifier" => @agent_identifier, }) result.compact end |