@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
95 lines (94 loc) • 2.68 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* 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",
* });
* ```
*/
export declare function getLbFrontends(args: GetLbFrontendsArgs, opts?: pulumi.InvokeOptions): Promise<GetLbFrontendsResult>;
/**
* A collection of arguments for invoking getLbFrontends.
*/
export interface GetLbFrontendsArgs {
/**
* The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
*/
lbId: string;
/**
* The frontend name used as filter. Frontends with a name like it are listed.
*/
name?: string;
projectId?: string;
/**
* `zone`) The zone in which frontends exist.
*/
zone?: string;
}
/**
* A collection of values returned by getLbFrontends.
*/
export interface GetLbFrontendsResult {
/**
* List of found frontends
*/
readonly frontends: outputs.GetLbFrontendsFrontend[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly lbId: string;
readonly name?: string;
readonly organizationId: string;
readonly projectId: string;
readonly zone: string;
}
/**
* 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",
* });
* ```
*/
export declare function getLbFrontendsOutput(args: GetLbFrontendsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLbFrontendsResult>;
/**
* A collection of arguments for invoking getLbFrontends.
*/
export interface GetLbFrontendsOutputArgs {
/**
* The load-balancer ID this frontend is attached to. frontends with a LB ID like it are listed.
*/
lbId: pulumi.Input<string>;
/**
* The frontend name used as filter. Frontends with a name like it are listed.
*/
name?: pulumi.Input<string>;
projectId?: pulumi.Input<string>;
/**
* `zone`) The zone in which frontends exist.
*/
zone?: pulumi.Input<string>;
}