Class: AWSCDK::CfnTrafficRoutingTimeBasedLinear

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
cfn_traffic_routing_time_based_linear.rb

Overview

The traffic routing configuration if CfnTrafficRoutingConfig.type is CfnTrafficRoutingType.TIME_BASED_LINEAR.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(bake_time_mins: nil, step_percentage: nil) ⇒ CfnTrafficRoutingTimeBasedLinear

Returns a new instance of CfnTrafficRoutingTimeBasedLinear.

Parameters:

  • bake_time_mins (Numeric, nil) (defaults to: nil)

    The number of minutes between the first and second traffic shifts of a time-based linear deployment.

  • step_percentage (Numeric, nil) (defaults to: nil)

    The percentage of traffic that is shifted at the start of each increment of a time-based linear deployment.



9
10
11
12
13
14
# File 'cfn_traffic_routing_time_based_linear.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_minsNumeric? (readonly)

Note:

Default: 5

The number of minutes between the first and second traffic shifts of a time-based linear deployment.

Returns:

  • (Numeric, nil)


20
21
22
# File 'cfn_traffic_routing_time_based_linear.rb', line 20

def bake_time_mins
  @bake_time_mins
end

#step_percentageNumeric? (readonly)

Note:

Default: 15

The percentage of traffic that is shifted at the start of each increment of a time-based linear deployment.

The step percentage must be 14% or greater.

Returns:

  • (Numeric, nil)


27
28
29
# File 'cfn_traffic_routing_time_based_linear.rb', line 27

def step_percentage
  @step_percentage
end

Class Method Details

.jsii_propertiesObject



29
30
31
32
33
34
# File 'cfn_traffic_routing_time_based_linear.rb', line 29

def self.jsii_properties
  {
    :bake_time_mins => "bakeTimeMins",
    :step_percentage => "stepPercentage",
  }
end

Instance Method Details

#to_jsiiObject



36
37
38
39
40
41
42
43
# File 'cfn_traffic_routing_time_based_linear.rb', line 36

def to_jsii
  result = {}
  result.merge!({
    "bakeTimeMins" => @bake_time_mins,
    "stepPercentage" => @step_percentage,
  })
  result.compact
end