@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
58 lines • 1.84 kB
JavaScript
;
// *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
Object.defineProperty(exports, "__esModule", { value: true });
exports.getLbFrontendsOutput = exports.getLbFrontends = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Gets information about multiple Load Balancer Frontends.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byLBID = scaleway.getLbFrontends({
* lbId: scaleway_lb.lb01.id,
* });
* const byLBIDAndName = scaleway.getLbFrontends({
* lbId: scaleway_lb.lb01.id,
* name: "tf-frontend-datasource",
* });
* ```
*/
function getLbFrontends(args, opts) {
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("scaleway:index/getLbFrontends:getLbFrontends", {
"lbId": args.lbId,
"name": args.name,
"projectId": args.projectId,
"zone": args.zone,
}, opts);
}
exports.getLbFrontends = getLbFrontends;
/**
* Gets information about multiple Load Balancer Frontends.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@pulumi/scaleway";
*
* const byLBID = scaleway.getLbFrontends({
* lbId: scaleway_lb.lb01.id,
* });
* const byLBIDAndName = scaleway.getLbFrontends({
* lbId: scaleway_lb.lb01.id,
* name: "tf-frontend-datasource",
* });
* ```
*/
function getLbFrontendsOutput(args, opts) {
return pulumi.output(args).apply((a) => getLbFrontends(a, opts));
}
exports.getLbFrontendsOutput = getLbFrontendsOutput;
//# sourceMappingURL=getLbFrontends.js.map