1. Packages
  2. Aiven Provider
  3. API Docs
  4. ProjectVpc
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi
aiven logo
Viewing docs for Aiven v4.5.2 (Older version)
published on Monday, Mar 9, 2026 by Pulumi

    The Project VPC resource allows the creation and management of Aiven Project VPCs.

    Create ProjectVpc Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new ProjectVpc(name: string, args: ProjectVpcArgs, opts?: CustomResourceOptions);
    @overload
    def ProjectVpc(resource_name: str,
                   args: ProjectVpcArgs,
                   opts: Optional[ResourceOptions] = None)
    
    @overload
    def ProjectVpc(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   cloud_name: Optional[str] = None,
                   network_cidr: Optional[str] = None,
                   project: Optional[str] = None)
    func NewProjectVpc(ctx *Context, name string, args ProjectVpcArgs, opts ...ResourceOption) (*ProjectVpc, error)
    public ProjectVpc(string name, ProjectVpcArgs args, CustomResourceOptions? opts = null)
    public ProjectVpc(String name, ProjectVpcArgs args)
    public ProjectVpc(String name, ProjectVpcArgs args, CustomResourceOptions options)
    
    type: aiven:ProjectVpc
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args ProjectVpcArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args ProjectVpcArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args ProjectVpcArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ProjectVpcArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ProjectVpcArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var projectVpcResource = new Aiven.ProjectVpc("projectVpcResource", new()
    {
        CloudName = "string",
        NetworkCidr = "string",
        Project = "string",
    });
    
    example, err := aiven.NewProjectVpc(ctx, "projectVpcResource", &aiven.ProjectVpcArgs{
    	CloudName:   pulumi.String("string"),
    	NetworkCidr: pulumi.String("string"),
    	Project:     pulumi.String("string"),
    })
    
    var projectVpcResource = new ProjectVpc("projectVpcResource", ProjectVpcArgs.builder()
        .cloudName("string")
        .networkCidr("string")
        .project("string")
        .build());
    
    project_vpc_resource = aiven.ProjectVpc("projectVpcResource",
        cloud_name="string",
        network_cidr="string",
        project="string")
    
    const projectVpcResource = new aiven.ProjectVpc("projectVpcResource", {
        cloudName: "string",
        networkCidr: "string",
        project: "string",
    });
    
    type: aiven:ProjectVpc
    properties:
        cloudName: string
        networkCidr: string
        project: string
    

    ProjectVpc Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The ProjectVpc resource accepts the following input properties:

    CloudName string
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    NetworkCidr string
    Network address range used by the VPC like 192.168.0.0/24
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    CloudName string
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    NetworkCidr string
    Network address range used by the VPC like 192.168.0.0/24
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    cloudName String
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    networkCidr String
    Network address range used by the VPC like 192.168.0.0/24
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    cloudName string
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    networkCidr string
    Network address range used by the VPC like 192.168.0.0/24
    project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    cloud_name str
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    network_cidr str
    Network address range used by the VPC like 192.168.0.0/24
    project str
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    cloudName String
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    networkCidr String
    Network address range used by the VPC like 192.168.0.0/24
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the ProjectVpc resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    Id string
    The provider-assigned unique ID for this managed resource.
    State string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    id string
    The provider-assigned unique ID for this managed resource.
    state string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    id str
    The provider-assigned unique ID for this managed resource.
    state str
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    id String
    The provider-assigned unique ID for this managed resource.
    state String
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.

    Look up Existing ProjectVpc Resource

    Get an existing ProjectVpc resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: ProjectVpcState, opts?: CustomResourceOptions): ProjectVpc
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cloud_name: Optional[str] = None,
            network_cidr: Optional[str] = None,
            project: Optional[str] = None,
            state: Optional[str] = None) -> ProjectVpc
    func GetProjectVpc(ctx *Context, name string, id IDInput, state *ProjectVpcState, opts ...ResourceOption) (*ProjectVpc, error)
    public static ProjectVpc Get(string name, Input<string> id, ProjectVpcState? state, CustomResourceOptions? opts = null)
    public static ProjectVpc get(String name, Output<String> id, ProjectVpcState state, CustomResourceOptions options)
    resources:  _:    type: aiven:ProjectVpc    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    CloudName string
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    NetworkCidr string
    Network address range used by the VPC like 192.168.0.0/24
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    State string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    CloudName string
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    NetworkCidr string
    Network address range used by the VPC like 192.168.0.0/24
    Project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    State string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    cloudName String
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    networkCidr String
    Network address range used by the VPC like 192.168.0.0/24
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    state String
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    cloudName string
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    networkCidr string
    Network address range used by the VPC like 192.168.0.0/24
    project string
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    state string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    cloud_name str
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    network_cidr str
    Network address range used by the VPC like 192.168.0.0/24
    project str
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    state str
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    cloudName String
    Defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information. This property cannot be changed, doing so forces recreation of the resource.
    networkCidr String
    Network address range used by the VPC like 192.168.0.0/24
    project String
    Identifies the project this resource belongs to. To set up proper dependencies please refer to this variable as a reference. This property cannot be changed, doing so forces recreation of the resource.
    state String
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.

    Package Details

    Repository
    Aiven pulumi/pulumi-aiven
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the aiven Terraform Provider.
    aiven logo
    Viewing docs for Aiven v4.5.2 (Older version)
    published on Monday, Mar 9, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.