Class: AWSCDK::Logs::LogStreamAttributes
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::LogStreamAttributes
- Defined in:
- logs/log_stream_attributes.rb
Overview
Attributes for importing a LogStream.
Instance Attribute Summary collapse
-
#log_group_name ⇒ String
readonly
The name of the log group.
-
#log_stream_name ⇒ String
readonly
The name of the log stream.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_group_name:, log_stream_name:) ⇒ LogStreamAttributes
constructor
A new instance of LogStreamAttributes.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_group_name:, log_stream_name:) ⇒ LogStreamAttributes
Returns a new instance of LogStreamAttributes.
9 10 11 12 13 14 |
# File 'logs/log_stream_attributes.rb', line 9 def initialize(log_group_name:, log_stream_name:) @log_group_name = log_group_name Jsii::Type.check_type(@log_group_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logGroupName") @log_stream_name = log_stream_name Jsii::Type.check_type(@log_stream_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logStreamName") end |
Instance Attribute Details
#log_group_name ⇒ String (readonly)
Note:
Default: - When not provided, logStreamRef will throw an error
The name of the log group.
20 21 22 |
# File 'logs/log_stream_attributes.rb', line 20 def log_group_name @log_group_name end |
#log_stream_name ⇒ String (readonly)
The name of the log stream.
24 25 26 |
# File 'logs/log_stream_attributes.rb', line 24 def log_stream_name @log_stream_name end |
Class Method Details
.jsii_properties ⇒ Object
26 27 28 29 30 31 |
# File 'logs/log_stream_attributes.rb', line 26 def self.jsii_properties { :log_group_name => "logGroupName", :log_stream_name => "logStreamName", } end |
Instance Method Details
#to_jsii ⇒ Object
33 34 35 36 37 38 39 40 |
# File 'logs/log_stream_attributes.rb', line 33 def to_jsii result = {} result.merge!({ "logGroupName" => @log_group_name, "logStreamName" => @log_stream_name, }) result.compact end |