@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
135 lines (134 loc) • 4.7 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages an ELB whitelist resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const listener1 = new huaweicloud.elb.Listener("listener1", {
* protocol: "HTTP",
* protocolPort: 8080,
* loadbalancerId: _var.loadbalancer_id,
* });
* const whitelist1 = new huaweicloud.elb.Whitelist("whitelist1", {
* enableWhitelist: true,
* whitelist: "192.168.11.1,192.168.0.1/24,192.168.201.18/8",
* listenerId: listener1.id,
* });
* ```
*
* ## Import
*
* ELB whitelist can be imported using the whitelist ID, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Elb/whitelist:Whitelist whitelist_1 5c20fdad-7288-11eb-b817-0255ac10158b
* ```
*/
export declare class Whitelist extends pulumi.CustomResource {
/**
* Get an existing Whitelist 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?: WhitelistState, opts?: pulumi.CustomResourceOptions): Whitelist;
/**
* Returns true if the given object is an instance of Whitelist. 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 Whitelist;
/**
* Specify whether to enable access control.
*/
readonly enableWhitelist: pulumi.Output<boolean | undefined>;
/**
* The Listener ID that the whitelist will be associated with. Changing this
* creates a new whitelist.
*/
readonly listenerId: pulumi.Output<string>;
/**
* The region in which to create the ELB whitelist resource. If omitted, the
* provider-level region will be used. Changing this creates a new whitelist.
*/
readonly region: pulumi.Output<string>;
/**
* @deprecated tenant_id is deprecated
*/
readonly tenantId: pulumi.Output<string>;
/**
* Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple
* IP addresses.
*/
readonly whitelist: pulumi.Output<string | undefined>;
/**
* Create a Whitelist 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: WhitelistArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Whitelist resources.
*/
export interface WhitelistState {
/**
* Specify whether to enable access control.
*/
enableWhitelist?: pulumi.Input<boolean>;
/**
* The Listener ID that the whitelist will be associated with. Changing this
* creates a new whitelist.
*/
listenerId?: pulumi.Input<string>;
/**
* The region in which to create the ELB whitelist resource. If omitted, the
* provider-level region will be used. Changing this creates a new whitelist.
*/
region?: pulumi.Input<string>;
/**
* @deprecated tenant_id is deprecated
*/
tenantId?: pulumi.Input<string>;
/**
* Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple
* IP addresses.
*/
whitelist?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Whitelist resource.
*/
export interface WhitelistArgs {
/**
* Specify whether to enable access control.
*/
enableWhitelist?: pulumi.Input<boolean>;
/**
* The Listener ID that the whitelist will be associated with. Changing this
* creates a new whitelist.
*/
listenerId: pulumi.Input<string>;
/**
* The region in which to create the ELB whitelist resource. If omitted, the
* provider-level region will be used. Changing this creates a new whitelist.
*/
region?: pulumi.Input<string>;
/**
* @deprecated tenant_id is deprecated
*/
tenantId?: pulumi.Input<string>;
/**
* Specifies the IP addresses in the whitelist. Use commas(,) to separate the multiple
* IP addresses.
*/
whitelist?: pulumi.Input<string>;
}