1. Packages
  2. Volcengine
  3. API Docs
  4. veenedge
  5. Vpc
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

volcengine.veenedge.Vpc

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine

    Provides a resource to manage veenedge vpc

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var foo = new Volcengine.Veenedge.Vpc("foo", new()
        {
            ClusterName = "b****t02",
            VpcName = "tf-test-2",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/veenedge"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := veenedge.NewVpc(ctx, "foo", &veenedge.VpcArgs{
    			ClusterName: pulumi.String("b****t02"),
    			VpcName:     pulumi.String("tf-test-2"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.veenedge.Vpc;
    import com.pulumi.volcengine.veenedge.VpcArgs;
    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 foo = new Vpc("foo", VpcArgs.builder()        
                .clusterName("b****t02")
                .vpcName("tf-test-2")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.veenedge.Vpc("foo",
        cluster_name="b****t02",
        vpc_name="tf-test-2")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@volcengine/pulumi";
    
    const foo = new volcengine.veenedge.Vpc("foo", {
        clusterName: "b****t02",
        vpcName: "tf-test-2",
    });
    
    resources:
      foo:
        type: volcengine:veenedge:Vpc
        properties:
          clusterName: b****t02
          vpcName: tf-test-2
    

    Create Vpc Resource

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

    Constructor syntax

    new Vpc(name: string, args: VpcArgs, opts?: CustomResourceOptions);
    @overload
    def Vpc(resource_name: str,
            args: VpcArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Vpc(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            cluster_name: Optional[str] = None,
            desc: Optional[str] = None,
            vpc_name: Optional[str] = None,
            cidr: Optional[str] = None)
    func NewVpc(ctx *Context, name string, args VpcArgs, opts ...ResourceOption) (*Vpc, error)
    public Vpc(string name, VpcArgs args, CustomResourceOptions? opts = null)
    public Vpc(String name, VpcArgs args)
    public Vpc(String name, VpcArgs args, CustomResourceOptions options)
    
    type: volcengine:veenedge:Vpc
    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 VpcArgs
    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 VpcArgs
    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 VpcArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VpcArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VpcArgs
    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 vpcResource = new Volcengine.Veenedge.Vpc("vpcResource", new()
    {
        ClusterName = "string",
        Desc = "string",
        VpcName = "string",
        Cidr = "string",
    });
    
    example, err := veenedge.NewVpc(ctx, "vpcResource", &veenedge.VpcArgs{
    	ClusterName: pulumi.String("string"),
    	Desc:        pulumi.String("string"),
    	VpcName:     pulumi.String("string"),
    	Cidr:        pulumi.String("string"),
    })
    
    var vpcResource = new Vpc("vpcResource", VpcArgs.builder()
        .clusterName("string")
        .desc("string")
        .vpcName("string")
        .cidr("string")
        .build());
    
    vpc_resource = volcengine.veenedge.Vpc("vpcResource",
        cluster_name="string",
        desc="string",
        vpc_name="string",
        cidr="string")
    
    const vpcResource = new volcengine.veenedge.Vpc("vpcResource", {
        clusterName: "string",
        desc: "string",
        vpcName: "string",
        cidr: "string",
    });
    
    type: volcengine:veenedge:Vpc
    properties:
        cidr: string
        clusterName: string
        desc: string
        vpcName: string
    

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

    ClusterName string
    The name of the cluster.
    Desc string
    The description of the VPC.
    VpcName string
    The name of the VPC.
    Cidr string
    The cidr info.
    ClusterName string
    The name of the cluster.
    Desc string
    The description of the VPC.
    VpcName string
    The name of the VPC.
    Cidr string
    The cidr info.
    clusterName String
    The name of the cluster.
    desc String
    The description of the VPC.
    vpcName String
    The name of the VPC.
    cidr String
    The cidr info.
    clusterName string
    The name of the cluster.
    desc string
    The description of the VPC.
    vpcName string
    The name of the VPC.
    cidr string
    The cidr info.
    cluster_name str
    The name of the cluster.
    desc str
    The description of the VPC.
    vpc_name str
    The name of the VPC.
    cidr str
    The cidr info.
    clusterName String
    The name of the cluster.
    desc String
    The description of the VPC.
    vpcName String
    The name of the VPC.
    cidr String
    The cidr info.

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing Vpc Resource

    Get an existing Vpc 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?: VpcState, opts?: CustomResourceOptions): Vpc
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            cidr: Optional[str] = None,
            cluster_name: Optional[str] = None,
            desc: Optional[str] = None,
            vpc_name: Optional[str] = None) -> Vpc
    func GetVpc(ctx *Context, name string, id IDInput, state *VpcState, opts ...ResourceOption) (*Vpc, error)
    public static Vpc Get(string name, Input<string> id, VpcState? state, CustomResourceOptions? opts = null)
    public static Vpc get(String name, Output<String> id, VpcState 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:
    Cidr string
    The cidr info.
    ClusterName string
    The name of the cluster.
    Desc string
    The description of the VPC.
    VpcName string
    The name of the VPC.
    Cidr string
    The cidr info.
    ClusterName string
    The name of the cluster.
    Desc string
    The description of the VPC.
    VpcName string
    The name of the VPC.
    cidr String
    The cidr info.
    clusterName String
    The name of the cluster.
    desc String
    The description of the VPC.
    vpcName String
    The name of the VPC.
    cidr string
    The cidr info.
    clusterName string
    The name of the cluster.
    desc string
    The description of the VPC.
    vpcName string
    The name of the VPC.
    cidr str
    The cidr info.
    cluster_name str
    The name of the cluster.
    desc str
    The description of the VPC.
    vpc_name str
    The name of the VPC.
    cidr String
    The cidr info.
    clusterName String
    The name of the cluster.
    desc String
    The description of the VPC.
    vpcName String
    The name of the VPC.

    Import

    VPC can be imported using the id, e.g.

     $ pulumi import volcengine:veenedge/vpc:Vpc default vpc-mizl7m1k
    

    If you need to create a VPC, you need to apply for permission from the administrator in advance. You can only delete the vpc from web consul

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

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.24 published on Tuesday, Jun 25, 2024 by Volcengine