Class: AWSCDK::Bedrock::CfnPrompt::PromptAgentResourceProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock/cfn_prompt.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.



808
809
810
811
# File 'bedrock/cfn_prompt.rb', line 808

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.



817
818
819
# File 'bedrock/cfn_prompt.rb', line 817

def agent_identifier
  @agent_identifier
end

Class Method Details

.jsii_propertiesObject



819
820
821
822
823
# File 'bedrock/cfn_prompt.rb', line 819

def self.jsii_properties
  {
    :agent_identifier => "agentIdentifier",
  }
end

Instance Method Details

#to_jsiiObject



825
826
827
828
829
830
831
# File 'bedrock/cfn_prompt.rb', line 825

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