Class: AWSCDK::Interfaces::AWSBedrockagentcore::GatewayReference

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
interfaces/aws_bedrockagentcore/gateway_reference.rb

Overview

A reference to a Gateway resource.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gateway_arn:, gateway_identifier:) ⇒ GatewayReference

Returns a new instance of GatewayReference.

Parameters:

  • gateway_arn (String)

    The ARN of the Gateway resource.

  • gateway_identifier (String)

    The GatewayIdentifier of the Gateway resource.



9
10
11
12
13
14
# File 'interfaces/aws_bedrockagentcore/gateway_reference.rb', line 9

def initialize(gateway_arn:, gateway_identifier:)
  @gateway_arn = gateway_arn
  Jsii::Type.check_type(@gateway_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayArn")
  @gateway_identifier = gateway_identifier
  Jsii::Type.check_type(@gateway_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayIdentifier")
end

Instance Attribute Details

#gateway_arnString (readonly)

The ARN of the Gateway resource.

Returns:

  • (String)


19
20
21
# File 'interfaces/aws_bedrockagentcore/gateway_reference.rb', line 19

def gateway_arn
  @gateway_arn
end

#gateway_identifierString (readonly)

The GatewayIdentifier of the Gateway resource.

Returns:

  • (String)


23
24
25
# File 'interfaces/aws_bedrockagentcore/gateway_reference.rb', line 23

def gateway_identifier
  @gateway_identifier
end

Class Method Details

.jsii_propertiesObject



25
26
27
28
29
30
# File 'interfaces/aws_bedrockagentcore/gateway_reference.rb', line 25

def self.jsii_properties
  {
    :gateway_arn => "gatewayArn",
    :gateway_identifier => "gatewayIdentifier",
  }
end

Instance Method Details

#to_jsiiObject



32
33
34
35
36
37
38
39
# File 'interfaces/aws_bedrockagentcore/gateway_reference.rb', line 32

def to_jsii
  result = {}
  result.merge!({
    "gatewayArn" => @gateway_arn,
    "gatewayIdentifier" => @gateway_identifier,
  })
  result.compact
end