Class: AWSCDK::BedrockAgentCore::LoggingConfig

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

Overview

Configuration for logging with log type and destination.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(destination:, log_type:) ⇒ LoggingConfig

Returns a new instance of LoggingConfig.

Parameters:



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

#destinationAWSCDK::BedrockAgentCore::LoggingDestination (readonly)

The destination for logs.



19
20
21
# File 'bedrock_agent_core/logging_config.rb', line 19

def destination
  @destination
end

#log_typeAWSCDK::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_propertiesObject



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_jsiiObject



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