Class: AWSCDK::BedrockAgentCore::AgentRuntimeAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::AgentRuntimeAttributes
- Defined in:
- bedrock_agent_core/agent_runtime_attributes.rb
Overview
Attributes for importing an existing Agent Runtime.
Instance Attribute Summary collapse
-
#agent_runtime_arn ⇒ String
readonly
The ARN of the agent runtime.
-
#agent_runtime_id ⇒ String
readonly
The ID of the agent runtime.
-
#agent_runtime_name ⇒ String
readonly
The name of the agent runtime.
-
#agent_runtime_version ⇒ String?
readonly
The version of the agent runtime When importing a runtime and this is not specified or undefined, endpoints created on this runtime will point to version "1" unless explicitly overridden.
-
#agent_status ⇒ String?
readonly
The current status of the agent runtime.
-
#created_at ⇒ String?
readonly
The time at which the runtime was created.
-
#description ⇒ String?
readonly
The description of the agent runtime.
-
#last_updated_at ⇒ String?
readonly
The time at which the runtime was last updated.
-
#role_arn ⇒ String
readonly
The IAM role ARN.
-
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>?
readonly
The security groups for this runtime, if in a VPC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(agent_runtime_arn:, agent_runtime_id:, agent_runtime_name:, role_arn:, agent_runtime_version: nil, agent_status: nil, created_at: nil, description: nil, last_updated_at: nil, security_groups: nil) ⇒ AgentRuntimeAttributes
constructor
A new instance of AgentRuntimeAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(agent_runtime_arn:, agent_runtime_id:, agent_runtime_name:, role_arn:, agent_runtime_version: nil, agent_status: nil, created_at: nil, description: nil, last_updated_at: nil, security_groups: nil) ⇒ AgentRuntimeAttributes
Returns a new instance of AgentRuntimeAttributes.
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 17 def initialize(agent_runtime_arn:, agent_runtime_id:, agent_runtime_name:, role_arn:, agent_runtime_version: nil, agent_status: nil, created_at: nil, description: nil, last_updated_at: nil, security_groups: nil) @agent_runtime_arn = agent_runtime_arn Jsii::Type.check_type(@agent_runtime_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeArn") @agent_runtime_id = agent_runtime_id Jsii::Type.check_type(@agent_runtime_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeId") @agent_runtime_name = agent_runtime_name Jsii::Type.check_type(@agent_runtime_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeName") @role_arn = role_arn Jsii::Type.check_type(@role_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "roleArn") @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? @agent_status = agent_status Jsii::Type.check_type(@agent_status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentStatus") unless @agent_status.nil? @created_at = created_at Jsii::Type.check_type(@created_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "createdAt") unless @created_at.nil? @description = description Jsii::Type.check_type(@description, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "description") unless @description.nil? @last_updated_at = last_updated_at Jsii::Type.check_type(@last_updated_at, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "lastUpdatedAt") unless @last_updated_at.nil? @security_groups = security_groups Jsii::Type.check_type(@security_groups, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lYzIuSVNlY3VyaXR5R3JvdXAifSwia2luZCI6ImFycmF5In19")), "securityGroups") unless @security_groups.nil? end |
Instance Attribute Details
#agent_runtime_arn ⇒ String (readonly)
The ARN of the agent runtime.
43 44 45 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 43 def agent_runtime_arn @agent_runtime_arn end |
#agent_runtime_id ⇒ String (readonly)
The ID of the agent runtime.
47 48 49 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 47 def agent_runtime_id @agent_runtime_id end |
#agent_runtime_name ⇒ String (readonly)
The name of the agent runtime.
51 52 53 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 51 def agent_runtime_name @agent_runtime_name end |
#agent_runtime_version ⇒ String? (readonly)
Default: - undefined
The version of the agent runtime When importing a runtime and this is not specified or undefined, endpoints created on this runtime will point to version "1" unless explicitly overridden.
60 61 62 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 60 def agent_runtime_version @agent_runtime_version end |
#agent_status ⇒ String? (readonly)
Default: - Status not available
The current status of the agent runtime.
65 66 67 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 65 def agent_status @agent_status end |
#created_at ⇒ String? (readonly)
Default: - Creation time not available
The time at which the runtime was created.
70 71 72 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 70 def created_at @created_at end |
#description ⇒ String? (readonly)
Default: - No description
The description of the agent runtime.
75 76 77 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 75 def description @description end |
#last_updated_at ⇒ String? (readonly)
Default: - Last update time not available
The time at which the runtime was last updated.
80 81 82 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 80 def last_updated_at @last_updated_at end |
#role_arn ⇒ String (readonly)
The IAM role ARN.
55 56 57 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 55 def role_arn @role_arn end |
#security_groups ⇒ Array<AWSCDK::EC2::ISecurityGroup>? (readonly)
Default: - By default, the runtime is not in a VPC.
The security groups for this runtime, if in a VPC.
85 86 87 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 85 def security_groups @security_groups end |
Class Method Details
.jsii_properties ⇒ Object
87 88 89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 87 def self.jsii_properties { :agent_runtime_arn => "agentRuntimeArn", :agent_runtime_id => "agentRuntimeId", :agent_runtime_name => "agentRuntimeName", :role_arn => "roleArn", :agent_runtime_version => "agentRuntimeVersion", :agent_status => "agentStatus", :created_at => "createdAt", :description => "description", :last_updated_at => "lastUpdatedAt", :security_groups => "securityGroups", } end |
Instance Method Details
#to_jsii ⇒ Object
102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 |
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 102 def to_jsii result = {} result.merge!({ "agentRuntimeArn" => @agent_runtime_arn, "agentRuntimeId" => @agent_runtime_id, "agentRuntimeName" => @agent_runtime_name, "roleArn" => @role_arn, "agentRuntimeVersion" => @agent_runtime_version, "agentStatus" => @agent_status, "createdAt" => @created_at, "description" => @description, "lastUpdatedAt" => @last_updated_at, "securityGroups" => @security_groups, }) result.compact end |