Module: AWSCDK::ECS::IECSLoadBalancerTarget
- Includes:
- AWSCDK::ElasticLoadBalancing::ILoadBalancerTarget, AWSCDK::ElasticLoadBalancingv2::IApplicationLoadBalancerTarget, AWSCDK::ElasticLoadBalancingv2::INetworkLoadBalancerTarget
- Defined in:
- ecs/iecs_load_balancer_target.rb
Overview
Interface for ECS load balancer target.
Class Method Summary collapse
Instance Method Summary collapse
-
#attach_to_application_target_group(target_group) ⇒ AWSCDK::ElasticLoadBalancingv2::LoadBalancerTargetProps
Attach load-balanced target to a TargetGroup.
-
#attach_to_classic_lb(load_balancer) ⇒ void
Attach load-balanced target to a classic ELB.
-
#attach_to_network_target_group(target_group) ⇒ AWSCDK::ElasticLoadBalancingv2::LoadBalancerTargetProps
Attach load-balanced target to a TargetGroup.
-
#connections ⇒ AWSCDK::EC2::Connections
The network connections associated with this resource.
Class Method Details
.jsii_overridable_methods ⇒ Object
50 51 52 53 54 55 56 57 |
# File 'ecs/iecs_load_balancer_target.rb', line 50 def self.jsii_overridable_methods { :connections => { kind: :property, name: "connections", is_optional: false }, :attach_to_application_target_group => { kind: :method, name: "attachToApplicationTargetGroup", is_optional: false }, :attach_to_network_target_group => { kind: :method, name: "attachToNetworkTargetGroup", is_optional: false }, :attach_to_classic_lb => { kind: :method, name: "attachToClassicLB", is_optional: false }, } end |
Instance Method Details
#attach_to_application_target_group(target_group) ⇒ AWSCDK::ElasticLoadBalancingv2::LoadBalancerTargetProps
Attach load-balanced target to a TargetGroup.
May return JSON to directly add to the [Targets] list, or return undefined if the target will register itself with the load balancer.
24 25 26 27 |
# File 'ecs/iecs_load_balancer_target.rb', line 24 def attach_to_application_target_group(target_group) Jsii::Type.check_type(target_group, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmd2Mi5JQXBwbGljYXRpb25UYXJnZXRHcm91cCJ9")), "targetGroup") jsii_call_method("attachToApplicationTargetGroup", [target_group]) end |
#attach_to_classic_lb(load_balancer) ⇒ void
This method returns an undefined value.
Attach load-balanced target to a classic ELB.
45 46 47 48 |
# File 'ecs/iecs_load_balancer_target.rb', line 45 def attach_to_classic_lb(load_balancer) Jsii::Type.check_type(load_balancer, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfZWxhc3RpY2xvYWRiYWxhbmNpbmcuTG9hZEJhbGFuY2VyIn0=")), "loadBalancer") jsii_call_method("attachToClassicLB", [load_balancer]) end |
#attach_to_network_target_group(target_group) ⇒ AWSCDK::ElasticLoadBalancingv2::LoadBalancerTargetProps
Attach load-balanced target to a TargetGroup.
May return JSON to directly add to the [Targets] list, or return undefined if the target will register itself with the load balancer.
36 37 38 39 |
# File 'ecs/iecs_load_balancer_target.rb', line 36 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 |
#connections ⇒ AWSCDK::EC2::Connections
The network connections associated with this resource.
13 14 15 |
# File 'ecs/iecs_load_balancer_target.rb', line 13 def connections() jsii_get_property("connections") end |