Class: AWSCDK::ElasticLoadBalancingv2Targets::LambdaTarget
- Inherits:
-
Jsii::Object
- Object
- Jsii::Object
- AWSCDK::ElasticLoadBalancingv2Targets::LambdaTarget
- Includes:
- AWSCDK::ElasticLoadBalancingv2::IApplicationLoadBalancerTarget
- Defined in:
- elastic_load_balancingv2_targets/lambda_target.rb
Class Method Summary collapse
Instance Method Summary collapse
-
#attach_to_application_target_group(target_group) ⇒ AWSCDK::ElasticLoadBalancingv2::LoadBalancerTargetProps
Register this instance target with a load balancer.
-
#attach_to_network_target_group(target_group) ⇒ AWSCDK::ElasticLoadBalancingv2::LoadBalancerTargetProps
Register this instance target with a load balancer.
-
#initialize(fn) ⇒ LambdaTarget
constructor
Create a new Lambda target.
Constructor Details
#initialize(fn) ⇒ LambdaTarget
Create a new Lambda target.
11 12 13 14 |
# File 'elastic_load_balancingv2_targets/lambda_target.rb', line 11 def initialize(fn) Jsii::Type.check_type(fn, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJhd3MtY2RrLWxpYi5hd3NfbGFtYmRhLklGdW5jdGlvbiJ9")), "fn") Jsii::Object.instance_method(:initialize).bind(self).call(fn) end |
Class Method Details
.jsii_overridable_methods ⇒ Object
16 17 18 19 20 21 |
# File 'elastic_load_balancingv2_targets/lambda_target.rb', line 16 def self.jsii_overridable_methods { :attach_to_application_target_group => { kind: :method, name: "attachToApplicationTargetGroup", is_optional: false }, :attach_to_network_target_group => { kind: :method, name: "attachToNetworkTargetGroup", is_optional: false }, } end |
Instance Method Details
#attach_to_application_target_group(target_group) ⇒ AWSCDK::ElasticLoadBalancingv2::LoadBalancerTargetProps
Register this instance target with a load balancer.
Don't call this, it is called automatically when you add the target to a load balancer.
30 31 32 33 |
# File 'elastic_load_balancingv2_targets/lambda_target.rb', line 30 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_network_target_group(target_group) ⇒ AWSCDK::ElasticLoadBalancingv2::LoadBalancerTargetProps
Register this instance target with a load balancer.
Don't call this, it is called automatically when you add the target to a load balancer.
42 43 44 45 |
# File 'elastic_load_balancingv2_targets/lambda_target.rb', line 42 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 |