Class: AWSCDK::ElasticLoadBalancingv2::CfnListener::ForwardConfigProperty

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

Overview

Information for creating an action that distributes requests among multiple target groups. Specify only when Type is forward .

If you specify both ForwardConfig and TargetGroupArn , you can specify only one target group using ForwardConfig and it must be the same target group specified in TargetGroupArn .

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(target_groups: nil, target_group_stickiness_config: nil) ⇒ ForwardConfigProperty

Returns a new instance of ForwardConfigProperty.

Parameters:



1110
1111
1112
1113
1114
1115
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1110

def initialize(target_groups: nil, target_group_stickiness_config: nil)
  @target_groups = target_groups
  Jsii::Type.check_type(@target_groups, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImNvbGxlY3Rpb24iOnsiZWxlbWVudHR5cGUiOnsidW5pb24iOnsidHlwZXMiOlt7ImZxbiI6ImF3cy1jZGstbGliLklSZXNvbHZhYmxlIn0seyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5DZm5MaXN0ZW5lci5UYXJnZXRHcm91cFR1cGxlUHJvcGVydHkifV19fSwia2luZCI6ImFycmF5In19XX19")), "targetGroups") unless @target_groups.nil?
  @target_group_stickiness_config = target_group_stickiness_config.is_a?(Hash) ? ::AWSCDK::ElasticLoadBalancingv2::CfnListener::TargetGroupStickinessConfigProperty.new(**target_group_stickiness_config.transform_keys(&:to_sym)) : target_group_stickiness_config
  Jsii::Type.check_type(@target_group_stickiness_config, JSON.parse(Base64.strict_decode64("eyJ1bmlvbiI6eyJ0eXBlcyI6W3siZnFuIjoiYXdzLWNkay1saWIuSVJlc29sdmFibGUifSx7ImZxbiI6ImF3cy1jZGstbGliLmF3c19lbGFzdGljbG9hZGJhbGFuY2luZ3YyLkNmbkxpc3RlbmVyLlRhcmdldEdyb3VwU3RpY2tpbmVzc0NvbmZpZ1Byb3BlcnR5In1dfX0=")), "targetGroupStickinessConfig") unless @target_group_stickiness_config.nil?
end

Instance Attribute Details

#target_group_stickiness_configAWSCDK::IResolvable, ... (readonly)

Information about the target group stickiness for a rule.



1126
1127
1128
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1126

def target_group_stickiness_config
  @target_group_stickiness_config
end

#target_groupsAWSCDK::IResolvable, ... (readonly)

Information about how traffic will be distributed between multiple target groups in a forward rule.



1121
1122
1123
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1121

def target_groups
  @target_groups
end

Class Method Details

.jsii_propertiesObject



1128
1129
1130
1131
1132
1133
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1128

def self.jsii_properties
  {
    :target_groups => "targetGroups",
    :target_group_stickiness_config => "targetGroupStickinessConfig",
  }
end

Instance Method Details

#to_jsiiObject



1135
1136
1137
1138
1139
1140
1141
1142
# File 'elastic_load_balancingv2/cfn_listener.rb', line 1135

def to_jsii
  result = {}
  result.merge!({
    "targetGroups" => @target_groups,
    "targetGroupStickinessConfig" => @target_group_stickiness_config,
  })
  result.compact
end