Class: AWSCDK::BedrockAgentCore::CfnGatewayTarget::APIGatewayToolFilterProperty

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(filter_path:, methods:) ⇒ APIGatewayToolFilterProperty

Returns a new instance of APIGatewayToolFilterProperty.

Parameters:

  • filter_path (String)
  • methods (Array<String>)


724
725
726
727
728
729
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 724

def initialize(filter_path:, methods:)
  @filter_path = filter_path
  Jsii::Type.check_type(@filter_path, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "filterPath")
  @methods = methods
  Jsii::Type.check_type(@methods, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "methods")
end

Instance Attribute Details

#filter_pathString (readonly)



733
734
735
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 733

def filter_path
  @filter_path
end

#methodsArray<String> (readonly)



736
737
738
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 736

def methods
  @methods
end

Class Method Details

.jsii_propertiesObject



738
739
740
741
742
743
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 738

def self.jsii_properties
  {
    :filter_path => "filterPath",
    :methods => "methods",
  }
end

Instance Method Details

#to_jsiiObject



745
746
747
748
749
750
751
752
# File 'bedrock_agent_core/cfn_gateway_target.rb', line 745

def to_jsii
  result = {}
  result.merge!({
    "filterPath" => @filter_path,
    "methods" => @methods,
  })
  result.compact
end