Exemple #1
0
 /// <summary>
 /// &gt; **Note:** `aws.alb.TargetGroup` is known as `aws.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 %}}
 ///
 /// ```csharp
 /// 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 %}}
 /// </summary>
 public static Task <GetTargetGroupResult> InvokeAsync(GetTargetGroupArgs?args = null, InvokeOptions?options = null)
 => Pulumi.Deployment.Instance.InvokeAsync <GetTargetGroupResult>("aws:elasticloadbalancingv2/getTargetGroup:getTargetGroup", args ?? new GetTargetGroupArgs(), options.WithVersion());
Exemple #2
0
 /// <summary>
 /// &gt; **Note:** `aws.alb.TargetGroup` is known as `aws.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.
 ///
 /// &gt; This content is derived from https://github.com/terraform-providers/terraform-provider-aws/blob/master/website/docs/d/alb_target_group_legacy.html.markdown.
 /// </summary>
 public static Task <GetTargetGroupResult> GetTargetGroup(GetTargetGroupArgs?args = null, InvokeOptions?options = null)
 => Pulumi.Deployment.Instance.InvokeAsync <GetTargetGroupResult>("aws:applicationloadbalancing/getTargetGroup:getTargetGroup", args ?? InvokeArgs.Empty, options.WithVersion());