Class: AWSCDK::BedrockAgentCore::GatewayExceptionLevel

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

Overview

Exception levels for gateway.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(*args) ⇒ GatewayExceptionLevel

Returns a new instance of GatewayExceptionLevel.

Raises:

  • (NoMethodError)


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

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

Class Method Details

.DEBUGAWSCDK::BedrockAgentCore::GatewayExceptionLevel

Debug mode for granular exception messages.

Allows the return of specific error messages related to the gateway target configuration to help you with debugging.

Returns:

  • (AWSCDK::BedrockAgentCore::GatewayExceptionLevel)


35
36
37
# File 'bedrock_agent_core/gateway_exception_level.rb', line 35

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

.jsii_overridable_methodsObject



12
13
14
15
16
17
# File 'bedrock_agent_core/gateway_exception_level.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::GatewayExceptionLevel

Use a custom exception level not yet defined in this class.

Parameters:

  • value (String)

    The exception level string value.

Returns:

  • (AWSCDK::BedrockAgentCore::GatewayExceptionLevel)


23
24
25
26
# File 'bedrock_agent_core/gateway_exception_level.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.GatewayExceptionLevel", "of", [value])
end

Instance Method Details

#to_stringString

Returns the string value.

Returns:

  • (String)


49
50
51
# File 'bedrock_agent_core/gateway_exception_level.rb', line 49

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

#valueString

The exception level string value.

Returns:

  • (String)


42
43
44
# File 'bedrock_agent_core/gateway_exception_level.rb', line 42

def value()
  jsii_get_property("value")
end