UNPKG

@huaweicloudos/pulumi

Version:

A Pulumi package for creating and managing Huaweicloud cloud resources.

71 lines (70 loc) 2.16 kB
import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get an available HuaweiCloud ECS compute instance remote console. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as huaweicloud from "@pulumi/huaweicloud"; * * const config = new pulumi.Config(); * const instanceId = config.requireObject("instanceId"); * const test = huaweicloud.Ecs.getInstanceRemoteConsole({ * instanceId: instanceId, * }); * ``` */ export declare function getInstanceRemoteConsole(args: GetInstanceRemoteConsoleArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceRemoteConsoleResult>; /** * A collection of arguments for invoking getInstanceRemoteConsole. */ export interface GetInstanceRemoteConsoleArgs { /** * Specifies the ECS ID. */ instanceId: string; /** * Specifies the region in which to obtain the instances. * If omitted, the provider-level region will be used. */ region?: string; } /** * A collection of values returned by getInstanceRemoteConsole. */ export interface GetInstanceRemoteConsoleResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instanceId: string; /** * The protocol of the ECS compute instance remote console. */ readonly protocol: string; readonly region: string; /** * The type of ECS compute instance remote console. */ readonly type: string; /** * The url of ECS compute instance remote console. */ readonly url: string; } export declare function getInstanceRemoteConsoleOutput(args: GetInstanceRemoteConsoleOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstanceRemoteConsoleResult>; /** * A collection of arguments for invoking getInstanceRemoteConsole. */ export interface GetInstanceRemoteConsoleOutputArgs { /** * Specifies the ECS ID. */ instanceId: pulumi.Input<string>; /** * Specifies the region in which to obtain the instances. * If omitted, the provider-level region will be used. */ region?: pulumi.Input<string>; }