Class: AWSCDK::BedrockAgentCore::AgentRuntimeAttributes

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

Overview

Attributes for importing an existing Agent Runtime.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

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.

Parameters:

  • agent_runtime_arn (String)

    The ARN of the agent runtime.

  • agent_runtime_id (String)

    The ID of the agent runtime.

  • agent_runtime_name (String)

    The name of the agent runtime.

  • role_arn (String)

    The IAM role ARN.

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

    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, nil) (defaults to: nil)

    The current status of the agent runtime.

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

    The time at which the runtime was created.

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

    The description of the agent runtime.

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

    The time at which the runtime was last updated.

  • security_groups (Array<AWSCDK::EC2::ISecurityGroup>, nil) (defaults to: nil)

    The security groups for this runtime, if in a VPC.



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_arnString (readonly)

The ARN of the agent runtime.

Returns:

  • (String)


43
44
45
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 43

def agent_runtime_arn
  @agent_runtime_arn
end

#agent_runtime_idString (readonly)

The ID of the agent runtime.

Returns:

  • (String)


47
48
49
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 47

def agent_runtime_id
  @agent_runtime_id
end

#agent_runtime_nameString (readonly)

The name of the agent runtime.

Returns:

  • (String)


51
52
53
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 51

def agent_runtime_name
  @agent_runtime_name
end

#agent_runtime_versionString? (readonly)

Note:

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.

Returns:

  • (String, nil)


60
61
62
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 60

def agent_runtime_version
  @agent_runtime_version
end

#agent_statusString? (readonly)

Note:

Default: - Status not available

The current status of the agent runtime.

Returns:

  • (String, nil)


65
66
67
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 65

def agent_status
  @agent_status
end

#created_atString? (readonly)

Note:

Default: - Creation time not available

The time at which the runtime was created.

Returns:

  • (String, nil)


70
71
72
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 70

def created_at
  @created_at
end

#descriptionString? (readonly)

Note:

Default: - No description

The description of the agent runtime.

Returns:

  • (String, nil)


75
76
77
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 75

def description
  @description
end

#last_updated_atString? (readonly)

Note:

Default: - Last update time not available

The time at which the runtime was last updated.

Returns:

  • (String, nil)


80
81
82
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 80

def last_updated_at
  @last_updated_at
end

#role_arnString (readonly)

The IAM role ARN.

Returns:

  • (String)


55
56
57
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 55

def role_arn
  @role_arn
end

#security_groupsArray<AWSCDK::EC2::ISecurityGroup>? (readonly)

Note:

Default: - By default, the runtime is not in a VPC.

The security groups for this runtime, if in a VPC.

Returns:



85
86
87
# File 'bedrock_agent_core/agent_runtime_attributes.rb', line 85

def security_groups
  @security_groups
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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