tencentcloud.CssPushAuthKeyConfig
Explore with Pulumi AI
Provides a resource to create a css push_auth_key_config
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const pushAuthKeyConfig = new tencentcloud.CssPushAuthKeyConfig("pushAuthKeyConfig", {
authDelta: 1800,
backupAuthKey: "testbackkey",
domainName: "your_push_domain_name",
enable: 1,
masterAuthKey: "testmasterkey",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
push_auth_key_config = tencentcloud.CssPushAuthKeyConfig("pushAuthKeyConfig",
auth_delta=1800,
backup_auth_key="testbackkey",
domain_name="your_push_domain_name",
enable=1,
master_auth_key="testmasterkey")
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.NewCssPushAuthKeyConfig(ctx, "pushAuthKeyConfig", &tencentcloud.CssPushAuthKeyConfigArgs{
AuthDelta: pulumi.Float64(1800),
BackupAuthKey: pulumi.String("testbackkey"),
DomainName: pulumi.String("your_push_domain_name"),
Enable: pulumi.Float64(1),
MasterAuthKey: pulumi.String("testmasterkey"),
})
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 pushAuthKeyConfig = new Tencentcloud.CssPushAuthKeyConfig("pushAuthKeyConfig", new()
{
AuthDelta = 1800,
BackupAuthKey = "testbackkey",
DomainName = "your_push_domain_name",
Enable = 1,
MasterAuthKey = "testmasterkey",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.CssPushAuthKeyConfig;
import com.pulumi.tencentcloud.CssPushAuthKeyConfigArgs;
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 pushAuthKeyConfig = new CssPushAuthKeyConfig("pushAuthKeyConfig", CssPushAuthKeyConfigArgs.builder()
.authDelta(1800)
.backupAuthKey("testbackkey")
.domainName("your_push_domain_name")
.enable(1)
.masterAuthKey("testmasterkey")
.build());
}
}
resources:
pushAuthKeyConfig:
type: tencentcloud:CssPushAuthKeyConfig
properties:
authDelta: 1800
backupAuthKey: testbackkey
domainName: your_push_domain_name
enable: 1
masterAuthKey: testmasterkey
Create CssPushAuthKeyConfig Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new CssPushAuthKeyConfig(name: string, args: CssPushAuthKeyConfigArgs, opts?: CustomResourceOptions);
@overload
def CssPushAuthKeyConfig(resource_name: str,
args: CssPushAuthKeyConfigArgs,
opts: Optional[ResourceOptions] = None)
@overload
def CssPushAuthKeyConfig(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_name: Optional[str] = None,
auth_delta: Optional[float] = None,
backup_auth_key: Optional[str] = None,
css_push_auth_key_config_id: Optional[str] = None,
enable: Optional[float] = None,
master_auth_key: Optional[str] = None)
func NewCssPushAuthKeyConfig(ctx *Context, name string, args CssPushAuthKeyConfigArgs, opts ...ResourceOption) (*CssPushAuthKeyConfig, error)
public CssPushAuthKeyConfig(string name, CssPushAuthKeyConfigArgs args, CustomResourceOptions? opts = null)
public CssPushAuthKeyConfig(String name, CssPushAuthKeyConfigArgs args)
public CssPushAuthKeyConfig(String name, CssPushAuthKeyConfigArgs args, CustomResourceOptions options)
type: tencentcloud:CssPushAuthKeyConfig
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 CssPushAuthKeyConfigArgs
- 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 CssPushAuthKeyConfigArgs
- 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 CssPushAuthKeyConfigArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CssPushAuthKeyConfigArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CssPushAuthKeyConfigArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
CssPushAuthKeyConfig 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 CssPushAuthKeyConfig resource accepts the following input properties:
- Domain
Name string - Domain Name.
- Auth
Delta double - Valid time, unit: second.
- Backup
Auth stringKey - Standby authentication key. No transfer means that the current value is not modified.
- Css
Push 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.
- Master
Auth stringKey - Primary authentication key. No transfer means that the current value is not modified.
- Domain
Name string - Domain Name.
- Auth
Delta float64 - Valid time, unit: second.
- Backup
Auth stringKey - Standby authentication key. No transfer means that the current value is not modified.
- Css
Push 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.
- Master
Auth stringKey - Primary authentication key. No transfer means that the current value is not modified.
- domain
Name String - Domain Name.
- auth
Delta Double - Valid time, unit: second.
- backup
Auth StringKey - Standby authentication key. No transfer means that the current value is not modified.
- css
Push 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.
- master
Auth StringKey - Primary authentication key. No transfer means that the current value is not modified.
- domain
Name string - Domain Name.
- auth
Delta number - Valid time, unit: second.
- backup
Auth stringKey - Standby authentication key. No transfer means that the current value is not modified.
- css
Push 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.
- master
Auth stringKey - Primary authentication key. No transfer means that the current value is not modified.
- domain_
name str - Domain Name.
- auth_
delta float - Valid time, unit: second.
- backup_
auth_ strkey - Standby authentication key. No transfer means that the current value is not modified.
- css_
push_ 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.
- master_
auth_ strkey - Primary authentication key. No transfer means that the current value is not modified.
- domain
Name String - Domain Name.
- auth
Delta Number - Valid time, unit: second.
- backup
Auth StringKey - Standby authentication key. No transfer means that the current value is not modified.
- css
Push 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.
- master
Auth StringKey - Primary authentication key. No transfer means that the current value is not modified.
Outputs
All input properties are implicitly available as output properties. Additionally, the CssPushAuthKeyConfig 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 CssPushAuthKeyConfig Resource
Get an existing CssPushAuthKeyConfig 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?: CssPushAuthKeyConfigState, opts?: CustomResourceOptions): CssPushAuthKeyConfig
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
auth_delta: Optional[float] = None,
backup_auth_key: Optional[str] = None,
css_push_auth_key_config_id: Optional[str] = None,
domain_name: Optional[str] = None,
enable: Optional[float] = None,
master_auth_key: Optional[str] = None) -> CssPushAuthKeyConfig
func GetCssPushAuthKeyConfig(ctx *Context, name string, id IDInput, state *CssPushAuthKeyConfigState, opts ...ResourceOption) (*CssPushAuthKeyConfig, error)
public static CssPushAuthKeyConfig Get(string name, Input<string> id, CssPushAuthKeyConfigState? state, CustomResourceOptions? opts = null)
public static CssPushAuthKeyConfig get(String name, Output<String> id, CssPushAuthKeyConfigState state, CustomResourceOptions options)
resources: _: type: tencentcloud:CssPushAuthKeyConfig 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
Delta double - Valid time, unit: second.
- Backup
Auth stringKey - Standby authentication key. No transfer means that the current value is not modified.
- Css
Push 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.
- Master
Auth stringKey - Primary authentication key. No transfer means that the current value is not modified.
- Auth
Delta float64 - Valid time, unit: second.
- Backup
Auth stringKey - Standby authentication key. No transfer means that the current value is not modified.
- Css
Push 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.
- Master
Auth stringKey - Primary authentication key. No transfer means that the current value is not modified.
- auth
Delta Double - Valid time, unit: second.
- backup
Auth StringKey - Standby authentication key. No transfer means that the current value is not modified.
- css
Push 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.
- master
Auth StringKey - Primary authentication key. No transfer means that the current value is not modified.
- auth
Delta number - Valid time, unit: second.
- backup
Auth stringKey - Standby authentication key. No transfer means that the current value is not modified.
- css
Push 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.
- master
Auth stringKey - Primary authentication key. No transfer means that the current value is not modified.
- auth_
delta float - Valid time, unit: second.
- backup_
auth_ strkey - Standby authentication key. No transfer means that the current value is not modified.
- css_
push_ 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.
- master_
auth_ strkey - Primary authentication key. No transfer means that the current value is not modified.
- auth
Delta Number - Valid time, unit: second.
- backup
Auth StringKey - Standby authentication key. No transfer means that the current value is not modified.
- css
Push 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.
- master
Auth StringKey - Primary authentication key. No transfer means that the current value is not modified.
Import
css push_auth_key_config can be imported using the id, e.g.
$ pulumi import tencentcloud:index/cssPushAuthKeyConfig:CssPushAuthKeyConfig push_auth_key_config push_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.