@pulumi/aws
Version:
A Pulumi package for creating and managing Amazon Web Services (AWS) cloud resources.
64 lines • 1.84 kB
JavaScript
// *** 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.getLbsOutput = exports.getLbs = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("../utilities");
/**
* Use this data source to get a list of Load Balancer ARNs matching the specified criteria. Useful for passing to other
* resources.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.lb.getLbs({
* tags: {
* "elbv2.k8s.aws/cluster": "my-cluster",
* },
* });
* ```
*/
function getLbs(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("aws:lb/getLbs:getLbs", {
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getLbs = getLbs;
/**
* Use this data source to get a list of Load Balancer ARNs matching the specified criteria. Useful for passing to other
* resources.
*
* ## Example Usage
*
* ### Basic Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as aws from "@pulumi/aws";
*
* const example = aws.lb.getLbs({
* tags: {
* "elbv2.k8s.aws/cluster": "my-cluster",
* },
* });
* ```
*/
function getLbsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("aws:lb/getLbs:getLbs", {
"region": args.region,
"tags": args.tags,
}, opts);
}
exports.getLbsOutput = getLbsOutput;
//# sourceMappingURL=getLbs.js.map
;