Class: AWSCDK::ElasticLoadBalancingv2::CfnListenerRule::TargetGroupStickinessConfigProperty

Inherits:
Jsii::Struct
  • Object
show all
Defined in:
elastic_load_balancingv2/cfn_listener_rule.rb

Overview

Information about the target group stickiness for a rule.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(duration_seconds: nil, enabled: nil) ⇒ TargetGroupStickinessConfigProperty

Returns a new instance of TargetGroupStickinessConfigProperty.

Parameters:

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

    [Application Load Balancers] The time period, in seconds, during which requests from a client should be routed to the same target group.

  • enabled (Boolean, AWSCDK::IResolvable, nil) (defaults to: nil)

    Indicates whether target group stickiness is enabled.



1819
1820
1821
1822
1823
1824
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1819

def initialize(duration_seconds: nil, enabled: nil)
  @duration_seconds = duration_seconds
  Jsii::Type.check_type(@duration_seconds, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "durationSeconds") unless @duration_seconds.nil?
  @enabled = enabled
  Jsii::Type.check_type(@enabled, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3sicHJpbWl0aXZlIjoiYm9vbGVhbiJ9LHsiZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifV19fQ==")), "enabled") unless @enabled.nil?
end

Instance Attribute Details

#duration_secondsNumeric? (readonly)

[Application Load Balancers] The time period, in seconds, during which requests from a client should be routed to the same target group.

The range is 1-604800 seconds (7 days). You must specify this value when enabling target group stickiness.



1832
1833
1834
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1832

def duration_seconds
  @duration_seconds
end

#enabledBoolean, ... (readonly)

Indicates whether target group stickiness is enabled.



1837
1838
1839
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1837

def enabled
  @enabled
end

Class Method Details

.jsii_propertiesObject



1839
1840
1841
1842
1843
1844
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1839

def self.jsii_properties
  {
    :duration_seconds => "durationSeconds",
    :enabled => "enabled",
  }
end

Instance Method Details

#to_jsiiObject



1846
1847
1848
1849
1850
1851
1852
1853
# File 'elastic_load_balancingv2/cfn_listener_rule.rb', line 1846

def to_jsii
  result = {}
  result.merge!({
    "durationSeconds" => @duration_seconds,
    "enabled" => @enabled,
  })
  result.compact
end