Class: AWSCDK::BedrockAgentCore::GatewayAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::GatewayAttributes
- Defined in:
- bedrock_agent_core/gateway_attributes.rb
Overview
Attributes for importing an existing Gateway.
Instance Attribute Summary collapse
-
#gateway_arn ⇒ String
readonly
The ARN of the gateway.
-
#gateway_id ⇒ String
readonly
The ID of the gateway.
-
#gateway_name ⇒ String
readonly
The name of the gateway.
-
#role ⇒ AWSCDK::IAM::IRole
readonly
The IAM role that provides permissions for the gateway.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gateway_arn:, gateway_id:, gateway_name:, role:) ⇒ GatewayAttributes
constructor
A new instance of GatewayAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(gateway_arn:, gateway_id:, gateway_name:, role:) ⇒ GatewayAttributes
Returns a new instance of GatewayAttributes.
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_arn ⇒ String (readonly)
The ARN of the gateway.
25 26 27 |
# File 'bedrock_agent_core/gateway_attributes.rb', line 25 def gateway_arn @gateway_arn end |
#gateway_id ⇒ String (readonly)
The ID of the gateway.
29 30 31 |
# File 'bedrock_agent_core/gateway_attributes.rb', line 29 def gateway_id @gateway_id end |
#gateway_name ⇒ String (readonly)
The name of the gateway.
33 34 35 |
# File 'bedrock_agent_core/gateway_attributes.rb', line 33 def gateway_name @gateway_name end |
#role ⇒ AWSCDK::IAM::IRole (readonly)
The IAM role that provides permissions for the gateway.
37 38 39 |
# File 'bedrock_agent_core/gateway_attributes.rb', line 37 def role @role end |
Class Method Details
.jsii_properties ⇒ Object
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_jsii ⇒ Object
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 |