@cuemby/equinix
Version:
A Pulumi package for creating and managing equinix cloud resources.
78 lines (77 loc) • 2.98 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* ## Example Usage
*
* See the Network Types Guide for examples of this resource and to
* learn about the recommended `equinix.MetalPort` alternative.
*
* ## Import
*
* This resource can also be imported using existing device ID
*
* ```sh
* $ pulumi import equinix:index/metalDeviceNetworkType:MetalDeviceNetworkType equinix_metal_device_network_type {existing device_id}
* ```
*/
export declare class MetalDeviceNetworkType extends pulumi.CustomResource {
/**
* Get an existing MetalDeviceNetworkType 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?: MetalDeviceNetworkTypeState, opts?: pulumi.CustomResourceOptions): MetalDeviceNetworkType;
/**
* Returns true if the given object is an instance of MetalDeviceNetworkType. 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 MetalDeviceNetworkType;
/**
* The ID of the device on which the network type should be set.
*/
readonly deviceId: pulumi.Output<string>;
/**
* Network type to set. Must be one of `layer3`, `hybrid`, `layer2-individual`
* and `layer2-bonded`.
*/
readonly type: pulumi.Output<string>;
/**
* Create a MetalDeviceNetworkType 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: MetalDeviceNetworkTypeArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering MetalDeviceNetworkType resources.
*/
export interface MetalDeviceNetworkTypeState {
/**
* The ID of the device on which the network type should be set.
*/
deviceId?: pulumi.Input<string>;
/**
* Network type to set. Must be one of `layer3`, `hybrid`, `layer2-individual`
* and `layer2-bonded`.
*/
type?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a MetalDeviceNetworkType resource.
*/
export interface MetalDeviceNetworkTypeArgs {
/**
* The ID of the device on which the network type should be set.
*/
deviceId: pulumi.Input<string>;
/**
* Network type to set. Must be one of `layer3`, `hybrid`, `layer2-individual`
* and `layer2-bonded`.
*/
type: pulumi.Input<string>;
}