Class: AWSCDK::Pipes::CfnPipe::PipeTargetCloudWatchLogsParametersProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
pipes/cfn_pipe.rb

Overview

The parameters for using an CloudWatch Logs log stream as a target.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(log_stream_name: nil, timestamp: nil) ⇒ PipeTargetCloudWatchLogsParametersProperty

Returns a new instance of PipeTargetCloudWatchLogsParametersProperty.

Parameters:

  • log_stream_name (String, nil) (defaults to: nil)

    The name of the log stream.

  • timestamp (String, nil) (defaults to: nil)

    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.



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 = timestamp
  Jsii::Type.check_type(@timestamp, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "timestamp") unless @timestamp.nil?
end

Instance Attribute Details

#log_stream_nameString? (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

#timestampString? (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
  @timestamp
end

Class Method Details

.jsii_propertiesObject



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_jsiiObject



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