Class: AWSCDK::ARCRegionSwitch::CfnPlan::ECSCapacityIncreaseConfigurationProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::ARCRegionSwitch::CfnPlan::ECSCapacityIncreaseConfigurationProperty
- Defined in:
- arc_region_switch/cfn_plan.rb
Overview
The configuration for an AWS ECS capacity increase.
Instance Attribute Summary collapse
-
#capacity_monitoring_approach ⇒ String?
readonly
The monitoring approach specified for the configuration, for example,
Most_Recent. -
#services ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ARCRegionSwitch::CfnPlan::ServiceProperty>
readonly
The services specified for the configuration.
-
#target_percent ⇒ Numeric?
readonly
The target percentage specified for the configuration.
-
#timeout_minutes ⇒ Numeric?
readonly
The timeout value specified for the configuration.
-
#ungraceful ⇒ AWSCDK::IResolvable, ...
readonly
The settings for ungraceful execution.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(services:, capacity_monitoring_approach: nil, target_percent: nil, timeout_minutes: nil, ungraceful: nil) ⇒ ECSCapacityIncreaseConfigurationProperty
constructor
A new instance of ECSCapacityIncreaseConfigurationProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(services:, capacity_monitoring_approach: nil, target_percent: nil, timeout_minutes: nil, ungraceful: nil) ⇒ ECSCapacityIncreaseConfigurationProperty
Returns a new instance of ECSCapacityIncreaseConfigurationProperty.
1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 |
# File 'arc_region_switch/cfn_plan.rb', line 1371 def initialize(services:, capacity_monitoring_approach: nil, target_percent: nil, timeout_minutes: nil, ungraceful: nil) @services = services Jsii::Type.check_type(@services, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfYXJjcmVnaW9uc3dpdGNoLkNmblBsYW4uU2VydmljZVByb3BlcnR5In1dfX0sImtpbmQiOiJhcnJheSJ9fV19fQ==")), "services") @capacity_monitoring_approach = capacity_monitoring_approach Jsii::Type.check_type(@capacity_monitoring_approach, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJzdHJpbmcifQ==")), "capacityMonitoringApproach") unless @capacity_monitoring_approach.nil? @target_percent = target_percent Jsii::Type.check_type(@target_percent, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "targetPercent") unless @target_percent.nil? @timeout_minutes = timeout_minutes Jsii::Type.check_type(@timeout_minutes, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "timeoutMinutes") unless @timeout_minutes.nil? @ungraceful = ungraceful.is_a?(Hash) ? ::AWSCDK::ARCRegionSwitch::CfnPlan::ECSUngracefulProperty.new(**ungraceful.transform_keys(&:to_sym)) : ungraceful Jsii::Type.check_type(@ungraceful, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19hcmNyZWdpb25zd2l0Y2guQ2ZuUGxhbi5FY3NVbmdyYWNlZnVsUHJvcGVydHkifV19fQ==")), "ungraceful") unless @ungraceful.nil? end |
Instance Attribute Details
#capacity_monitoring_approach ⇒ String? (readonly)
The monitoring approach specified for the configuration, for example, Most_Recent .
1393 1394 1395 |
# File 'arc_region_switch/cfn_plan.rb', line 1393 def capacity_monitoring_approach @capacity_monitoring_approach end |
#services ⇒ AWSCDK::IResolvable, Array<AWSCDK::IResolvable, AWSCDK::ARCRegionSwitch::CfnPlan::ServiceProperty> (readonly)
The services specified for the configuration.
1388 1389 1390 |
# File 'arc_region_switch/cfn_plan.rb', line 1388 def services @services end |
#target_percent ⇒ Numeric? (readonly)
Note:
Default: - 100
The target percentage specified for the configuration.
1399 1400 1401 |
# File 'arc_region_switch/cfn_plan.rb', line 1399 def target_percent @target_percent end |
#timeout_minutes ⇒ Numeric? (readonly)
Note:
Default: - 60
The timeout value specified for the configuration.
1405 1406 1407 |
# File 'arc_region_switch/cfn_plan.rb', line 1405 def timeout_minutes @timeout_minutes end |
#ungraceful ⇒ AWSCDK::IResolvable, ... (readonly)
The settings for ungraceful execution.
1410 1411 1412 |
# File 'arc_region_switch/cfn_plan.rb', line 1410 def ungraceful @ungraceful end |
Class Method Details
.jsii_properties ⇒ Object
1412 1413 1414 1415 1416 1417 1418 1419 1420 |
# File 'arc_region_switch/cfn_plan.rb', line 1412 def self.jsii_properties { :services => "services", :capacity_monitoring_approach => "capacityMonitoringApproach", :target_percent => "targetPercent", :timeout_minutes => "timeoutMinutes", :ungraceful => "ungraceful", } end |
Instance Method Details
#to_jsii ⇒ Object
1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 |
# File 'arc_region_switch/cfn_plan.rb', line 1422 def to_jsii result = {} result.merge!({ "services" => @services, "capacityMonitoringApproach" => @capacity_monitoring_approach, "targetPercent" => @target_percent, "timeoutMinutes" => @timeout_minutes, "ungraceful" => @ungraceful, }) result.compact end |