Class: AWSCDK::Greengrassv2::CfnDeployment::IoTJobExecutionsRolloutConfigProperty
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::Greengrassv2::CfnDeployment::IoTJobExecutionsRolloutConfigProperty
- Defined in:
- greengrassv2/cfn_deployment.rb
Overview
Contains information about the rollout configuration for a job.
This configuration defines the rate at which the job deploys a configuration to a fleet of target devices.
Instance Attribute Summary collapse
-
#exponential_rate ⇒ AWSCDK::IResolvable, ...
readonly
The exponential rate to increase the job rollout rate.
-
#maximum_per_minute ⇒ Numeric?
readonly
The maximum number of devices that receive a pending job notification, per minute.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(exponential_rate: nil, maximum_per_minute: nil) ⇒ IoTJobExecutionsRolloutConfigProperty
constructor
A new instance of IoTJobExecutionsRolloutConfigProperty.
- #to_jsii ⇒ Object
Constructor Details
#initialize(exponential_rate: nil, maximum_per_minute: nil) ⇒ IoTJobExecutionsRolloutConfigProperty
Returns a new instance of IoTJobExecutionsRolloutConfigProperty.
1113 1114 1115 1116 1117 1118 |
# File 'greengrassv2/cfn_deployment.rb', line 1113 def initialize(exponential_rate: nil, maximum_per_minute: nil) @exponential_rate = exponential_rate.is_a?(Hash) ? ::AWSCDK::Greengrassv2::CfnDeployment::IoTJobExponentialRolloutRateProperty.new(**exponential_rate.transform_keys(&:to_sym)) : exponential_rate Jsii::Type.check_type(@exponential_rate, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19ncmVlbmdyYXNzdjIuQ2ZuRGVwbG95bWVudC5Jb1RKb2JFeHBvbmVudGlhbFJvbGxvdXRSYXRlUHJvcGVydHkifV19fQ==")), "exponentialRate") unless @exponential_rate.nil? @maximum_per_minute = maximum_per_minute Jsii::Type.check_type(@maximum_per_minute, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "maximumPerMinute") unless @maximum_per_minute.nil? end |
Instance Attribute Details
#exponential_rate ⇒ AWSCDK::IResolvable, ... (readonly)
The exponential rate to increase the job rollout rate.
1124 1125 1126 |
# File 'greengrassv2/cfn_deployment.rb', line 1124 def exponential_rate @exponential_rate end |
#maximum_per_minute ⇒ Numeric? (readonly)
The maximum number of devices that receive a pending job notification, per minute.
1129 1130 1131 |
# File 'greengrassv2/cfn_deployment.rb', line 1129 def maximum_per_minute @maximum_per_minute end |
Class Method Details
.jsii_properties ⇒ Object
1131 1132 1133 1134 1135 1136 |
# File 'greengrassv2/cfn_deployment.rb', line 1131 def self.jsii_properties { :exponential_rate => "exponentialRate", :maximum_per_minute => "maximumPerMinute", } end |
Instance Method Details
#to_jsii ⇒ Object
1138 1139 1140 1141 1142 1143 1144 1145 |
# File 'greengrassv2/cfn_deployment.rb', line 1138 def to_jsii result = {} result.merge!({ "exponentialRate" => @exponential_rate, "maximumPerMinute" => @maximum_per_minute, }) result.compact end |