UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

128 lines (127 loc) 4.5 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages a CFW IP address group resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const name = config.requireObject("name"); * const description = config.requireObject("description"); * const testFirewalls = huaweicloud.Cfw.getFirewalls({}); * const testAddressGroup = new huaweicloud.cfw.AddressGroup("testAddressGroup", { * objectId: testFirewalls.then(testFirewalls => testFirewalls.records?[0]?.protectObjects?[0]?.objectId), * description: description, * }); * ``` * * ## Import * * The ipaddressgroup can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Cfw/addressGroup:AddressGroup test 0ce123456a00f2591fabc00385ff1234 * ``` */ export declare class AddressGroup extends pulumi.CustomResource { /** * Get an existing AddressGroup 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?: AddressGroupState, opts?: pulumi.CustomResourceOptions): AddressGroup; /** * Returns true if the given object is an instance of AddressGroup. 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 AddressGroup; /** * The address type. The value can be **0** (IPv4) or **1** (IPv6). */ readonly addressType: pulumi.Output<number>; /** * Specifies the Address group description. */ readonly description: pulumi.Output<string | undefined>; /** * Specifies the IP address group name. */ readonly name: pulumi.Output<string>; /** * Specifies the protected object ID. */ readonly objectId: 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 AddressGroup 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: AddressGroupArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering AddressGroup resources. */ export interface AddressGroupState { /** * The address type. The value can be **0** (IPv4) or **1** (IPv6). */ addressType?: pulumi.Input<number>; /** * Specifies the Address group description. */ description?: pulumi.Input<string>; /** * Specifies the IP address group name. */ name?: pulumi.Input<string>; /** * Specifies the protected object ID. */ objectId?: 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 AddressGroup resource. */ export interface AddressGroupArgs { /** * The address type. The value can be **0** (IPv4) or **1** (IPv6). */ addressType?: pulumi.Input<number>; /** * Specifies the Address group description. */ description?: pulumi.Input<string>; /** * Specifies the IP address group name. */ name?: pulumi.Input<string>; /** * Specifies the protected object ID. */ objectId: 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>; }