Class: AWSCDK::ElasticLoadBalancingv2Targets::ALBTarget Deprecated

Inherits:
ALBARNTarget
  • Object
show all
Defined in:
elastic_load_balancingv2_targets/alb_target.rb

Overview

Deprecated.

Use AlbListenerTarget instead or AlbArnTarget for an imported load balancer. This target does not automatically add a dependency between the ALB listener and resulting NLB target group, without which may cause stack deployments to fail if the NLB target group is provisioned before the listener has been fully created.

A single Application Load Balancer as the target for load balancing.

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(alb, port) ⇒ ALBTarget

Returns a new instance of ALBTarget.

Parameters:



12
13
14
15
16
# File 'elastic_load_balancingv2_targets/alb_target.rb', line 12

def initialize(alb, port)
  Jsii::Type.check_type(alb, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5JQXBwbGljYXRpb25Mb2FkQmFsYW5jZXJSZWYifQ==")), "alb")
  Jsii::Type.check_type(port, JSON.parse(Base64.strict_decode64("eyJwcmltaXRpdmUiOiJudW1iZXIifQ==")), "port")
  Jsii::Object.instance_method(:initialize).bind(self).call(alb, port)
end

Class Method Details

.jsii_overridable_methodsObject



18
19
20
21
22
# File 'elastic_load_balancingv2_targets/alb_target.rb', line 18

def self.jsii_overridable_methods
  {
    :attach_to_network_target_group => { kind: :method, name: "attachToNetworkTargetGroup", is_optional: false },
  }
end

Instance Method Details

#attach_to_network_target_group(target_group) ⇒ AWSCDK::ElasticLoadBalancingv2::LoadBalancerTargetProps

Register this alb target with a load balancer.

Don't call this, it is called automatically when you add the target to a load balancer.



31
32
33
34
# File 'elastic_load_balancingv2_targets/alb_target.rb', line 31

def attach_to_network_target_group(target_group)
  Jsii::Type.check_type(target_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5JTmV0d29ya1RhcmdldEdyb3VwIn0=")), "targetGroup")
  jsii_call_method("attachToNetworkTargetGroup", [target_group])
end