Class: AWSCDK::Interfaces::AWSWisdom::AIGuardrailReference

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

Overview

A reference to a AIGuardrail resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(ai_guardrail_arn:, ai_guardrail_id:, assistant_id:) ⇒ AIGuardrailReference

Returns a new instance of AIGuardrailReference.

Parameters:

  • ai_guardrail_arn (String)

    The ARN of the AIGuardrail resource.

  • ai_guardrail_id (String)

    The AIGuardrailId of the AIGuardrail resource.

  • assistant_id (String)

    The AssistantId of the AIGuardrail resource.



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

def initialize(ai_guardrail_arn:, ai_guardrail_id:, assistant_id:)
  @ai_guardrail_arn = ai_guardrail_arn
  Jsii::Type.check_type(@ai_guardrail_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aiGuardrailArn")
  @ai_guardrail_id = ai_guardrail_id
  Jsii::Type.check_type(@ai_guardrail_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "aiGuardrailId")
  @assistant_id = assistant_id
  Jsii::Type.check_type(@assistant_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "assistantId")
end

Instance Attribute Details

#ai_guardrail_arnString (readonly)

The ARN of the AIGuardrail resource.

Returns:

  • (String)


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

def ai_guardrail_arn
  @ai_guardrail_arn
end

#ai_guardrail_idString (readonly)

The AIGuardrailId of the AIGuardrail resource.

Returns:

  • (String)


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

def ai_guardrail_id
  @ai_guardrail_id
end

#assistant_idString (readonly)

The AssistantId of the AIGuardrail resource.

Returns:

  • (String)


30
31
32
# File 'interfaces/aws_wisdom/ai_guardrail_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_guardrail_reference.rb', line 32

def self.jsii_properties
  {
    :ai_guardrail_arn => "aiGuardrailArn",
    :ai_guardrail_id => "aiGuardrailId",
    :assistant_id => "assistantId",
  }
end

Instance Method Details

#to_jsiiObject



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

def to_jsii
  result = {}
  result.merge!({
    "aiGuardrailArn" => @ai_guardrail_arn,
    "aiGuardrailId" => @ai_guardrail_id,
    "assistantId" => @assistant_id,
  })
  result.compact
end