Class: AWSCDK::BedrockAgentCore::RuntimeEndpointAttributes

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

Overview

Attributes for importing an existing Runtime Endpoint.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agent_runtime_arn:, agent_runtime_endpoint_arn:, endpoint_name:, created_at: nil, description: nil, endpoint_id: nil, last_updated_at: nil, live_version: nil, status: nil, target_version: nil) ⇒ RuntimeEndpointAttributes

Returns a new instance of RuntimeEndpointAttributes.

Parameters:

  • agent_runtime_arn (String)

    The ARN of the parent agent runtime.

  • agent_runtime_endpoint_arn (String)

    The ARN of the runtime endpoint.

  • endpoint_name (String)

    The name of the runtime endpoint.

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

    When the endpoint was created.

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

    The description of the runtime endpoint.

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

    The unique identifier of the runtime endpoint.

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

    When the endpoint was last updated.

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

    The live version of the agent runtime that is currently serving requests.

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

    The current status of the runtime endpoint.

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

    The target version the endpoint is transitioning to (during updates).



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/runtime_endpoint_attributes.rb', line 17

def initialize(agent_runtime_arn:, agent_runtime_endpoint_arn:, endpoint_name:, created_at: nil, description: nil, endpoint_id: nil, last_updated_at: nil, live_version: nil, status: nil, target_version: nil)
  @agent_runtime_arn = agent_runtime_arn
  Jsii::Type.check_type(@agent_runtime_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeArn")
  @agent_runtime_endpoint_arn = agent_runtime_endpoint_arn
  Jsii::Type.check_type(@agent_runtime_endpoint_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentRuntimeEndpointArn")
  @endpoint_name = endpoint_name
  Jsii::Type.check_type(@endpoint_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointName")
  @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?
  @endpoint_id = endpoint_id
  Jsii::Type.check_type(@endpoint_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "endpointId") unless @endpoint_id.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?
  @live_version = live_version
  Jsii::Type.check_type(@live_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "liveVersion") unless @live_version.nil?
  @status = status
  Jsii::Type.check_type(@status, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "status") unless @status.nil?
  @target_version = target_version
  Jsii::Type.check_type(@target_version, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetVersion") unless @target_version.nil?
end

Instance Attribute Details

#agent_runtime_arnString (readonly)

The ARN of the parent agent runtime.

Returns:

  • (String)


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

def agent_runtime_arn
  @agent_runtime_arn
end

#agent_runtime_endpoint_arnString (readonly)

The ARN of the runtime endpoint.

Returns:

  • (String)


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

def agent_runtime_endpoint_arn
  @agent_runtime_endpoint_arn
end

#created_atString? (readonly)

Note:

Default: - Creation time not available

When the endpoint was created.

Returns:

  • (String, nil)


56
57
58
# File 'bedrock_agent_core/runtime_endpoint_attributes.rb', line 56

def created_at
  @created_at
end

#descriptionString? (readonly)

Note:

Default: - No description

The description of the runtime endpoint.

Returns:

  • (String, nil)


61
62
63
# File 'bedrock_agent_core/runtime_endpoint_attributes.rb', line 61

def description
  @description
end

#endpoint_idString? (readonly)

Note:

Default: - Endpoint ID not available

The unique identifier of the runtime endpoint.

Returns:

  • (String, nil)


66
67
68
# File 'bedrock_agent_core/runtime_endpoint_attributes.rb', line 66

def endpoint_id
  @endpoint_id
end

#endpoint_nameString (readonly)

The name of the runtime endpoint.

Returns:

  • (String)


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

def endpoint_name
  @endpoint_name
end

#last_updated_atString? (readonly)

Note:

Default: - Last update time not available

When the endpoint was last updated.

Returns:

  • (String, nil)


71
72
73
# File 'bedrock_agent_core/runtime_endpoint_attributes.rb', line 71

def last_updated_at
  @last_updated_at
end

#live_versionString? (readonly)

Note:

Default: - Live version not available

The live version of the agent runtime that is currently serving requests.

Returns:

  • (String, nil)


76
77
78
# File 'bedrock_agent_core/runtime_endpoint_attributes.rb', line 76

def live_version
  @live_version
end

#statusString? (readonly)

Note:

Default: - Status not available

The current status of the runtime endpoint.

Returns:

  • (String, nil)


81
82
83
# File 'bedrock_agent_core/runtime_endpoint_attributes.rb', line 81

def status
  @status
end

#target_versionString? (readonly)

Note:

Default: - Target version not available

The target version the endpoint is transitioning to (during updates).

Returns:

  • (String, nil)


86
87
88
# File 'bedrock_agent_core/runtime_endpoint_attributes.rb', line 86

def target_version
  @target_version
end

Class Method Details

.jsii_propertiesObject



88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'bedrock_agent_core/runtime_endpoint_attributes.rb', line 88

def self.jsii_properties
  {
    :agent_runtime_arn => "agentRuntimeArn",
    :agent_runtime_endpoint_arn => "agentRuntimeEndpointArn",
    :endpoint_name => "endpointName",
    :created_at => "createdAt",
    :description => "description",
    :endpoint_id => "endpointId",
    :last_updated_at => "lastUpdatedAt",
    :live_version => "liveVersion",
    :status => "status",
    :target_version => "targetVersion",
  }
end

Instance Method Details

#to_jsiiObject



103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# File 'bedrock_agent_core/runtime_endpoint_attributes.rb', line 103

def to_jsii
  result = {}
  result.merge!({
    "agentRuntimeArn" => @agent_runtime_arn,
    "agentRuntimeEndpointArn" => @agent_runtime_endpoint_arn,
    "endpointName" => @endpoint_name,
    "createdAt" => @created_at,
    "description" => @description,
    "endpointId" => @endpoint_id,
    "lastUpdatedAt" => @last_updated_at,
    "liveVersion" => @live_version,
    "status" => @status,
    "targetVersion" => @target_version,
  })
  result.compact
end