1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. VodSubApplication
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.VodSubApplication

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Provide a resource to create a VOD sub application.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const foo = new tencentcloud.VodSubApplication("foo", {
        description: "this is sub application",
        status: "On",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    foo = tencentcloud.VodSubApplication("foo",
        description="this is sub application",
        status="On")
    
    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, "foo", &tencentcloud.VodSubApplicationArgs{
    			Description: pulumi.String("this is sub application"),
    			Status:      pulumi.String("On"),
    		})
    		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 foo = new Tencentcloud.VodSubApplication("foo", new()
        {
            Description = "this is sub application",
            Status = "On",
        });
    
    });
    
    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 foo = new VodSubApplication("foo", VodSubApplicationArgs.builder()
                .description("this is sub application")
                .status("On")
                .build());
    
        }
    }
    
    resources:
      foo:
        type: tencentcloud:VodSubApplication
        properties:
          description: this is sub application
          status: On
    

    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,
                          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.
    
    

    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.
    VodSubApplicationId string
    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.
    VodSubApplicationId string
    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.
    vodSubApplicationId String
    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.
    vodSubApplicationId string
    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.
    vod_sub_application_id str
    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.
    vodSubApplicationId String
    ID of the resource.

    Outputs

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

    CreateTime string
    The time when the sub application was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreateTime string
    The time when the sub application was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    createTime String
    The time when the sub application was created.
    id String
    The provider-assigned unique ID for this managed resource.
    createTime string
    The time when the sub application was created.
    id string
    The provider-assigned unique ID for this managed resource.
    create_time str
    The time when the sub application was created.
    id str
    The provider-assigned unique ID for this managed resource.
    createTime String
    The time when the sub application was created.
    id String
    The provider-assigned unique ID for this managed resource.

    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,
            vod_sub_application_id: Optional[str] = None) -> VodSubApplication
    func 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}
    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 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.
    VodSubApplicationId string
    ID of the resource.
    CreateTime 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.
    VodSubApplicationId string
    ID of the resource.
    createTime 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.
    vodSubApplicationId String
    ID of the resource.
    createTime 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.
    vodSubApplicationId string
    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.
    vod_sub_application_id str
    ID of the resource.
    createTime 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.
    vodSubApplicationId String
    ID of the resource.

    Import

    VOD super player config can be imported using the name+, e.g.

    $ pulumi import tencentcloud:index/vodSubApplication:VodSubApplication foo name+"#"+id
    

    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 tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack