UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

204 lines (203 loc) 7.04 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages an ELB member resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const lbPoolId = config.requireObject("lbPoolId"); * const ipv4SubnetId = config.requireObject("ipv4SubnetId"); * const member1 = new huaweicloud.elb.Member("member1", { * address: "192.168.199.23", * protocolPort: 8080, * poolId: lbPoolId, * subnetId: ipv4SubnetId, * }); * ``` * * ## Import * * ELB member can be imported using the pool ID and member ID separated by a slash, e.g. bash * * ```sh * $ pulumi import huaweicloud:Elb/member:Member member_1 e0bd694a-abbe-450e-b329-0931fd1cc5eb/4086b0c9-b18c-4d1c-b6b8-4c56c3ad2a9e * ``` */ export declare class Member extends pulumi.CustomResource { /** * Get an existing Member resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input<pulumi.ID>, state?: MemberState, opts?: pulumi.CustomResourceOptions): Member; /** * Returns true if the given object is an instance of Member. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is Member; /** * The IP address of the member to receive traffic from the load balancer. * Changing this creates a new member. */ readonly address: pulumi.Output<string>; /** * schema: Deprecated */ readonly adminStateUp: pulumi.Output<boolean | undefined>; /** * Indicates the administrative status of the backend server. */ readonly backendServerStatus: pulumi.Output<boolean>; /** * Human-readable name for the member. */ readonly name: pulumi.Output<string>; /** * Indicates the health check result of the backend server. */ readonly operatingStatus: pulumi.Output<string>; /** * The id of the pool that this member will be assigned to. */ readonly poolId: pulumi.Output<string>; /** * The port on which to listen for client traffic. Changing this creates a * new member. */ readonly protocolPort: pulumi.Output<number>; /** * The region in which to create the ELB member resource. If omitted, the the * provider-level region will be used. Changing this creates a new member. */ readonly region: pulumi.Output<string>; /** * The **IPv4 subnet ID** of the subnet in which to access the member. */ readonly subnetId: pulumi.Output<string>; /** * @deprecated tenant_id is deprecated */ readonly tenantId: pulumi.Output<string>; /** * A positive integer value that indicates the relative portion of traffic that this member * should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a * member with a weight of 2. */ readonly weight: pulumi.Output<number>; /** * Create a Member resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: MemberArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering Member resources. */ export interface MemberState { /** * The IP address of the member to receive traffic from the load balancer. * Changing this creates a new member. */ address?: pulumi.Input<string>; /** * schema: Deprecated */ adminStateUp?: pulumi.Input<boolean>; /** * Indicates the administrative status of the backend server. */ backendServerStatus?: pulumi.Input<boolean>; /** * Human-readable name for the member. */ name?: pulumi.Input<string>; /** * Indicates the health check result of the backend server. */ operatingStatus?: pulumi.Input<string>; /** * The id of the pool that this member will be assigned to. */ poolId?: pulumi.Input<string>; /** * The port on which to listen for client traffic. Changing this creates a * new member. */ protocolPort?: pulumi.Input<number>; /** * The region in which to create the ELB member resource. If omitted, the the * provider-level region will be used. Changing this creates a new member. */ region?: pulumi.Input<string>; /** * The **IPv4 subnet ID** of the subnet in which to access the member. */ subnetId?: pulumi.Input<string>; /** * @deprecated tenant_id is deprecated */ tenantId?: pulumi.Input<string>; /** * A positive integer value that indicates the relative portion of traffic that this member * should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a * member with a weight of 2. */ weight?: pulumi.Input<number>; } /** * The set of arguments for constructing a Member resource. */ export interface MemberArgs { /** * The IP address of the member to receive traffic from the load balancer. * Changing this creates a new member. */ address: pulumi.Input<string>; /** * schema: Deprecated */ adminStateUp?: pulumi.Input<boolean>; /** * Human-readable name for the member. */ name?: pulumi.Input<string>; /** * The id of the pool that this member will be assigned to. */ poolId: pulumi.Input<string>; /** * The port on which to listen for client traffic. Changing this creates a * new member. */ protocolPort: pulumi.Input<number>; /** * The region in which to create the ELB member resource. If omitted, the the * provider-level region will be used. Changing this creates a new member. */ region?: pulumi.Input<string>; /** * The **IPv4 subnet ID** of the subnet in which to access the member. */ subnetId: pulumi.Input<string>; /** * @deprecated tenant_id is deprecated */ tenantId?: pulumi.Input<string>; /** * A positive integer value that indicates the relative portion of traffic that this member * should receive from the pool. For example, a member with a weight of 10 receives five times as much traffic as a * member with a weight of 2. */ weight?: pulumi.Input<number>; }