1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. CssPlayAuthKeyConfig
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.CssPlayAuthKeyConfig

Explore with Pulumi AI

Provides a resource to create a css play_auth_key_config

Example Usage

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

const playAuthKeyConfig = new tencentcloud.CssPlayAuthKeyConfig("playAuthKeyConfig", {
    authBackKey: "testbackkey",
    authDelta: 3600,
    authKey: "testauthkey",
    domainName: "your_play_domain_name",
    enable: 1,
});
Copy
import pulumi
import pulumi_tencentcloud as tencentcloud

play_auth_key_config = tencentcloud.CssPlayAuthKeyConfig("playAuthKeyConfig",
    auth_back_key="testbackkey",
    auth_delta=3600,
    auth_key="testauthkey",
    domain_name="your_play_domain_name",
    enable=1)
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.NewCssPlayAuthKeyConfig(ctx, "playAuthKeyConfig", &tencentcloud.CssPlayAuthKeyConfigArgs{
			AuthBackKey: pulumi.String("testbackkey"),
			AuthDelta:   pulumi.Float64(3600),
			AuthKey:     pulumi.String("testauthkey"),
			DomainName:  pulumi.String("your_play_domain_name"),
			Enable:      pulumi.Float64(1),
		})
		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 playAuthKeyConfig = new Tencentcloud.CssPlayAuthKeyConfig("playAuthKeyConfig", new()
    {
        AuthBackKey = "testbackkey",
        AuthDelta = 3600,
        AuthKey = "testauthkey",
        DomainName = "your_play_domain_name",
        Enable = 1,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CssPlayAuthKeyConfig;
import com.pulumi.tencentcloud.CssPlayAuthKeyConfigArgs;
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 playAuthKeyConfig = new CssPlayAuthKeyConfig("playAuthKeyConfig", CssPlayAuthKeyConfigArgs.builder()
            .authBackKey("testbackkey")
            .authDelta(3600)
            .authKey("testauthkey")
            .domainName("your_play_domain_name")
            .enable(1)
            .build());

    }
}
Copy
resources:
  playAuthKeyConfig:
    type: tencentcloud:CssPlayAuthKeyConfig
    properties:
      authBackKey: testbackkey
      authDelta: 3600
      authKey: testauthkey
      domainName: your_play_domain_name
      enable: 1
Copy

Create CssPlayAuthKeyConfig Resource

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

Constructor syntax

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

@overload
def CssPlayAuthKeyConfig(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         domain_name: Optional[str] = None,
                         auth_back_key: Optional[str] = None,
                         auth_delta: Optional[float] = None,
                         auth_key: Optional[str] = None,
                         css_play_auth_key_config_id: Optional[str] = None,
                         enable: Optional[float] = None)
func NewCssPlayAuthKeyConfig(ctx *Context, name string, args CssPlayAuthKeyConfigArgs, opts ...ResourceOption) (*CssPlayAuthKeyConfig, error)
public CssPlayAuthKeyConfig(string name, CssPlayAuthKeyConfigArgs args, CustomResourceOptions? opts = null)
public CssPlayAuthKeyConfig(String name, CssPlayAuthKeyConfigArgs args)
public CssPlayAuthKeyConfig(String name, CssPlayAuthKeyConfigArgs args, CustomResourceOptions options)
type: tencentcloud:CssPlayAuthKeyConfig
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. CssPlayAuthKeyConfigArgs
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. CssPlayAuthKeyConfigArgs
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. CssPlayAuthKeyConfigArgs
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. CssPlayAuthKeyConfigArgs
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. CssPlayAuthKeyConfigArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

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

DomainName This property is required. string
Domain Name.
AuthBackKey string
Alternate key for authentication. No transfer means that the current value is not modified.
AuthDelta double
Valid time, unit: second. No transfer means that the current value is not modified.
AuthKey string
Authentication key. No transfer means that the current value is not modified.
CssPlayAuthKeyConfigId string
ID of the resource.
Enable double
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
DomainName This property is required. string
Domain Name.
AuthBackKey string
Alternate key for authentication. No transfer means that the current value is not modified.
AuthDelta float64
Valid time, unit: second. No transfer means that the current value is not modified.
AuthKey string
Authentication key. No transfer means that the current value is not modified.
CssPlayAuthKeyConfigId string
ID of the resource.
Enable float64
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
domainName This property is required. String
Domain Name.
authBackKey String
Alternate key for authentication. No transfer means that the current value is not modified.
authDelta Double
Valid time, unit: second. No transfer means that the current value is not modified.
authKey String
Authentication key. No transfer means that the current value is not modified.
cssPlayAuthKeyConfigId String
ID of the resource.
enable Double
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
domainName This property is required. string
Domain Name.
authBackKey string
Alternate key for authentication. No transfer means that the current value is not modified.
authDelta number
Valid time, unit: second. No transfer means that the current value is not modified.
authKey string
Authentication key. No transfer means that the current value is not modified.
cssPlayAuthKeyConfigId string
ID of the resource.
enable number
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
domain_name This property is required. str
Domain Name.
auth_back_key str
Alternate key for authentication. No transfer means that the current value is not modified.
auth_delta float
Valid time, unit: second. No transfer means that the current value is not modified.
auth_key str
Authentication key. No transfer means that the current value is not modified.
css_play_auth_key_config_id str
ID of the resource.
enable float
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
domainName This property is required. String
Domain Name.
authBackKey String
Alternate key for authentication. No transfer means that the current value is not modified.
authDelta Number
Valid time, unit: second. No transfer means that the current value is not modified.
authKey String
Authentication key. No transfer means that the current value is not modified.
cssPlayAuthKeyConfigId String
ID of the resource.
enable Number
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.

Outputs

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

Get an existing CssPlayAuthKeyConfig 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?: CssPlayAuthKeyConfigState, opts?: CustomResourceOptions): CssPlayAuthKeyConfig
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        auth_back_key: Optional[str] = None,
        auth_delta: Optional[float] = None,
        auth_key: Optional[str] = None,
        css_play_auth_key_config_id: Optional[str] = None,
        domain_name: Optional[str] = None,
        enable: Optional[float] = None) -> CssPlayAuthKeyConfig
func GetCssPlayAuthKeyConfig(ctx *Context, name string, id IDInput, state *CssPlayAuthKeyConfigState, opts ...ResourceOption) (*CssPlayAuthKeyConfig, error)
public static CssPlayAuthKeyConfig Get(string name, Input<string> id, CssPlayAuthKeyConfigState? state, CustomResourceOptions? opts = null)
public static CssPlayAuthKeyConfig get(String name, Output<String> id, CssPlayAuthKeyConfigState state, CustomResourceOptions options)
resources:  _:    type: tencentcloud:CssPlayAuthKeyConfig    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:
AuthBackKey string
Alternate key for authentication. No transfer means that the current value is not modified.
AuthDelta double
Valid time, unit: second. No transfer means that the current value is not modified.
AuthKey string
Authentication key. No transfer means that the current value is not modified.
CssPlayAuthKeyConfigId string
ID of the resource.
DomainName string
Domain Name.
Enable double
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
AuthBackKey string
Alternate key for authentication. No transfer means that the current value is not modified.
AuthDelta float64
Valid time, unit: second. No transfer means that the current value is not modified.
AuthKey string
Authentication key. No transfer means that the current value is not modified.
CssPlayAuthKeyConfigId string
ID of the resource.
DomainName string
Domain Name.
Enable float64
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
authBackKey String
Alternate key for authentication. No transfer means that the current value is not modified.
authDelta Double
Valid time, unit: second. No transfer means that the current value is not modified.
authKey String
Authentication key. No transfer means that the current value is not modified.
cssPlayAuthKeyConfigId String
ID of the resource.
domainName String
Domain Name.
enable Double
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
authBackKey string
Alternate key for authentication. No transfer means that the current value is not modified.
authDelta number
Valid time, unit: second. No transfer means that the current value is not modified.
authKey string
Authentication key. No transfer means that the current value is not modified.
cssPlayAuthKeyConfigId string
ID of the resource.
domainName string
Domain Name.
enable number
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
auth_back_key str
Alternate key for authentication. No transfer means that the current value is not modified.
auth_delta float
Valid time, unit: second. No transfer means that the current value is not modified.
auth_key str
Authentication key. No transfer means that the current value is not modified.
css_play_auth_key_config_id str
ID of the resource.
domain_name str
Domain Name.
enable float
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
authBackKey String
Alternate key for authentication. No transfer means that the current value is not modified.
authDelta Number
Valid time, unit: second. No transfer means that the current value is not modified.
authKey String
Authentication key. No transfer means that the current value is not modified.
cssPlayAuthKeyConfigId String
ID of the resource.
domainName String
Domain Name.
enable Number
Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.

Import

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

$ pulumi import tencentcloud:index/cssPlayAuthKeyConfig:CssPlayAuthKeyConfig play_auth_key_config play_auth_key_config_id
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.