import * as pulumi from "@pulumi/pulumi"; import * as inputs from "./types/input"; import * as outputs from "./types/output"; /** * Creates and manages Scaleway VPC Private Networks. * For more information, see [the API documentation](https://www.scaleway.com/en/developers/api/vpc/#private-networks-ac2df4). * * ## Example Usage * * ### Basic * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const pnPriv = new scaleway.VpcPrivateNetwork("pnPriv", {tags: [ * "demo", * "terraform", * ]}); * ``` * * ### With subnets * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@ediri/scaleway"; * * const pnPriv = new scaleway.VpcPrivateNetwork("pnPriv", { * ipv4Subnet: { * subnet: "192.168.0.0/24", * }, * ipv6Subnets: [ * { * subnet: "fd46:78ab:30b8:177c::/64", * }, * { * subnet: "fd46:78ab:30b8:c7df::/64", * }, * ], * tags: [ * "demo", * "terraform", * ], * }); * ``` * * ## Import * * Private Networks can be imported using `{region}/{id}`, e.g. * * bash * * ```sh * $ pulumi import scaleway:index/vpcPrivateNetwork:VpcPrivateNetwork main fr-par/11111111-1111-1111-1111-111111111111 * ``` */ export declare class VpcPrivateNetwork extends pulumi.CustomResource { /** * Get an existing VpcPrivateNetwork 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, state?: VpcPrivateNetworkState, opts?: pulumi.CustomResourceOptions): VpcPrivateNetwork; /** * Returns true if the given object is an instance of VpcPrivateNetwork. 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 VpcPrivateNetwork; /** * The date and time of the creation of the subnet. */ readonly createdAt: pulumi.Output; /** * The IPv4 subnet to associate with the Private Network. */ readonly ipv4Subnet: pulumi.Output; /** * The IPv6 subnets to associate with the private network. */ readonly ipv6Subnets: pulumi.Output; /** * Private Networks are now all necessarily regional. * * @deprecated This field is deprecated and will be removed in the next major version */ readonly isRegional: pulumi.Output; /** * The name of the Private Network. If not provided, it will be randomly generated. */ readonly name: pulumi.Output; /** * The Organization ID the Private Network is associated with. */ readonly organizationId: pulumi.Output; /** * `projectId`) The ID of the Project the private network is associated with. */ readonly projectId: pulumi.Output; /** * `region`) The region of the Private Network. */ readonly region: pulumi.Output; /** * The tags associated with the Private Network. */ readonly tags: pulumi.Output; /** * The date and time of the last update of the subnet. */ readonly updatedAt: pulumi.Output; /** * The VPC in which to create the Private Network. */ readonly vpcId: pulumi.Output; /** * Use `region` instead. * * @deprecated This field is deprecated and will be removed in the next major version, please use `region` instead */ readonly zone: pulumi.Output; /** * Create a VpcPrivateNetwork 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?: VpcPrivateNetworkArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering VpcPrivateNetwork resources. */ export interface VpcPrivateNetworkState { /** * The date and time of the creation of the subnet. */ createdAt?: pulumi.Input; /** * The IPv4 subnet to associate with the Private Network. */ ipv4Subnet?: pulumi.Input; /** * The IPv6 subnets to associate with the private network. */ ipv6Subnets?: pulumi.Input[]>; /** * Private Networks are now all necessarily regional. * * @deprecated This field is deprecated and will be removed in the next major version */ isRegional?: pulumi.Input; /** * The name of the Private Network. If not provided, it will be randomly generated. */ name?: pulumi.Input; /** * The Organization ID the Private Network is associated with. */ organizationId?: pulumi.Input; /** * `projectId`) The ID of the Project the private network is associated with. */ projectId?: pulumi.Input; /** * `region`) The region of the Private Network. */ region?: pulumi.Input; /** * The tags associated with the Private Network. */ tags?: pulumi.Input[]>; /** * The date and time of the last update of the subnet. */ updatedAt?: pulumi.Input; /** * The VPC in which to create the Private Network. */ vpcId?: pulumi.Input; /** * Use `region` instead. * * @deprecated This field is deprecated and will be removed in the next major version, please use `region` instead */ zone?: pulumi.Input; } /** * The set of arguments for constructing a VpcPrivateNetwork resource. */ export interface VpcPrivateNetworkArgs { /** * The IPv4 subnet to associate with the Private Network. */ ipv4Subnet?: pulumi.Input; /** * The IPv6 subnets to associate with the private network. */ ipv6Subnets?: pulumi.Input[]>; /** * Private Networks are now all necessarily regional. * * @deprecated This field is deprecated and will be removed in the next major version */ isRegional?: pulumi.Input; /** * The name of the Private Network. If not provided, it will be randomly generated. */ name?: pulumi.Input; /** * `projectId`) The ID of the Project the private network is associated with. */ projectId?: pulumi.Input; /** * `region`) The region of the Private Network. */ region?: pulumi.Input; /** * The tags associated with the Private Network. */ tags?: pulumi.Input[]>; /** * The VPC in which to create the Private Network. */ vpcId?: pulumi.Input; /** * Use `region` instead. * * @deprecated This field is deprecated and will be removed in the next major version, please use `region` instead */ zone?: pulumi.Input; }