Class: AWSCDK::Interfaces::AWSWisdom::AIAgentReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_wisdom/ai_agent_reference.rb

Overview

A reference to a AIAgent resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ai_agent_arn:, ai_agent_id:, assistant_id:) ⇒ AIAgentReference

Returns a new instance of AIAgentReference.

Parameters:

  • ai_agent_arn (String)

    The ARN of the AIAgent resource.

  • ai_agent_id (String)

    The AIAgentId of the AIAgent resource.

  • assistant_id (String)

    The AssistantId of the AIAgent resource.



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

def initialize(ai_agent_arn:, ai_agent_id:, assistant_id:)
  @ai_agent_arn = ai_agent_arn
  Jsii::Type.check_type(@ai_agent_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aiAgentArn")
  @ai_agent_id = ai_agent_id
  Jsii::Type.check_type(@ai_agent_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aiAgentId")
  @assistant_id = assistant_id
  Jsii::Type.check_type(@assistant_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assistantId")
end

Instance Attribute Details

#ai_agent_arnString (readonly)

The ARN of the AIAgent resource.

Returns:

  • (String)


22
23
24
# File 'interfaces/aws_wisdom/ai_agent_reference.rb', line 22

def ai_agent_arn
  @ai_agent_arn
end

#ai_agent_idString (readonly)

The AIAgentId of the AIAgent resource.

Returns:

  • (String)


26
27
28
# File 'interfaces/aws_wisdom/ai_agent_reference.rb', line 26

def ai_agent_id
  @ai_agent_id
end

#assistant_idString (readonly)

The AssistantId of the AIAgent resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_wisdom/ai_agent_reference.rb', line 30

def assistant_id
  @assistant_id
end

Class Method Details

.jsii_propertiesObject



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

def self.jsii_properties
  {
    :ai_agent_arn => "aiAgentArn",
    :ai_agent_id => "aiAgentId",
    :assistant_id => "assistantId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "aiAgentArn" => @ai_agent_arn,
    "aiAgentId" => @ai_agent_id,
    "assistantId" => @assistant_id,
  })
  result.compact
end