Class: AWSCDK::Bedrock::CfnPromptVersion::PromptAgentResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
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

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agent_identifier:) ⇒ PromptAgentResourceProperty

Returns a new instance of PromptAgentResourceProperty.

Parameters:

  • agent_identifier (String)

    The ARN of the agent with which to use the prompt.



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_identifierString (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_propertiesObject



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_jsiiObject



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