UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

97 lines (96 loc) 3.81 kB
import * as pulumi from "@pulumi/pulumi"; import { input as inputs, output as outputs } from "../types"; /** * Manages the protected EIPs under the protect object for CFW service within HuaweiCloud. * * > A protection object (`objectId`) can only create one `huaweicloud.Cfw.EipProtection` resource for managing * protected EIPs. * * ## Import * * The protection resource can be imported using their `object_id` or `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Cfw/eipProtection:EipProtection test <id> * ``` */ export declare class EipProtection extends pulumi.CustomResource { /** * Get an existing EipProtection 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?: EipProtectionState, opts?: pulumi.CustomResourceOptions): EipProtection; /** * Returns true if the given object is an instance of EipProtection. 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 EipProtection; /** * The protected object ID. * Changing this parameter will create a new resource. */ readonly objectId: pulumi.Output<string>; /** * The protected EIP configurations. * The object structure is documented below. */ readonly protectedEips: pulumi.Output<outputs.Cfw.EipProtectionProtectedEip[]>; /** * 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 EipProtection 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: EipProtectionArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering EipProtection resources. */ export interface EipProtectionState { /** * The protected object ID. * Changing this parameter will create a new resource. */ objectId?: pulumi.Input<string>; /** * The protected EIP configurations. * The object structure is documented below. */ protectedEips?: pulumi.Input<pulumi.Input<inputs.Cfw.EipProtectionProtectedEip>[]>; /** * 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 EipProtection resource. */ export interface EipProtectionArgs { /** * The protected object ID. * Changing this parameter will create a new resource. */ objectId: pulumi.Input<string>; /** * The protected EIP configurations. * The object structure is documented below. */ protectedEips: pulumi.Input<pulumi.Input<inputs.Cfw.EipProtectionProtectedEip>[]>; /** * 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>; }