Class: AWSCDK::Logs::StreamOptions
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Logs::StreamOptions
- Defined in:
- logs/stream_options.rb
Overview
Properties for a new LogStream created from a LogGroup.
Instance Attribute Summary collapse
-
#log_stream_name ⇒ String?
readonly
The name of the log stream to create.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_stream_name: nil) ⇒ StreamOptions
constructor
A new instance of StreamOptions.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_stream_name: nil) ⇒ StreamOptions
Returns a new instance of StreamOptions.
8 9 10 11 |
# File 'logs/stream_options.rb', line 8 def initialize(log_stream_name: nil) @log_stream_name = log_stream_name Jsii::Type.check_type(@log_stream_name, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "logStreamName") unless @log_stream_name.nil? end |
Instance Attribute Details
#log_stream_name ⇒ String? (readonly)
Note:
Default: Automatically generated
The name of the log stream to create.
The name must be unique within the log group.
19 20 21 |
# File 'logs/stream_options.rb', line 19 def log_stream_name @log_stream_name end |
Class Method Details
.jsii_properties ⇒ Object
21 22 23 24 25 |
# File 'logs/stream_options.rb', line 21 def self.jsii_properties { :log_stream_name => "logStreamName", } end |
Instance Method Details
#to_jsii ⇒ Object
27 28 29 30 31 32 33 |
# File 'logs/stream_options.rb', line 27 def to_jsii result = {} result.merge!({ "logStreamName" => @log_stream_name, }) result.compact end |