1. Packages
  2. Aiven Provider
  3. API Docs
  4. OrganizationVpc
Aiven v6.37.0 published on Thursday, Apr 10, 2025 by Pulumi

aiven.OrganizationVpc

Explore with Pulumi AI

Creates and manages a VPC for an Aiven organization.

This resource is in the beta stage and may change without notice. Set the PROVIDER_AIVEN_ENABLE_BETA environment variable to use the resource.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";

const exampleVpc = new aiven.OrganizationVpc("example_vpc", {
    organizationId: example.id,
    cloudName: "aws-eu-central-1",
    networkCidr: "10.0.0.0/24",
});
Copy
import pulumi
import pulumi_aiven as aiven

example_vpc = aiven.OrganizationVpc("example_vpc",
    organization_id=example["id"],
    cloud_name="aws-eu-central-1",
    network_cidr="10.0.0.0/24")
Copy
package main

import (
	"github.com/pulumi/pulumi-aiven/sdk/v6/go/aiven"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aiven.NewOrganizationVpc(ctx, "example_vpc", &aiven.OrganizationVpcArgs{
			OrganizationId: pulumi.Any(example.Id),
			CloudName:      pulumi.String("aws-eu-central-1"),
			NetworkCidr:    pulumi.String("10.0.0.0/24"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Aiven = Pulumi.Aiven;

return await Deployment.RunAsync(() => 
{
    var exampleVpc = new Aiven.OrganizationVpc("example_vpc", new()
    {
        OrganizationId = example.Id,
        CloudName = "aws-eu-central-1",
        NetworkCidr = "10.0.0.0/24",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.OrganizationVpc;
import com.pulumi.aiven.OrganizationVpcArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var exampleVpc = new OrganizationVpc("exampleVpc", OrganizationVpcArgs.builder()
            .organizationId(example.id())
            .cloudName("aws-eu-central-1")
            .networkCidr("10.0.0.0/24")
            .build());

    }
}
Copy
resources:
  exampleVpc:
    type: aiven:OrganizationVpc
    name: example_vpc
    properties:
      organizationId: ${example.id}
      cloudName: aws-eu-central-1
      networkCidr: 10.0.0.0/24
Copy

Create OrganizationVpc Resource

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

Constructor syntax

new OrganizationVpc(name: string, args: OrganizationVpcArgs, opts?: CustomResourceOptions);
@overload
def OrganizationVpc(resource_name: str,
                    args: OrganizationVpcArgs,
                    opts: Optional[ResourceOptions] = None)

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

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. OrganizationVpcArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. OrganizationVpcArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationVpcArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. OrganizationVpcArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. OrganizationVpcArgs
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 organizationVpcResource = new Aiven.OrganizationVpc("organizationVpcResource", new()
{
    CloudName = "string",
    NetworkCidr = "string",
    OrganizationId = "string",
});
Copy
example, err := aiven.NewOrganizationVpc(ctx, "organizationVpcResource", &aiven.OrganizationVpcArgs{
	CloudName:      pulumi.String("string"),
	NetworkCidr:    pulumi.String("string"),
	OrganizationId: pulumi.String("string"),
})
Copy
var organizationVpcResource = new OrganizationVpc("organizationVpcResource", OrganizationVpcArgs.builder()
    .cloudName("string")
    .networkCidr("string")
    .organizationId("string")
    .build());
Copy
organization_vpc_resource = aiven.OrganizationVpc("organizationVpcResource",
    cloud_name="string",
    network_cidr="string",
    organization_id="string")
Copy
const organizationVpcResource = new aiven.OrganizationVpc("organizationVpcResource", {
    cloudName: "string",
    networkCidr: "string",
    organizationId: "string",
});
Copy
type: aiven:OrganizationVpc
properties:
    cloudName: string
    networkCidr: string
    organizationId: string
Copy

OrganizationVpc 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 OrganizationVpc resource accepts the following input properties:

CloudName
This property is required.
Changes to this property will trigger replacement.
string
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
NetworkCidr
This property is required.
Changes to this property will trigger replacement.
string
Network address range used by the VPC. For example, 192.168.0.0/24.
OrganizationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the organization.
CloudName
This property is required.
Changes to this property will trigger replacement.
string
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
NetworkCidr
This property is required.
Changes to this property will trigger replacement.
string
Network address range used by the VPC. For example, 192.168.0.0/24.
OrganizationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the organization.
cloudName
This property is required.
Changes to this property will trigger replacement.
String
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
networkCidr
This property is required.
Changes to this property will trigger replacement.
String
Network address range used by the VPC. For example, 192.168.0.0/24.
organizationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the organization.
cloudName
This property is required.
Changes to this property will trigger replacement.
string
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
networkCidr
This property is required.
Changes to this property will trigger replacement.
string
Network address range used by the VPC. For example, 192.168.0.0/24.
organizationId
This property is required.
Changes to this property will trigger replacement.
string
The ID of the organization.
cloud_name
This property is required.
Changes to this property will trigger replacement.
str
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
network_cidr
This property is required.
Changes to this property will trigger replacement.
str
Network address range used by the VPC. For example, 192.168.0.0/24.
organization_id
This property is required.
Changes to this property will trigger replacement.
str
The ID of the organization.
cloudName
This property is required.
Changes to this property will trigger replacement.
String
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
networkCidr
This property is required.
Changes to this property will trigger replacement.
String
Network address range used by the VPC. For example, 192.168.0.0/24.
organizationId
This property is required.
Changes to this property will trigger replacement.
String
The ID of the organization.

Outputs

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

CreateTime string
Time of creation of the VPC.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationVpcId string
The ID of the Aiven Organization VPC.
State string
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
UpdateTime string
Time of the last update of the VPC.
CreateTime string
Time of creation of the VPC.
Id string
The provider-assigned unique ID for this managed resource.
OrganizationVpcId string
The ID of the Aiven Organization VPC.
State string
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
UpdateTime string
Time of the last update of the VPC.
createTime String
Time of creation of the VPC.
id String
The provider-assigned unique ID for this managed resource.
organizationVpcId String
The ID of the Aiven Organization VPC.
state String
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
updateTime String
Time of the last update of the VPC.
createTime string
Time of creation of the VPC.
id string
The provider-assigned unique ID for this managed resource.
organizationVpcId string
The ID of the Aiven Organization VPC.
state string
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
updateTime string
Time of the last update of the VPC.
create_time str
Time of creation of the VPC.
id str
The provider-assigned unique ID for this managed resource.
organization_vpc_id str
The ID of the Aiven Organization VPC.
state str
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
update_time str
Time of the last update of the VPC.
createTime String
Time of creation of the VPC.
id String
The provider-assigned unique ID for this managed resource.
organizationVpcId String
The ID of the Aiven Organization VPC.
state String
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
updateTime String
Time of the last update of the VPC.

Look up Existing OrganizationVpc Resource

Get an existing OrganizationVpc 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?: OrganizationVpcState, opts?: CustomResourceOptions): OrganizationVpc
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cloud_name: Optional[str] = None,
        create_time: Optional[str] = None,
        network_cidr: Optional[str] = None,
        organization_id: Optional[str] = None,
        organization_vpc_id: Optional[str] = None,
        state: Optional[str] = None,
        update_time: Optional[str] = None) -> OrganizationVpc
func GetOrganizationVpc(ctx *Context, name string, id IDInput, state *OrganizationVpcState, opts ...ResourceOption) (*OrganizationVpc, error)
public static OrganizationVpc Get(string name, Input<string> id, OrganizationVpcState? state, CustomResourceOptions? opts = null)
public static OrganizationVpc get(String name, Output<String> id, OrganizationVpcState state, CustomResourceOptions options)
resources:  _:    type: aiven:OrganizationVpc    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. string
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
CreateTime string
Time of creation of the VPC.
NetworkCidr Changes to this property will trigger replacement. string
Network address range used by the VPC. For example, 192.168.0.0/24.
OrganizationId Changes to this property will trigger replacement. string
The ID of the organization.
OrganizationVpcId string
The ID of the Aiven Organization VPC.
State string
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
UpdateTime string
Time of the last update of the VPC.
CloudName Changes to this property will trigger replacement. string
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
CreateTime string
Time of creation of the VPC.
NetworkCidr Changes to this property will trigger replacement. string
Network address range used by the VPC. For example, 192.168.0.0/24.
OrganizationId Changes to this property will trigger replacement. string
The ID of the organization.
OrganizationVpcId string
The ID of the Aiven Organization VPC.
State string
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
UpdateTime string
Time of the last update of the VPC.
cloudName Changes to this property will trigger replacement. String
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
createTime String
Time of creation of the VPC.
networkCidr Changes to this property will trigger replacement. String
Network address range used by the VPC. For example, 192.168.0.0/24.
organizationId Changes to this property will trigger replacement. String
The ID of the organization.
organizationVpcId String
The ID of the Aiven Organization VPC.
state String
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
updateTime String
Time of the last update of the VPC.
cloudName Changes to this property will trigger replacement. string
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
createTime string
Time of creation of the VPC.
networkCidr Changes to this property will trigger replacement. string
Network address range used by the VPC. For example, 192.168.0.0/24.
organizationId Changes to this property will trigger replacement. string
The ID of the organization.
organizationVpcId string
The ID of the Aiven Organization VPC.
state string
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
updateTime string
Time of the last update of the VPC.
cloud_name Changes to this property will trigger replacement. str
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
create_time str
Time of creation of the VPC.
network_cidr Changes to this property will trigger replacement. str
Network address range used by the VPC. For example, 192.168.0.0/24.
organization_id Changes to this property will trigger replacement. str
The ID of the organization.
organization_vpc_id str
The ID of the Aiven Organization VPC.
state str
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
update_time str
Time of the last update of the VPC.
cloudName Changes to this property will trigger replacement. String
The cloud provider and region where the service is hosted in the format CLOUD_PROVIDER-REGION_NAME. For example, google-europe-west1 or aws-us-east-2. Changing this property forces recreation of the resource.
createTime String
Time of creation of the VPC.
networkCidr Changes to this property will trigger replacement. String
Network address range used by the VPC. For example, 192.168.0.0/24.
organizationId Changes to this property will trigger replacement. String
The ID of the organization.
organizationVpcId String
The ID of the Aiven Organization VPC.
state String
State of the VPC. The possible values are ACTIVE, APPROVED, DELETED and DELETING.
updateTime String
Time of the last update of the VPC.

Import

$ pulumi import aiven:index/organizationVpc:OrganizationVpc example ORGANIZATION_ID/ORGANIZATION_VPC_ID
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Aiven pulumi/pulumi-aiven
License
Apache-2.0
Notes
This Pulumi package is based on the aiven Terraform Provider.