Class: AWSCDK::CfnTrafficRoutingTimeBasedCanary
- Inherits:
-
Jsii::Struct
- Object
- Jsii::Struct
- AWSCDK::CfnTrafficRoutingTimeBasedCanary
- Defined in:
- cfn_traffic_routing_time_based_canary.rb
Overview
The traffic routing configuration if CfnTrafficRoutingConfig.type is CfnTrafficRoutingType.TIME_BASED_CANARY.
Instance Attribute Summary collapse
-
#bake_time_mins ⇒ Numeric?
readonly
The number of minutes between the first and second traffic shifts of a time-based canary deployment.
-
#step_percentage ⇒ Numeric?
readonly
The percentage of traffic to shift in the first increment of a time-based canary deployment.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(bake_time_mins: nil, step_percentage: nil) ⇒ CfnTrafficRoutingTimeBasedCanary
constructor
A new instance of CfnTrafficRoutingTimeBasedCanary.
- #to_jsii ⇒ Object
Constructor Details
#initialize(bake_time_mins: nil, step_percentage: nil) ⇒ CfnTrafficRoutingTimeBasedCanary
Returns a new instance of CfnTrafficRoutingTimeBasedCanary.
9 10 11 12 13 14 |
# File 'cfn_traffic_routing_time_based_canary.rb', line 9 def initialize(bake_time_mins: nil, step_percentage: nil) @bake_time_mins = bake_time_mins Jsii::Type.check_type(@bake_time_mins, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "bakeTimeMins") unless @bake_time_mins.nil? @step_percentage = step_percentage Jsii::Type.check_type(@step_percentage, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "stepPercentage") unless @step_percentage.nil? end |
Instance Attribute Details
#bake_time_mins ⇒ Numeric? (readonly)
Note:
Default: 5
The number of minutes between the first and second traffic shifts of a time-based canary deployment.
20 21 22 |
# File 'cfn_traffic_routing_time_based_canary.rb', line 20 def bake_time_mins @bake_time_mins end |
#step_percentage ⇒ Numeric? (readonly)
Note:
Default: 15
The percentage of traffic to shift in the first increment of a time-based canary deployment.
The step percentage must be 14% or greater.
27 28 29 |
# File 'cfn_traffic_routing_time_based_canary.rb', line 27 def step_percentage @step_percentage end |
Class Method Details
.jsii_properties ⇒ Object
29 30 31 32 33 34 |
# File 'cfn_traffic_routing_time_based_canary.rb', line 29 def self.jsii_properties { :bake_time_mins => "bakeTimeMins", :step_percentage => "stepPercentage", } end |
Instance Method Details
#to_jsii ⇒ Object
36 37 38 39 40 41 42 43 |
# File 'cfn_traffic_routing_time_based_canary.rb', line 36 def to_jsii result = {} result.merge!({ "bakeTimeMins" => @bake_time_mins, "stepPercentage" => @step_percentage, }) result.compact end |