@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
143 lines (142 loc) • 4.88 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Get information about Scaleway Load-Balancer Backends.
* For more information, see [the documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const mainLoadbalancerIp = new scaleway.LoadbalancerIp("mainLoadbalancerIp", {});
* const mainLoadbalancer = new scaleway.Loadbalancer("mainLoadbalancer", {
* ipId: mainLoadbalancerIp.id,
* type: "LB-S",
* });
* const mainLoadbalancerBackend = new scaleway.LoadbalancerBackend("mainLoadbalancerBackend", {
* lbId: mainLoadbalancer.id,
* forwardProtocol: "http",
* forwardPort: 80,
* });
* const byID = scaleway.getLbBackendOutput({
* backendId: mainLoadbalancerBackend.id,
* });
* const byName = scaleway.getLbBackendOutput({
* name: mainLoadbalancerBackend.name,
* lbId: mainLoadbalancer.id,
* });
* ```
*/
export declare function getLbBackend(args?: GetLbBackendArgs, opts?: pulumi.InvokeOptions): Promise<GetLbBackendResult>;
/**
* A collection of arguments for invoking getLbBackend.
*/
export interface GetLbBackendArgs {
/**
* The backend id.
* - Only one of `name` and `backendId` should be specified.
*/
backendId?: string;
/**
* The load-balancer ID this backend is attached to.
*/
lbId?: string;
/**
* The name of the backend.
* - When using the `name` you should specify the `lb-id`
*/
name?: string;
}
/**
* A collection of values returned by getLbBackend.
*/
export interface GetLbBackendResult {
readonly backendId?: string;
readonly failoverHost: string;
readonly forwardPort: number;
readonly forwardPortAlgorithm: string;
readonly forwardProtocol: string;
readonly healthCheckDelay: string;
readonly healthCheckHttp: outputs.GetLbBackendHealthCheckHttp[];
readonly healthCheckHttps: outputs.GetLbBackendHealthCheckHttp[];
readonly healthCheckMaxRetries: number;
readonly healthCheckPort: number;
readonly healthCheckSendProxy: boolean;
readonly healthCheckTcps: outputs.GetLbBackendHealthCheckTcp[];
readonly healthCheckTimeout: string;
readonly healthCheckTransientDelay: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly ignoreSslServerVerify: boolean;
readonly lbId?: string;
readonly maxConnections: number;
readonly maxRetries: number;
readonly name?: string;
readonly onMarkedDownAction: string;
readonly proxyProtocol: string;
readonly redispatchAttemptCount: number;
readonly sendProxyV2: boolean;
readonly serverIps: string[];
readonly sslBridging: boolean;
readonly stickySessions: string;
readonly stickySessionsCookieName: string;
readonly timeoutConnect: string;
readonly timeoutQueue: string;
readonly timeoutServer: string;
readonly timeoutTunnel: string;
}
/**
* Get information about Scaleway Load-Balancer Backends.
* For more information, see [the documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends).
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
* import * as scaleway from "@pulumi/scaleway";
*
* const mainLoadbalancerIp = new scaleway.LoadbalancerIp("mainLoadbalancerIp", {});
* const mainLoadbalancer = new scaleway.Loadbalancer("mainLoadbalancer", {
* ipId: mainLoadbalancerIp.id,
* type: "LB-S",
* });
* const mainLoadbalancerBackend = new scaleway.LoadbalancerBackend("mainLoadbalancerBackend", {
* lbId: mainLoadbalancer.id,
* forwardProtocol: "http",
* forwardPort: 80,
* });
* const byID = scaleway.getLbBackendOutput({
* backendId: mainLoadbalancerBackend.id,
* });
* const byName = scaleway.getLbBackendOutput({
* name: mainLoadbalancerBackend.name,
* lbId: mainLoadbalancer.id,
* });
* ```
*/
export declare function getLbBackendOutput(args?: GetLbBackendOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLbBackendResult>;
/**
* A collection of arguments for invoking getLbBackend.
*/
export interface GetLbBackendOutputArgs {
/**
* The backend id.
* - Only one of `name` and `backendId` should be specified.
*/
backendId?: pulumi.Input<string>;
/**
* The load-balancer ID this backend is attached to.
*/
lbId?: pulumi.Input<string>;
/**
* The name of the backend.
* - When using the `name` you should specify the `lb-id`
*/
name?: pulumi.Input<string>;
}