UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

114 lines (113 loc) 2.96 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets information about a Scaleway Virtual Private Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getVpc({ * name: "foobar", * }); * const byId = scaleway.getVpc({ * vpcId: "11111111-1111-1111-1111-111111111111", * }); * const default = scaleway.getVpc({ * isDefault: true, * }); * ``` */ export declare function getVpc(args?: GetVpcArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcResult>; /** * A collection of arguments for invoking getVpc. */ export interface GetVpcArgs { /** * To get default VPC's information. */ isDefault?: boolean; /** * Name of the VPC. One of `name` and `vpcId` should be specified. */ name?: string; /** * The ID of the organization the VPC is associated with. */ organizationId?: string; /** * `projectId`) The ID of the project the VPC is associated with. */ projectId?: string; region?: string; /** * ID of the VPC. One of `name` and `vpcId` should be specified. */ vpcId?: string; } /** * A collection of values returned by getVpc. */ export interface GetVpcResult { readonly createdAt: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly isDefault?: boolean; readonly name?: string; readonly organizationId: string; readonly projectId?: string; readonly region?: string; readonly tags: string[]; readonly updatedAt: string; readonly vpcId?: string; } /** * Gets information about a Scaleway Virtual Private Cloud. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getVpc({ * name: "foobar", * }); * const byId = scaleway.getVpc({ * vpcId: "11111111-1111-1111-1111-111111111111", * }); * const default = scaleway.getVpc({ * isDefault: true, * }); * ``` */ export declare function getVpcOutput(args?: GetVpcOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetVpcResult>; /** * A collection of arguments for invoking getVpc. */ export interface GetVpcOutputArgs { /** * To get default VPC's information. */ isDefault?: pulumi.Input<boolean>; /** * Name of the VPC. One of `name` and `vpcId` should be specified. */ name?: pulumi.Input<string>; /** * The ID of the organization the VPC is associated with. */ organizationId?: pulumi.Input<string>; /** * `projectId`) The ID of the project the VPC is associated with. */ projectId?: pulumi.Input<string>; region?: pulumi.Input<string>; /** * ID of the VPC. One of `name` and `vpcId` should be specified. */ vpcId?: pulumi.Input<string>; }