Module: AWSCDK::ElasticLoadBalancingv2::IApplicationLoadBalancerTarget

Overview

Interface for constructs that can be targets of an application load balancer.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



19
20
21
22
23
# File 'elastic_load_balancingv2/i_application_load_balancer_target.rb', line 19

def self.jsii_overridable_methods
  {
    :attach_to_application_target_group => { kind: :method, name: "attachToApplicationTargetGroup", 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.



14
15
16
17
# File 'elastic_load_balancingv2/i_application_load_balancer_target.rb', line 14

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