UNPKG

@pulumi/linode

Version:

A Pulumi package for creating and managing linode cloud resources.

84 lines (83 loc) 2.18 kB
import * as pulumi from "@pulumi/pulumi"; /** * Provides information about a Linode VPC. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-vpc). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode VPC. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getVpc({ * id: "123", * }); * export const vpc = foo; * ``` */ export declare function getVpc(args: GetVpcArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcResult>; /** * A collection of arguments for invoking getVpc. */ export interface GetVpcArgs { /** * The unique id of this VPC. */ id: string; } /** * A collection of values returned by getVpc. */ export interface GetVpcResult { /** * The date and time when the VPC was created. */ readonly created: string; /** * The user-defined description of this VPC. */ readonly description: string; readonly id: string; /** * The label of the VPC. */ readonly label: string; /** * The region where the VPC is deployed. */ readonly region: string; /** * The date and time when the VPC was last updated. */ readonly updated: string; } /** * Provides information about a Linode VPC. * For more information, see the [Linode APIv4 docs](https://techdocs.akamai.com/linode-api/reference/get-vpc). * * ## Example Usage * * The following example shows how one might use this data source to access information about a Linode VPC. * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as linode from "@pulumi/linode"; * * const foo = linode.getVpc({ * id: "123", * }); * export const vpc = foo; * ``` */ export declare function getVpcOutput(args: GetVpcOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVpcResult>; /** * A collection of arguments for invoking getVpc. */ export interface GetVpcOutputArgs { /** * The unique id of this VPC. */ id: pulumi.Input<string>; }