1. Packages
  2. Aiven
  3. API Docs
  4. ProjectVpc
Aiven v6.7.2 published on Tuesday, Oct 31, 2023 by Pulumi

aiven.ProjectVpc

Explore with Pulumi AI

aiven logo
Aiven v6.7.2 published on Tuesday, Oct 31, 2023 by Pulumi

    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:

    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)
    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.
    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.

    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.

    aiven logo
    Aiven v6.7.2 published on Tuesday, Oct 31, 2023 by Pulumi