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

tencentcloud.CssPadTemplate

Explore with Pulumi AI

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

    Provides a resource to create a css pad_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const padTemplate = new tencentcloud.CssPadTemplate("padTemplate", {
        description: "pad template",
        maxDuration: 120000,
        templateName: "tf-pad",
        type: 1,
        url: "https://livewatermark-1251132611.cos.ap-guangzhou.myqcloud.com/1308919341/watermark_img_1698736540399_1441698123618_.pic.jpg",
        waitDuration: 2000,
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    pad_template = tencentcloud.CssPadTemplate("padTemplate",
        description="pad template",
        max_duration=120000,
        template_name="tf-pad",
        type=1,
        url="https://livewatermark-1251132611.cos.ap-guangzhou.myqcloud.com/1308919341/watermark_img_1698736540399_1441698123618_.pic.jpg",
        wait_duration=2000)
    
    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.NewCssPadTemplate(ctx, "padTemplate", &tencentcloud.CssPadTemplateArgs{
    			Description:  pulumi.String("pad template"),
    			MaxDuration:  pulumi.Float64(120000),
    			TemplateName: pulumi.String("tf-pad"),
    			Type:         pulumi.Float64(1),
    			Url:          pulumi.String("https://livewatermark-1251132611.cos.ap-guangzhou.myqcloud.com/1308919341/watermark_img_1698736540399_1441698123618_.pic.jpg"),
    			WaitDuration: pulumi.Float64(2000),
    		})
    		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 padTemplate = new Tencentcloud.CssPadTemplate("padTemplate", new()
        {
            Description = "pad template",
            MaxDuration = 120000,
            TemplateName = "tf-pad",
            Type = 1,
            Url = "https://livewatermark-1251132611.cos.ap-guangzhou.myqcloud.com/1308919341/watermark_img_1698736540399_1441698123618_.pic.jpg",
            WaitDuration = 2000,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CssPadTemplate;
    import com.pulumi.tencentcloud.CssPadTemplateArgs;
    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 padTemplate = new CssPadTemplate("padTemplate", CssPadTemplateArgs.builder()
                .description("pad template")
                .maxDuration(120000)
                .templateName("tf-pad")
                .type(1)
                .url("https://livewatermark-1251132611.cos.ap-guangzhou.myqcloud.com/1308919341/watermark_img_1698736540399_1441698123618_.pic.jpg")
                .waitDuration(2000)
                .build());
    
        }
    }
    
    resources:
      padTemplate:
        type: tencentcloud:CssPadTemplate
        properties:
          description: pad template
          maxDuration: 120000
          templateName: tf-pad
          type: 1
          url: https://livewatermark-1251132611.cos.ap-guangzhou.myqcloud.com/1308919341/watermark_img_1698736540399_1441698123618_.pic.jpg
          waitDuration: 2000
    

    Create CssPadTemplate Resource

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

    Constructor syntax

    new CssPadTemplate(name: string, args: CssPadTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def CssPadTemplate(resource_name: str,
                       args: CssPadTemplateArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def CssPadTemplate(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       template_name: Optional[str] = None,
                       url: Optional[str] = None,
                       css_pad_template_id: Optional[str] = None,
                       description: Optional[str] = None,
                       max_duration: Optional[float] = None,
                       type: Optional[float] = None,
                       wait_duration: Optional[float] = None)
    func NewCssPadTemplate(ctx *Context, name string, args CssPadTemplateArgs, opts ...ResourceOption) (*CssPadTemplate, error)
    public CssPadTemplate(string name, CssPadTemplateArgs args, CustomResourceOptions? opts = null)
    public CssPadTemplate(String name, CssPadTemplateArgs args)
    public CssPadTemplate(String name, CssPadTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CssPadTemplate
    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 CssPadTemplateArgs
    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 CssPadTemplateArgs
    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 CssPadTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CssPadTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CssPadTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    TemplateName string
    Template namelimit 255 bytes.
    Url string
    Pad content.
    CssPadTemplateId string
    ID of the resource.
    Description string
    Description content.limit length 1024 bytes.
    MaxDuration double
    Max pad duration.limit: 0 - 9999999 ms.
    Type double
    Pad content type.1: picture.2: video.default: 1.
    WaitDuration double
    Stop stream wait time.limit: 0 - 30000 ms.
    TemplateName string
    Template namelimit 255 bytes.
    Url string
    Pad content.
    CssPadTemplateId string
    ID of the resource.
    Description string
    Description content.limit length 1024 bytes.
    MaxDuration float64
    Max pad duration.limit: 0 - 9999999 ms.
    Type float64
    Pad content type.1: picture.2: video.default: 1.
    WaitDuration float64
    Stop stream wait time.limit: 0 - 30000 ms.
    templateName String
    Template namelimit 255 bytes.
    url String
    Pad content.
    cssPadTemplateId String
    ID of the resource.
    description String
    Description content.limit length 1024 bytes.
    maxDuration Double
    Max pad duration.limit: 0 - 9999999 ms.
    type Double
    Pad content type.1: picture.2: video.default: 1.
    waitDuration Double
    Stop stream wait time.limit: 0 - 30000 ms.
    templateName string
    Template namelimit 255 bytes.
    url string
    Pad content.
    cssPadTemplateId string
    ID of the resource.
    description string
    Description content.limit length 1024 bytes.
    maxDuration number
    Max pad duration.limit: 0 - 9999999 ms.
    type number
    Pad content type.1: picture.2: video.default: 1.
    waitDuration number
    Stop stream wait time.limit: 0 - 30000 ms.
    template_name str
    Template namelimit 255 bytes.
    url str
    Pad content.
    css_pad_template_id str
    ID of the resource.
    description str
    Description content.limit length 1024 bytes.
    max_duration float
    Max pad duration.limit: 0 - 9999999 ms.
    type float
    Pad content type.1: picture.2: video.default: 1.
    wait_duration float
    Stop stream wait time.limit: 0 - 30000 ms.
    templateName String
    Template namelimit 255 bytes.
    url String
    Pad content.
    cssPadTemplateId String
    ID of the resource.
    description String
    Description content.limit length 1024 bytes.
    maxDuration Number
    Max pad duration.limit: 0 - 9999999 ms.
    type Number
    Pad content type.1: picture.2: video.default: 1.
    waitDuration Number
    Stop stream wait time.limit: 0 - 30000 ms.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the CssPadTemplate 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 CssPadTemplate Resource

    Get an existing CssPadTemplate 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?: CssPadTemplateState, opts?: CustomResourceOptions): CssPadTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            css_pad_template_id: Optional[str] = None,
            description: Optional[str] = None,
            max_duration: Optional[float] = None,
            template_name: Optional[str] = None,
            type: Optional[float] = None,
            url: Optional[str] = None,
            wait_duration: Optional[float] = None) -> CssPadTemplate
    func GetCssPadTemplate(ctx *Context, name string, id IDInput, state *CssPadTemplateState, opts ...ResourceOption) (*CssPadTemplate, error)
    public static CssPadTemplate Get(string name, Input<string> id, CssPadTemplateState? state, CustomResourceOptions? opts = null)
    public static CssPadTemplate get(String name, Output<String> id, CssPadTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CssPadTemplate    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:
    CssPadTemplateId string
    ID of the resource.
    Description string
    Description content.limit length 1024 bytes.
    MaxDuration double
    Max pad duration.limit: 0 - 9999999 ms.
    TemplateName string
    Template namelimit 255 bytes.
    Type double
    Pad content type.1: picture.2: video.default: 1.
    Url string
    Pad content.
    WaitDuration double
    Stop stream wait time.limit: 0 - 30000 ms.
    CssPadTemplateId string
    ID of the resource.
    Description string
    Description content.limit length 1024 bytes.
    MaxDuration float64
    Max pad duration.limit: 0 - 9999999 ms.
    TemplateName string
    Template namelimit 255 bytes.
    Type float64
    Pad content type.1: picture.2: video.default: 1.
    Url string
    Pad content.
    WaitDuration float64
    Stop stream wait time.limit: 0 - 30000 ms.
    cssPadTemplateId String
    ID of the resource.
    description String
    Description content.limit length 1024 bytes.
    maxDuration Double
    Max pad duration.limit: 0 - 9999999 ms.
    templateName String
    Template namelimit 255 bytes.
    type Double
    Pad content type.1: picture.2: video.default: 1.
    url String
    Pad content.
    waitDuration Double
    Stop stream wait time.limit: 0 - 30000 ms.
    cssPadTemplateId string
    ID of the resource.
    description string
    Description content.limit length 1024 bytes.
    maxDuration number
    Max pad duration.limit: 0 - 9999999 ms.
    templateName string
    Template namelimit 255 bytes.
    type number
    Pad content type.1: picture.2: video.default: 1.
    url string
    Pad content.
    waitDuration number
    Stop stream wait time.limit: 0 - 30000 ms.
    css_pad_template_id str
    ID of the resource.
    description str
    Description content.limit length 1024 bytes.
    max_duration float
    Max pad duration.limit: 0 - 9999999 ms.
    template_name str
    Template namelimit 255 bytes.
    type float
    Pad content type.1: picture.2: video.default: 1.
    url str
    Pad content.
    wait_duration float
    Stop stream wait time.limit: 0 - 30000 ms.
    cssPadTemplateId String
    ID of the resource.
    description String
    Description content.limit length 1024 bytes.
    maxDuration Number
    Max pad duration.limit: 0 - 9999999 ms.
    templateName String
    Template namelimit 255 bytes.
    type Number
    Pad content type.1: picture.2: video.default: 1.
    url String
    Pad content.
    waitDuration Number
    Stop stream wait time.limit: 0 - 30000 ms.

    Import

    css pad_template can be imported using the id, e.g.

    $ pulumi import tencentcloud:index/cssPadTemplate:CssPadTemplate pad_template templateId
    

    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