@huaweicloudos/pulumi
Version:
A Pulumi package for creating and managing Huaweicloud cloud resources.
238 lines (237 loc) • 8.49 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Manages a supplementary network interface resource within HuaweiCloud.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as pulumi from "@huaweicloudos/pulumi";
*
* const config = new pulumi.Config();
* const subnetId = config.requireObject("subnetId");
* const parentId = config.requireObject("parentId");
* const vlanId = config.requireObject("vlanId");
* const test = new huaweicloud.vpc.SubNetworkInterface("test", {
* subnetId: subnetId,
* parentId: parentId,
* vlanId: vlanId,
* description: "create a supplementary network interface",
* });
* ```
*
* ## Import
*
* The supplementary network interface can be imported using the `id`, e.g. bash
*
* ```sh
* $ pulumi import huaweicloud:Vpc/subNetworkInterface:SubNetworkInterface test <id>
* ```
*/
export declare class SubNetworkInterface extends pulumi.CustomResource {
/**
* Get an existing SubNetworkInterface 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?: SubNetworkInterfaceState, opts?: pulumi.CustomResourceOptions): SubNetworkInterface;
/**
* Returns true if the given object is an instance of SubNetworkInterface. 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 SubNetworkInterface;
/**
* The create time of the supplementary network interface.
*/
readonly createdAt: pulumi.Output<string>;
/**
* Specifies the description of the supplementary network interface.
*/
readonly description: pulumi.Output<string | undefined>;
/**
* Specifies the private IPv4 address of the supplementary network interface.
*/
readonly ipAddress: pulumi.Output<string>;
/**
* Specifies the IPv6 address is it enabled of the supplementary network interface.
*/
readonly ipv6Enable: pulumi.Output<boolean | undefined>;
/**
* Specifies the IPv6 address of the supplementary network interface.
*/
readonly ipv6IpAddress: pulumi.Output<string>;
/**
* The MAC address of the supplementary network interface.
*/
readonly macAddress: pulumi.Output<string>;
/**
* The ID of the ECS to which the supplementary network interface belongs.
*/
readonly parentDeviceId: pulumi.Output<string>;
/**
* Specifies the ID of the elastic network interface to which the
* supplementary network interface belongs.
* Changing this creates a new resource.
*/
readonly parentId: 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>;
/**
* Specifies the list of the security groups IDs to which the supplementary
* network interface belongs.
*/
readonly securityGroupIds: pulumi.Output<string[]>;
/**
* The status of the supplementary network interface.
*/
readonly status: pulumi.Output<string>;
/**
* Specifies the ID of the subnet to which the supplementary network
* interface belongs.
* Changing this creates a new resource.
*/
readonly subnetId: pulumi.Output<string>;
/**
* Specifies the vlan ID of the supplementary network interface.
* The valid value is range from `1` t0 `4094`.
*/
readonly vlanId: pulumi.Output<string>;
/**
* The ID of the VPC to which the supplementary network interface belongs.
*/
readonly vpcId: pulumi.Output<string>;
/**
* Create a SubNetworkInterface 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: SubNetworkInterfaceArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering SubNetworkInterface resources.
*/
export interface SubNetworkInterfaceState {
/**
* The create time of the supplementary network interface.
*/
createdAt?: pulumi.Input<string>;
/**
* Specifies the description of the supplementary network interface.
*/
description?: pulumi.Input<string>;
/**
* Specifies the private IPv4 address of the supplementary network interface.
*/
ipAddress?: pulumi.Input<string>;
/**
* Specifies the IPv6 address is it enabled of the supplementary network interface.
*/
ipv6Enable?: pulumi.Input<boolean>;
/**
* Specifies the IPv6 address of the supplementary network interface.
*/
ipv6IpAddress?: pulumi.Input<string>;
/**
* The MAC address of the supplementary network interface.
*/
macAddress?: pulumi.Input<string>;
/**
* The ID of the ECS to which the supplementary network interface belongs.
*/
parentDeviceId?: pulumi.Input<string>;
/**
* Specifies the ID of the elastic network interface to which the
* supplementary network interface belongs.
* Changing this creates a new resource.
*/
parentId?: 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>;
/**
* Specifies the list of the security groups IDs to which the supplementary
* network interface belongs.
*/
securityGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* The status of the supplementary network interface.
*/
status?: pulumi.Input<string>;
/**
* Specifies the ID of the subnet to which the supplementary network
* interface belongs.
* Changing this creates a new resource.
*/
subnetId?: pulumi.Input<string>;
/**
* Specifies the vlan ID of the supplementary network interface.
* The valid value is range from `1` t0 `4094`.
*/
vlanId?: pulumi.Input<string>;
/**
* The ID of the VPC to which the supplementary network interface belongs.
*/
vpcId?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a SubNetworkInterface resource.
*/
export interface SubNetworkInterfaceArgs {
/**
* Specifies the description of the supplementary network interface.
*/
description?: pulumi.Input<string>;
/**
* Specifies the private IPv4 address of the supplementary network interface.
*/
ipAddress?: pulumi.Input<string>;
/**
* Specifies the IPv6 address is it enabled of the supplementary network interface.
*/
ipv6Enable?: pulumi.Input<boolean>;
/**
* Specifies the IPv6 address of the supplementary network interface.
*/
ipv6IpAddress?: pulumi.Input<string>;
/**
* Specifies the ID of the elastic network interface to which the
* supplementary network interface belongs.
* Changing this creates a new resource.
*/
parentId: 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>;
/**
* Specifies the list of the security groups IDs to which the supplementary
* network interface belongs.
*/
securityGroupIds?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Specifies the ID of the subnet to which the supplementary network
* interface belongs.
* Changing this creates a new resource.
*/
subnetId: pulumi.Input<string>;
/**
* Specifies the vlan ID of the supplementary network interface.
* The valid value is range from `1` t0 `4094`.
*/
vlanId?: pulumi.Input<string>;
}