Class GetTargetGroup
Inheritance
System.Object
GetTargetGroup
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Aws.ApplicationLoadBalancing
Assembly: Pulumi.Aws.dll
Syntax
[Obsolete("aws.applicationloadbalancing.getTargetGroup has been deprecated in favor of aws.alb.getTargetGroup")]
public static class GetTargetGroup
Methods
View SourceInvokeAsync(GetTargetGroupArgs, InvokeOptions)
Note:
aws.alb.TargetGroupis known asaws.lb.TargetGroup. The functionality is identical.
Provides information about a Load Balancer Target Group.
This data source can prove useful when a module accepts an LB Target Group as an input variable and needs to know its attributes. It can also be used to get the ARN of an LB Target Group for use in other resources, given LB Target Group name.
{{% examples %}}
Example Usage
{{% example %}}
using Pulumi;
using Aws = Pulumi.Aws;
class MyStack : Stack
{
public MyStack()
{
var config = new Config();
var lbTgArn = config.Get("lbTgArn") ?? "";
var lbTgName = config.Get("lbTgName") ?? "";
var test = Output.Create(Aws.LB.GetTargetGroup.InvokeAsync(new Aws.LB.GetTargetGroupArgs
{
Arn = lbTgArn,
Name = lbTgName,
}));
}
}
{{% /example %}} {{% /examples %}}
Declaration
public static Task<GetTargetGroupResult> InvokeAsync(GetTargetGroupArgs args = null, InvokeOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| GetTargetGroupArgs | args | |
| InvokeOptions | options |
Returns
| Type | Description |
|---|---|
| System.Threading.Tasks.Task<GetTargetGroupResult> |