Class: AWSCDK::BedrockAgentCore::CfnHarness::HarnessAgentCoreGatewayConfigProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(gateway_arn:, outbound_auth: nil) ⇒ HarnessAgentCoreGatewayConfigProperty

Returns a new instance of HarnessAgentCoreGatewayConfigProperty.

Parameters:



1196
1197
1198
1199
1200
1201
# File 'bedrock_agent_core/cfn_harness.rb', line 1196

def initialize(gateway_arn:, outbound_auth: nil)
  @gateway_arn = gateway_arn
  Jsii::Type.check_type(@gateway_arn, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "gatewayArn")
  @outbound_auth = outbound_auth.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnHarness::HarnessGatewayOutboundAuthProperty.new(**outbound_auth.transform_keys(&:to_sym)) : outbound_auth
  Jsii::Type.check_type(@outbound_auth, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkhhcm5lc3MuSGFybmVzc0dhdGV3YXlPdXRib3VuZEF1dGhQcm9wZXJ0eSJ9XX19")), "outboundAuth") unless @outbound_auth.nil?
end

Instance Attribute Details

#gateway_arnString (readonly)



1205
1206
1207
# File 'bedrock_agent_core/cfn_harness.rb', line 1205

def gateway_arn
  @gateway_arn
end

Class Method Details

.jsii_propertiesObject



1210
1211
1212
1213
1214
1215
# File 'bedrock_agent_core/cfn_harness.rb', line 1210

def self.jsii_properties
  {
    :gateway_arn => "gatewayArn",
    :outbound_auth => "outboundAuth",
  }
end

Instance Method Details

#to_jsiiObject



1217
1218
1219
1220
1221
1222
1223
1224
# File 'bedrock_agent_core/cfn_harness.rb', line 1217

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