published on Friday, Aug 14, 2026 by tencentcloudstack
published on Friday, Aug 14, 2026 by tencentcloudstack
Provide a resource to create a VOD sub application.
Example Usage
### Basic Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.VodSubApplication("example", {
name: "tf-example",
status: "On",
description: "this is sub application",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.VodSubApplication("example",
name="tf-example",
status="On",
description="this is sub application")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewVodSubApplication(ctx, "example", &tencentcloud.VodSubApplicationArgs{
Name: pulumi.String("tf-example"),
Status: pulumi.String("On"),
Description: pulumi.String("this is sub application"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.VodSubApplication("example", new()
{
Name = "tf-example",
Status = "On",
Description = "this is sub application",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VodSubApplication;
import com.pulumi.tencentcloud.VodSubApplicationArgs;
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 example = new VodSubApplication("example", VodSubApplicationArgs.builder()
.name("tf-example")
.status("On")
.description("this is sub application")
.build());
}
}
resources:
example:
type: tencentcloud:VodSubApplication
properties:
name: tf-example
status: On
description: this is sub application
Example coming soon!
### Tags Update Example
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.VodSubApplication("example", {
name: "tf-example",
status: "On",
description: "Sub application with updatable tags",
tags: {
team: "media",
environment: "production",
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.VodSubApplication("example",
name="tf-example",
status="On",
description="Sub application with updatable tags",
tags={
"team": "media",
"environment": "production",
})
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewVodSubApplication(ctx, "example", &tencentcloud.VodSubApplicationArgs{
Name: pulumi.String("tf-example"),
Status: pulumi.String("On"),
Description: pulumi.String("Sub application with updatable tags"),
Tags: pulumi.StringMap{
"team": pulumi.String("media"),
"environment": pulumi.String("production"),
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = new Tencentcloud.VodSubApplication("example", new()
{
Name = "tf-example",
Status = "On",
Description = "Sub application with updatable tags",
Tags =
{
{ "team", "media" },
{ "environment", "production" },
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.VodSubApplication;
import com.pulumi.tencentcloud.VodSubApplicationArgs;
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 example = new VodSubApplication("example", VodSubApplicationArgs.builder()
.name("tf-example")
.status("On")
.description("Sub application with updatable tags")
.tags(Map.ofEntries(
Map.entry("team", "media"),
Map.entry("environment", "production")
))
.build());
}
}
resources:
example:
type: tencentcloud:VodSubApplication
properties:
name: tf-example
status: On
description: Sub application with updatable tags
tags:
team: media
environment: production
Example coming soon!
Create VodSubApplication Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new VodSubApplication(name: string, args: VodSubApplicationArgs, opts?: CustomResourceOptions);@overload
def VodSubApplication(resource_name: str,
args: VodSubApplicationArgs,
opts: Optional[ResourceOptions] = None)
@overload
def VodSubApplication(resource_name: str,
opts: Optional[ResourceOptions] = None,
status: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vod_sub_application_id: Optional[str] = None)func NewVodSubApplication(ctx *Context, name string, args VodSubApplicationArgs, opts ...ResourceOption) (*VodSubApplication, error)public VodSubApplication(string name, VodSubApplicationArgs args, CustomResourceOptions? opts = null)
public VodSubApplication(String name, VodSubApplicationArgs args)
public VodSubApplication(String name, VodSubApplicationArgs args, CustomResourceOptions options)
type: tencentcloud:VodSubApplication
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_vod_sub_application" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args VodSubApplicationArgs
- 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 VodSubApplicationArgs
- 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 VodSubApplicationArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args VodSubApplicationArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args VodSubApplicationArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
VodSubApplication 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 VodSubApplication resource accepts the following input properties:
- Status string
- Sub appliaction status.
- Description string
- Sub application description.
- Name string
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- Dictionary<string, string>
- Tag key-value pairs for resource management. Maximum 10 tags.
- Vod
Sub stringApplication Id - ID of the resource.
- Status string
- Sub appliaction status.
- Description string
- Sub application description.
- Name string
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- map[string]string
- Tag key-value pairs for resource management. Maximum 10 tags.
- Vod
Sub stringApplication Id - ID of the resource.
- status string
- Sub appliaction status.
- description string
- Sub application description.
- name string
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- map(string)
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod_
sub_ stringapplication_ id - ID of the resource.
- status String
- Sub appliaction status.
- description String
- Sub application description.
- name String
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- Map<String,String>
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod
Sub StringApplication Id - ID of the resource.
- status string
- Sub appliaction status.
- description string
- Sub application description.
- name string
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- {[key: string]: string}
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod
Sub stringApplication Id - ID of the resource.
- status str
- Sub appliaction status.
- description str
- Sub application description.
- name str
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- Mapping[str, str]
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod_
sub_ strapplication_ id - ID of the resource.
- status String
- Sub appliaction status.
- description String
- Sub application description.
- name String
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- Map<String>
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod
Sub StringApplication Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the VodSubApplication resource produces the following output properties:
- Create
Time string - The time when the sub application was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Sub
App stringId - Sub application ID.
- Create
Time string - The time when the sub application was created.
- Id string
- The provider-assigned unique ID for this managed resource.
- Sub
App stringId - Sub application ID.
- create_
time string - The time when the sub application was created.
- id string
- The provider-assigned unique ID for this managed resource.
- sub_
app_ stringid - Sub application ID.
- create
Time String - The time when the sub application was created.
- id String
- The provider-assigned unique ID for this managed resource.
- sub
App StringId - Sub application ID.
- create
Time string - The time when the sub application was created.
- id string
- The provider-assigned unique ID for this managed resource.
- sub
App stringId - Sub application ID.
- create_
time str - The time when the sub application was created.
- id str
- The provider-assigned unique ID for this managed resource.
- sub_
app_ strid - Sub application ID.
- create
Time String - The time when the sub application was created.
- id String
- The provider-assigned unique ID for this managed resource.
- sub
App StringId - Sub application ID.
Look up Existing VodSubApplication Resource
Get an existing VodSubApplication 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?: VodSubApplicationState, opts?: CustomResourceOptions): VodSubApplication@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
status: Optional[str] = None,
sub_app_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None,
vod_sub_application_id: Optional[str] = None) -> VodSubApplicationfunc GetVodSubApplication(ctx *Context, name string, id IDInput, state *VodSubApplicationState, opts ...ResourceOption) (*VodSubApplication, error)public static VodSubApplication Get(string name, Input<string> id, VodSubApplicationState? state, CustomResourceOptions? opts = null)public static VodSubApplication get(String name, Output<String> id, VodSubApplicationState state, CustomResourceOptions options)resources: _: type: tencentcloud:VodSubApplication get: id: ${id}import {
to = tencentcloud_vod_sub_application.example
id = "${id}"
}
- 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.
- Create
Time string - The time when the sub application was created.
- Description string
- Sub application description.
- Name string
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- Status string
- Sub appliaction status.
- Sub
App stringId - Sub application ID.
- Dictionary<string, string>
- Tag key-value pairs for resource management. Maximum 10 tags.
- Vod
Sub stringApplication Id - ID of the resource.
- Create
Time string - The time when the sub application was created.
- Description string
- Sub application description.
- Name string
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- Status string
- Sub appliaction status.
- Sub
App stringId - Sub application ID.
- map[string]string
- Tag key-value pairs for resource management. Maximum 10 tags.
- Vod
Sub stringApplication Id - ID of the resource.
- create_
time string - The time when the sub application was created.
- description string
- Sub application description.
- name string
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- status string
- Sub appliaction status.
- sub_
app_ stringid - Sub application ID.
- map(string)
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod_
sub_ stringapplication_ id - ID of the resource.
- create
Time String - The time when the sub application was created.
- description String
- Sub application description.
- name String
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- status String
- Sub appliaction status.
- sub
App StringId - Sub application ID.
- Map<String,String>
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod
Sub StringApplication Id - ID of the resource.
- create
Time string - The time when the sub application was created.
- description string
- Sub application description.
- name string
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- status string
- Sub appliaction status.
- sub
App stringId - Sub application ID.
- {[key: string]: string}
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod
Sub stringApplication Id - ID of the resource.
- create_
time str - The time when the sub application was created.
- description str
- Sub application description.
- name str
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- status str
- Sub appliaction status.
- sub_
app_ strid - Sub application ID.
- Mapping[str, str]
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod_
sub_ strapplication_ id - ID of the resource.
- create
Time String - The time when the sub application was created.
- description String
- Sub application description.
- name String
- Sub application name, which can contain up to 64 letters, digits, underscores, and hyphens (such as test_ABC-123) and must be unique under a user.
- status String
- Sub appliaction status.
- sub
App StringId - Sub application ID.
- Map<String>
- Tag key-value pairs for resource management. Maximum 10 tags.
- vod
Sub StringApplication Id - ID of the resource.
Import
VOD sub application can be imported using the name and id separated by name#sub_app_id, e.g.
$ pulumi import tencentcloud:index/vodSubApplication:VodSubApplication example tf-example#1500066377
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Friday, Aug 14, 2026 by tencentcloudstack