UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

142 lines (141 loc) 4.75 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 [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-frontends/) or [API 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 "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const ip01 = new scaleway.loadbalancers.Ip("ip01", {}); * const lb01 = new scaleway.loadbalancers.LoadBalancer("lb01", { * ipId: ip01.id, * name: "test-lb", * type: "lb-s", * }); * const bkd01 = new scaleway.loadbalancers.Backend("bkd01", { * lbId: lb01.id, * forwardProtocol: "tcp", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.loadbalancers.Frontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const byID = scaleway.loadbalancers.getFrontendOutput({ * frontendId: frt01.id, * }); * const byName = scaleway.loadbalancers.getFrontendOutput({ * name: frt01.name, * lbId: lb01.id, * }); * ``` */ /** @deprecated scaleway.index/getlbfrontend.getLbFrontend has been deprecated in favor of scaleway.loadbalancers/getfrontend.getFrontend */ 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 connectionRateLimit: number; 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 [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-frontends/) or [API 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 "@pulumi/scaleway"; * import * as scaleway from "@pulumiverse/scaleway"; * * const ip01 = new scaleway.loadbalancers.Ip("ip01", {}); * const lb01 = new scaleway.loadbalancers.LoadBalancer("lb01", { * ipId: ip01.id, * name: "test-lb", * type: "lb-s", * }); * const bkd01 = new scaleway.loadbalancers.Backend("bkd01", { * lbId: lb01.id, * forwardProtocol: "tcp", * forwardPort: 80, * proxyProtocol: "none", * }); * const frt01 = new scaleway.loadbalancers.Frontend("frt01", { * lbId: lb01.id, * backendId: bkd01.id, * inboundPort: 80, * }); * const byID = scaleway.loadbalancers.getFrontendOutput({ * frontendId: frt01.id, * }); * const byName = scaleway.loadbalancers.getFrontendOutput({ * name: frt01.name, * lbId: lb01.id, * }); * ``` */ /** @deprecated scaleway.index/getlbfrontend.getLbFrontend has been deprecated in favor of scaleway.loadbalancers/getfrontend.getFrontend */ export declare function getLbFrontendOutput(args?: GetLbFrontendOutputArgs, opts?: pulumi.InvokeOutputOptions): 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>; }