1. Packages
  2. Alibaba Cloud Provider
  3. API Docs
  4. realtimecompute
  5. VvpInstance
Alibaba Cloud v3.76.0 published on Tuesday, Apr 8, 2025 by Pulumi

alicloud.realtimecompute.VvpInstance

Explore with Pulumi AI

Import

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

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

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, str]] = 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 This property is required. string
The unique name of the resource.
args This property is required. VvpInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. VvpInstanceArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. VvpInstanceArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. VvpInstanceArgs
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 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", "string" },
    },
});
Copy
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.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
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", "string"))
    .build());
Copy
vvp_instance_resource = alicloud.realtimecompute.VvpInstance("vvpInstanceResource",
    payment_type="string",
    storage={
        "oss": {
            "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={
        "cpu": 0,
        "memory_gb": 0,
    },
    tags={
        "string": "string",
    })
Copy
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: "string",
    },
});
Copy
type: alicloud:realtimecompute:VvpInstance
properties:
    duration: 0
    paymentType: string
    pricingCycle: string
    resourceGroupId: string
    resourceSpec:
        cpu: 0
        memoryGb: 0
    storage:
        oss:
            bucket: string
    tags:
        string: string
    vpcId: string
    vswitchIds:
        - string
    vvpInstanceName: string
    zoneId: string
Copy

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

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The VvpInstance resource accepts the following input properties:

PaymentType
This property is required.
Changes to this property will trigger replacement.
string
The payment type of the resource.
Storage
This property is required.
Changes to this property will trigger replacement.
Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceStorage
Store information. See storage below.
VpcId
This property is required.
Changes to this property will trigger replacement.
string
The VPC ID of the user.
VswitchIds
This property is required.
Changes to this property will trigger replacement.
List<string>
Virtual Switch ID.
VvpInstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
ZoneId
This property is required.
Changes to this property will trigger replacement.
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, string>
The tags of the resource.
PaymentType
This property is required.
Changes to this property will trigger replacement.
string
The payment type of the resource.
Storage
This property is required.
Changes to this property will trigger replacement.
VvpInstanceStorageArgs
Store information. See storage below.
VpcId
This property is required.
Changes to this property will trigger replacement.
string
The VPC ID of the user.
VswitchIds
This property is required.
Changes to this property will trigger replacement.
[]string
Virtual Switch ID.
VvpInstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
ZoneId
This property is required.
Changes to this property will trigger replacement.
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]string
The tags of the resource.
paymentType
This property is required.
Changes to this property will trigger replacement.
String
The payment type of the resource.
storage
This property is required.
Changes to this property will trigger replacement.
VvpInstanceStorage
Store information. See storage below.
vpcId
This property is required.
Changes to this property will trigger replacement.
String
The VPC ID of the user.
vswitchIds
This property is required.
Changes to this property will trigger replacement.
List<String>
Virtual Switch ID.
vvpInstanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.
zoneId
This property is required.
Changes to this property will trigger replacement.
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,String>
The tags of the resource.
paymentType
This property is required.
Changes to this property will trigger replacement.
string
The payment type of the resource.
storage
This property is required.
Changes to this property will trigger replacement.
VvpInstanceStorage
Store information. See storage below.
vpcId
This property is required.
Changes to this property will trigger replacement.
string
The VPC ID of the user.
vswitchIds
This property is required.
Changes to this property will trigger replacement.
string[]
Virtual Switch ID.
vvpInstanceName
This property is required.
Changes to this property will trigger replacement.
string
The name of the workspace.
zoneId
This property is required.
Changes to this property will trigger replacement.
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]: string}
The tags of the resource.
payment_type
This property is required.
Changes to this property will trigger replacement.
str
The payment type of the resource.
storage
This property is required.
Changes to this property will trigger replacement.
VvpInstanceStorageArgs
Store information. See storage below.
vpc_id
This property is required.
Changes to this property will trigger replacement.
str
The VPC ID of the user.
vswitch_ids
This property is required.
Changes to this property will trigger replacement.
Sequence[str]
Virtual Switch ID.
vvp_instance_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the workspace.
zone_id
This property is required.
Changes to this property will trigger replacement.
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, str]
The tags of the resource.
paymentType
This property is required.
Changes to this property will trigger replacement.
String
The payment type of the resource.
storage
This property is required.
Changes to this property will trigger replacement.
Property Map
Store information. See storage below.
vpcId
This property is required.
Changes to this property will trigger replacement.
String
The VPC ID of the user.
vswitchIds
This property is required.
Changes to this property will trigger replacement.
List<String>
Virtual Switch ID.
vvpInstanceName
This property is required.
Changes to this property will trigger replacement.
String
The name of the workspace.
zoneId
This property is required.
Changes to this property will trigger replacement.
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<String>
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, str]] = 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)
resources:  _:    type: alicloud:realtimecompute:VvpInstance    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceStorage
Store information. See storage below.
Tags Dictionary<string, string>
The tags of the resource.
VpcId Changes to this property will trigger replacement. string
The VPC ID of the user.
VswitchIds Changes to this property will trigger replacement. List<string>
Virtual Switch ID.
VvpInstanceName Changes to this property will trigger replacement. string
The name of the workspace.
ZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. VvpInstanceStorageArgs
Store information. See storage below.
Tags map[string]string
The tags of the resource.
VpcId Changes to this property will trigger replacement. string
The VPC ID of the user.
VswitchIds Changes to this property will trigger replacement. []string
Virtual Switch ID.
VvpInstanceName Changes to this property will trigger replacement. string
The name of the workspace.
ZoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. VvpInstanceStorage
Store information. See storage below.
tags Map<String,String>
The tags of the resource.
vpcId Changes to this property will trigger replacement. String
The VPC ID of the user.
vswitchIds Changes to this property will trigger replacement. List<String>
Virtual Switch ID.
vvpInstanceName Changes to this property will trigger replacement. String
The name of the workspace.
zoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. VvpInstanceStorage
Store information. See storage below.
tags {[key: string]: string}
The tags of the resource.
vpcId Changes to this property will trigger replacement. string
The VPC ID of the user.
vswitchIds Changes to this property will trigger replacement. string[]
Virtual Switch ID.
vvpInstanceName Changes to this property will trigger replacement. string
The name of the workspace.
zoneId Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. VvpInstanceStorageArgs
Store information. See storage below.
tags Mapping[str, str]
The tags of the resource.
vpc_id Changes to this property will trigger replacement. str
The VPC ID of the user.
vswitch_ids Changes to this property will trigger replacement. Sequence[str]
Virtual Switch ID.
vvp_instance_name Changes to this property will trigger replacement. str
The name of the workspace.
zone_id Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. 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 Changes to this property will trigger replacement. Property Map
Store information. See storage below.
tags Map<String>
The tags of the resource.
vpcId Changes to this property will trigger replacement. String
The VPC ID of the user.
vswitchIds Changes to this property will trigger replacement. List<String>
Virtual Switch ID.
vvpInstanceName Changes to this property will trigger replacement. String
The name of the workspace.
zoneId Changes to this property will trigger replacement. 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
This property is required.
Changes to this property will trigger replacement.
Pulumi.AliCloud.RealtimeCompute.Inputs.VvpInstanceStorageOss
OSS stores information. See oss below.
Oss
This property is required.
Changes to this property will trigger replacement.
VvpInstanceStorageOss
OSS stores information. See oss below.
oss
This property is required.
Changes to this property will trigger replacement.
VvpInstanceStorageOss
OSS stores information. See oss below.
oss
This property is required.
Changes to this property will trigger replacement.
VvpInstanceStorageOss
OSS stores information. See oss below.
oss
This property is required.
Changes to this property will trigger replacement.
VvpInstanceStorageOss
OSS stores information. See oss below.
oss
This property is required.
Changes to this property will trigger replacement.
Property Map
OSS stores information. See oss below.

VvpInstanceStorageOss
, VvpInstanceStorageOssArgs

Bucket
This property is required.
Changes to this property will trigger replacement.
string
OSS Bucket name.
Bucket
This property is required.
Changes to this property will trigger replacement.
string
OSS Bucket name.
bucket
This property is required.
Changes to this property will trigger replacement.
String
OSS Bucket name.
bucket
This property is required.
Changes to this property will trigger replacement.
string
OSS Bucket name.
bucket
This property is required.
Changes to this property will trigger replacement.
str
OSS Bucket name.
bucket
This property is required.
Changes to this property will trigger replacement.
String
OSS Bucket name.

Package Details

Repository
Alibaba Cloud pulumi/pulumi-alicloud
License
Apache-2.0
Notes
This Pulumi package is based on the alicloud Terraform Provider.