Class: AWSCDK::BedrockAgentCore::LoggingConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::LoggingConfig
- Defined in:
- bedrock_agent_core/logging_config.rb
Overview
Configuration for logging with log type and destination.
Instance Attribute Summary collapse
-
#destination ⇒ AWSCDK::BedrockAgentCore::LoggingDestination
readonly
The destination for logs.
-
#log_type ⇒ AWSCDK::BedrockAgentCore::LogType
readonly
The type of logs to deliver.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(destination:, log_type:) ⇒ LoggingConfig
constructor
A new instance of LoggingConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(destination:, log_type:) ⇒ LoggingConfig
Returns a new instance of LoggingConfig.
9 10 11 12 13 14 |
# File 'bedrock_agent_core/logging_config.rb', line 9 def initialize(destination:, log_type:) @destination = destination Jsii::Type.check_type(@destination, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5Mb2dnaW5nRGVzdGluYXRpb24ifQ==")), "destination") @log_type = log_type Jsii::Type.check_type(@log_type, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYmVkcm9ja2FnZW50Y29yZS5Mb2dUeXBlIn0=")), "logType") end |
Instance Attribute Details
#destination ⇒ AWSCDK::BedrockAgentCore::LoggingDestination (readonly)
The destination for logs.
19 20 21 |
# File 'bedrock_agent_core/logging_config.rb', line 19 def destination @destination end |
#log_type ⇒ AWSCDK::BedrockAgentCore::LogType (readonly)
The type of logs to deliver.
23 24 25 |
# File 'bedrock_agent_core/logging_config.rb', line 23 def log_type @log_type end |
Class Method Details
.jsii_properties ⇒ Object
25 26 27 28 29 30 |
# File 'bedrock_agent_core/logging_config.rb', line 25 def self.jsii_properties { :destination => "destination", :log_type => "logType", } end |
Instance Method Details
#to_jsii ⇒ Object
32 33 34 35 36 37 38 39 |
# File 'bedrock_agent_core/logging_config.rb', line 32 def to_jsii result = {} result.merge!({ "destination" => @destination, "logType" => @log_type, }) result.compact end |