Class: AWSCDK::Interfaces::AWSBedrock::AgentAliasReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_bedrock/agent_alias_reference.rb

Overview

A reference to a AgentAlias resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(agent_alias_arn:, agent_alias_id:, agent_id:) ⇒ AgentAliasReference

Returns a new instance of AgentAliasReference.

Parameters:

  • agent_alias_arn (String)

    The ARN of the AgentAlias resource.

  • agent_alias_id (String)

    The AgentAliasId of the AgentAlias resource.

  • agent_id (String)

    The AgentId of the AgentAlias resource.



10
11
12
13
14
15
16
17
# File 'interfaces/aws_bedrock/agent_alias_reference.rb', line 10

def initialize(agent_alias_arn:, agent_alias_id:, agent_id:)
  @agent_alias_arn = agent_alias_arn
  Jsii::Type.check_type(@agent_alias_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentAliasArn")
  @agent_alias_id = agent_alias_id
  Jsii::Type.check_type(@agent_alias_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentAliasId")
  @agent_id = agent_id
  Jsii::Type.check_type(@agent_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "agentId")
end

Instance Attribute Details

#agent_alias_arnString (readonly)

The ARN of the AgentAlias resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_bedrock/agent_alias_reference.rb', line 22

def agent_alias_arn
  @agent_alias_arn
end

#agent_alias_idString (readonly)

The AgentAliasId of the AgentAlias resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_bedrock/agent_alias_reference.rb', line 26

def agent_alias_id
  @agent_alias_id
end

#agent_idString (readonly)

The AgentId of the AgentAlias resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_bedrock/agent_alias_reference.rb', line 30

def agent_id
  @agent_id
end

Class Method Details

.jsii_propertiesObject



32
33
34
35
36
37
38
# File 'interfaces/aws_bedrock/agent_alias_reference.rb', line 32

def self.jsii_properties
  {
    :agent_alias_arn => "agentAliasArn",
    :agent_alias_id => "agentAliasId",
    :agent_id => "agentId",
  }
end

Instance Method Details

#to_jsiiObject



40
41
42
43
44
45
46
47
48
# File 'interfaces/aws_bedrock/agent_alias_reference.rb', line 40

def to_jsii
  result = {}
  result.merge!({
    "agentAliasArn" => @agent_alias_arn,
    "agentAliasId" => @agent_alias_id,
    "agentId" => @agent_id,
  })
  result.compact
end