UNPKG

@pulumi/aws

Version:

A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.

78 lines 2.61 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getLoadBalancerOutput = exports.getLoadBalancer = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("../utilities"); /** * > **Note:** `aws.alb.LoadBalancer` is known as `aws.lb.LoadBalancer`. The functionality is identical. * * Provides information about a Load Balancer. * * This data source can prove useful when a module accepts an LB as an input * variable and needs to, for example, determine the security groups associated * with it, etc. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const config = new pulumi.Config(); * const lbArn = config.get("lbArn") || ""; * const lbName = config.get("lbName") || ""; * const test = aws.lb.getLoadBalancer({ * arn: lbArn, * name: lbName, * }); * ``` */ function getLoadBalancer(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:lb/getLoadBalancer:getLoadBalancer", { "arn": args.arn, "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getLoadBalancer = getLoadBalancer; /** * > **Note:** `aws.alb.LoadBalancer` is known as `aws.lb.LoadBalancer`. The functionality is identical. * * Provides information about a Load Balancer. * * This data source can prove useful when a module accepts an LB as an input * variable and needs to, for example, determine the security groups associated * with it, etc. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as aws from "@pulumi/aws"; * * const config = new pulumi.Config(); * const lbArn = config.get("lbArn") || ""; * const lbName = config.get("lbName") || ""; * const test = aws.lb.getLoadBalancer({ * arn: lbArn, * name: lbName, * }); * ``` */ function getLoadBalancerOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:lb/getLoadBalancer:getLoadBalancer", { "arn": args.arn, "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getLoadBalancerOutput = getLoadBalancerOutput; //# sourceMappingURL=getLoadBalancer.js.map