tencentcloud.CssTimeshiftTemplate
Explore with Pulumi AI
Provides a resource to create a css timeshift_template
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const timeshiftTemplate = new tencentcloud.CssTimeshiftTemplate("timeshiftTemplate", {
area: "Mainland",
description: "timeshift template",
duration: 604800,
itemDuration: 5,
removeWatermark: true,
templateName: "tf-test",
transcodeTemplateIds: [],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
timeshift_template = tencentcloud.CssTimeshiftTemplate("timeshiftTemplate",
area="Mainland",
description="timeshift template",
duration=604800,
item_duration=5,
remove_watermark=True,
template_name="tf-test",
transcode_template_ids=[])
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.NewCssTimeshiftTemplate(ctx, "timeshiftTemplate", &tencentcloud.CssTimeshiftTemplateArgs{
Area: pulumi.String("Mainland"),
Description: pulumi.String("timeshift template"),
Duration: pulumi.Float64(604800),
ItemDuration: pulumi.Float64(5),
RemoveWatermark: pulumi.Bool(true),
TemplateName: pulumi.String("tf-test"),
TranscodeTemplateIds: pulumi.Float64Array{},
})
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 timeshiftTemplate = new Tencentcloud.CssTimeshiftTemplate("timeshiftTemplate", new()
{
Area = "Mainland",
Description = "timeshift template",
Duration = 604800,
ItemDuration = 5,
RemoveWatermark = true,
TemplateName = "tf-test",
TranscodeTemplateIds = new[] {},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CssTimeshiftTemplate;
import com.pulumi.tencentcloud.CssTimeshiftTemplateArgs;
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 timeshiftTemplate = new CssTimeshiftTemplate("timeshiftTemplate", CssTimeshiftTemplateArgs.builder()
.area("Mainland")
.description("timeshift template")
.duration(604800)
.itemDuration(5)
.removeWatermark(true)
.templateName("tf-test")
.transcodeTemplateIds()
.build());
}
}
resources:
timeshiftTemplate:
type: tencentcloud:CssTimeshiftTemplate
properties:
area: Mainland
description: timeshift template
duration: 604800
itemDuration: 5
removeWatermark: true
templateName: tf-test
transcodeTemplateIds: []
Create CssTimeshiftTemplate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CssTimeshiftTemplate(name: string, args: CssTimeshiftTemplateArgs, opts?: CustomResourceOptions);
@overload
def CssTimeshiftTemplate(resource_name: str,
args: CssTimeshiftTemplateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CssTimeshiftTemplate(resource_name: str,
opts: Optional[ResourceOptions] = None,
duration: Optional[float] = None,
template_name: Optional[str] = None,
area: Optional[str] = None,
css_timeshift_template_id: Optional[str] = None,
description: Optional[str] = None,
item_duration: Optional[float] = None,
remove_watermark: Optional[bool] = None,
transcode_template_ids: Optional[Sequence[float]] = None)
func NewCssTimeshiftTemplate(ctx *Context, name string, args CssTimeshiftTemplateArgs, opts ...ResourceOption) (*CssTimeshiftTemplate, error)
public CssTimeshiftTemplate(string name, CssTimeshiftTemplateArgs args, CustomResourceOptions? opts = null)
public CssTimeshiftTemplate(String name, CssTimeshiftTemplateArgs args)
public CssTimeshiftTemplate(String name, CssTimeshiftTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:CssTimeshiftTemplate
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 CssTimeshiftTemplateArgs
- 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 CssTimeshiftTemplateArgs
- 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 CssTimeshiftTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CssTimeshiftTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CssTimeshiftTemplateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CssTimeshiftTemplate 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 CssTimeshiftTemplate resource accepts the following input properties:
- Duration double
- The time shifting duration.Unit: Second.
- Template
Name string - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- Area string
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - Css
Timeshift stringTemplate Id - ID of the resource.
- Description string
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- Item
Duration double - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- Remove
Watermark bool - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - Transcode
Template List<double>Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- Duration float64
- The time shifting duration.Unit: Second.
- Template
Name string - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- Area string
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - Css
Timeshift stringTemplate Id - ID of the resource.
- Description string
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- Item
Duration float64 - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- Remove
Watermark bool - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - Transcode
Template []float64Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- duration Double
- The time shifting duration.Unit: Second.
- template
Name String - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- area String
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - css
Timeshift StringTemplate Id - ID of the resource.
- description String
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- item
Duration Double - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- remove
Watermark Boolean - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - transcode
Template List<Double>Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- duration number
- The time shifting duration.Unit: Second.
- template
Name string - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- area string
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - css
Timeshift stringTemplate Id - ID of the resource.
- description string
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- item
Duration number - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- remove
Watermark boolean - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - transcode
Template number[]Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- duration float
- The time shifting duration.Unit: Second.
- template_
name str - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- area str
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - css_
timeshift_ strtemplate_ id - ID of the resource.
- description str
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- item_
duration float - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- remove_
watermark bool - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - transcode_
template_ Sequence[float]ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- duration Number
- The time shifting duration.Unit: Second.
- template
Name String - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- area String
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - css
Timeshift StringTemplate Id - ID of the resource.
- description String
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- item
Duration Number - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- remove
Watermark Boolean - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - transcode
Template List<Number>Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
Outputs
All input properties are implicitly available as output properties. Additionally, the CssTimeshiftTemplate 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 CssTimeshiftTemplate Resource
Get an existing CssTimeshiftTemplate 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?: CssTimeshiftTemplateState, opts?: CustomResourceOptions): CssTimeshiftTemplate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
area: Optional[str] = None,
css_timeshift_template_id: Optional[str] = None,
description: Optional[str] = None,
duration: Optional[float] = None,
item_duration: Optional[float] = None,
remove_watermark: Optional[bool] = None,
template_name: Optional[str] = None,
transcode_template_ids: Optional[Sequence[float]] = None) -> CssTimeshiftTemplate
func GetCssTimeshiftTemplate(ctx *Context, name string, id IDInput, state *CssTimeshiftTemplateState, opts ...ResourceOption) (*CssTimeshiftTemplate, error)
public static CssTimeshiftTemplate Get(string name, Input<string> id, CssTimeshiftTemplateState? state, CustomResourceOptions? opts = null)
public static CssTimeshiftTemplate get(String name, Output<String> id, CssTimeshiftTemplateState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CssTimeshiftTemplate 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.
- Area string
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - Css
Timeshift stringTemplate Id - ID of the resource.
- Description string
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- Duration double
- The time shifting duration.Unit: Second.
- Item
Duration double - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- Remove
Watermark bool - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - Template
Name string - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- Transcode
Template List<double>Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- Area string
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - Css
Timeshift stringTemplate Id - ID of the resource.
- Description string
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- Duration float64
- The time shifting duration.Unit: Second.
- Item
Duration float64 - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- Remove
Watermark bool - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - Template
Name string - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- Transcode
Template []float64Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- area String
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - css
Timeshift StringTemplate Id - ID of the resource.
- description String
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- duration Double
- The time shifting duration.Unit: Second.
- item
Duration Double - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- remove
Watermark Boolean - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - template
Name String - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- transcode
Template List<Double>Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- area string
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - css
Timeshift stringTemplate Id - ID of the resource.
- description string
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- duration number
- The time shifting duration.Unit: Second.
- item
Duration number - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- remove
Watermark boolean - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - template
Name string - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- transcode
Template number[]Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- area str
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - css_
timeshift_ strtemplate_ id - ID of the resource.
- description str
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- duration float
- The time shifting duration.Unit: Second.
- item_
duration float - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- remove_
watermark bool - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - template_
name str - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- transcode_
template_ Sequence[float]ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
- area String
- The region.
Mainland
: The Chinese mainland.Overseas
: Outside the Chinese mainland.Default value:Mainland
. - css
Timeshift StringTemplate Id - ID of the resource.
- description String
- The template description.Only letters, numbers, underscores, and hyphens are supported.
- duration Number
- The time shifting duration.Unit: Second.
- item
Duration Number - The segment size.Value range: 3-10.Unit: Second.Default value: 5.
- remove
Watermark Boolean - Whether to remove watermarks.If you pass in
true
, the original stream will be recorded.Default value:false
. - template
Name String - The template name.Maximum length: 255 bytes.Only letters, numbers, underscores, and hyphens are supported.
- transcode
Template List<Number>Ids - The transcoding template IDs.This API works only if
RemoveWatermark
isfalse
.
Import
css timeshift_template can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cssTimeshiftTemplate:CssTimeshiftTemplate timeshift_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.