Class: AWSCDK::BedrockAgentCore::GatewayAttributes

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

Overview

Attributes for importing an existing Gateway.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gateway_arn:, gateway_id:, gateway_name:, role:) ⇒ GatewayAttributes

Returns a new instance of GatewayAttributes.

Parameters:

  • gateway_arn (String)

    The ARN of the gateway.

  • gateway_id (String)

    The ID of the gateway.

  • gateway_name (String)

    The name of the gateway.

  • role (AWSCDK::IAM::IRole)

    The IAM role that provides permissions for the gateway.



11
12
13
14
15
16
17
18
19
20
# File 'bedrock_agent_core/gateway_attributes.rb', line 11

def initialize(gateway_arn:, gateway_id:, gateway_name:, role:)
  @gateway_arn = gateway_arn
  Jsii::Type.check_type(@gateway_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayArn")
  @gateway_id = gateway_id
  Jsii::Type.check_type(@gateway_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayId")
  @gateway_name = gateway_name
  Jsii::Type.check_type(@gateway_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayName")
  @role = role
  Jsii::Type.check_type(@role, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfaWFtLklSb2xlIn0=")), "role")
end

Instance Attribute Details

#gateway_arnString (readonly)

The ARN of the gateway.

Returns:

  • (String)


25
26
27
# File 'bedrock_agent_core/gateway_attributes.rb', line 25

def gateway_arn
  @gateway_arn
end

#gateway_idString (readonly)

The ID of the gateway.

Returns:

  • (String)


29
30
31
# File 'bedrock_agent_core/gateway_attributes.rb', line 29

def gateway_id
  @gateway_id
end

#gateway_nameString (readonly)

The name of the gateway.

Returns:

  • (String)


33
34
35
# File 'bedrock_agent_core/gateway_attributes.rb', line 33

def gateway_name
  @gateway_name
end

#roleAWSCDK::IAM::IRole (readonly)

The IAM role that provides permissions for the gateway.

Returns:



37
38
39
# File 'bedrock_agent_core/gateway_attributes.rb', line 37

def role
  @role
end

Class Method Details

.jsii_propertiesObject



39
40
41
42
43
44
45
46
# File 'bedrock_agent_core/gateway_attributes.rb', line 39

def self.jsii_properties
  {
    :gateway_arn => "gatewayArn",
    :gateway_id => "gatewayId",
    :gateway_name => "gatewayName",
    :role => "role",
  }
end

Instance Method Details

#to_jsiiObject



48
49
50
51
52
53
54
55
56
57
# File 'bedrock_agent_core/gateway_attributes.rb', line 48

def to_jsii
  result = {}
  result.merge!({
    "gatewayArn" => @gateway_arn,
    "gatewayId" => @gateway_id,
    "gatewayName" => @gateway_name,
    "role" => @role,
  })
  result.compact
end