1. Packages
  2. Alibaba Cloud
  3. API Docs
  4. realtimecompute
  5. VvpInstance
Alibaba Cloud v3.55.1 published on Tuesday, May 14, 2024 by Pulumi

alicloud.realtimecompute.VvpInstance

Explore with Pulumi AI

alicloud logo
Alibaba Cloud v3.55.1 published on Tuesday, May 14, 2024 by Pulumi

    Import

    Realtime Compute Vvp Instance can be imported using the id, e.g.

    $ pulumi import alicloud:realtimecompute/vvpInstance:VvpInstance example <id>
    

    Create VvpInstance Resource

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

    Constructor syntax

    new VvpInstance(name: string, args: VvpInstanceArgs, opts?: CustomResourceOptions);
    @overload
    def VvpInstance(resource_name: str,
                    args: VvpInstanceArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def VvpInstance(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    payment_type: Optional[str] = None,
                    storage: Optional[VvpInstanceStorageArgs] = None,
                    vpc_id: Optional[str] = None,
                    vswitch_ids: Optional[Sequence[str]] = None,
                    vvp_instance_name: Optional[str] = None,
                    zone_id: Optional[str] = None,
                    duration: Optional[int] = None,
                    pricing_cycle: Optional[str] = None,
                    resource_group_id: Optional[str] = None,
                    resource_spec: Optional[VvpInstanceResourceSpecArgs] = None,
                    tags: Optional[Mapping[str, Any]] = None)
    func NewVvpInstance(ctx *Context, name string, args VvpInstanceArgs, opts ...ResourceOption) (*VvpInstance, error)
    public VvpInstance(string name, VvpInstanceArgs args, CustomResourceOptions? opts = null)
    public VvpInstance(String name, VvpInstanceArgs args)
    public VvpInstance(String name, VvpInstanceArgs args, CustomResourceOptions options)
    
    type: alicloud:realtimecompute:VvpInstance
    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 VvpInstanceArgs
    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 VvpInstanceArgs
    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 VvpInstanceArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args VvpInstanceArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args VvpInstanceArgs
    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 vvpInstanceResource = new AliCloud.RealtimeCompute.VvpInstance("vvpInstanceResource", new()
    {
        PaymentType = "string",
        Storage = new AliCloud.RealtimeCompute.Inputs.VvpInstanceStorageArgs
        {
            Oss = new AliCloud.RealtimeCompute.Inputs.VvpInstanceStorageOssArgs
            {
                Bucket = "string",
            },
        },
        VpcId = "string",
        VswitchIds = new[]
        {
            "string",
        },
        VvpInstanceName = "string",
        ZoneId = "string",
        Duration = 0,
        PricingCycle = "string",
        ResourceGroupId = "string",
        ResourceSpec = new AliCloud.RealtimeCompute.Inputs.VvpInstanceResourceSpecArgs
        {
            Cpu = 0,
            MemoryGb = 0,
        },
        Tags = 
        {
            { "string", "any" },
        },
    });
    
    example, err := realtimecompute.NewVvpInstance(ctx, "vvpInstanceResource", &realtimecompute.VvpInstanceArgs{
    	PaymentType: pulumi.String("string"),
    	Storage: &realtimecompute.VvpInstanceStorageArgs{
    		Oss: &realtimecompute.VvpInstanceStorageOssArgs{
    			Bucket: pulumi.String("string"),
    		},
    	},
    	VpcId: pulumi.String("string"),
    	VswitchIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	VvpInstanceName: pulumi.String("string"),
    	ZoneId:          pulumi.String("string"),
    	Duration:        pulumi.Int(0),
    	PricingCycle:    pulumi.String("string"),
    	ResourceGroupId: pulumi.String("string"),
    	ResourceSpec: &realtimecompute.VvpInstanceResourceSpecArgs{
    		Cpu:      pulumi.Int(0),
    		MemoryGb: pulumi.Int(0),
    	},
    	Tags: pulumi.Map{
    		"string": pulumi.Any("any"),
    	},
    })
    
    var vvpInstanceResource = new VvpInstance("vvpInstanceResource", VvpInstanceArgs.builder()        
        .paymentType("string")
        .storage(VvpInstanceStorageArgs.builder()
            .oss(VvpInstanceStorageOssArgs.builder()
                .bucket("string")
                .build())
            .build())
        .vpcId("string")
        .vswitchIds("string")
        .vvpInstanceName("string")
        .zoneId("string")
        .duration(0)
        .pricingCycle("string")
        .resourceGroupId("string")
        .resourceSpec(VvpInstanceResourceSpecArgs.builder()
            .cpu(0)
            .memoryGb(0)
            .build())
        .tags(Map.of("string", "any"))
        .build());
    
    vvp_instance_resource = alicloud.realtimecompute.VvpInstance("vvpInstanceResource",
        payment_type="string",
        storage=alicloud.realtimecompute.VvpInstanceStorageArgs(
            oss=alicloud.realtimecompute.VvpInstanceStorageOssArgs(
                bucket="string",
            ),
        ),
        vpc_id="string",
        vswitch_ids=["string"],
        vvp_instance_name="string",
        zone_id="string",
        duration=0,
        pricing_cycle="string",
        resource_group_id="string",
        resource_spec=alicloud.realtimecompute.VvpInstanceResourceSpecArgs(
            cpu=0,
            memory_gb=0,
        ),
        tags={
            "string": "any",
        })
    
    const vvpInstanceResource = new alicloud.realtimecompute.VvpInstance("vvpInstanceResource", {
        paymentType: "string",
        storage: {
            oss: {
                bucket: "string",
            },
        },
        vpcId: "string",
        vswitchIds: ["string"],
        vvpInstanceName: "string",
        zoneId: "string",
        duration: 0,
        pricingCycle: "string",
        resourceGroupId: "string",
        resourceSpec: {
            cpu: 0,
            memoryGb: 0,
        },
        tags: {
            string: "any",
        },
    });
    
    type: alicloud:realtimecompute:VvpInstance
    properties:
        duration: 0
        paymentType: string
        pricingCycle: string
        resourceGroupId: string
        resourceSpec:
            cpu: 0
            memoryGb: 0
        storage:
            oss:
                bucket: string
        tags:
            string: any
        vpcId: string
        vswitchIds:
            - string
        vvpInstanceName: string
        zoneId: string
    

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

    PaymentType string
    The payment type of the resource.
    Storage Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceStorage
    Store information. See storage below.
    VpcId string
    The VPC ID of the user.
    VswitchIds List<string>
    Virtual Switch ID.
    VvpInstanceName string
    The name of the workspace.
    ZoneId string
    The zone ID of the resource.
    Duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    PricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    ResourceGroupId string
    The resource group to which the newly purchased instance belongs.
    ResourceSpec Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    Tags Dictionary<string, object>
    The tags of the resource.
    PaymentType string
    The payment type of the resource.
    Storage VvpInstanceStorageArgs
    Store information. See storage below.
    VpcId string
    The VPC ID of the user.
    VswitchIds []string
    Virtual Switch ID.
    VvpInstanceName string
    The name of the workspace.
    ZoneId string
    The zone ID of the resource.
    Duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    PricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    ResourceGroupId string
    The resource group to which the newly purchased instance belongs.
    ResourceSpec VvpInstanceResourceSpecArgs
    Resource specifications. See resource_spec below.
    Tags map[string]interface{}
    The tags of the resource.
    paymentType String
    The payment type of the resource.
    storage VvpInstanceStorage
    Store information. See storage below.
    vpcId String
    The VPC ID of the user.
    vswitchIds List<String>
    Virtual Switch ID.
    vvpInstanceName String
    The name of the workspace.
    zoneId String
    The zone ID of the resource.
    duration Integer
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    pricingCycle String
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId String
    The resource group to which the newly purchased instance belongs.
    resourceSpec VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    tags Map<String,Object>
    The tags of the resource.
    paymentType string
    The payment type of the resource.
    storage VvpInstanceStorage
    Store information. See storage below.
    vpcId string
    The VPC ID of the user.
    vswitchIds string[]
    Virtual Switch ID.
    vvpInstanceName string
    The name of the workspace.
    zoneId string
    The zone ID of the resource.
    duration number
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    pricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId string
    The resource group to which the newly purchased instance belongs.
    resourceSpec VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    tags {[key: string]: any}
    The tags of the resource.
    payment_type str
    The payment type of the resource.
    storage VvpInstanceStorageArgs
    Store information. See storage below.
    vpc_id str
    The VPC ID of the user.
    vswitch_ids Sequence[str]
    Virtual Switch ID.
    vvp_instance_name str
    The name of the workspace.
    zone_id str
    The zone ID of the resource.
    duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    pricing_cycle str
    The subscription period. If the payment type is PRE, this parameter is required.
    resource_group_id str
    The resource group to which the newly purchased instance belongs.
    resource_spec VvpInstanceResourceSpecArgs
    Resource specifications. See resource_spec below.
    tags Mapping[str, Any]
    The tags of the resource.
    paymentType String
    The payment type of the resource.
    storage Property Map
    Store information. See storage below.
    vpcId String
    The VPC ID of the user.
    vswitchIds List<String>
    Virtual Switch ID.
    vvpInstanceName String
    The name of the workspace.
    zoneId String
    The zone ID of the resource.
    duration Number
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    pricingCycle String
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId String
    The resource group to which the newly purchased instance belongs.
    resourceSpec Property Map
    Resource specifications. See resource_spec below.
    tags Map<Any>
    The tags of the resource.

    Outputs

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

    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    CreateTime string
    The creation time of the resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    The status of the resource.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.
    createTime string
    The creation time of the resource.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    The status of the resource.
    create_time str
    The creation time of the resource.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    The status of the resource.
    createTime String
    The creation time of the resource.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    The status of the resource.

    Look up Existing VvpInstance Resource

    Get an existing VvpInstance 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?: VvpInstanceState, opts?: CustomResourceOptions): VvpInstance
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            create_time: Optional[str] = None,
            duration: Optional[int] = None,
            payment_type: Optional[str] = None,
            pricing_cycle: Optional[str] = None,
            resource_group_id: Optional[str] = None,
            resource_spec: Optional[VvpInstanceResourceSpecArgs] = None,
            status: Optional[str] = None,
            storage: Optional[VvpInstanceStorageArgs] = None,
            tags: Optional[Mapping[str, Any]] = None,
            vpc_id: Optional[str] = None,
            vswitch_ids: Optional[Sequence[str]] = None,
            vvp_instance_name: Optional[str] = None,
            zone_id: Optional[str] = None) -> VvpInstance
    func GetVvpInstance(ctx *Context, name string, id IDInput, state *VvpInstanceState, opts ...ResourceOption) (*VvpInstance, error)
    public static VvpInstance Get(string name, Input<string> id, VvpInstanceState? state, CustomResourceOptions? opts = null)
    public static VvpInstance get(String name, Output<String> id, VvpInstanceState 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:
    CreateTime string
    The creation time of the resource.
    Duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    PaymentType string
    The payment type of the resource.
    PricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    ResourceGroupId string
    The resource group to which the newly purchased instance belongs.
    ResourceSpec Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    Status string
    The status of the resource.
    Storage Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceStorage
    Store information. See storage below.
    Tags Dictionary<string, object>
    The tags of the resource.
    VpcId string
    The VPC ID of the user.
    VswitchIds List<string>
    Virtual Switch ID.
    VvpInstanceName string
    The name of the workspace.
    ZoneId string
    The zone ID of the resource.
    CreateTime string
    The creation time of the resource.
    Duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    PaymentType string
    The payment type of the resource.
    PricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    ResourceGroupId string
    The resource group to which the newly purchased instance belongs.
    ResourceSpec VvpInstanceResourceSpecArgs
    Resource specifications. See resource_spec below.
    Status string
    The status of the resource.
    Storage VvpInstanceStorageArgs
    Store information. See storage below.
    Tags map[string]interface{}
    The tags of the resource.
    VpcId string
    The VPC ID of the user.
    VswitchIds []string
    Virtual Switch ID.
    VvpInstanceName string
    The name of the workspace.
    ZoneId string
    The zone ID of the resource.
    createTime String
    The creation time of the resource.
    duration Integer
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    paymentType String
    The payment type of the resource.
    pricingCycle String
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId String
    The resource group to which the newly purchased instance belongs.
    resourceSpec VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    status String
    The status of the resource.
    storage VvpInstanceStorage
    Store information. See storage below.
    tags Map<String,Object>
    The tags of the resource.
    vpcId String
    The VPC ID of the user.
    vswitchIds List<String>
    Virtual Switch ID.
    vvpInstanceName String
    The name of the workspace.
    zoneId String
    The zone ID of the resource.
    createTime string
    The creation time of the resource.
    duration number
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    paymentType string
    The payment type of the resource.
    pricingCycle string
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId string
    The resource group to which the newly purchased instance belongs.
    resourceSpec VvpInstanceResourceSpec
    Resource specifications. See resource_spec below.
    status string
    The status of the resource.
    storage VvpInstanceStorage
    Store information. See storage below.
    tags {[key: string]: any}
    The tags of the resource.
    vpcId string
    The VPC ID of the user.
    vswitchIds string[]
    Virtual Switch ID.
    vvpInstanceName string
    The name of the workspace.
    zoneId string
    The zone ID of the resource.
    create_time str
    The creation time of the resource.
    duration int
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    payment_type str
    The payment type of the resource.
    pricing_cycle str
    The subscription period. If the payment type is PRE, this parameter is required.
    resource_group_id str
    The resource group to which the newly purchased instance belongs.
    resource_spec VvpInstanceResourceSpecArgs
    Resource specifications. See resource_spec below.
    status str
    The status of the resource.
    storage VvpInstanceStorageArgs
    Store information. See storage below.
    tags Mapping[str, Any]
    The tags of the resource.
    vpc_id str
    The VPC ID of the user.
    vswitch_ids Sequence[str]
    Virtual Switch ID.
    vvp_instance_name str
    The name of the workspace.
    zone_id str
    The zone ID of the resource.
    createTime String
    The creation time of the resource.
    duration Number
    The number of subscription periods. If the payment type is PRE, this parameter is required.
    paymentType String
    The payment type of the resource.
    pricingCycle String
    The subscription period. If the payment type is PRE, this parameter is required.
    resourceGroupId String
    The resource group to which the newly purchased instance belongs.
    resourceSpec Property Map
    Resource specifications. See resource_spec below.
    status String
    The status of the resource.
    storage Property Map
    Store information. See storage below.
    tags Map<Any>
    The tags of the resource.
    vpcId String
    The VPC ID of the user.
    vswitchIds List<String>
    Virtual Switch ID.
    vvpInstanceName String
    The name of the workspace.
    zoneId String
    The zone ID of the resource.

    Supporting Types

    VvpInstanceResourceSpec, VvpInstanceResourceSpecArgs

    Cpu int
    CPU number.
    MemoryGb int
    Memory size.
    Cpu int
    CPU number.
    MemoryGb int
    Memory size.
    cpu Integer
    CPU number.
    memoryGb Integer
    Memory size.
    cpu number
    CPU number.
    memoryGb number
    Memory size.
    cpu int
    CPU number.
    memory_gb int
    Memory size.
    cpu Number
    CPU number.
    memoryGb Number
    Memory size.

    VvpInstanceStorage, VvpInstanceStorageArgs

    Oss VvpInstanceStorageOss
    OSS stores information. See oss below.
    oss VvpInstanceStorageOss
    OSS stores information. See oss below.
    oss VvpInstanceStorageOss
    OSS stores information. See oss below.
    oss VvpInstanceStorageOss
    OSS stores information. See oss below.
    oss Property Map
    OSS stores information. See oss below.

    VvpInstanceStorageOss, VvpInstanceStorageOssArgs

    Bucket string
    Bucket string
    bucket String
    bucket string
    bucket str
    bucket String

    Package Details

    Repository
    Alibaba Cloud pulumi/pulumi-alicloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the alicloud Terraform Provider.
    alicloud logo
    Alibaba Cloud v3.55.1 published on Tuesday, May 14, 2024 by Pulumi