Class: AWSCDK::BedrockAgentCore::ProtocolType

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

Overview

Protocol configuration for Agent Runtime.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ ProtocolType

Returns a new instance of ProtocolType.

Raises:

  • (NoMethodError)


10
11
12
# File 'bedrock_agent_core/protocol_type.rb', line 10

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

Class Method Details

.A2_AAWSCDK::BedrockAgentCore::ProtocolType

A2A protocol.

Returns:

  • (AWSCDK::BedrockAgentCore::ProtocolType)


33
34
35
# File 'bedrock_agent_core/protocol_type.rb', line 33

def self.A2_A()
  Jsii::Kernel.instance.get_static("aws-cdk-lib.aws_bedrockagentcore.ProtocolType", "A2A")
end

.AGUIAWSCDK::BedrockAgentCore::ProtocolType

Agent User Interaction (AGUI) protocol.

Returns:

  • (AWSCDK::BedrockAgentCore::ProtocolType)


40
41
42
# File 'bedrock_agent_core/protocol_type.rb', line 40

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

.HTTPAWSCDK::BedrockAgentCore::ProtocolType

HTTP protocol.

Returns:

  • (AWSCDK::BedrockAgentCore::ProtocolType)


47
48
49
# File 'bedrock_agent_core/protocol_type.rb', line 47

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

.jsii_overridable_methodsObject



14
15
16
17
18
19
# File 'bedrock_agent_core/protocol_type.rb', line 14

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

.MCPAWSCDK::BedrockAgentCore::ProtocolType

Model Context Protocol.

Returns:

  • (AWSCDK::BedrockAgentCore::ProtocolType)


54
55
56
# File 'bedrock_agent_core/protocol_type.rb', line 54

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

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

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

Parameters:

  • value (String)

    The protocol type string value.

Returns:

  • (AWSCDK::BedrockAgentCore::ProtocolType)


25
26
27
28
# File 'bedrock_agent_core/protocol_type.rb', line 25

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.ProtocolType", "of", [value])
end

Instance Method Details

#to_stringString

Returns the string value.

Returns:

  • (String)


68
69
70
# File 'bedrock_agent_core/protocol_type.rb', line 68

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

#valueString

The protocol type string value.

Returns:

  • (String)


61
62
63
# File 'bedrock_agent_core/protocol_type.rb', line 61

def value()
  jsii_get_property("value")
end