ProjectVpc
# Project VPC Resource
The Project VPC resource allows the creation and management of Aiven Project VPCs.
Example Usage
using Pulumi;
using Aiven = Pulumi.Aiven;
class MyStack : Stack
{
public MyStack()
{
var myvpc = new Aiven.ProjectVpc("myvpc", new Aiven.ProjectVpcArgs
{
CloudName = "google-europe-west1",
NetworkCidr = "192.168.0.1/24",
Project = aiven_project.Myproject.Project,
});
}
}
package main
import (
"github.com/pulumi/pulumi-aiven/sdk/v3/go/aiven"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := aiven.NewProjectVpc(ctx, "myvpc", &aiven.ProjectVpcArgs{
CloudName: pulumi.String("google-europe-west1"),
NetworkCidr: pulumi.String("192.168.0.1/24"),
Project: pulumi.Any(aiven_project.Myproject.Project),
})
if err != nil {
return err
}
return nil
})
}
import pulumi
import pulumi_aiven as aiven
myvpc = aiven.ProjectVpc("myvpc",
cloud_name="google-europe-west1",
network_cidr="192.168.0.1/24",
project=aiven_project["myproject"]["project"])
import * as pulumi from "@pulumi/pulumi";
import * as aiven from "@pulumi/aiven";
const myvpc = new aiven.ProjectVpc("myvpc", {
cloudName: "google-europe-west1",
networkCidr: "192.168.0.1/24",
project: aiven_project_myproject.project,
}, { timeouts: {
create: "5m",
} });
Create a ProjectVpc Resource
new ProjectVpc(name: string, args: ProjectVpcArgs, opts?: CustomResourceOptions);
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)
- 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.
- opts ResourceOptions
- A bag of options that control this 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.
ProjectVpc Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model 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.
- Network
Cidr string defines the network CIDR of the VPC.
- Project string
defines the project the VPC belongs to.
- Cloud
Name string defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.
- Network
Cidr string defines the network CIDR of the VPC.
- Project string
defines the project the VPC belongs to.
- cloud
Name string defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.
- network
Cidr string defines the network CIDR of the VPC.
- project string
defines the project the VPC belongs to.
- cloud_
name str defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.
- network_
cidr str defines the network CIDR of the VPC.
- project str
defines the project the VPC belongs to.
Outputs
All input properties are implicitly available as output properties. Additionally, the ProjectVpc resource produces the following output properties:
Look up an 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)
- 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.
The following state arguments are supported:
- Cloud
Name string defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.
- Network
Cidr string defines the network CIDR of the VPC.
- Project string
defines the project the VPC belongs to.
- State string
ia a computed property that tells the current state of the VPC. This property cannot be set, only read.
- Cloud
Name string defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.
- Network
Cidr string defines the network CIDR of the VPC.
- Project string
defines the project the VPC belongs to.
- State string
ia a computed property that tells the current state of the VPC. This property cannot be set, only read.
- cloud
Name string defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.
- network
Cidr string defines the network CIDR of the VPC.
- project string
defines the project the VPC belongs to.
- state string
ia a computed property that tells the current state of the VPC. This property cannot be set, only read.
- cloud_
name str defines where the cloud provider and region where the service is hosted in. See the Service resource for additional information.
- network_
cidr str defines the network CIDR of the VPC.
- project str
defines the project the VPC belongs to.
- state str
ia a computed property that tells the current state of the VPC. This property cannot be set, only read.
Package Details
- Repository
- https://github.com/pulumi/pulumi-aiven
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
aiven
Terraform Provider.