@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
157 lines (156 loc) • 5.34 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import { input as inputs, output as outputs } from "../types";
/**
* Manages a Dedicated ELB Ip Group resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as huaweicloud from "@pulumi/huaweicloud";
*
* const basic = new huaweicloud.DedicatedElb.Ipgroup("basic", {
* description: "basic example",
* ipLists: [{
* description: "ECS01",
* ip: "192.168.10.10",
* }],
* });
* ```
*
* ## Import
*
* The ELB IP group can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:DedicatedElb/ipgroup:Ipgroup test <id>
* ```
*/
export declare class Ipgroup extends pulumi.CustomResource {
/**
* Get an existing Ipgroup 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?: IpgroupState, opts?: pulumi.CustomResourceOptions): Ipgroup;
/**
* Returns true if the given object is an instance of Ipgroup. 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 Ipgroup;
/**
* The creation time of the ip group.
*/
readonly createdAt: pulumi.Output<string>;
/**
* Human-readable description for the ip.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* The enterprise project id of the ip group. Changing this
* creates a new ip group.
*/
readonly enterpriseProjectId: pulumi.Output<string>;
/**
* Specifies an array of one or more ip addresses. The ipList object structure is
* documented below. The ipList structure is documented below.
*/
readonly ipLists: pulumi.Output<outputs.DedicatedElb.IpgroupIpList[]>;
/**
* The listener IDs which the ip group associated with.
*/
readonly listenerIds: pulumi.Output<string[]>;
/**
* Human-readable name for the ip group.
*/
readonly name: pulumi.Output<string>;
/**
* The region in which to create the ip group resource. If omitted, the
* provider-level region will be used. Changing this creates a new ip group.
*/
readonly region: pulumi.Output<string>;
/**
* The update time of the ip group.
*/
readonly updatedAt: pulumi.Output<string>;
/**
* Create a Ipgroup 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: IpgroupArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Ipgroup resources.
*/
export interface IpgroupState {
/**
* The creation time of the ip group.
*/
createdAt?: pulumi.Input<string>;
/**
* Human-readable description for the ip.
*/
description?: pulumi.Input<string>;
/**
* The enterprise project id of the ip group. Changing this
* creates a new ip group.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies an array of one or more ip addresses. The ipList object structure is
* documented below. The ipList structure is documented below.
*/
ipLists?: pulumi.Input<pulumi.Input<inputs.DedicatedElb.IpgroupIpList>[]>;
/**
* The listener IDs which the ip group associated with.
*/
listenerIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Human-readable name for the ip group.
*/
name?: pulumi.Input<string>;
/**
* The region in which to create the ip group resource. If omitted, the
* provider-level region will be used. Changing this creates a new ip group.
*/
region?: pulumi.Input<string>;
/**
* The update time of the ip group.
*/
updatedAt?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Ipgroup resource.
*/
export interface IpgroupArgs {
/**
* Human-readable description for the ip.
*/
description?: pulumi.Input<string>;
/**
* The enterprise project id of the ip group. Changing this
* creates a new ip group.
*/
enterpriseProjectId?: pulumi.Input<string>;
/**
* Specifies an array of one or more ip addresses. The ipList object structure is
* documented below. The ipList structure is documented below.
*/
ipLists: pulumi.Input<pulumi.Input<inputs.DedicatedElb.IpgroupIpList>[]>;
/**
* Human-readable name for the ip group.
*/
name?: pulumi.Input<string>;
/**
* The region in which to create the ip group resource. If omitted, the
* provider-level region will be used. Changing this creates a new ip group.
*/
region?: pulumi.Input<string>;
}