@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
123 lines (122 loc) • 3.5 kB
TypeScript
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";
*
* // Get info by name
* const byName = scaleway.network.getVpc({
* name: "foobar",
* });
* // Get info by ID
* const byId = scaleway.network.getVpc({
* vpcId: "11111111-1111-1111-1111-111111111111",
* });
* // Get default VPC info
* const _default = scaleway.network.getVpc({
* isDefault: true,
* });
* ```
*/
/** @deprecated scaleway.index/getvpc.getVpc has been deprecated in favor of scaleway.network/getvpc.getVpc */
export declare function getVpc(args?: GetVpcArgs, opts?: pulumi.InvokeOptions): Promise<GetVpcResult>;
/**
* A collection of arguments for invoking getVpc.
*/
export interface GetVpcArgs {
/**
* Whether the targeted VPC is the default VPC.
*/
isDefault?: boolean;
/**
* Name of the VPC. A maximum of 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. A maximum of one of `name` and `vpcId` should be specified.
*/
vpcId?: string;
}
/**
* A collection of values returned by getVpc.
*/
export interface GetVpcResult {
readonly createdAt: string;
readonly enableRouting: boolean;
/**
* 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";
*
* // Get info by name
* const byName = scaleway.network.getVpc({
* name: "foobar",
* });
* // Get info by ID
* const byId = scaleway.network.getVpc({
* vpcId: "11111111-1111-1111-1111-111111111111",
* });
* // Get default VPC info
* const _default = scaleway.network.getVpc({
* isDefault: true,
* });
* ```
*/
/** @deprecated scaleway.index/getvpc.getVpc has been deprecated in favor of scaleway.network/getvpc.getVpc */
export declare function getVpcOutput(args?: GetVpcOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVpcResult>;
/**
* A collection of arguments for invoking getVpc.
*/
export interface GetVpcOutputArgs {
/**
* Whether the targeted VPC is the default VPC.
*/
isDefault?: pulumi.Input<boolean>;
/**
* Name of the VPC. A maximum of 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. A maximum of one of `name` and `vpcId` should be specified.
*/
vpcId?: pulumi.Input<string>;
}