UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

116 lines (115 loc) 4.35 kB
import * as pulumi from "@pulumi/pulumi"; /** * Manages an RDS instance EIP associate resource within HuaweiCloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as pulumi from "@huaweicloudos/pulumi"; * * const config = new pulumi.Config(); * const instanceId = config.requireObject("instanceId"); * const publicIp = config.requireObject("publicIp"); * const publicIpId = config.requireObject("publicIpId"); * const test = new huaweicloud.rds.InstanceEipAssociate("test", { * instanceId: instanceId, * publicIp: publicIp, * publicIpId: _var.node_id, * }); * ``` * * ## Import * * The RDS instance eip associate can be imported using the `id`, e.g. bash * * ```sh * $ pulumi import huaweicloud:Rds/instanceEipAssociate:InstanceEipAssociate test <id> * ``` */ export declare class InstanceEipAssociate extends pulumi.CustomResource { /** * Get an existing InstanceEipAssociate 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?: InstanceEipAssociateState, opts?: pulumi.CustomResourceOptions): InstanceEipAssociate; /** * Returns true if the given object is an instance of InstanceEipAssociate. 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 InstanceEipAssociate; /** * Specifies the ID of an RDS instance. Changing this creates a new resource. */ readonly instanceId: pulumi.Output<string>; /** * Specifies the EIP address to be bound. Changing this creates a new resource. */ readonly publicIp: pulumi.Output<string>; /** * Specifies the EIP ID. Changing this creates a new resource. */ readonly publicIpId: pulumi.Output<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this creates a new resource. */ readonly region: pulumi.Output<string>; /** * Create a InstanceEipAssociate 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: InstanceEipAssociateArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering InstanceEipAssociate resources. */ export interface InstanceEipAssociateState { /** * Specifies the ID of an RDS instance. Changing this creates a new resource. */ instanceId?: pulumi.Input<string>; /** * Specifies the EIP address to be bound. Changing this creates a new resource. */ publicIp?: pulumi.Input<string>; /** * Specifies the EIP ID. Changing this creates a new resource. */ publicIpId?: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this creates a new resource. */ region?: pulumi.Input<string>; } /** * The set of arguments for constructing a InstanceEipAssociate resource. */ export interface InstanceEipAssociateArgs { /** * Specifies the ID of an RDS instance. Changing this creates a new resource. */ instanceId: pulumi.Input<string>; /** * Specifies the EIP address to be bound. Changing this creates a new resource. */ publicIp: pulumi.Input<string>; /** * Specifies the EIP ID. Changing this creates a new resource. */ publicIpId: pulumi.Input<string>; /** * Specifies the region in which to create the resource. * If omitted, the provider-level region will be used. Changing this creates a new resource. */ region?: pulumi.Input<string>; }