UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

135 lines (134 loc) 4.04 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Get information about Scaleway Load-Balancer Frontends. * For more information, see [the documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-frontends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const ip01 = new scaleway.LoadbalancerIp("ip01", {}); * const lb01 = new scaleway.Loadbalancer("lb01", { * ipId: ip01.id, * type: "lb-s", * }); * const bkd01 = new scaleway.LoadbalancerBackend("bkd01", { * lbId: lb01.id, * forwardProtocol: "tcp", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.LoadbalancerFrontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const byID = scaleway.getLbFrontendOutput({ * frontendId: frt01.id, * }); * const byName = scaleway.getLbFrontendOutput({ * name: frt01.name, * lbId: lb01.id, * }); * ``` */ export declare function getLbFrontend(args?: GetLbFrontendArgs, opts?: pulumi.InvokeOptions): Promise<GetLbFrontendResult>; /** * A collection of arguments for invoking getLbFrontend. */ export interface GetLbFrontendArgs { /** * The frontend id. * - Only one of `name` and `frontendId` should be specified. */ frontendId?: string; /** * The load-balancer ID this frontend is attached to. */ lbId?: string; /** * The name of the frontend. * - When using the `name` you should specify the `lb-id` */ name?: string; } /** * A collection of values returned by getLbFrontend. */ export interface GetLbFrontendResult { readonly acls: outputs.GetLbFrontendAcl[]; readonly backendId: string; readonly certificateId: string; readonly certificateIds: string[]; readonly enableHttp3: boolean; readonly externalAcls: boolean; readonly frontendId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly inboundPort: number; readonly lbId?: string; readonly name?: string; readonly timeoutClient: string; } /** * Get information about Scaleway Load-Balancer Frontends. * For more information, see [the documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-frontends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@lbrlabs/pulumi-scaleway"; * import * as scaleway from "@pulumi/scaleway"; * * const ip01 = new scaleway.LoadbalancerIp("ip01", {}); * const lb01 = new scaleway.Loadbalancer("lb01", { * ipId: ip01.id, * type: "lb-s", * }); * const bkd01 = new scaleway.LoadbalancerBackend("bkd01", { * lbId: lb01.id, * forwardProtocol: "tcp", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.LoadbalancerFrontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const byID = scaleway.getLbFrontendOutput({ * frontendId: frt01.id, * }); * const byName = scaleway.getLbFrontendOutput({ * name: frt01.name, * lbId: lb01.id, * }); * ``` */ export declare function getLbFrontendOutput(args?: GetLbFrontendOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLbFrontendResult>; /** * A collection of arguments for invoking getLbFrontend. */ export interface GetLbFrontendOutputArgs { /** * The frontend id. * - Only one of `name` and `frontendId` should be specified. */ frontendId?: pulumi.Input<string>; /** * The load-balancer ID this frontend is attached to. */ lbId?: pulumi.Input<string>; /** * The name of the frontend. * - When using the `name` you should specify the `lb-id` */ name?: pulumi.Input<string>; }