Class: AWSCDK::BedrockAgentCore::LoggingDestination

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

Overview

Represents a logging destination for AgentCore Runtime.

Use the static factory methods to create instances:

  • LoggingDestination.cloudWatchLogs(logGroup) - Send logs to CloudWatch Logs
  • LoggingDestination.s3(bucket) - Send logs to S3
  • LoggingDestination.firehose(stream) - Send logs to Kinesis Data Firehose

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeLoggingDestination

Returns a new instance of LoggingDestination.



14
15
16
# File 'bedrock_agent_core/logging_destination.rb', line 14

def initialize
  Jsii::Object.instance_method(:initialize).bind(self).call
end

Class Method Details

.cloud_watch_logs(log_group) ⇒ AWSCDK::BedrockAgentCore::LoggingDestination

Create a logging destination that sends logs to a CloudWatch Log Group.

Parameters:

Returns:

  • (AWSCDK::BedrockAgentCore::LoggingDestination)


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

def self.cloud_watch_logs(log_group)
  Jsii::Type.check_type(log_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbG9ncy5JTG9nR3JvdXAifQ==")), "logGroup")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.LoggingDestination", "cloudWatchLogs", [log_group])
end

.firehose(stream) ⇒ AWSCDK::BedrockAgentCore::LoggingDestination

Create a logging destination that sends logs to a Kinesis Data Firehose delivery stream.

Parameters:

Returns:

  • (AWSCDK::BedrockAgentCore::LoggingDestination)


36
37
38
39
# File 'bedrock_agent_core/logging_destination.rb', line 36

def self.firehose(stream)
  Jsii::Type.check_type(stream, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3Nfa2luZXNpc2ZpcmVob3NlLklEZWxpdmVyeVN0cmVhbSJ9")), "stream")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.LoggingDestination", "firehose", [stream])
end

.jsii_overridable_methodsObject



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

def self.jsii_overridable_methods
  {
  }
end

.s3(bucket) ⇒ AWSCDK::BedrockAgentCore::LoggingDestination

Create a logging destination that sends logs to an S3 bucket.

Parameters:

Returns:

  • (AWSCDK::BedrockAgentCore::LoggingDestination)


45
46
47
48
# File 'bedrock_agent_core/logging_destination.rb', line 45

def self.s3(bucket)
  Jsii::Type.check_type(bucket, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuSUJ1Y2tldCJ9")), "bucket")
  Jsii::Kernel.instance.call_static("aws-cdk-lib.aws_bedrockagentcore.LoggingDestination", "s3", [bucket])
end