@pulumi/azure-native
Version:
[](https://slack.pulumi.com) [](https://npmjs.com/package/@pulumi/azure-native) [ • 2.85 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as enums from "../types/enums";
/**
* Represents the serial port of the parent resource.
*
* Uses Azure REST API version 2018-05-01. In version 2.x of the Azure Native provider, it used API version 2018-05-01.
*/
export declare class SerialPort extends pulumi.CustomResource {
/**
* Get an existing SerialPort 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 opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, opts?: pulumi.CustomResourceOptions): SerialPort;
/**
* Returns true if the given object is an instance of SerialPort. 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 SerialPort;
/**
* The Azure API version of the resource.
*/
readonly azureApiVersion: pulumi.Output<string>;
/**
* Resource name
*/
readonly name: pulumi.Output<string>;
/**
* Specifies whether the port is enabled for a serial console connection.
*/
readonly state: pulumi.Output<string | undefined>;
/**
* Resource type
*/
readonly type: pulumi.Output<string>;
/**
* Create a SerialPort 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: SerialPortArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* The set of arguments for constructing a SerialPort resource.
*/
export interface SerialPortArgs {
/**
* The resource name, or subordinate path, for the parent of the serial port. For example: the name of the virtual machine.
*/
parentResource: pulumi.Input<string>;
/**
* The resource type of the parent resource. For example: 'virtualMachines' or 'virtualMachineScaleSets'
*/
parentResourceType: pulumi.Input<string>;
/**
* The name of the resource group.
*/
resourceGroupName: pulumi.Input<string>;
/**
* The namespace of the resource provider.
*/
resourceProviderNamespace: pulumi.Input<string>;
/**
* The name of the serial port to create.
*/
serialPort?: pulumi.Input<string>;
/**
* Specifies whether the port is enabled for a serial console connection.
*/
state?: pulumi.Input<enums.serialconsole.SerialPortState>;
}