Module: AWSCDK::ElasticLoadBalancingv2::ITargetGroup

Includes:
Interfaces::AWSElasticloadbalancingv2::ITargetGroupRef, Constructs::IConstruct
Included in:
IApplicationTargetGroup, INetworkTargetGroup, TargetGroupBase
Defined in:
elastic_load_balancingv2/i_target_group.rb

Overview

A target group.

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.jsii_overridable_methodsObject



80
81
82
83
84
85
86
87
88
89
90
91
# File 'elastic_load_balancingv2/i_target_group.rb', line 80

def self.jsii_overridable_methods
  {
    :node => { kind: :property, name: "node", is_optional: false },
    :env => { kind: :property, name: "env", is_optional: false },
    :target_group_ref => { kind: :property, name: "targetGroupRef", is_optional: false },
    :load_balancer_arns => { kind: :property, name: "loadBalancerArns", is_optional: false },
    :load_balancer_attached => { kind: :property, name: "loadBalancerAttached", is_optional: false },
    :target_group_arn => { kind: :property, name: "targetGroupArn", is_optional: false },
    :target_group_name => { kind: :property, name: "targetGroupName", is_optional: false },
    :with => { kind: :method, name: "with", is_optional: false },
  }
end

Instance Method Details

#envAWSCDK::Interfaces::ResourceEnvironment

The environment this resource belongs to.

For resources that are created and managed in a Stack (those created by creating new class instances like new Role(), new Bucket(), etc.), this is always the same as the environment of the stack they belong to.

For referenced resources (those obtained from referencing methods like Role.fromRoleArn(), Bucket.fromBucketName(), etc.), they might be different than the stack they were imported into.



27
28
29
# File 'elastic_load_balancingv2/i_target_group.rb', line 27

def env()
  jsii_get_property("env")
end

#load_balancer_arnsString

A token representing a list of ARNs of the load balancers that route traffic to this target group.

Returns:

  • (String)


41
42
43
# File 'elastic_load_balancingv2/i_target_group.rb', line 41

def load_balancer_arns()
  jsii_get_property("loadBalancerArns")
end

#load_balancer_attachedConstructs::IDependable

Return an object to depend on the listeners added to this target group.

Returns:

  • (Constructs::IDependable)


48
49
50
# File 'elastic_load_balancingv2/i_target_group.rb', line 48

def load_balancer_attached()
  jsii_get_property("loadBalancerAttached")
end

#nodeConstructs::Node

The tree node.

Returns:

  • (Constructs::Node)


12
13
14
# File 'elastic_load_balancingv2/i_target_group.rb', line 12

def node()
  jsii_get_property("node")
end

#target_group_arnString

ARN of the target group.

Returns:

  • (String)


55
56
57
# File 'elastic_load_balancingv2/i_target_group.rb', line 55

def target_group_arn()
  jsii_get_property("targetGroupArn")
end

#target_group_nameString

The name of the target group.

Returns:

  • (String)


62
63
64
# File 'elastic_load_balancingv2/i_target_group.rb', line 62

def target_group_name()
  jsii_get_property("targetGroupName")
end

#target_group_refAWSCDK::Interfaces::AWSElasticloadbalancingv2::TargetGroupReference

A reference to a TargetGroup resource.



34
35
36
# File 'elastic_load_balancingv2/i_target_group.rb', line 34

def target_group_ref()
  jsii_get_property("targetGroupRef")
end

#with(*mixins) ⇒ Constructs::IConstruct

Applies one or more mixins to this construct.

Mixins are applied in order. The list of constructs is captured at the start of the call, so constructs added by a mixin will not be visited.

Parameters:

  • mixins (Array<Constructs::IMixin>)

    The mixins to apply.

Returns:

  • (Constructs::IConstruct)

    This construct for chaining



73
74
75
76
77
78
# File 'elastic_load_balancingv2/i_target_group.rb', line 73

def with(*mixins)
  mixins.each_with_index do |item, index|
    Jsii::Type.check_type(item, JSON.parse(Base64.strict_decode64("eyJmcW4iOiJjb25zdHJ1Y3RzLklNaXhpbiJ9")), "mixins[#{index}]")
  end
  jsii_call_method("with", [*mixins])
end