tencentcloud.CssCallbackTemplate
Explore with Pulumi AI
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:
- Template
Name string - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported. - Callback
Key string - Callback Key, public callback URL.
- Css
Callback stringTemplate Id - ID of the resource.
- Description string
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - Porn
Censorship stringNotify Url - PornCensorship callback URL.
- Push
Exception stringNotify Url - Streaming Exception Callback URL.
- Record
Notify stringUrl - Recording callback URL.
- Snapshot
Notify stringUrl - Snapshot callback URL.
- Stream
Begin stringNotify Url - Launch callback URL.
- Stream
End stringNotify Url - Cutoff callback URL.
- Template
Name string - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported. - Callback
Key string - Callback Key, public callback URL.
- Css
Callback stringTemplate Id - ID of the resource.
- Description string
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - Porn
Censorship stringNotify Url - PornCensorship callback URL.
- Push
Exception stringNotify Url - Streaming Exception Callback URL.
- Record
Notify stringUrl - Recording callback URL.
- Snapshot
Notify stringUrl - Snapshot callback URL.
- Stream
Begin stringNotify Url - Launch callback URL.
- Stream
End stringNotify Url - Cutoff callback URL.
- template
Name String - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported. - callback
Key String - Callback Key, public callback URL.
- css
Callback StringTemplate Id - ID of the resource.
- description String
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - porn
Censorship StringNotify Url - PornCensorship callback URL.
- push
Exception StringNotify Url - Streaming Exception Callback URL.
- record
Notify StringUrl - Recording callback URL.
- snapshot
Notify StringUrl - Snapshot callback URL.
- stream
Begin StringNotify Url - Launch callback URL.
- stream
End StringNotify Url - Cutoff callback URL.
- template
Name string - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported. - callback
Key string - Callback Key, public callback URL.
- css
Callback stringTemplate Id - ID of the resource.
- description string
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - porn
Censorship stringNotify Url - PornCensorship callback URL.
- push
Exception stringNotify Url - Streaming Exception Callback URL.
- record
Notify stringUrl - Recording callback URL.
- snapshot
Notify stringUrl - Snapshot callback URL.
- stream
Begin stringNotify Url - Launch callback URL.
- stream
End stringNotify Url - 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_ strtemplate_ id - ID of the resource.
- description str
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - porn_
censorship_ strnotify_ url - PornCensorship callback URL.
- push_
exception_ strnotify_ url - Streaming Exception Callback URL.
- record_
notify_ strurl - Recording callback URL.
- snapshot_
notify_ strurl - Snapshot callback URL.
- stream_
begin_ strnotify_ url - Launch callback URL.
- stream_
end_ strnotify_ url - Cutoff callback URL.
- template
Name String - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported. - callback
Key String - Callback Key, public callback URL.
- css
Callback StringTemplate Id - ID of the resource.
- description String
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - porn
Censorship StringNotify Url - PornCensorship callback URL.
- push
Exception StringNotify Url - Streaming Exception Callback URL.
- record
Notify StringUrl - Recording callback URL.
- snapshot
Notify StringUrl - Snapshot callback URL.
- stream
Begin StringNotify Url - Launch callback URL.
- stream
End StringNotify Url - 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.
- Callback
Key string - Callback Key, public callback URL.
- Css
Callback stringTemplate Id - ID of the resource.
- Description string
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - Porn
Censorship stringNotify Url - PornCensorship callback URL.
- Push
Exception stringNotify Url - Streaming Exception Callback URL.
- Record
Notify stringUrl - Recording callback URL.
- Snapshot
Notify stringUrl - Snapshot callback URL.
- Stream
Begin stringNotify Url - Launch callback URL.
- Stream
End stringNotify Url - Cutoff callback URL.
- Template
Name string - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported.
- Callback
Key string - Callback Key, public callback URL.
- Css
Callback stringTemplate Id - ID of the resource.
- Description string
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - Porn
Censorship stringNotify Url - PornCensorship callback URL.
- Push
Exception stringNotify Url - Streaming Exception Callback URL.
- Record
Notify stringUrl - Recording callback URL.
- Snapshot
Notify stringUrl - Snapshot callback URL.
- Stream
Begin stringNotify Url - Launch callback URL.
- Stream
End stringNotify Url - Cutoff callback URL.
- Template
Name string - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported.
- callback
Key String - Callback Key, public callback URL.
- css
Callback StringTemplate Id - ID of the resource.
- description String
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - porn
Censorship StringNotify Url - PornCensorship callback URL.
- push
Exception StringNotify Url - Streaming Exception Callback URL.
- record
Notify StringUrl - Recording callback URL.
- snapshot
Notify StringUrl - Snapshot callback URL.
- stream
Begin StringNotify Url - Launch callback URL.
- stream
End StringNotify Url - Cutoff callback URL.
- template
Name String - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported.
- callback
Key string - Callback Key, public callback URL.
- css
Callback stringTemplate Id - ID of the resource.
- description string
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - porn
Censorship stringNotify Url - PornCensorship callback URL.
- push
Exception stringNotify Url - Streaming Exception Callback URL.
- record
Notify stringUrl - Recording callback URL.
- snapshot
Notify stringUrl - Snapshot callback URL.
- stream
Begin stringNotify Url - Launch callback URL.
- stream
End stringNotify Url - Cutoff callback URL.
- template
Name string - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported.
- callback_
key str - Callback Key, public callback URL.
- css_
callback_ strtemplate_ id - ID of the resource.
- description str
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - porn_
censorship_ strnotify_ url - PornCensorship callback URL.
- push_
exception_ strnotify_ url - Streaming Exception Callback URL.
- record_
notify_ strurl - Recording callback URL.
- snapshot_
notify_ strurl - Snapshot callback URL.
- stream_
begin_ strnotify_ url - Launch callback URL.
- stream_
end_ strnotify_ url - Cutoff callback URL.
- template_
name str - Template name.Maximum length: 255 bytes. Only
Chinese
,English
,numbers
,_
,-
are supported.
- callback
Key String - Callback Key, public callback URL.
- css
Callback StringTemplate Id - ID of the resource.
- description String
- Description information.Maximum length: 1024 bytes.Only
Chinese
,English
,numbers
,_
,-
are supported. - porn
Censorship StringNotify Url - PornCensorship callback URL.
- push
Exception StringNotify Url - Streaming Exception Callback URL.
- record
Notify StringUrl - Recording callback URL.
- snapshot
Notify StringUrl - Snapshot callback URL.
- stream
Begin StringNotify Url - Launch callback URL.
- stream
End StringNotify Url - Cutoff callback URL.
- template
Name 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.