Class: AWSCDK::Interfaces::AWSBedrockagentcore::GatewayTargetReference
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Interfaces::AWSBedrockagentcore::GatewayTargetReference
- Defined in:
- interfaces/aws_bedrockagentcore/gateway_target_reference.rb
Overview
A reference to a GatewayTarget resource.
Instance Attribute Summary collapse
-
#gateway_identifier ⇒ String
readonly
The GatewayIdentifier of the GatewayTarget resource.
-
#target_id ⇒ String
readonly
The TargetId of the GatewayTarget resource.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(gateway_identifier:, target_id:) ⇒ GatewayTargetReference
constructor
A new instance of GatewayTargetReference.
- #to_jsii ⇒ Object
Constructor Details
#initialize(gateway_identifier:, target_id:) ⇒ GatewayTargetReference
Returns a new instance of GatewayTargetReference.
9 10 11 12 13 14 |
# File 'interfaces/aws_bedrockagentcore/gateway_target_reference.rb', line 9 def initialize(gateway_identifier:, target_id:) @gateway_identifier = gateway_identifier Jsii::Type.check_type(@gateway_identifier, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayIdentifier") @target_id = target_id Jsii::Type.check_type(@target_id, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "targetId") end |
Instance Attribute Details
#gateway_identifier ⇒ String (readonly)
The GatewayIdentifier of the GatewayTarget resource.
19 20 21 |
# File 'interfaces/aws_bedrockagentcore/gateway_target_reference.rb', line 19 def gateway_identifier @gateway_identifier end |
#target_id ⇒ String (readonly)
The TargetId of the GatewayTarget resource.
23 24 25 |
# File 'interfaces/aws_bedrockagentcore/gateway_target_reference.rb', line 23 def target_id @target_id end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'interfaces/aws_bedrockagentcore/gateway_target_reference.rb', line 25 def self.jsii_properties { :gateway_identifier => "gatewayIdentifier", :target_id => "targetId", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'interfaces/aws_bedrockagentcore/gateway_target_reference.rb', line 32 def to_jsii result = {} result.merge!({ "gatewayIdentifier" => @gateway_identifier, "targetId" => @target_id, }) result.compact end |