@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
141 lines (140 loc) • 4.72 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a CFW IP address group 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 groupId = config.requireObject("groupId");
* const address = config.requireObject("address");
* const test = new huaweicloud.cfw.AddressGroupMember("test", {
* groupId: groupId,
* address: address,
* });
* ```
*
* ## Import
*
* The CFW IP address group member can be imported using `group_id`, `id`, separated by a slash, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Cfw/addressGroupMember:AddressGroupMember test <group_id>/<id>
* ```
*/
export declare class AddressGroupMember extends pulumi.CustomResource {
/**
* Get an existing AddressGroupMember 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?: AddressGroupMemberState, opts?: pulumi.CustomResourceOptions): AddressGroupMember;
/**
* Returns true if the given object is an instance of AddressGroupMember. 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 AddressGroupMember;
/**
* Specifies the IP address.
*/
readonly address: pulumi.Output<string>;
/**
* Specifies the address type.
* The value can be **0** (IPv4) or **1** (IPv6).
*/
readonly addressType: pulumi.Output<number>;
/**
* Specifies address description.
*/
readonly description: pulumi.Output<string>;
/**
* Specifies the ID of the IP address group.
*/
readonly groupId: pulumi.Output<string>;
/**
* schema: Deprecated; Specifies the address name.
*/
readonly name: pulumi.Output<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
*/
readonly region: pulumi.Output<string>;
/**
* Create a AddressGroupMember 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: AddressGroupMemberArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering AddressGroupMember resources.
*/
export interface AddressGroupMemberState {
/**
* Specifies the IP address.
*/
address?: pulumi.Input<string>;
/**
* Specifies the address type.
* The value can be **0** (IPv4) or **1** (IPv6).
*/
addressType?: pulumi.Input<number>;
/**
* Specifies address description.
*/
description?: pulumi.Input<string>;
/**
* Specifies the ID of the IP address group.
*/
groupId?: pulumi.Input<string>;
/**
* schema: Deprecated; Specifies the address name.
*/
name?: pulumi.Input<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a AddressGroupMember resource.
*/
export interface AddressGroupMemberArgs {
/**
* Specifies the IP address.
*/
address: pulumi.Input<string>;
/**
* Specifies the address type.
* The value can be **0** (IPv4) or **1** (IPv6).
*/
addressType?: pulumi.Input<number>;
/**
* Specifies address description.
*/
description?: pulumi.Input<string>;
/**
* Specifies the ID of the IP address group.
*/
groupId: pulumi.Input<string>;
/**
* schema: Deprecated; Specifies the address name.
*/
name?: pulumi.Input<string>;
/**
* Specifies the region in which to create the resource.
* If omitted, the provider-level region will be used. Changing this parameter will create a new resource.
*/
region?: pulumi.Input<string>;
}