1. Packages
  2. Aiven
  3. API Docs
  4. ProjectVpc
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

aiven.ProjectVpc

Explore with Pulumi AI

aiven logo
Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi

    Creates and manages a VPC for an Aiven project.

    Example Usage

    Coming soon!
    
    Coming soon!
    
    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 exampleVpc = new ProjectVpc("exampleVpc", ProjectVpcArgs.builder()        
                .project(data.aiven_project().example_project().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());
    
        }
    }
    
    resources:
      exampleVpc:
        type: aiven:ProjectVpc
        properties:
          project: ${data.aiven_project.example_project.project}
          cloudName: google-europe-west1
          networkCidr: 192.168.1.0/24
          timeouts:
            - create: 5m
    

    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.

    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

    The ProjectVpc resource accepts the following input properties:

    CloudName 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 string
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    CloudName 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 string
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    cloudName 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 String
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    cloudName 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 string
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    cloud_name 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 str
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    cloudName 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 String
    Network address range used by the VPC. For example, 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. Changing this property 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
    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 string
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    State string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    CloudName 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 string
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    State string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    cloudName 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 String
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    state String
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    cloudName 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 string
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    state string
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    cloud_name 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 str
    Network address range used by the VPC. For example, 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. Changing this property forces recreation of the resource.
    state str
    State of the VPC. The possible values are APPROVED, ACTIVE, DELETING and DELETED.
    cloudName 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 String
    Network address range used by the VPC. For example, 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. Changing this property 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 example_vpc PROJECT/ID
    

    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.
    aiven logo
    Aiven v6.13.0 published on Monday, Mar 25, 2024 by Pulumi