UNPKG

@pulumi/aws

Version:

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

70 lines 2.46 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"); /** * Provides information about a "classic" Elastic Load Balancer (ELB). * See LB Data Source if you are looking for "v2" * Application Load Balancer (ALB) or Network Load Balancer (NLB). * * 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 lbName = config.get("lbName") || ""; * const test = aws.elb.getLoadBalancer({ * name: lbName, * }); * ``` */ function getLoadBalancer(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("aws:elb/getLoadBalancer:getLoadBalancer", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getLoadBalancer = getLoadBalancer; /** * Provides information about a "classic" Elastic Load Balancer (ELB). * See LB Data Source if you are looking for "v2" * Application Load Balancer (ALB) or Network Load Balancer (NLB). * * 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 lbName = config.get("lbName") || ""; * const test = aws.elb.getLoadBalancer({ * name: lbName, * }); * ``` */ function getLoadBalancerOutput(args, opts) { opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("aws:elb/getLoadBalancer:getLoadBalancer", { "name": args.name, "region": args.region, "tags": args.tags, }, opts); } exports.getLoadBalancerOutput = getLoadBalancerOutput; //# sourceMappingURL=getLoadBalancer.js.map