Class: AWSCDK::Lambda::CfnEventSourceMapping::MetricsConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Lambda::CfnEventSourceMapping::MetricsConfigProperty
- Defined in:
- lambda/cfn_event_source_mapping.rb
Overview
The metrics configuration for your event source.
Use this configuration object to define which metrics you want your event source mapping to produce.
Instance Attribute Summary collapse
-
#metrics ⇒ Array<String>?
readonly
The metrics you want your event source mapping to produce.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metrics: nil) ⇒ MetricsConfigProperty
constructor
A new instance of MetricsConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(metrics: nil) ⇒ MetricsConfigProperty
Returns a new instance of MetricsConfigProperty.
1177 1178 1179 1180 |
# File 'lambda/cfn_event_source_mapping.rb', line 1177 def initialize(metrics: nil) @metrics = metrics Jsii::Type.check_type(@metrics, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "metrics") unless @metrics.nil? end |
Instance Attribute Details
#metrics ⇒ Array<String>? (readonly)
The metrics you want your event source mapping to produce.
Include EventCount to receive event source mapping metrics related to the number of events processed by your event source mapping. For more information about these metrics, see Event source mapping metrics .
1188 1189 1190 |
# File 'lambda/cfn_event_source_mapping.rb', line 1188 def metrics @metrics end |
Class Method Details
.jsii_properties ⇒ Object
1190 1191 1192 1193 1194 |
# File 'lambda/cfn_event_source_mapping.rb', line 1190 def self.jsii_properties { :metrics => "metrics", } end |
Instance Method Details
#to_jsii ⇒ Object
1196 1197 1198 1199 1200 1201 1202 |
# File 'lambda/cfn_event_source_mapping.rb', line 1196 def to_jsii result = {} result.merge!({ "metrics" => @metrics, }) result.compact end |