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,
});
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)
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
})
}
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,
});
});
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());
}
}
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
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 string
- The unique name of the resource.
- args CssSnapshotTemplateArgs
- 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 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 string
- The unique name of the resource.
- args CssSnapshotTemplateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CssSnapshotTemplateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Cos
App doubleId - Cos application ID.
- Cos
Bucket string - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- Cos
Region string - Cos region.
- Template
Name string - Template name. Maximum length: 255 bytes. Only Chinese, English, numbers,
_
,-
are supported. - Cos
File stringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- Cos
Prefix string - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- Css
Snapshot stringTemplate Id - 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.
- Porn
Flag double - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- Snapshot
Interval double - Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
- Width double
- Screenshot width. Default: 0 (original width). Range: 0-3000.
- Cos
App float64Id - Cos application ID.
- Cos
Bucket string - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- Cos
Region string - Cos region.
- Template
Name string - Template name. Maximum length: 255 bytes. Only Chinese, English, numbers,
_
,-
are supported. - Cos
File stringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- Cos
Prefix string - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- Css
Snapshot stringTemplate Id - 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.
- Porn
Flag float64 - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- Snapshot
Interval float64 - Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
- Width float64
- Screenshot width. Default: 0 (original width). Range: 0-3000.
- cos
App DoubleId - Cos application ID.
- cos
Bucket String - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- cos
Region String - Cos region.
- template
Name String - Template name. Maximum length: 255 bytes. Only Chinese, English, numbers,
_
,-
are supported. - cos
File StringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- cos
Prefix String - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- css
Snapshot StringTemplate Id - 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.
- porn
Flag Double - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- snapshot
Interval Double - Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
- width Double
- Screenshot width. Default: 0 (original width). Range: 0-3000.
- cos
App numberId - Cos application ID.
- cos
Bucket string - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- cos
Region string - Cos region.
- template
Name string - Template name. Maximum length: 255 bytes. Only Chinese, English, numbers,
_
,-
are supported. - cos
File stringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- cos
Prefix string - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- css
Snapshot stringTemplate Id - 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.
- porn
Flag number - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- snapshot
Interval number - Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
- width number
- Screenshot width. Default: 0 (original width). Range: 0-3000.
- cos_
app_ floatid - Cos application ID.
- cos_
bucket str - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- cos_
region str - Cos region.
- template_
name str - Template name. Maximum length: 255 bytes. Only Chinese, English, numbers,
_
,-
are supported. - cos_
file_ strname - 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_ strtemplate_ id - 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.
- cos
App NumberId - Cos application ID.
- cos
Bucket String - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- cos
Region String - Cos region.
- template
Name String - Template name. Maximum length: 255 bytes. Only Chinese, English, numbers,
_
,-
are supported. - cos
File StringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- cos
Prefix String - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- css
Snapshot StringTemplate Id - 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.
- porn
Flag Number - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- snapshot
Interval 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
- 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.
- Cos
App doubleId - Cos application ID.
- Cos
Bucket string - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- Cos
File stringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- Cos
Prefix string - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- Cos
Region string - Cos region.
- Css
Snapshot stringTemplate Id - 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.
- Porn
Flag double - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- Snapshot
Interval double - Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
- Template
Name string - Template name. Maximum length: 255 bytes. Only Chinese, English, numbers,
_
,-
are supported. - Width double
- Screenshot width. Default: 0 (original width). Range: 0-3000.
- Cos
App float64Id - Cos application ID.
- Cos
Bucket string - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- Cos
File stringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- Cos
Prefix string - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- Cos
Region string - Cos region.
- Css
Snapshot stringTemplate Id - 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.
- Porn
Flag float64 - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- Snapshot
Interval float64 - Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
- Template
Name string - Template name. Maximum length: 255 bytes. Only Chinese, English, numbers,
_
,-
are supported. - Width float64
- Screenshot width. Default: 0 (original width). Range: 0-3000.
- cos
App DoubleId - Cos application ID.
- cos
Bucket String - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- cos
File StringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- cos
Prefix String - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- cos
Region String - Cos region.
- css
Snapshot StringTemplate Id - 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.
- porn
Flag Double - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- snapshot
Interval Double - Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
- template
Name String - Template name. Maximum length: 255 bytes. Only Chinese, English, numbers,
_
,-
are supported. - width Double
- Screenshot width. Default: 0 (original width). Range: 0-3000.
- cos
App numberId - Cos application ID.
- cos
Bucket string - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- cos
File stringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- cos
Prefix string - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- cos
Region string - Cos region.
- css
Snapshot stringTemplate Id - 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.
- porn
Flag number - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- snapshot
Interval number - Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
- template
Name 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_ floatid - Cos application ID.
- cos_
bucket str - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- cos_
file_ strname - 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_ strtemplate_ id - 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.
- cos
App NumberId - Cos application ID.
- cos
Bucket String - Cos bucket name. Note: The CosBucket parameter value cannot include the - [appid] part.
- cos
File StringName - Cos file name. If it is empty, set according to the default value {StreamID}-screenshot-{Hour}-{Minute}-{Second}-{Width}x{Height}{Ext}.
- cos
Prefix String - Cos Bucket folder prefix. If it is empty, set according to the default value /{Year}-{Month}-{Day}/.
- cos
Region String - Cos region.
- css
Snapshot StringTemplate Id - 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.
- porn
Flag Number - Whether porn is enabled, 0: not enabled, 1: enabled. Default: 0.
- snapshot
Interval Number - Screenshot interval, unit: s, default: 10s. Range: 2s~300s.
- template
Name 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
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.