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

tencentcloud.CssCallbackTemplate

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 callback_template

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const callbackTemplate = new tencentcloud.CssCallbackTemplate("callbackTemplate", {
        callbackKey: "adasda131312",
        description: "this is demo",
        pornCensorshipNotifyUrl: "http://www.yourdomain.com/api/notify?action=porn",
        pushExceptionNotifyUrl: "http://www.yourdomain.com/api/notify?action=pushException",
        recordNotifyUrl: "http://www.yourdomain.com/api/notify?action=record",
        snapshotNotifyUrl: "http://www.yourdomain.com/api/notify?action=snapshot",
        streamBeginNotifyUrl: "http://www.yourdomain.com/api/notify?action=streamBegin",
        streamEndNotifyUrl: "http://www.yourdomain.com/api/notify?action=streamEnd",
        templateName: "tf-test",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    callback_template = tencentcloud.CssCallbackTemplate("callbackTemplate",
        callback_key="adasda131312",
        description="this is demo",
        porn_censorship_notify_url="http://www.yourdomain.com/api/notify?action=porn",
        push_exception_notify_url="http://www.yourdomain.com/api/notify?action=pushException",
        record_notify_url="http://www.yourdomain.com/api/notify?action=record",
        snapshot_notify_url="http://www.yourdomain.com/api/notify?action=snapshot",
        stream_begin_notify_url="http://www.yourdomain.com/api/notify?action=streamBegin",
        stream_end_notify_url="http://www.yourdomain.com/api/notify?action=streamEnd",
        template_name="tf-test")
    
    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.NewCssCallbackTemplate(ctx, "callbackTemplate", &tencentcloud.CssCallbackTemplateArgs{
    			CallbackKey:             pulumi.String("adasda131312"),
    			Description:             pulumi.String("this is demo"),
    			PornCensorshipNotifyUrl: pulumi.String("http://www.yourdomain.com/api/notify?action=porn"),
    			PushExceptionNotifyUrl:  pulumi.String("http://www.yourdomain.com/api/notify?action=pushException"),
    			RecordNotifyUrl:         pulumi.String("http://www.yourdomain.com/api/notify?action=record"),
    			SnapshotNotifyUrl:       pulumi.String("http://www.yourdomain.com/api/notify?action=snapshot"),
    			StreamBeginNotifyUrl:    pulumi.String("http://www.yourdomain.com/api/notify?action=streamBegin"),
    			StreamEndNotifyUrl:      pulumi.String("http://www.yourdomain.com/api/notify?action=streamEnd"),
    			TemplateName:            pulumi.String("tf-test"),
    		})
    		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 callbackTemplate = new Tencentcloud.CssCallbackTemplate("callbackTemplate", new()
        {
            CallbackKey = "adasda131312",
            Description = "this is demo",
            PornCensorshipNotifyUrl = "http://www.yourdomain.com/api/notify?action=porn",
            PushExceptionNotifyUrl = "http://www.yourdomain.com/api/notify?action=pushException",
            RecordNotifyUrl = "http://www.yourdomain.com/api/notify?action=record",
            SnapshotNotifyUrl = "http://www.yourdomain.com/api/notify?action=snapshot",
            StreamBeginNotifyUrl = "http://www.yourdomain.com/api/notify?action=streamBegin",
            StreamEndNotifyUrl = "http://www.yourdomain.com/api/notify?action=streamEnd",
            TemplateName = "tf-test",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.CssCallbackTemplate;
    import com.pulumi.tencentcloud.CssCallbackTemplateArgs;
    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 callbackTemplate = new CssCallbackTemplate("callbackTemplate", CssCallbackTemplateArgs.builder()
                .callbackKey("adasda131312")
                .description("this is demo")
                .pornCensorshipNotifyUrl("http://www.yourdomain.com/api/notify?action=porn")
                .pushExceptionNotifyUrl("http://www.yourdomain.com/api/notify?action=pushException")
                .recordNotifyUrl("http://www.yourdomain.com/api/notify?action=record")
                .snapshotNotifyUrl("http://www.yourdomain.com/api/notify?action=snapshot")
                .streamBeginNotifyUrl("http://www.yourdomain.com/api/notify?action=streamBegin")
                .streamEndNotifyUrl("http://www.yourdomain.com/api/notify?action=streamEnd")
                .templateName("tf-test")
                .build());
    
        }
    }
    
    resources:
      callbackTemplate:
        type: tencentcloud:CssCallbackTemplate
        properties:
          callbackKey: adasda131312
          description: this is demo
          pornCensorshipNotifyUrl: http://www.yourdomain.com/api/notify?action=porn
          pushExceptionNotifyUrl: http://www.yourdomain.com/api/notify?action=pushException
          recordNotifyUrl: http://www.yourdomain.com/api/notify?action=record
          snapshotNotifyUrl: http://www.yourdomain.com/api/notify?action=snapshot
          streamBeginNotifyUrl: http://www.yourdomain.com/api/notify?action=streamBegin
          streamEndNotifyUrl: http://www.yourdomain.com/api/notify?action=streamEnd
          templateName: tf-test
    

    Create CssCallbackTemplate Resource

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

    Constructor syntax

    new CssCallbackTemplate(name: string, args: CssCallbackTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def CssCallbackTemplate(resource_name: str,
                            args: CssCallbackTemplateArgs,
                            opts: Optional[ResourceOptions] = None)
    
    @overload
    def CssCallbackTemplate(resource_name: str,
                            opts: Optional[ResourceOptions] = None,
                            template_name: Optional[str] = None,
                            callback_key: Optional[str] = None,
                            css_callback_template_id: Optional[str] = None,
                            description: Optional[str] = None,
                            porn_censorship_notify_url: Optional[str] = None,
                            push_exception_notify_url: Optional[str] = None,
                            record_notify_url: Optional[str] = None,
                            snapshot_notify_url: Optional[str] = None,
                            stream_begin_notify_url: Optional[str] = None,
                            stream_end_notify_url: Optional[str] = None)
    func NewCssCallbackTemplate(ctx *Context, name string, args CssCallbackTemplateArgs, opts ...ResourceOption) (*CssCallbackTemplate, error)
    public CssCallbackTemplate(string name, CssCallbackTemplateArgs args, CustomResourceOptions? opts = null)
    public CssCallbackTemplate(String name, CssCallbackTemplateArgs args)
    public CssCallbackTemplate(String name, CssCallbackTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:CssCallbackTemplate
    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 CssCallbackTemplateArgs
    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 CssCallbackTemplateArgs
    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 CssCallbackTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args CssCallbackTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args CssCallbackTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

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

    TemplateName string
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    CallbackKey string
    Callback Key, public callback URL.
    CssCallbackTemplateId string
    ID of the resource.
    Description string
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    PornCensorshipNotifyUrl string
    PornCensorship callback URL.
    PushExceptionNotifyUrl string
    Streaming Exception Callback URL.
    RecordNotifyUrl string
    Recording callback URL.
    SnapshotNotifyUrl string
    Snapshot callback URL.
    StreamBeginNotifyUrl string
    Launch callback URL.
    StreamEndNotifyUrl string
    Cutoff callback URL.
    TemplateName string
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    CallbackKey string
    Callback Key, public callback URL.
    CssCallbackTemplateId string
    ID of the resource.
    Description string
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    PornCensorshipNotifyUrl string
    PornCensorship callback URL.
    PushExceptionNotifyUrl string
    Streaming Exception Callback URL.
    RecordNotifyUrl string
    Recording callback URL.
    SnapshotNotifyUrl string
    Snapshot callback URL.
    StreamBeginNotifyUrl string
    Launch callback URL.
    StreamEndNotifyUrl string
    Cutoff callback URL.
    templateName String
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    callbackKey String
    Callback Key, public callback URL.
    cssCallbackTemplateId String
    ID of the resource.
    description String
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    pornCensorshipNotifyUrl String
    PornCensorship callback URL.
    pushExceptionNotifyUrl String
    Streaming Exception Callback URL.
    recordNotifyUrl String
    Recording callback URL.
    snapshotNotifyUrl String
    Snapshot callback URL.
    streamBeginNotifyUrl String
    Launch callback URL.
    streamEndNotifyUrl String
    Cutoff callback URL.
    templateName string
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    callbackKey string
    Callback Key, public callback URL.
    cssCallbackTemplateId string
    ID of the resource.
    description string
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    pornCensorshipNotifyUrl string
    PornCensorship callback URL.
    pushExceptionNotifyUrl string
    Streaming Exception Callback URL.
    recordNotifyUrl string
    Recording callback URL.
    snapshotNotifyUrl string
    Snapshot callback URL.
    streamBeginNotifyUrl string
    Launch callback URL.
    streamEndNotifyUrl string
    Cutoff callback URL.
    template_name str
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    callback_key str
    Callback Key, public callback URL.
    css_callback_template_id str
    ID of the resource.
    description str
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    porn_censorship_notify_url str
    PornCensorship callback URL.
    push_exception_notify_url str
    Streaming Exception Callback URL.
    record_notify_url str
    Recording callback URL.
    snapshot_notify_url str
    Snapshot callback URL.
    stream_begin_notify_url str
    Launch callback URL.
    stream_end_notify_url str
    Cutoff callback URL.
    templateName String
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    callbackKey String
    Callback Key, public callback URL.
    cssCallbackTemplateId String
    ID of the resource.
    description String
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    pornCensorshipNotifyUrl String
    PornCensorship callback URL.
    pushExceptionNotifyUrl String
    Streaming Exception Callback URL.
    recordNotifyUrl String
    Recording callback URL.
    snapshotNotifyUrl String
    Snapshot callback URL.
    streamBeginNotifyUrl String
    Launch callback URL.
    streamEndNotifyUrl String
    Cutoff callback URL.

    Outputs

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

    Get an existing CssCallbackTemplate 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?: CssCallbackTemplateState, opts?: CustomResourceOptions): CssCallbackTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            callback_key: Optional[str] = None,
            css_callback_template_id: Optional[str] = None,
            description: Optional[str] = None,
            porn_censorship_notify_url: Optional[str] = None,
            push_exception_notify_url: Optional[str] = None,
            record_notify_url: Optional[str] = None,
            snapshot_notify_url: Optional[str] = None,
            stream_begin_notify_url: Optional[str] = None,
            stream_end_notify_url: Optional[str] = None,
            template_name: Optional[str] = None) -> CssCallbackTemplate
    func GetCssCallbackTemplate(ctx *Context, name string, id IDInput, state *CssCallbackTemplateState, opts ...ResourceOption) (*CssCallbackTemplate, error)
    public static CssCallbackTemplate Get(string name, Input<string> id, CssCallbackTemplateState? state, CustomResourceOptions? opts = null)
    public static CssCallbackTemplate get(String name, Output<String> id, CssCallbackTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:CssCallbackTemplate    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:
    CallbackKey string
    Callback Key, public callback URL.
    CssCallbackTemplateId string
    ID of the resource.
    Description string
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    PornCensorshipNotifyUrl string
    PornCensorship callback URL.
    PushExceptionNotifyUrl string
    Streaming Exception Callback URL.
    RecordNotifyUrl string
    Recording callback URL.
    SnapshotNotifyUrl string
    Snapshot callback URL.
    StreamBeginNotifyUrl string
    Launch callback URL.
    StreamEndNotifyUrl string
    Cutoff callback URL.
    TemplateName string
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    CallbackKey string
    Callback Key, public callback URL.
    CssCallbackTemplateId string
    ID of the resource.
    Description string
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    PornCensorshipNotifyUrl string
    PornCensorship callback URL.
    PushExceptionNotifyUrl string
    Streaming Exception Callback URL.
    RecordNotifyUrl string
    Recording callback URL.
    SnapshotNotifyUrl string
    Snapshot callback URL.
    StreamBeginNotifyUrl string
    Launch callback URL.
    StreamEndNotifyUrl string
    Cutoff callback URL.
    TemplateName string
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    callbackKey String
    Callback Key, public callback URL.
    cssCallbackTemplateId String
    ID of the resource.
    description String
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    pornCensorshipNotifyUrl String
    PornCensorship callback URL.
    pushExceptionNotifyUrl String
    Streaming Exception Callback URL.
    recordNotifyUrl String
    Recording callback URL.
    snapshotNotifyUrl String
    Snapshot callback URL.
    streamBeginNotifyUrl String
    Launch callback URL.
    streamEndNotifyUrl String
    Cutoff callback URL.
    templateName String
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    callbackKey string
    Callback Key, public callback URL.
    cssCallbackTemplateId string
    ID of the resource.
    description string
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    pornCensorshipNotifyUrl string
    PornCensorship callback URL.
    pushExceptionNotifyUrl string
    Streaming Exception Callback URL.
    recordNotifyUrl string
    Recording callback URL.
    snapshotNotifyUrl string
    Snapshot callback URL.
    streamBeginNotifyUrl string
    Launch callback URL.
    streamEndNotifyUrl string
    Cutoff callback URL.
    templateName string
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    callback_key str
    Callback Key, public callback URL.
    css_callback_template_id str
    ID of the resource.
    description str
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    porn_censorship_notify_url str
    PornCensorship callback URL.
    push_exception_notify_url str
    Streaming Exception Callback URL.
    record_notify_url str
    Recording callback URL.
    snapshot_notify_url str
    Snapshot callback URL.
    stream_begin_notify_url str
    Launch callback URL.
    stream_end_notify_url str
    Cutoff callback URL.
    template_name str
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.
    callbackKey String
    Callback Key, public callback URL.
    cssCallbackTemplateId String
    ID of the resource.
    description String
    Description information.Maximum length: 1024 bytes.Only Chinese, English, numbers, _, - are supported.
    pornCensorshipNotifyUrl String
    PornCensorship callback URL.
    pushExceptionNotifyUrl String
    Streaming Exception Callback URL.
    recordNotifyUrl String
    Recording callback URL.
    snapshotNotifyUrl String
    Snapshot callback URL.
    streamBeginNotifyUrl String
    Launch callback URL.
    streamEndNotifyUrl String
    Cutoff callback URL.
    templateName String
    Template name.Maximum length: 255 bytes. Only Chinese, English, numbers, _, - are supported.

    Import

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

    $ pulumi import tencentcloud:index/cssCallbackTemplate:CssCallbackTemplate callback_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