@lbrlabs/pulumi-scaleway
Version:
A Pulumi package for creating and managing scaleway cloud resources.
141 lines (140 loc) • 4.44 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Creates and manages Scaleway Virtual Private Clouds.
* For more information, see [the documentation](https://www.scaleway.com/en/docs/network/vpc/concepts/).
*
* ## Example
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as scaleway from "@lbrlabs/pulumi-scaleway";
*
* const vpc01 = new scaleway.Vpc("vpc01", {tags: [
* "demo",
* "terraform",
* ]});
* ```
*
* ## Import
*
* VPCs can be imported using the `{region}/{id}`, e.g. bash
*
* ```sh
* $ pulumi import scaleway:index/vpc:Vpc vpc_demo fr-par/11111111-1111-1111-1111-111111111111
* ```
*/
export declare class Vpc extends pulumi.CustomResource {
/**
* Get an existing Vpc 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 state Any extra arguments used during the lookup.
* @param opts Optional settings to control the behavior of the CustomResource.
*/
static get(name: string, id: pulumi.Input<pulumi.ID>, state?: VpcState, opts?: pulumi.CustomResourceOptions): Vpc;
/**
* Returns true if the given object is an instance of Vpc. 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 Vpc;
/**
* Date and time of VPC's creation (RFC 3339 format).
*/
readonly createdAt: pulumi.Output<string>;
/**
* Defines whether the VPC is the default one for its Project.
*/
readonly isDefault: pulumi.Output<boolean>;
/**
* The name of the VPC. If not provided it will be randomly generated.
*/
readonly name: pulumi.Output<string>;
/**
* The organization ID the VPC is associated with.
*/
readonly organizationId: pulumi.Output<string>;
/**
* `projectId`) The ID of the project the VPC is associated with.
*/
readonly projectId: pulumi.Output<string>;
/**
* `region`) The region of the VPC.
*/
readonly region: pulumi.Output<string>;
/**
* The tags associated with the VPC.
*/
readonly tags: pulumi.Output<string[] | undefined>;
/**
* Date and time of VPC's last update (RFC 3339 format).
*/
readonly updatedAt: pulumi.Output<string>;
/**
* Create a Vpc 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?: VpcArgs, opts?: pulumi.CustomResourceOptions);
}
/**
* Input properties used for looking up and filtering Vpc resources.
*/
export interface VpcState {
/**
* Date and time of VPC's creation (RFC 3339 format).
*/
createdAt?: pulumi.Input<string>;
/**
* Defines whether the VPC is the default one for its Project.
*/
isDefault?: pulumi.Input<boolean>;
/**
* The name of the VPC. If not provided it will be randomly generated.
*/
name?: pulumi.Input<string>;
/**
* The organization ID 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`) The region of the VPC.
*/
region?: pulumi.Input<string>;
/**
* The tags associated with the VPC.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
/**
* Date and time of VPC's last update (RFC 3339 format).
*/
updatedAt?: pulumi.Input<string>;
}
/**
* The set of arguments for constructing a Vpc resource.
*/
export interface VpcArgs {
/**
* The name of the VPC. If not provided it will be randomly generated.
*/
name?: pulumi.Input<string>;
/**
* `projectId`) The ID of the project the VPC is associated with.
*/
projectId?: pulumi.Input<string>;
/**
* `region`) The region of the VPC.
*/
region?: pulumi.Input<string>;
/**
* The tags associated with the VPC.
*/
tags?: pulumi.Input<pulumi.Input<string>[]>;
}