aiven.ProjectVpc
Explore with Pulumi AI
The Project VPC resource allows the creation and management of Aiven Project VPCs.
Example Usage
Coming soon!
Coming soon!
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aiven.ProjectVpc;
import com.pulumi.aiven.ProjectVpcArgs;
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 myvpc = new ProjectVpc("myvpc", ProjectVpcArgs.builder()
.project(aiven_project.myproject().project())
.cloudName("google-europe-west1")
.networkCidr("192.168.1.0/24")
.timeouts(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}
Coming soon!
Coming soon!
resources:
myvpc:
type: aiven:ProjectVpc
properties:
project: ${aiven_project.myproject.project}
cloudName: google-europe-west1
networkCidr: 192.168.1.0/24
timeouts:
- create: 5m
Create ProjectVpc Resource
new ProjectVpc(name: string, args: ProjectVpcArgs, opts?: CustomResourceOptions);
@overload
def ProjectVpc(resource_name: str,
opts: Optional[ResourceOptions] = None,
cloud_name: Optional[str] = None,
network_cidr: Optional[str] = None,
project: Optional[str] = None)
@overload
def ProjectVpc(resource_name: str,
args: ProjectVpcArgs,
opts: Optional[ResourceOptions] = 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.
- 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.
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
The ProjectVpc resource accepts the following input properties:
- Cloud
Name 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.
- Network
Cidr 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 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.
- Network
Cidr 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 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.
- network
Cidr 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 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.
- network
Cidr 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.
- cloud
Name 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.
- network
Cidr 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:
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)
Resource lookup is not supported in YAML
- 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.
- Cloud
Name 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.
- Network
Cidr 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
andDELETED
.
- Cloud
Name 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.
- Network
Cidr 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
andDELETED
.
- cloud
Name 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.
- network
Cidr 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
andDELETED
.
- cloud
Name 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.
- network
Cidr 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
andDELETED
.
- 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
andDELETED
.
- cloud
Name 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.
- network
Cidr 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
andDELETED
.
Import
$ pulumi import aiven:index/projectVpc:ProjectVpc myvpc project/id
Package Details
- Repository
- Aiven pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aiven
Terraform Provider.