1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CssSnapshotTemplate
tencentcloud 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack

tencentcloud.CssSnapshotTemplate

Explore with Pulumi AI

Provides a resource to create a css snapshot_template

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";

const snapshotTemplate = new tencentcloud.CssSnapshotTemplate("snapshotTemplate", {
    cosAppId: 1308919341,
    cosBucket: "keep-bucket",
    cosRegion: "ap-guangzhou",
    description: "snapshot template",
    height: 0,
    pornFlag: 0,
    snapshotInterval: 2,
    templateName: "tf-snapshot-template",
    width: 0,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

snapshot_template = tencentcloud.CssSnapshotTemplate("snapshotTemplate",
    cos_app_id=1308919341,
    cos_bucket="keep-bucket",
    cos_region="ap-guangzhou",
    description="snapshot template",
    height=0,
    porn_flag=0,
    snapshot_interval=2,
    template_name="tf-snapshot-template",
    width=0)
Copy
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.NewCssSnapshotTemplate(ctx, "snapshotTemplate", &tencentcloud.CssSnapshotTemplateArgs{
			CosAppId:         pulumi.Float64(1308919341),
			CosBucket:        pulumi.String("keep-bucket"),
			CosRegion:        pulumi.String("ap-guangzhou"),
			Description:      pulumi.String("snapshot template"),
			Height:           pulumi.Float64(0),
			PornFlag:         pulumi.Float64(0),
			SnapshotInterval: pulumi.Float64(2),
			TemplateName:     pulumi.String("tf-snapshot-template"),
			Width:            pulumi.Float64(0),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;

return await Deployment.RunAsync(() => 
{
    var snapshotTemplate = new Tencentcloud.CssSnapshotTemplate("snapshotTemplate", new()
    {
        CosAppId = 1308919341,
        CosBucket = "keep-bucket",
        CosRegion = "ap-guangzhou",
        Description = "snapshot template",
        Height = 0,
        PornFlag = 0,
        SnapshotInterval = 2,
        TemplateName = "tf-snapshot-template",
        Width = 0,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CssSnapshotTemplate;
import com.pulumi.tencentcloud.CssSnapshotTemplateArgs;
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 snapshotTemplate = new CssSnapshotTemplate("snapshotTemplate", CssSnapshotTemplateArgs.builder()
            .cosAppId(1308919341)
            .cosBucket("keep-bucket")
            .cosRegion("ap-guangzhou")
            .description("snapshot template")
            .height(0)
            .pornFlag(0)
            .snapshotInterval(2)
            .templateName("tf-snapshot-template")
            .width(0)
            .build());

    }
}
Copy
resources:
  snapshotTemplate:
    type: tencentcloud:CssSnapshotTemplate
    properties:
      cosAppId: 1.308919341e+09
      cosBucket: keep-bucket
      cosRegion: ap-guangzhou
      description: snapshot template
      height: 0
      pornFlag: 0
      snapshotInterval: 2
      templateName: tf-snapshot-template
      width: 0
Copy

Create CssSnapshotTemplate Resource

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

Constructor syntax

new CssSnapshotTemplate(name: string, args: CssSnapshotTemplateArgs, opts?: CustomResourceOptions);
@overload
def CssSnapshotTemplate(resource_name: str,
                        args: CssSnapshotTemplateArgs,
                        opts: Optional[ResourceOptions] = None)

@overload
def CssSnapshotTemplate(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        cos_app_id: Optional[float] = None,
                        cos_bucket: Optional[str] = None,
                        cos_region: Optional[str] = None,
                        template_name: Optional[str] = None,
                        cos_file_name: Optional[str] = None,
                        cos_prefix: Optional[str] = None,
                        css_snapshot_template_id: Optional[str] = None,
                        description: Optional[str] = None,
                        height: Optional[float] = None,
                        porn_flag: Optional[float] = None,
                        snapshot_interval: Optional[float] = None,
                        width: Optional[float] = None)
func NewCssSnapshotTemplate(ctx *Context, name string, args CssSnapshotTemplateArgs, opts ...ResourceOption) (*CssSnapshotTemplate, error)
public CssSnapshotTemplate(string name, CssSnapshotTemplateArgs args, CustomResourceOptions? opts = null)
public CssSnapshotTemplate(String name, CssSnapshotTemplateArgs args)
public CssSnapshotTemplate(String name, CssSnapshotTemplateArgs args, CustomResourceOptions options)
type: tencentcloud:CssSnapshotTemplate
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. CssSnapshotTemplateArgs
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. CssSnapshotTemplateArgs
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. CssSnapshotTemplateArgs
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. CssSnapshotTemplateArgs
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. CssSnapshotTemplateArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

CosAppId This property is required. double
Cos application ID.
CosBucket This property is required. string
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
CosRegion This property is required. string
Cos region.
TemplateName This property is required. string
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
CosFileName string
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
CosPrefix string
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
CssSnapshotTemplateId string
ID of the resource.
Description string
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
Height double
Screenshot height. Default: 0 (original height). Range: 0-2000.
PornFlag double
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
SnapshotInterval double
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
Width double
Screenshot width. Default: 0 (original width). Range: 0-3000.
CosAppId This property is required. float64
Cos application ID.
CosBucket This property is required. string
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
CosRegion This property is required. string
Cos region.
TemplateName This property is required. string
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
CosFileName string
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
CosPrefix string
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
CssSnapshotTemplateId string
ID of the resource.
Description string
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
Height float64
Screenshot height. Default: 0 (original height). Range: 0-2000.
PornFlag float64
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
SnapshotInterval float64
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
Width float64
Screenshot width. Default: 0 (original width). Range: 0-3000.
cosAppId This property is required. Double
Cos application ID.
cosBucket This property is required. String
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
cosRegion This property is required. String
Cos region.
templateName This property is required. String
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
cosFileName String
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
cosPrefix String
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
cssSnapshotTemplateId String
ID of the resource.
description String
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
height Double
Screenshot height. Default: 0 (original height). Range: 0-2000.
pornFlag Double
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
snapshotInterval Double
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
width Double
Screenshot width. Default: 0 (original width). Range: 0-3000.
cosAppId This property is required. number
Cos application ID.
cosBucket This property is required. string
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
cosRegion This property is required. string
Cos region.
templateName This property is required. string
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
cosFileName string
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
cosPrefix string
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
cssSnapshotTemplateId string
ID of the resource.
description string
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
height number
Screenshot height. Default: 0 (original height). Range: 0-2000.
pornFlag number
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
snapshotInterval number
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
width number
Screenshot width. Default: 0 (original width). Range: 0-3000.
cos_app_id This property is required. float
Cos application ID.
cos_bucket This property is required. str
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
cos_region This property is required. str
Cos region.
template_name This property is required. str
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
cos_file_name str
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
cos_prefix str
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
css_snapshot_template_id str
ID of the resource.
description str
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
height float
Screenshot height. Default: 0 (original height). Range: 0-2000.
porn_flag float
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
snapshot_interval float
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
width float
Screenshot width. Default: 0 (original width). Range: 0-3000.
cosAppId This property is required. Number
Cos application ID.
cosBucket This property is required. String
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
cosRegion This property is required. String
Cos region.
templateName This property is required. String
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
cosFileName String
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
cosPrefix String
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
cssSnapshotTemplateId String
ID of the resource.
description String
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
height Number
Screenshot height. Default: 0 (original height). Range: 0-2000.
pornFlag Number
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
snapshotInterval Number
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
width Number
Screenshot width. Default: 0 (original width). Range: 0-3000.

Outputs

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

Get an existing CssSnapshotTemplate 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?: CssSnapshotTemplateState, opts?: CustomResourceOptions): CssSnapshotTemplate
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cos_app_id: Optional[float] = None,
        cos_bucket: Optional[str] = None,
        cos_file_name: Optional[str] = None,
        cos_prefix: Optional[str] = None,
        cos_region: Optional[str] = None,
        css_snapshot_template_id: Optional[str] = None,
        description: Optional[str] = None,
        height: Optional[float] = None,
        porn_flag: Optional[float] = None,
        snapshot_interval: Optional[float] = None,
        template_name: Optional[str] = None,
        width: Optional[float] = None) -> CssSnapshotTemplate
func GetCssSnapshotTemplate(ctx *Context, name string, id IDInput, state *CssSnapshotTemplateState, opts ...ResourceOption) (*CssSnapshotTemplate, error)
public static CssSnapshotTemplate Get(string name, Input<string> id, CssSnapshotTemplateState? state, CustomResourceOptions? opts = null)
public static CssSnapshotTemplate get(String name, Output<String> id, CssSnapshotTemplateState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CssSnapshotTemplate    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:
CosAppId double
Cos application ID.
CosBucket string
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
CosFileName string
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
CosPrefix string
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
CosRegion string
Cos region.
CssSnapshotTemplateId string
ID of the resource.
Description string
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
Height double
Screenshot height. Default: 0 (original height). Range: 0-2000.
PornFlag double
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
SnapshotInterval double
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
TemplateName string
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
Width double
Screenshot width. Default: 0 (original width). Range: 0-3000.
CosAppId float64
Cos application ID.
CosBucket string
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
CosFileName string
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
CosPrefix string
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
CosRegion string
Cos region.
CssSnapshotTemplateId string
ID of the resource.
Description string
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
Height float64
Screenshot height. Default: 0 (original height). Range: 0-2000.
PornFlag float64
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
SnapshotInterval float64
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
TemplateName string
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
Width float64
Screenshot width. Default: 0 (original width). Range: 0-3000.
cosAppId Double
Cos application ID.
cosBucket String
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
cosFileName String
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
cosPrefix String
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
cosRegion String
Cos region.
cssSnapshotTemplateId String
ID of the resource.
description String
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
height Double
Screenshot height. Default: 0 (original height). Range: 0-2000.
pornFlag Double
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
snapshotInterval Double
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
templateName String
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
width Double
Screenshot width. Default: 0 (original width). Range: 0-3000.
cosAppId number
Cos application ID.
cosBucket string
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
cosFileName string
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
cosPrefix string
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
cosRegion string
Cos region.
cssSnapshotTemplateId string
ID of the resource.
description string
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
height number
Screenshot height. Default: 0 (original height). Range: 0-2000.
pornFlag number
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
snapshotInterval number
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
templateName string
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
width number
Screenshot width. Default: 0 (original width). Range: 0-3000.
cos_app_id float
Cos application ID.
cos_bucket str
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
cos_file_name str
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
cos_prefix str
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
cos_region str
Cos region.
css_snapshot_template_id str
ID of the resource.
description str
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
height float
Screenshot height. Default: 0 (original height). Range: 0-2000.
porn_flag float
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
snapshot_interval float
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
template_name str
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
width float
Screenshot width. Default: 0 (original width). Range: 0-3000.
cosAppId Number
Cos application ID.
cosBucket String
Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
cosFileName String
Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
cosPrefix String
Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
cosRegion String
Cos region.
cssSnapshotTemplateId String
ID of the resource.
description String
Description information. Maximum length: 1024 bytes. Only Chinese, English, numbers, _, - are supported.
height Number
Screenshot height. Default: 0 (original height). Range: 0-2000.
pornFlag Number
Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
snapshotInterval Number
Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
templateName String
Template name. Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
width Number
Screenshot width. Default: 0 (original width). Range: 0-3000.

Import

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

$ pulumi import tencentcloud:index/cssSnapshotTemplate:CssSnapshotTemplate snapshot_template templateId
Copy

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.