Class: AWSCDK::BedrockAgentCore::RecordingConfig
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::BedrockAgentCore::RecordingConfig
- Defined in:
- bedrock_agent_core/recording_config.rb
Overview
Recording configuration for browser.
Instance Attribute Summary collapse
-
#enabled ⇒ Boolean?
readonly
Whether recording is enabled.
-
#s3_location ⇒ AWSCDK::S3::Location?
readonly
S3 Location Configuration.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(enabled: nil, s3_location: nil) ⇒ RecordingConfig
constructor
A new instance of RecordingConfig.
- #to_jsii ⇒ Object
Constructor Details
#initialize(enabled: nil, s3_location: nil) ⇒ RecordingConfig
Returns a new instance of RecordingConfig.
9 10 11 12 13 14 |
# File 'bedrock_agent_core/recording_config.rb', line 9 def initialize(enabled: nil, s3_location: nil) @enabled = enabled Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJib29sZWFuIn0=")), "enabled") unless @enabled.nil? @s3_location = s3_location.is_a?(Hash) ? ::AWSCDK::S3::Location.new(**s3_location.transform_keys(&:to_sym)) : s3_location Jsii::Type.check_type(@s3_location, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfczMuTG9jYXRpb24ifQ==")), "s3Location") unless @s3_location.nil? end |
Instance Attribute Details
#enabled ⇒ Boolean? (readonly)
Note:
Default: false
Whether recording is enabled.
20 21 22 |
# File 'bedrock_agent_core/recording_config.rb', line 20 def enabled @enabled end |
#s3_location ⇒ AWSCDK::S3::Location? (readonly)
Note:
Default: - undefined
S3 Location Configuration.
25 26 27 |
# File 'bedrock_agent_core/recording_config.rb', line 25 def s3_location @s3_location end |
Class Method Details
.jsii_properties ⇒ Object
27 28 29 30 31 32 |
# File 'bedrock_agent_core/recording_config.rb', line 27 def self.jsii_properties { :enabled => "enabled", :s3_location => "s3Location", } end |
Instance Method Details
#to_jsii ⇒ Object
34 35 36 37 38 39 40 41 |
# File 'bedrock_agent_core/recording_config.rb', line 34 def to_jsii result = {} result.merge!({ "enabled" => @enabled, "s3Location" => @s3_location, }) result.compact end |