Class: AWSCDK::ECS::CfnService::MetricConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ECS::CfnService::MetricConfigurationProperty
- Defined in:
- ecs/cfn_service.rb
Overview
Instance Attribute Summary collapse
- #metric_names ⇒ Array<String> readonly
- #resolution_seconds ⇒ Numeric readonly
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(metric_names:, resolution_seconds:) ⇒ MetricConfigurationProperty
constructor
A new instance of MetricConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(metric_names:, resolution_seconds:) ⇒ MetricConfigurationProperty
Returns a new instance of MetricConfigurationProperty.
2146 2147 2148 2149 2150 2151 |
# File 'ecs/cfn_service.rb', line 2146 def initialize(metric_names:, resolution_seconds:) @metric_names = metric_names Jsii::Type.check_type(@metric_names, JSON.parse(Base64.strict_decode64("eyJjb2xsZWN0aW9uIjp7ImVsZW1lbnR0eXBlIjp7InByaW1pdGl2ZSI6InN0cmluZyJ9LCJraW5kIjoiYXJyYXkifX0=")), "metricNames") @resolution_seconds = resolution_seconds Jsii::Type.check_type(@resolution_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "resolutionSeconds") end |
Instance Attribute Details
#metric_names ⇒ Array<String> (readonly)
2155 2156 2157 |
# File 'ecs/cfn_service.rb', line 2155 def metric_names @metric_names end |
#resolution_seconds ⇒ Numeric (readonly)
2158 2159 2160 |
# File 'ecs/cfn_service.rb', line 2158 def resolution_seconds @resolution_seconds end |
Class Method Details
.jsii_properties ⇒ Object
2160 2161 2162 2163 2164 2165 |
# File 'ecs/cfn_service.rb', line 2160 def self.jsii_properties { :metric_names => "metricNames", :resolution_seconds => "resolutionSeconds", } end |
Instance Method Details
#to_jsii ⇒ Object
2167 2168 2169 2170 2171 2172 2173 2174 |
# File 'ecs/cfn_service.rb', line 2167 def to_jsii result = {} result.merge!({ "metricNames" => @metric_names, "resolutionSeconds" => @resolution_seconds, }) result.compact end |