@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
83 lines (82 loc) • 2.99 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Provides a resource to manage network interface attach
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as volcengine from "@volcengine/pulumi";
*
* const foo = new volcengine.vpc.NetworkInterfaceAttach("foo", {
* instanceId: "i-72q20hi6s082wcafdem8",
* networkInterfaceId: "eni-274ecj646ylts7fap8t6xbba1",
* });
* ```
*
* ## Import
*
* Network interface attach can be imported using the network_interface_id:instance_id.
*
* ```sh
* $ pulumi import volcengine:vpc/networkInterfaceAttach:NetworkInterfaceAttach default eni-bp1fg655nh68xyz9***:i-wijfn35c****
* ```
*/
export declare class NetworkInterfaceAttach extends pulumi.CustomResource {
/**
* Get an existing NetworkInterfaceAttach 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?: NetworkInterfaceAttachState, opts?: pulumi.CustomResourceOptions): NetworkInterfaceAttach;
/**
* Returns true if the given object is an instance of NetworkInterfaceAttach. 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 NetworkInterfaceAttach;
/**
* The id of the instance to which the ENI is bound.
*/
readonly instanceId: pulumi.Output<string>;
/**
* The id of the ENI.
*/
readonly networkInterfaceId: pulumi.Output<string>;
/**
* Create a NetworkInterfaceAttach 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: NetworkInterfaceAttachArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering NetworkInterfaceAttach resources.
*/
export interface NetworkInterfaceAttachState {
/**
* The id of the instance to which the ENI is bound.
*/
instanceId?: pulumi.Input<string>;
/**
* The id of the ENI.
*/
networkInterfaceId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a NetworkInterfaceAttach resource.
*/
export interface NetworkInterfaceAttachArgs {
/**
* The id of the instance to which the ENI is bound.
*/
instanceId: pulumi.Input<string>;
/**
* The id of the ENI.
*/
networkInterfaceId: pulumi.Input<string>;
}