Class: AWSCDK::Pipes::CfnPipe::PipeTargetCloudWatchLogsParametersProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Pipes::CfnPipe::PipeTargetCloudWatchLogsParametersProperty
- Defined in:
- pipes/cfn_pipe.rb
Overview
The parameters for using an CloudWatch Logs log stream as a target.
Instance Attribute Summary collapse
-
#log_stream_name ⇒ String?
readonly
The name of the log stream.
-
#timestamp ⇒ String?
readonly
A dynamic path parameter to a field in the payload containing the time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(log_stream_name: nil, timestamp: nil) ⇒ PipeTargetCloudWatchLogsParametersProperty
constructor
A new instance of PipeTargetCloudWatchLogsParametersProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(log_stream_name: nil, timestamp: nil) ⇒ PipeTargetCloudWatchLogsParametersProperty
Returns a new instance of PipeTargetCloudWatchLogsParametersProperty.
3070 3071 3072 3073 3074 3075 |
# File 'pipes/cfn_pipe.rb', line 3070 def initialize(log_stream_name: nil, timestamp: 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? @timestamp = Jsii::Type.check_type(@timestamp, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timestamp") unless @timestamp.nil? end |
Instance Attribute Details
#log_stream_name ⇒ String? (readonly)
The name of the log stream.
3081 3082 3083 |
# File 'pipes/cfn_pipe.rb', line 3081 def log_stream_name @log_stream_name end |
#timestamp ⇒ String? (readonly)
A dynamic path parameter to a field in the payload containing the time the event occurred, expressed as the number of milliseconds after Jan 1, 1970 00:00:00 UTC.
The value cannot be a static timestamp as the provided timestamp would be applied to all events delivered by the Pipe, regardless of when they are actually delivered.
If no dynamic path parameter is provided, the default value is the time the invocation is processed by the Pipe.
3090 3091 3092 |
# File 'pipes/cfn_pipe.rb', line 3090 def @timestamp end |
Class Method Details
.jsii_properties ⇒ Object
3092 3093 3094 3095 3096 3097 |
# File 'pipes/cfn_pipe.rb', line 3092 def self.jsii_properties { :log_stream_name => "logStreamName", :timestamp => "timestamp", } end |
Instance Method Details
#to_jsii ⇒ Object
3099 3100 3101 3102 3103 3104 3105 3106 |
# File 'pipes/cfn_pipe.rb', line 3099 def to_jsii result = {} result.merge!({ "logStreamName" => @log_stream_name, "timestamp" => @timestamp, }) result.compact end |