Class: AWSCDK::BedrockAgentCore::McpConfiguration

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

Overview

MCP protocol configuration The configuration for the Model Context Protocol (MCP).

This protocol enables communication between Amazon Bedrock Agent and external tools.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(instructions: nil, search_type: nil, supported_versions: nil) ⇒ McpConfiguration

Returns a new instance of McpConfiguration.

Parameters:



12
13
14
15
16
17
18
19
# File 'bedrock_agent_core/mcp_configuration.rb', line 12

def initialize(instructions: nil, search_type: nil, supported_versions: nil)
  @instructions = instructions
  Jsii::Type.check_type(@instructions, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "instructions") unless @instructions.nil?
  @search_type = search_type
  Jsii::Type.check_type(@search_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5NY3BHYXRld2F5U2VhcmNoVHlwZSJ9")), "searchType") unless @search_type.nil?
  @supported_versions = supported_versions
  Jsii::Type.check_type(@supported_versions, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7ImZxbiI6ImF3cy1jZGstbGliLmF3c19iZWRyb2NrYWdlbnRjb3JlLk1DUFByb3RvY29sVmVyc2lvbiJ9LCJraW5kIjoiYXJyYXkifX0=")), "supportedVersions") unless @supported_versions.nil?
end

Instance Attribute Details

#instructionsString? (readonly)

Note:

Default: - No instructions provided

The instructions for using the Model Context Protocol gateway.

These instructions provide guidance on how to interact with the gateway.

Returns:

  • (String, nil)


27
28
29
# File 'bedrock_agent_core/mcp_configuration.rb', line 27

def instructions
  @instructions
end

#search_typeAWSCDK::BedrockAgentCore::McpGatewaySearchType? (readonly)

Note:

Default: - No search type specified

The search type for the Model Context Protocol gateway.

This field specifies how the gateway handles search operations.



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

def search_type
  @search_type
end

#supported_versionsArray<AWSCDK::BedrockAgentCore::MCPProtocolVersion>? (readonly)

Note:

Default: - No specific versions specified

The supported versions of the Model Context Protocol.

This field specifies which versions of the protocol the gateway can use.



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

def supported_versions
  @supported_versions
end

Class Method Details

.jsii_propertiesObject



43
44
45
46
47
48
49
# File 'bedrock_agent_core/mcp_configuration.rb', line 43

def self.jsii_properties
  {
    :instructions => "instructions",
    :search_type => "searchType",
    :supported_versions => "supportedVersions",
  }
end

Instance Method Details

#to_jsiiObject



51
52
53
54
55
56
57
58
59
# File 'bedrock_agent_core/mcp_configuration.rb', line 51

def to_jsii
  result = {}
  result.merge!({
    "instructions" => @instructions,
    "searchType" => @search_type,
    "supportedVersions" => @supported_versions,
  })
  result.compact
end