Class: AWSCDK::BedrockAgentCore::McpGatewaySearchType

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

Overview

Search types supported by MCP gateway.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ McpGatewaySearchType

Returns a new instance of McpGatewaySearchType.

Raises:

  • (NoMethodError)


8
9
10
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 8

def initialize(*args)
  raise NoMethodError, "aws-cdk-lib.aws_bedrockagentcore.McpGatewaySearchType does not have a visible constructor; use the provided factory methods"
end

Class Method Details

.jsii_overridable_methodsObject



12
13
14
15
16
17
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 12

def self.jsii_overridable_methods
  {
    :value => { kind: :property, name: "value", is_optional: false },
    :to_string => { kind: :method, name: "toString", is_optional: false },
  }
end

.of(value) ⇒ AWSCDK::BedrockAgentCore::McpGatewaySearchType

Use a custom search type not yet defined in this class.

Parameters:

  • value (String)

    The search type string value.

Returns:

  • (AWSCDK::BedrockAgentCore::McpGatewaySearchType)


23
24
25
26
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 23

def self.of(value)
  Jsii::Type.check_type(value, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "value")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.McpGatewaySearchType", "of", [value])
end

.SEMANTICAWSCDK::BedrockAgentCore::McpGatewaySearchType

Semantic search type.

When semantic search is enabled, your gateway can search the tools via the gateway SDK based off of a natural language phrase.

Returns:

  • (AWSCDK::BedrockAgentCore::McpGatewaySearchType)


34
35
36
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 34

def self.SEMANTIC()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_bedrockagentcore.McpGatewaySearchType", "SEMANTIC")
end

Instance Method Details

#to_stringString

Returns the string value.

Returns:

  • (String)


48
49
50
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 48

def to_string()
  jsii_call_method("toString", [])
end

#valueString

The search type string value.

Returns:

  • (String)


41
42
43
# File 'bedrock_agent_core/mcp_gateway_search_type.rb', line 41

def value()
  jsii_get_property("value")
end