Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::ConnectorTargetConfigurationProperty

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

Overview

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(source:, configurations: nil, enabled: nil) ⇒ ConnectorTargetConfigurationProperty

Returns a new instance of ConnectorTargetConfigurationProperty.



1077
1078
1079
1080
1081
1082
1083
1084
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1077

def initialize(source:, configurations: nil, enabled: nil)
  @source = source.is_a?(Hash) ? ::AWSCDK::BedrockAgentCore::CfnGatewayTarget::ConnectorSourceProperty.new(**source.transform_keys(&:to_sym)) : source
  Jsii::Type.check_type(@source, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLkNmbkdhdGV3YXlUYXJnZXQuQ29ubmVjdG9yU291cmNlUHJvcGVydHkifV19fQ==")), "source")
  @configurations = configurations
  Jsii::Type.check_type(@configurations, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5DZm5HYXRld2F5VGFyZ2V0LkNvbm5lY3RvckNvbmZpZ3VyYXRpb25Qcm9wZXJ0eSJ9XX19LCJraW5kIjoiYXJyYXkifX1dfX0=")), "configurations") unless @configurations.nil?
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "enabled") unless @enabled.nil?
end

Class Method Details

.jsii_propertiesObject



1096
1097
1098
1099
1100
1101
1102
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1096

def self.jsii_properties
  {
    :source => "source",
    :configurations => "configurations",
    :enabled => "enabled",
  }
end

Instance Method Details

#to_jsiiObject



1104
1105
1106
1107
1108
1109
1110
1111
1112
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 1104

def to_jsii
  result = {}
  result.merge!({
    "source" => @source,
    "configurations" => @configurations,
    "enabled" => @enabled,
  })
  result.compact
end