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,
});
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)
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
})
}
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,
});
});
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());
}
}
resources:
playAuthKeyConfig:
type: tencentcloud:CssPlayAuthKeyConfig
properties:
authBackKey: testbackkey
authDelta: 3600
authKey: testauthkey
domainName: your_play_domain_name
enable: 1
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 string
- The unique name of the resource.
- args CssPlayAuthKeyConfigArgs
- 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 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 string
- The unique name of the resource.
- args CssPlayAuthKeyConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CssPlayAuthKeyConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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:
- Domain
Name string - Domain Name.
- Auth
Back stringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- Auth
Delta double - Valid time, unit: second. No transfer means that the current value is not modified.
- Auth
Key string - Authentication key. No transfer means that the current value is not modified.
- Css
Play stringAuth Key Config Id - ID of the resource.
- Enable double
- Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
- Domain
Name string - Domain Name.
- Auth
Back stringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- Auth
Delta float64 - Valid time, unit: second. No transfer means that the current value is not modified.
- Auth
Key string - Authentication key. No transfer means that the current value is not modified.
- Css
Play stringAuth Key Config Id - ID of the resource.
- Enable float64
- Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
- domain
Name String - Domain Name.
- auth
Back StringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- auth
Delta Double - Valid time, unit: second. No transfer means that the current value is not modified.
- auth
Key String - Authentication key. No transfer means that the current value is not modified.
- css
Play StringAuth Key Config Id - ID of the resource.
- enable Double
- Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
- domain
Name string - Domain Name.
- auth
Back stringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- auth
Delta number - Valid time, unit: second. No transfer means that the current value is not modified.
- auth
Key string - Authentication key. No transfer means that the current value is not modified.
- css
Play stringAuth Key Config Id - 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 str - Domain Name.
- auth_
back_ strkey - 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_ strauth_ key_ config_ id - ID of the resource.
- enable float
- Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
- domain
Name String - Domain Name.
- auth
Back StringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- auth
Delta Number - Valid time, unit: second. No transfer means that the current value is not modified.
- auth
Key String - Authentication key. No transfer means that the current value is not modified.
- css
Play StringAuth Key Config Id - 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
- 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.
- Auth
Back stringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- Auth
Delta double - Valid time, unit: second. No transfer means that the current value is not modified.
- Auth
Key string - Authentication key. No transfer means that the current value is not modified.
- Css
Play stringAuth Key Config Id - ID of the resource.
- Domain
Name string - Domain Name.
- Enable double
- Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
- Auth
Back stringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- Auth
Delta float64 - Valid time, unit: second. No transfer means that the current value is not modified.
- Auth
Key string - Authentication key. No transfer means that the current value is not modified.
- Css
Play stringAuth Key Config Id - ID of the resource.
- Domain
Name string - Domain Name.
- Enable float64
- Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
- auth
Back StringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- auth
Delta Double - Valid time, unit: second. No transfer means that the current value is not modified.
- auth
Key String - Authentication key. No transfer means that the current value is not modified.
- css
Play StringAuth Key Config Id - ID of the resource.
- domain
Name String - Domain Name.
- enable Double
- Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
- auth
Back stringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- auth
Delta number - Valid time, unit: second. No transfer means that the current value is not modified.
- auth
Key string - Authentication key. No transfer means that the current value is not modified.
- css
Play stringAuth Key Config Id - ID of the resource.
- domain
Name string - Domain Name.
- enable number
- Enable or not, 0: Close, 1: Enable. No transfer means that the current value is not modified.
- auth_
back_ strkey - 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_ strauth_ key_ config_ id - 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.
- auth
Back StringKey - Alternate key for authentication. No transfer means that the current value is not modified.
- auth
Delta Number - Valid time, unit: second. No transfer means that the current value is not modified.
- auth
Key String - Authentication key. No transfer means that the current value is not modified.
- css
Play StringAuth Key Config Id - ID of the resource.
- domain
Name 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
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.