Class: AWSCDK::BedrockAgentCore::CfnRuntimeEndpointProps

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
bedrock_agent_core/cfn_runtime_endpoint_props.rb

Overview

Properties for defining a CfnRuntimeEndpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agent_runtime_id:, name:, agent_runtime_version: nil, description: nil, tags: nil) ⇒ CfnRuntimeEndpointProps

Returns a new instance of CfnRuntimeEndpointProps.

Parameters:

  • agent_runtime_id (String)

    The agent runtime ID.

  • name (String)

    The name of the AgentCore Runtime endpoint.

  • agent_runtime_version (String, nil) (defaults to: nil)

    The version of the agent.

  • description (String, nil) (defaults to: nil)

    Contains information about an agent runtime endpoint.

  • tags (Hash{String => String}, nil) (defaults to: nil)

    The tags for the AgentCore Runtime endpoint.



14
15
16
17
18
19
20
21
22
23
24
25
# File 'bedrock_agent_core/cfn_runtime_endpoint_props.rb', line 14

def initialize(agent_runtime_id:, name:, agent_runtime_version: nil, description: nil, tags: nil)
  @agent_runtime_id = agent_runtime_id
  Jsii::Type.check_type(@agent_runtime_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeId")
  @name = name
  Jsii::Type.check_type(@name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "name")
  @agent_runtime_version = agent_runtime_version
  Jsii::Type.check_type(@agent_runtime_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeVersion") unless @agent_runtime_version.nil?
  @description = description
  Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil?
  @tags = tags
  Jsii::Type.check_type(@tags, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoibWFwIn19")), "tags") unless @tags.nil?
end

Instance Attribute Details

#agent_runtime_idString (readonly)

The agent runtime ID.



31
32
33
# File 'bedrock_agent_core/cfn_runtime_endpoint_props.rb', line 31

def agent_runtime_id
  @agent_runtime_id
end

#agent_runtime_versionString? (readonly)

The version of the agent.



41
42
43
# File 'bedrock_agent_core/cfn_runtime_endpoint_props.rb', line 41

def agent_runtime_version
  @agent_runtime_version
end

#descriptionString? (readonly)

Contains information about an agent runtime endpoint.

An agent runtime is the execution environment for a Amazon Bedrock Agent.



48
49
50
# File 'bedrock_agent_core/cfn_runtime_endpoint_props.rb', line 48

def description
  @description
end

#nameString (readonly)

The name of the AgentCore Runtime endpoint.



36
37
38
# File 'bedrock_agent_core/cfn_runtime_endpoint_props.rb', line 36

def name
  @name
end

#tagsHash{String => String}? (readonly)

The tags for the AgentCore Runtime endpoint.



53
54
55
# File 'bedrock_agent_core/cfn_runtime_endpoint_props.rb', line 53

def tags
  @tags
end

Class Method Details

.jsii_propertiesObject



55
56
57
58
59
60
61
62
63
# File 'bedrock_agent_core/cfn_runtime_endpoint_props.rb', line 55

def self.jsii_properties
  {
    :agent_runtime_id => "agentRuntimeId",
    :name => "name",
    :agent_runtime_version => "agentRuntimeVersion",
    :description => "description",
    :tags => "tags",
  }
end

Instance Method Details

#to_jsiiObject



65
66
67
68
69
70
71
72
73
74
75
# File 'bedrock_agent_core/cfn_runtime_endpoint_props.rb', line 65

def to_jsii
  result = {}
  result.merge!({
    "agentRuntimeId" => @agent_runtime_id,
    "name" => @name,
    "agentRuntimeVersion" => @agent_runtime_version,
    "description" => @description,
    "tags" => @tags,
  })
  result.compact
end